expressive 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- expressive (0.0.17)
4
+ expressive (0.0.18)
5
5
  awesome_print (~> 1.0.2)
6
6
  json
7
7
  polyglot (~> 0.3.3)
@@ -1,3 +1,3 @@
1
1
  module Expressive
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
data/lib/scope.rb CHANGED
@@ -91,13 +91,13 @@ module Expressive
91
91
  syntax('lookup') do |scope, cells|
92
92
  lookup_result = scope.lookups[cells.first.text_value]
93
93
  if lookup_result
94
- key = cells[1].text_value[1..-2]
94
+ key = cells[1] ? cells[1].text_value[1..-2] : nil
95
95
  if lookup_result.is_a?(Hash)
96
96
  lookup_result[key]
97
97
  elsif lookup_result.is_a?(Array)
98
98
  options = lookup_result.first
99
99
  the_proc = lookup_result.last
100
- the_proc.call(options, key, *cells[2..-1].map {|cell| cell.eval(scope)})
100
+ the_proc.call(options, key, *Array(cells[2..-1]).map {|cell| cell.eval(scope)})
101
101
  end
102
102
  end
103
103
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expressive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-26 00:00:00.000000000 Z
12
+ date: 2013-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby_gntp
@@ -294,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
294
294
  version: '0'
295
295
  segments:
296
296
  - 0
297
- hash: -4421834201384334289
297
+ hash: -2330211989650066237
298
298
  required_rubygems_version: !ruby/object:Gem::Requirement
299
299
  none: false
300
300
  requirements:
@@ -303,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
303
  version: '0'
304
304
  segments:
305
305
  - 0
306
- hash: -4421834201384334289
306
+ hash: -2330211989650066237
307
307
  requirements: []
308
308
  rubyforge_project:
309
309
  rubygems_version: 1.8.23