active_mocker 1.6.3 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b9ffc902e6ec65a43aced40034136b32162c83d
4
- data.tar.gz: 05f4e7753af31a25d6df189bd345c8f4b966b832
3
+ metadata.gz: c893341f563b644efdf2cefc77c20a930d1a4c88
4
+ data.tar.gz: 768e14750488cd9acfc2b4132c9a8c89f92394c4
5
5
  SHA512:
6
- metadata.gz: 85bf777384443284ad2a40a38749d3c910145abc8590962a0b4f6b2682bfaf81b1a390eb29d9ff531c21052cfdb1481fd0284ed9c5e20d9b415f390d057211bf
7
- data.tar.gz: 8d17e5205fda5b47b2f2eec67378aab8528eee1450106288c049732395b221c7fed13701159661a6e896c6e932b2413525b53368932947463970d032504c8cb3
6
+ metadata.gz: cf81ac1a9a31821dd8027b67dc8fd42c7ba1aaad1074be7c501cb0151b51ca04e3ac4fc6f3fc72a85407753518720f920a2c0aaba8920cadcf398f971fac539a
7
+ data.tar.gz: d9aac909c828f52669250738334d343f6554435784a637d62e5a338f8036094ebede40d905a1205bb4e299ad6ccf28aa268da3dc56ab2ddaaefcd8b13bcb6c17
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
+ ## 1.6.3 - 2014-09-18
4
+
5
+ ### Fix
6
+ - Bug where creating record with an id could cause a duplicate id error.
7
+
3
8
  ## 1.6.3 - 2014-08-14
4
9
 
5
10
  ### Fix
@@ -39,7 +39,7 @@ class Base
39
39
  if attributes.is_a?(Array)
40
40
  attributes.collect { |attr| create(attr, &block) }
41
41
  else
42
- record = new
42
+ record = new(id: attributes[:id] || attributes['id'])
43
43
  record.save
44
44
  record.assign_attributes(attributes, &block)
45
45
  record
@@ -1,3 +1,3 @@
1
1
  module ActiveMocker
2
- VERSION = "1.6.3"
2
+ VERSION = "1.6.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-15 00:00:00.000000000 Z
11
+ date: 2014-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '3'
167
+ - !ruby/object:Gem::Dependency
168
+ name: fuubar
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '='
172
+ - !ruby/object:Gem::Version
173
+ version: 2.0.0.rc1
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '='
179
+ - !ruby/object:Gem::Version
180
+ version: 2.0.0.rc1
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: rspec-given
169
183
  requirement: !ruby/object:Gem::Requirement
@@ -206,6 +220,20 @@ dependencies:
206
220
  - - "~>"
207
221
  - !ruby/object:Gem::Version
208
222
  version: '0.5'
223
+ - !ruby/object:Gem::Dependency
224
+ name: ruby-prof
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '0.15'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '0.15'
209
237
  description: ActiveMocker creates mocks classes from ActiveRecord models. Allowing
210
238
  your test suite to run very fast by not loading Rails or hooking to a database.
211
239
  It parses the schema.rb and the defined methods on a model then generates a ruby