roda-component 0.1.51 → 0.1.52

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: 8e737fac1dc155f77f2aa70edddf0fda28addd3c
4
- data.tar.gz: c8917638b68ccb4bf26a92cafaab7160c892394d
3
+ metadata.gz: 1831421424b4a48caa2c4a22ae56d5fbd083bfdb
4
+ data.tar.gz: 490c5c522f40e53665c6c8e5d4a598ef42f3a294
5
5
  SHA512:
6
- metadata.gz: 818e95f93cdf58d29e39dfa0ad5d9afa24d5ef74a57e97a6c99de0fc66d4e3b1c2b80b877e1b713039488c511dc3d61ae6a34d57400cfe01239bc4da17b7965d
7
- data.tar.gz: 3e5fec3a0e8acf594be5fc9874a561926732404ce932bbf65f46bcc0c3bfa17dbf917993203d149771ceb37bc0b63d76cf466d86b2789cb578518a8bc0f30799
6
+ metadata.gz: 3bc9310ce9113ab4cf24f88741de18e25ce1519e6a47217637807465ece06fe3b806c24412c85cb7383025feb34deee7d0b6c21639cb6580d0177f937d7b9294
7
+ data.tar.gz: 8bbdc5768e81727ae1a2625067f10ed4d2fa26954bc26a9aaa39077c54c5f9b8aaaf784fab392b17d8f54a026346a14f74fd8dfdd891c7401134ac621a7552f0
@@ -453,6 +453,8 @@ class Roda
453
453
  comp
454
454
  end
455
455
  end
456
+ alias_method :comp, :component
457
+ alias_method :roda_component, :component
456
458
  end
457
459
 
458
460
  def load_component name, options = {}
@@ -148,6 +148,10 @@ class Roda
148
148
 
149
149
  att = ivar[1..-1].to_sym
150
150
  atts[att] = _attributes.send(att)
151
+
152
+ if klass = _form[att.to_s.to_sym]
153
+ atts[att] = klass.new(atts[att]).attributes
154
+ end
151
155
  end
152
156
  end
153
157
  end
@@ -1,5 +1,5 @@
1
1
  class Roda
2
2
  class Component
3
- VERSION = "0.1.51"
3
+ VERSION = "0.1.52"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-component
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.51
4
+ version: 0.1.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
@@ -1063,7 +1063,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1063
1063
  version: '0'
1064
1064
  requirements: []
1065
1065
  rubyforge_project:
1066
- rubygems_version: 2.4.3
1066
+ rubygems_version: 2.4.5
1067
1067
  signing_key:
1068
1068
  specification_version: 4
1069
1069
  summary: ''
@@ -1746,4 +1746,3 @@ test_files:
1746
1746
  - test/dummy/public/form/js/index.js
1747
1747
  - test/dummy/public/form/license.txt
1748
1748
  - test/helper.rb
1749
- has_rdoc: