active_mocker 2.0.0.rc1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be84f88aee5f849ac41ade637327ab87376e48ef
4
- data.tar.gz: 3bbf50a5b83647f3f84aea50b623d5a18e7b071d
3
+ metadata.gz: c9b2d6d3b9db64dae42eea2223e30608abae1b26
4
+ data.tar.gz: 8b08a6fbe431e368a3316edbc5897e0f0a9509ee
5
5
  SHA512:
6
- metadata.gz: 2cf704f658296af715b9ff4a7f94d76639a2cb87476a4fea8eb55f33a34380919c84bd00823b5f553ab1701d3420c4853eedfce73c755296d210bbb3e452b466
7
- data.tar.gz: d526baf349a850d6a0914a51b88ef7026a4f6ded6c7247c4fbdf661aa6d37da1cd7532362feee937a086bfc6fe6847246b69b7edc1a3234ea723c7fc2b8bcf3f
6
+ metadata.gz: 35604d9a34529d65362c204c108064508bd6bcff699fafa35a9696dd54dc74f11949b28d7f365f6fde7e066a37f981e9ad10f663a13381492e3be9dabc9845f7
7
+ data.tar.gz: 34e6858458951b9b17b408da9e89459ddff3207845b19832206805ff6644cda465c4dd60d1a9eacc8d494d176a5238fbaf62661fe5213772bd2437582a7bcbbb
data/CHANGELOG.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## 2.0.0.pre1 - 2015-12-13
4
+ ## 2.0.0 - 2015-12-22
5
5
  ### Enhancement
6
6
  - The mock append name is now changeable using `ActiveMocker::Config.mock_append_name=`. The default still being `Mock`.
7
7
  - `ActiveMocker::MockRelation(mock, collection)` to create separate independent mock collections.
8
8
  - Change `ActiveMocker::Mock::Base` to `ActiveMocker::Base`
9
9
  - Provide more control over error when running `rake active_mocker:build`, error_verbosity now has setting for 0 to 3.
10
+ - `db/schema.rb` is no longer required to generate mocks.
11
+ - Much better support for Single Table Inheritance and gems that add functionality by being the parent class of model.
12
+ - New DB types can be registered with this API. `ActiveRecordSchemaScrapper::Attribute.register_type(name: :array, klass: Array)`
13
+ - `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`.
14
+ - `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`
15
+ - When running `rake active_mocker:build` failed will be listed.
10
16
 
11
17
  ### Fix
12
18
  - Reduce restriction on Virtus gem to 1.0.any
@@ -14,23 +20,12 @@ All notable changes to this project will be documented in this file.
14
20
 
15
21
  ### Depracated
16
22
  - 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 2.1. The alternative is to use `RSpec` verified doubles.
17
- - `#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 2.1. The alternative is to use the new api that is accessible by `#active_mocker`.
18
-
19
- ## 2.0.0.beta1 - 2015-12-01
20
- ### Enhancement
21
- - db/schema.rb is no longer required to generate mocks.
22
- - Much better support for Single Table Inheritance and gems that add functionality by being the parent class of model.
23
- - New DB types can be registered with this API. `ActiveRecordSchemaScrapper::Attribute.register_type(name: :array, klass: Array)`
24
- - `ActiveMocker::Config.disable_modules_and_constants=` Non locally defined Modules are included/extended by default as well as constant declaration. To Disable to feature set to `true`.
25
- - `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`
23
+ - `#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 2.1. The alternative is to use the new api that is accessible by `instead active_mocker.mocks.find('ClassName')`.
26
24
 
27
25
  ### Removed
28
- - `log/active_mocker.log` is replaced env `ERROR_VERBOSITY=[0,1,2] rake active_mocker:build` or in Ruby `ActiveMocker::Config.error_verbosity=`
26
+ - `log/active_mocker.log` is replaced env `ERROR_VERBOSITY=[0,1,2,3] rake active_mocker:build` or in Ruby `ActiveMocker::Config.error_verbosity=`
29
27
  - 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.
30
28
 
31
- ### Depracating
32
- - `mock_class` for rspec_helper, use `instead active_mocker.mocks.find('ClassName')`. Will be removed in v2.1
33
-
34
29
  ## 1.8.4 - 2015-10-06
35
30
  ### Fix
36
31
  - Calling scoped method that has not been stubbed raises incorrect error. https://github.com/zeisler/active_mocker/issues/22
@@ -193,4 +188,4 @@ This release has minor speed improvements. You may find that some records where
193
188
  - Nothing.
194
189
 
195
190
  ### Fixed
196
- - `has_many#create_assocation` will now correctly add it self to the parent record.
191
+ - `has_many#create_assocation` will now correctly add it self to the parent record.
@@ -1,3 +1,3 @@
1
1
  module ActiveMocker
2
- VERSION = "2.0.0.rc1"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler
@@ -229,9 +229,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
229
  version: '2.1'
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
- - - ">"
232
+ - - ">="
233
233
  - !ruby/object:Gem::Version
234
- version: 1.3.1
234
+ version: '0'
235
235
  requirements: []
236
236
  rubyforge_project:
237
237
  rubygems_version: 2.2.5