All Versions
49
Latest Version
Avg Release Cycle
56 days
Latest Release
1668 days ago
Changelog History
Page 3
Changelog History
Page 3
-
v2.3.0 Changes
August 29, 2016π Feature
- Added
#first_or_create
,#first_or_create!
, and#first_or_initialize
β¨ Enhancement
- Improved API for registering unknown types and defaults. See https://github.com/zeisler/active_record_schema_scrapper#registering-types
π Deprecation
- π
ActiveRecordSchemaScrapper::Attributes.register_default
gives a deprecation warning if given keys :name and :klass. π New names are :default and :replacement_default.
Example usage:
ActiveRecordSchemaScrapper::Attributes.register_default( default: "{}", replacement_default: [], cast_type: -> (c) { c.class.name.include?("Array") } )
- Added
-
v2.2.5 Changes
August 28, 2016π Fix
- β‘οΈ Ensure '#update' calls save. Addressing the case where an object had not been saved prior would not get persisted.
β¨ Enhancement
- β Add documentation to
#assign_attributes
-
v2.2.4 Changes
August 13, 2016π Fix
- π€‘
BigDecimal
,Date
,DateTime
, andTime
when used as defaults in the schema caused mock generation failures.
- π€‘
-
v2.2.3 Changes
June 27, 2016π Fix
- Constant values assigned to non sudo primitives objects causing issues. https://github.com/zeisler/active_mocker/issues/72
β¨ Enhancement
- β Tested support for Rails RC2
-
v2.2.2 Changes
May 05, 2016π Fix
- π€‘ When using "active_mocker/rspec_helper" with active_mocker:true tag, subclassed mocks were not getting auto stubbed.
- colorize gem was not being required.
-
v2.2.1 Changes
May 03, 2016π Fix
- β Remove hack for String#colorize that would cause the error: "NoMethodError: super: no superclass method `colorize' for #"
-
v2.2.0 Changes
May 03, 2016π Feature
- β Add
ActiveMocker::Mock#slice
- π€‘ Import alias_attribute usage to mock - With supporting methods
attribute_alias?(name)
andattribute_alias(name)
π Fix
- π€‘ When an include/extended module is not locally defined, but defined in the same namespace as the mock it was not correctly namespaced
- π Fix issue NoMethodError in Rails 5.beta when introspection activerecord model.
β¨ Enhancement
- Ignore all non ActiveRecord::Base subclasses
- π Make rake dependency less strict
>= 10.0
- β Add
-
v2.1.3 Changes
March 22, 2016π Fix
- π€‘ Issue where namespaced mocks would not be auto stubbed.
-
v2.1.2 Changes
March 15, 2016π Fix
- When method or scopes defined on the model took an explicit block ie.
&block
it would cause an error.
- When method or scopes defined on the model took an explicit block ie.
-
v2.1.1 Changes
February 13, 2016π Fix
- π€‘ Mocks persist after model is deleted - https://github.com/zeisler/active_mocker/issues/35