wedge 0.1.61 → 0.1.62

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: c4869274b6cd54fb81a4d24d1fa38478c854d956
4
- data.tar.gz: b427ed6802dc94e440bcc7c204aec1db959a24a7
3
+ metadata.gz: adaaf3ee60806692e368341ef45da7729b50d8a4
4
+ data.tar.gz: c4c323f0e0fb5080bbaa62671c6e4483f11596d5
5
5
  SHA512:
6
- metadata.gz: 3b792e83d2861ac16002959d670caea41886b6c340a05c1e0473328cc4e479025ab5ba8d097fcce358fcf40e505bd85ba64c5b49465f571f30d7d2e4201fc559
7
- data.tar.gz: 84451e24da193e80d52ed4e0d178af46cafe7e3ff7fbc469206c88f5c120aa6a7ac85a04ec4970e82ceee9b5b5e4b594d6afaf45369ca88948a29f4f1b3ecf08
6
+ metadata.gz: a79d5039c3d11deccd285f13e093192a1a85a31639c85cfee554e7b4eeb8789eee759c4144d5fb3e226e6168bc263e1327528f05a8957e3f3251398ccc89ac94
7
+ data.tar.gz: 0e9597a27d5a60c75db692af969c34589629ed7c529d793f2c7aa5e6337259df0d53807070d96150d209cb4a1187d5c3554d4f4963aae421eb00c54926d0742e
@@ -75,8 +75,8 @@ class Wedge
75
75
  _errors.empty?
76
76
  end
77
77
 
78
- def valid atts, options = {}
79
- _set_atts atts, options
78
+ def valid atts
79
+ _set_atts atts
80
80
  valid?
81
81
  end
82
82
 
@@ -263,15 +263,15 @@ class Wedge
263
263
  # post = Post.new(edit.attributes)
264
264
  # post.save
265
265
  def initialize(atts = {}, options = {})
266
- _set_atts atts, options
267
- end
268
-
269
- def _set_atts atts, options = {}
270
266
  atts = atts.deep_dup
271
267
  @_options = options.indifferent
272
268
  @_atts = Atts.new atts, _accessors, _aliases, _accessor_options
273
269
  @_atts = @_atts.set_defaults self
274
270
 
271
+ _set_atts atts
272
+ end
273
+
274
+ def _set_atts atts
275
275
  atts.each do |key, val|
276
276
  # grab the original key if alias is given
277
277
  _atts_keys << (key = _aliases.invert[key] || key)
data/lib/wedge/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.61'
2
+ VERSION = '0.1.62'
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.61
4
+ version: 0.1.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj