fabrication 2.6.5 → 2.7.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: 481e59434f64d19e056b1f3e229cb4b994b42a49
4
- data.tar.gz: 987d9954221536a51db87573125d36072df177c5
3
+ metadata.gz: e6ce2db9b460bb009b38822ad0046da19e88a3b4
4
+ data.tar.gz: ddc6ce7ea3032c887ba33482a925eeb92aa3314d
5
5
  SHA512:
6
- metadata.gz: 4d5a14b53c3fff5a083b5b9dfcbd88b4b93d35ac7e9f487c9e737569ae64e21b54729743fcfc1ab399c4210744b6cefb9803792738a3d117741a0b33a909566b
7
- data.tar.gz: 16cda125745d19e4018d5de2915158c57e6c3ee82ed7bb11994328acc92c483c209f62544af2312724ff2b7d2acb3e21c119ec4427b1989b3b033bfd8167f45e
6
+ metadata.gz: 2752606ddb6ad0ffabf399b35f5c63c6154f8991f636ba3997e2ca9d0f53b1d4043b658aeb37c93b0955fb3fda48a9b9e0e0f0f5d1076a17a760227fab66677e
7
+ data.tar.gz: 23cc0d4b943234def18f3c2e44bf4f70c4e642d397026083dde2f298a392f73bdaac139c1f249a54a9ff032b544069a207876bfc72a9adabf968a192cb00b067
@@ -61,7 +61,11 @@ class Fabrication::Schematic::Evaluator < BasicObject
61
61
 
62
62
  def transient(*field_names)
63
63
  field_names.each do |field_name|
64
- @_definition.append_or_update_attribute(field_name, nil, transient: true)
64
+ if field_name.kind_of?(::Hash)
65
+ field_name.each_pair { |name, value| @_definition.append_or_update_attribute(name, value, transient: true) }
66
+ else
67
+ @_definition.append_or_update_attribute(field_name, nil, transient: true)
68
+ end
65
69
  end
66
70
  end
67
71
  end
@@ -1,3 +1,3 @@
1
1
  module Fabrication
2
- VERSION = '2.6.5'
2
+ VERSION = '2.7.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fabrication
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.5
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Elliott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-16 00:00:00.000000000 Z
11
+ date: 2013-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord