All Versions
49
Latest Version
Avg Release Cycle
56 days
Latest Release
1687 days ago

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 being Mock.
    • 🀑 ActiveMocker::MockRelation(mock, collection) to create separate independent mock collections.
    • πŸ”„ Change ActiveMocker::Mock::Base to ActiveMocker::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 to true.
    • πŸ— 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 use RSpec 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 instead active_mocker.mocks.find('ClassName').

    βœ‚ Removed

    • 🀑 log/active_mocker.log is replaced env ERROR_VERBOSITY=[0,1,2,3] rake active_mocker:build or in Ruby ActiveMocker::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.
  • v2.0.0.rc1

    December 23, 2015
  • v1.8.4 Changes

    October 06, 2015

    πŸ›  Fix

  • 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.
  • v1.8.1 Changes

    ✨ Enhancement

    • ⬇️ Reduce Ruby version requirement from 2.1.5 to => 2.1
  • v1.8 Changes

    February 17, 2015

    Notes

    πŸš€ 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.
  • 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 []