wedge 0.1.21 → 0.1.22

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: a265e4fa793983ef66765457cb162508d1c1a5a4
4
- data.tar.gz: e0da79dfdac85063881710ecd1266d8d8a5129c2
3
+ metadata.gz: 662e81aba05a015d63b468017ec5706974ee8609
4
+ data.tar.gz: ee86bce9bb3950e77bbdd89056a246630b8ba470
5
5
  SHA512:
6
- metadata.gz: 03b94e2207a5dc52b91187cb66e89dbff0ce902ffb33f3f7558e4614c9d94635f3260d7c940b12e60977b53b076f01bbca7d2eeb1c01c602005997497df59f58
7
- data.tar.gz: 9d80870d1c844e4753daa99e198ca1c80bb58d1649485926b976d4effc7609af976c6868e8553485a0851eb1ba6d4b9897e54961437a2afa0b2a30c1565ac5d5
6
+ metadata.gz: 000e0d5c29b6cb4c3dc0607bc18b0c6ffd06d7a1a1caa8c0c2afd9b12a1ea8678f976163138821f33d86d131212caa02dbb68b432b074da6d9a233630f6c5dde
7
+ data.tar.gz: ca112e7ccca556b165b68a74e76d7a2f021db4bb8beb8c1f5461c7171e0937c26ba33544ab67d91e527784c7687cc757cb0f9e1381bf1bf979fe4981925c2a65
@@ -245,8 +245,7 @@ class Wedge
245
245
 
246
246
  atts.each do |key, val|
247
247
  # grab the original key if alias is given
248
- key = _aliases.invert[key] || key
249
- (@_atts_keys ||= []) << key
248
+ _atts_keys << (key = _aliases.invert[key] || key)
250
249
 
251
250
  next if (_accessor_options[key] || {})[:form]
252
251
 
@@ -258,6 +257,10 @@ class Wedge
258
257
  end
259
258
  end
260
259
 
260
+ def _atts_keys
261
+ @_atts_keys ||= []
262
+ end
263
+
261
264
  def _with_atts
262
265
  _accessor_options[:with_atts] || []
263
266
  end
data/lib/wedge/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.21'
2
+ VERSION = '0.1.22'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wedge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj