All Versions
49
Latest Version
Avg Release Cycle
56 days
Latest Release
1687 days ago
Changelog History
Page 4
Changelog History
Page 4
-
v2.1.0 Changes
February 09, 2016β¨ Enhancement
- π Support for module nested models.
- β Adding support for ruby 2.3
-
v2.0.0 Changes
December 23, 2015β¨ Enhancement
- The mock append name is now changeable using
ActiveMocker::Config.mock_append_name=
. The default still beingMock
. - π€‘
ActiveMocker::MockRelation(mock, collection)
to create separate independent mock collections. - π Change
ActiveMocker::Mock::Base
toActiveMocker::Base
- π Provide more control over error when running
rake active_mocker:build
, error_verbosity now has setting for 0 to 3. - π€‘
db/schema.rb
is no longer required to generate mocks. - π Much better support for Single Table Inheritance and gems that add functionality by being the parent class of model.
- π New DB types can be registered with this API.
ActiveRecordSchemaScrapper::Attribute.register_type(name: :array, klass: Array)
ActiveMocker::Config.disable_modules_and_constants=
Non locally defined Modules are included/extended by default as well as constant declarations. To Disable to feature set totrue
.- π
MODEL=User rake active_mocker:build
no longer takes a model name to generate just that mock. It now takes a path to a model file.MODEL=[path-to-model] rake active_mocker:build
- π When running
rake active_mocker:build
failed will be listed.
π Fix
- β¬οΈ Reduce restriction on Virtus gem to 1.0.any
- When id is not a fixnum and make it match ActiveRecord behavior of calling
#to_i
.
π Deprecated
- π Moved
ActiveMocker::MockAbilities
into "active_mocker/deprecated_components/mock_abilities" if a project is still dependent on it this file it can be required and used at least until version 3.0. The alternative is to useRSpec
verified doubles. - π
#mock_class("Mock")
method has been moved to "active_mocker/deprecated_components/rspec_helper" if a project is still dependent on it this file it can be required and used at least until version 3.0. The alternative is to use the new api that is accessible by insteadactive_mocker.mocks.find('ClassName')
.
β Removed
- π€‘
log/active_mocker.log
is replaced envERROR_VERBOSITY=[0,1,2,3] rake active_mocker:build
or in RubyActiveMocker::Config.error_verbosity=
- π Removing undocumented feature of treating children of mocks differently. Remove the ability to sub class a mock and have it for use in that context when creating/finding association.
- The mock append name is now changeable using
-
v2.0.0.rc1
December 23, 2015 -
v1.8.4 Changes
October 06, 2015π Fix
- Calling scoped method that has not been stubbed raises incorrect error. https://github.com/zeisler/active_mocker/issues/22
- π€‘ Not closing file stream while writing mocks. https://github.com/zeisler/active_mocker/pull/29
-
v1.8.3 Changes
March 03, 2015π Fix
- π€‘ When AR model ended in 's' it would result in failing to create the mock file.
-
v1.8.2 Changes
March 01, 2015π Fix
- π Very critical issue. In rare cases running
rake active_mocker:build
could delete you entire hard drive. When mock_dir is nil or ββ it would rm_rf the entire drive. This has been fixed by raising an error if mock_dir is not set. Also, it will never delete any directories, only files that match*_mock.rb
. Highly recommended that everyone update.
- π Very critical issue. In rare cases running
-
v1.8.1 Changes
β¨ Enhancement
- β¬οΈ Reduce Ruby version requirement from 2.1.5 to => 2.1
-
v1.8 Changes
February 17, 2015Notes
π This release has minor speed improvements. You may find that some records where an attribute was nil it will now have an a value. Next release will most likely be 2.0 where I will focus on removing deprecated features and performance of the mocks runtime.
β¨ Enhancement
- π Improve accuracy and speed in some cases, for finding associations by not assigning them at creation time but finding them when called.
- Hide the internals stack trace when calling method that will raising
NotImplementedError
. - β Add spec documentation for method #new_relation
β Added
- π Support for ruby 2.2.0 and rails 4.2
- π new method #none does what it does for ActiveRecord
-
v1.7.3 Changes
December 01, 2014π Fix
- Passing nil to
find
should of raised an error.
- Passing nil to
-
v1.7.2 Changes
October 27, 2014β¨ Enhancement
- π Build command can take aa Environment variable of model to just generate a mock for a specific model.
rake active_mocker:build MODEL=user
- β Add Method #freeze, see Doc for limitation.
- Method
find
can take a string number or an array of string numbers - Query #all can take take method []
- π Build command can take aa Environment variable of model to just generate a mock for a specific model.