wlang 2.1.1 → 2.1.2
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/CHANGELOG.md +4 -0
- data/lib/wlang/compiler/grammar.citrus +1 -1
- data/lib/wlang/version.rb +1 -1
- data/spec/unit/compiler/test_parser.rb +13 -0
- data/wlang.noespec +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
data/lib/wlang/version.rb
CHANGED
@@ -60,6 +60,19 @@ module WLang
|
|
60
60
|
parse("hello {bar ${second}}").should eq(expected)
|
61
61
|
end
|
62
62
|
|
63
|
+
it 'should parse "Hello `{world}!" as expected' do
|
64
|
+
expected = \
|
65
|
+
[:template,
|
66
|
+
[:fn,
|
67
|
+
[:strconcat,
|
68
|
+
[:static, "Hello "],
|
69
|
+
[:wlang, "`",
|
70
|
+
[:fn,
|
71
|
+
[:static, "who"]]],
|
72
|
+
[:static, "!"]]]]
|
73
|
+
parse("Hello `{who}!").should eq(expected)
|
74
|
+
end
|
75
|
+
|
63
76
|
it 'is idempotent' do
|
64
77
|
parse(parse(hello_tpl)).should eq(expected)
|
65
78
|
end
|
data/wlang.noespec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wlang
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-01-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: awesome_print
|
@@ -397,7 +397,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
397
397
|
version: '0'
|
398
398
|
segments:
|
399
399
|
- 0
|
400
|
-
hash:
|
400
|
+
hash: 1886081471166054842
|
401
401
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
402
402
|
none: false
|
403
403
|
requirements:
|
@@ -406,7 +406,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
406
406
|
version: '0'
|
407
407
|
segments:
|
408
408
|
- 0
|
409
|
-
hash:
|
409
|
+
hash: 1886081471166054842
|
410
410
|
requirements: []
|
411
411
|
rubyforge_project:
|
412
412
|
rubygems_version: 1.8.24
|