duck_record 0.0.26 → 0.0.27

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
- SHA1:
3
- metadata.gz: 5c60a2c907aa9a22ad192c994a66556ac592feeb
4
- data.tar.gz: f7b7f5170b02163d523382d6d8345b37a6119c6d
2
+ SHA256:
3
+ metadata.gz: 7cd85dad8858342dff7d347ac2e2906ade77ebc38e25978667afa282328c14d7
4
+ data.tar.gz: 7686c8809a8ed744a6af5b8b78d4f878e08ab0a939826315c602b1544be911ca
5
5
  SHA512:
6
- metadata.gz: f0d27e1d7a536532a86567579c2fe3951378251dc8f6b920d620a21245700abe0693d5b149ee9a3a351985ba3c4e0e774f32206b7fc833694baff24b15941e35
7
- data.tar.gz: 797cb8c2df95a6ba32846f7bbd7258627eadd2ac46fe49b1b81bc5d4a88a69802058b9ec4ed372e52e08f2e03271fd652bda3f188b8eceac054db727d6f9e997
6
+ metadata.gz: 8e2031206af8baf7e2280d49271524cf2916e56150fc96aad0ed538ccd0c78e2d0bd10c03937bce0c153b13c5bc818b67f4f6f1d0070f7ad4ac3fdddd73ebd6d
7
+ data.tar.gz: 90ed259d9801c3217961a62f83c29aef292a4bbad70714527bb8830168477e4474ea028e54f1429e7c4401f61f6d144e6e8331e3790036ec0d39bb0d211c89f9
@@ -144,7 +144,7 @@ module DuckRecord
144
144
  begin
145
145
  build(item)
146
146
  rescue
147
- raise_on_type_mismatch!(r)
147
+ raise_on_type_mismatch!(item)
148
148
  end
149
149
  end
150
150
  end
@@ -111,7 +111,7 @@ module DuckRecord
111
111
 
112
112
  # Build a list of candidates to search for
113
113
  candidates = []
114
- name.scan(/::|$/) { candidates.unshift "#{$`}::#{type_name}" }
114
+ type_name.scan(/::|$/) { candidates.unshift "#{$`}::#{type_name}" }
115
115
  candidates << type_name
116
116
 
117
117
  candidates.each do |candidate|
@@ -1,3 +1,3 @@
1
1
  module DuckRecord
2
- VERSION = "0.0.26"
2
+ VERSION = "0.0.27"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duck_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - jasl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-21 00:00:00.000000000 Z
11
+ date: 2018-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubyforge_project:
177
- rubygems_version: 2.6.12
177
+ rubygems_version: 2.7.7
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: Used for creating virtual models like ActiveType or ModelAttribute does