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

Changelog History
Page 3

  • v2.3.0 Changes

    August 29, 2016

    πŸ”‹ Feature

    • Added #first_or_create, #first_or_create!, and #first_or_initialize

    ✨ Enhancement

    πŸ—„ 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") } 
    )
    

    https://github.com/zeisler/active_record_schema_scrapper/blob/master/lib/active_record_schema_scrapper/attributes.rb#L36

  • 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, and Time when used as defaults in the schema caused mock generation failures.
  • v2.2.3 Changes

    June 27, 2016

    πŸ›  Fix

    ✨ 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) and attribute_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
  • 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.
  • v2.1.1 Changes

    February 13, 2016

    πŸ›  Fix