guideline 0.0.6 → 0.0.7

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.
@@ -28,6 +28,10 @@ module Guideline
28
28
  push_stacks
29
29
  end
30
30
 
31
+ def on_embexpr_beg(token)
32
+ push_stacks
33
+ end
34
+
31
35
  def on_rbrace(token)
32
36
  call(lineno) if has_error?
33
37
  pop_stacks
@@ -1,3 +1,3 @@
1
1
  module Guideline
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -111,6 +111,20 @@ module Guideline
111
111
  should have_error
112
112
  end
113
113
  end
114
+
115
+ context "when there is embedded expansion brace" do
116
+ let(:script) do
117
+ <<-'EOF'
118
+ {
119
+ :a => "#{b}",
120
+ }
121
+ EOF
122
+ end
123
+
124
+ it "does not detect error" do
125
+ should_not have_error
126
+ end
127
+ end
114
128
  end
115
129
  end
116
130
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guideline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: