volt 0.8.6 → 0.8.7

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: cc39b7688dcb264420fc550e644030913c5c3a02
4
- data.tar.gz: 1cc906e44c38dbb1cb76839f128c484107ed11a0
3
+ metadata.gz: 0a2b7ff74b47831d3c51141f0160710989032615
4
+ data.tar.gz: ab454d282bf8201f88ea15c47201adbe3b57a2d3
5
5
  SHA512:
6
- metadata.gz: 336d0323272ede308bce021ef3b790271b4c87734697d3344872b566de11a817fb7ae00c3930e51725d3b2b3d98fe302b274f3404005534f229fa8f6b34b2fcd
7
- data.tar.gz: 62e5f58fb0d95740b833aa2265b556e7e585ec9c8b79603864dbec3c8f1a4dd2b05864ca150c5c38b649985128c9e19980715535ab4438fa383e842903b410ea
6
+ metadata.gz: e9b1a50ea969c9c2b4bdc7f6c72c41a45585455bd92a1cb33b2b84e631756fb6f215d6a57b96e84ddb391c5b2e8d8d1f4b271d87c29fe0f91f737aca30d28d01
7
+ data.tar.gz: d6e3dfb009545c36d6a12e74551ef15b6ed95e839e0caf6b4eb1e5c459d3e2916b52b0a0bee31219b8fbd49f135bf73c8743c4cc24b47ca2adf0b7c7692fbe33
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.6
1
+ 0.8.7
@@ -138,7 +138,8 @@ class Page
138
138
  end
139
139
 
140
140
  def add_model(model_name)
141
- @model_classes[model_name] = Object.const_get(model_name.camelize)
141
+ model_name = model_name.camelize
142
+ @model_classes[model_name] = Object.const_get(model_name)
142
143
  end
143
144
 
144
145
  def add_template(name, template, bindings)
@@ -121,7 +121,7 @@ class ViewScope
121
121
  # Multiple bindings
122
122
  elsif parts.size == 1 && binding_count == 1
123
123
  # A single binding
124
- getter = value[1..-2]
124
+ getter = value[2...-2].strip
125
125
  data_hash << "#{name.inspect} => Proc.new { #{getter} }"
126
126
 
127
127
  setter = getter_to_setter(getter)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout