- Relax
active_record
andaction_view
dependencies to allow for Rails 8 compatibility. - Updated
acts_as_account.gemspec
.
- Add compact to attributes handling of transfer method:
- Use
posting1.attributes.compact
andposting2.attributes.compact
instead of justposting1.attributes
andposting2.attributes
.
- Use
- Update logging configuration and ignore log files:
- Update
DATABASE_LOG
handling infeatures/support/env.rb
- Add
log/*
to.gitignore
- Modify
transfer
method inlib/acts_as_account/journal.rb
to safely reference objects. - Added log directory
- Update
- Add mysql for database testing:
- Add
mysql2
as a development dependency to Gemfile - Update
acts_as_account.gemspec
to reflect new dependencies and version - Update Rakefile to be able to use
mysql2
for connecting to MySQL database - Add Docker Compose file for running MySQL service for testing
- Update database.yml files to point to MySQL or SQLite databases
- Create a new file features/support/db.rb for setting up the database connection
- Add
- Update copyright year upto 2024
- Improved account management features:
- Update
Journal.current.transfer
to return a boolean value indicating success. - Modify
transfer()
method inlib/acts_as_account/journal.rb
to check the result ofpostings.model.insert_all
. - Validate the transfer result in
german_date_time_to_local
andWhen /^I transfer ...$
step definitions.
- Update
- Improve Journaling for Transfer Operations:
- Renamed
add_posting
tobuild_posting
inActsAsAccount::Journal
- Replaced direct database insertion with two insert statements with a call to
model.insert_all
intransfer
method - Updated
update_attributes_on
to directly count amounts of postings
- Renamed
- Ensure consistent locking order for account transfers:
- Use each if we aren't interested in the
lock!
results - Make if condition readable even on smaller displays
- Use each if we aren't interested in the
- Improved logging for transfer method in Journal class:
- Improved formatting of debug message using array.join.
- Improved indenting of comment
- Improved journal functionality for transfers:
- Replaced
tap
with a more concise implementation usingmap
- Replaced
- Make persistence of
#postings_count
and#balance
configurable for accounts:- Only lock if configuration is set to persist these attributes
- Rename
recalculate_all_balances
torecalculate_attributes
and deprecate the original method
- Make gem configurable:
- Add configuration option
persist_attributes_on_account
for persistence ofpostings_count
andbalance
- Add configuration option
- Update dependencies and Ruby version:
- Update to newer Ruby version and dependencies
- Review and README adjustments:
- Perform review and make adjustments to README file
- Fix typo:
- Correct a typo in the code
- Loosen Rails dependencies to now be less than 8.
- Use experimental, new web-protocol for links (
HTTP::Link
). - Neaten README and update copyright information.
- Remove dependency on
cc
gem (broken on Ruby-head). - Test only on MRI (Ruby Implementation).
- Fix linter issue.
- Use SQLite for tests.
- Use GitHub Actions.
- Make
database_cleaner
a development dependency - Support Rails 6
- Fix specs for recent versions of Rails
- Be compatible with Rails 5.
- Call
rake
instead of just mentioning it. - Do not check in
Gemfile.lock
. - Drop support for Ruby 1.9.2.
- Add support for Ruby 2.3.0.
- Update gems and Travis settings to use containers, adding a Travis badge.
- Removed
.ruby
files. - Regenerated
gemspec
for 3.1.1 and 2.0.3 versions. - Ignored ruby-version.
- Corrected posting scope for Rails 4: The
posting_scope
method was updated to correctly handle UTC times stored in the database. - Compare UTC times to values in database: The code now parses specified dates and converts them to the database format of their UTC time, ensuring correct range finding.
- Be less strict in depending on 4.1: The gem's dependencies were relaxed to be less strict about requiring version 4.1.
- Update LICENSE: The license was changed from an unknown type to Apache License.
- Regenerate gemspec for
version 3.1.0
: The gemspec was regenerated for the new version. - Adds Changelog and Rails 4 notice: A changelog and a notice about supporting Rails 4 were added.
- Regenerate gemspec for
version 2.0.3
: The gemspec was regenerated for the new version. - Regenerate gemspec for
version 3.1.1
: The gemspec was regenerated for the new version.
- Added Rails 4.1 compatibility.
- Regenerated gemspec for
**3.1.0**
. - Updated LICENSE to use the Apache License.
- Adds Rails 4 compatibility
- Uses
update_counters
to solve concurrency issues and treat account balances like other counters in Rails, replacing previous method that would undo lock on account rows by reloading them.
- Repair building with
jewel
- Add
travis
configuration - Specify gem dependencies
- Update LICENSE to Apache License
- Compare UTC times to values in database:
- Parse specified dates and convert them to the db format of their UTC time.
- Regenerate gemspec for 2.0.1
- Fixed problem that broke STI classes that used
has_account
in Rails 3.x - Updated gemspec to reflect changes
- Upgrade
acts_as_account
to work with Rails 3. - Significant changes:
- Renamed
VERSION
file - Updated
acts_as_account.gemspec
- Modified
lib/acts_as_account/journal.rb
- Modified
lib/acts_as_account/posting.rb
- Renamed
- Regenerate gemspec for
version 1.2.0
- Updated
version
to use with default STI naming setup for Rails >= 2.3 - Added method
BetterPlace::Model::Base#sti_name
- Renamed method
BetterPlace::Model::Base#table_name
- Fixed bug in active_record_extensions:
holder_id
and type are now passed through correctly. - Changed
returning
to#tap
to remove warnings. - More fixes for tests and rake task.
- Fixed calculation of account balances.
- Fixed dependency:
- Updated
Gemfile
to use the latest version ofrails
- Removed unused
mysql2
gem
- Updated
- Significant changes:
- Added a new method,
create_user
, to theUser
model (def create_user(**kwargs)
) - Updated the
login
method in theSessionController
to use thecreate_user
method (def login; @user = User.create_user(**params); end
) - Changed the default value of the
admin
attribute in theUser
model fromfalse
totrue
(attr_accessor :admin, default: true
)
- Added a new method,
- Fixed dependency bug:
- Updated the project to use
Gemfile
instead ofconfig.gem
- Removed reference to deprecated
config.gem
in favor ofGemfile
- Added
gem 'mysql2', '~> **1.0**'
toGemfile
- Updated the project to use
- Fixed dependency bug:
- Updated
BetterPlace::DependencyManager
to use correct version ofGem
(now usingGem::Version.new('1.3.7')
) - Added check for missing dependencies in
BetterPlace::Project#load_dependencies
- Updated
- Version bump: 1.1.3
- Added some methods:
BetterPlace::Project#new
now takes an optional:api_key
parameterBetterPlace::Project#fetch_data
now fetches data from the Better Place API using the provided:api_key
- Modified README and Rakefile
- Start