err_supply 0.1.8 → 0.1.9

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: e26b294d388b3d14d24bc7f245d01c5c1318eafb
4
- data.tar.gz: 81f3b1a2556498463ba3e77aa5e495f25d29c441
3
+ metadata.gz: 4577a0f43154f67f613dd3e05c79ae6914e8709c
4
+ data.tar.gz: f9c023c64129d272e754ac5db84040987a4143d0
5
5
  SHA512:
6
- metadata.gz: 1160167253407821bd833fc9b50f59ec1f5774c9f8996fc804b11472f6bd25534ce0cecc511ac1c9488e5e11fa266f87b35b44d116ba99abc27c66fdb7b0edc2
7
- data.tar.gz: 8169d4e862ba8e0f5880e78d02e085bdccb1d89b24a1a1704f84948dcef464ba1bb9833d4c3d04a123cdeeb4c6c415c62de1becd43676183a0dddb47bad9ac9d
6
+ metadata.gz: 1a44afbe3018ce2e4fef4361b31fe281b296892de5e9ff6dd485f91767f278803290fcecada720cd284240d5a4d9fff2f7dc2830618b8e89cc2a80509bf670f0
7
+ data.tar.gz: 6cf042b7ae506342fa556f7ca69f52c3e33ebbf70514d41eb0358ea11f142962f45233b5b80f7521b9e8ddda415eae3c0b4d0bfeddc37ecbb636e0164311a563
@@ -43,7 +43,7 @@ module ErrSupply
43
43
  # apply errors that match our list (slightly inefficient, but a touch easier to read)
44
44
  attrs.each do |attr|
45
45
  o = options[attr.to_sym] || {}
46
- id = "#{prefix}_#{(o[:key] || attr).to_s}"
46
+ id = [prefix, "#{(o[:key] || attr).to_s}"].join('_')
47
47
 
48
48
  unless h.has_key?(id)
49
49
  h[id] = {
@@ -70,7 +70,7 @@ module ErrSupply
70
70
  c_options = options[assoc_name.to_sym] || {}
71
71
  obj.send("#{assoc_name}").each_with_index do |child, index|
72
72
  if !child.errors.empty? or child.invalid?
73
- c_prefix = "#{prefix}_#{assoc_name}_attributes_#{index}"
73
+ c_prefix = [prefix, "#{assoc_name}_attributes_#{index}"].join('_')
74
74
  c_hash = err_supply_hash(child, c_options.merge({ :prefix => c_prefix }))
75
75
 
76
76
  h.merge!(c_hash)
@@ -1,3 +1,3 @@
1
1
  module ErrSupply
2
- VERSION = '0.1.8'
2
+ VERSION = '0.1.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: err_supply
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coroutine
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-07 00:00:00.000000000 Z
12
+ date: 2013-11-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails