braai 1.1.0 → 1.1.1

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- braai (1.0.1)
4
+ braai (1.1.0)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -11,7 +11,7 @@ GEM
11
11
  i18n (~> 0.6)
12
12
  multi_json (~> 1.0)
13
13
  diff-lcs (1.1.3)
14
- i18n (0.6.0)
14
+ i18n (0.6.1)
15
15
  multi_json (1.3.6)
16
16
  rspec (2.11.0)
17
17
  rspec-core (~> 2.11.0)
data/lib/braai/context.rb CHANGED
@@ -16,6 +16,7 @@ class Braai::Context
16
16
  regex = Regexp.new(regex)
17
17
  matches = self.template.scan(regex)
18
18
  matches.each do |set|
19
+ set = [set].flatten.map {|m| m.strip}
19
20
  val = matcher.call(self, set[0], set)
20
21
  self.template.gsub!(set[0], val.to_s) if val
21
22
  end
data/lib/braai/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Braai
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braai
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
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: 2012-08-29 00:00:00.000000000 Z
12
+ date: 2012-09-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport