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 CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.1.2 / 2012-01-15
2
+
3
+ * Add backquote as supported tag symbol
4
+
1
5
  # 2.1.1 / 2012-11-29
2
6
 
3
7
  * Bump epath to path 1.3.1 (same gem but renamed + bump)
@@ -56,7 +56,7 @@ grammar WLang::Grammar
56
56
  end
57
57
 
58
58
  rule symbols
59
- /[!\^%"\$&'\*\+\?@~\#,\-\.\/:;=<>\|_]+/
59
+ /[!\^%"\$&'\*\+\?@~\#,\-\.\/:;=<>\|_`]+/
60
60
  end
61
61
 
62
62
  rule fn_start
data/lib/wlang/version.rb CHANGED
@@ -3,7 +3,7 @@ module WLang
3
3
 
4
4
  MAJOR = 2
5
5
  MINOR = 1
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  def self.to_s
9
9
  [ MAJOR, MINOR, TINY ].join('.')
@@ -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
@@ -12,7 +12,7 @@ variables:
12
12
  upper:
13
13
  WLang
14
14
  version:
15
- 2.1.1
15
+ 2.1.2
16
16
  summary: |-
17
17
  WLang is a powerful code generation and templating engine
18
18
  description: |-
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.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: 2012-11-29 00:00:00.000000000 Z
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: -3576370945648361800
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: -3576370945648361800
409
+ hash: 1886081471166054842
410
410
  requirements: []
411
411
  rubyforge_project:
412
412
  rubygems_version: 1.8.24