wlang 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.2.2 / 2013-05-10
2
+
3
+ * Avoid creating empty scopes if not necessary (sinatra/tilt integration)
4
+
1
5
  # 2.2.1 / 2013-04-29
2
6
 
3
7
  * Enhanced Scope#to_s for readability of error messages.
@@ -35,7 +35,7 @@ module Tilt
35
35
 
36
36
  def evaluate(scope, locals, &block)
37
37
  locals[:yield] = block if block
38
- @engine.render(scope, locals)
38
+ @engine.render(scope, locals.empty? ? nil : locals)
39
39
  end
40
40
 
41
41
  end
data/lib/wlang/version.rb CHANGED
@@ -3,7 +3,7 @@ module WLang
3
3
 
4
4
  MAJOR = 2
5
5
  MINOR = 2
6
- TINY = 1
6
+ TINY = 2
7
7
 
8
8
  def self.to_s
9
9
  [ MAJOR, MINOR, TINY ].join('.')
data/wlang.noespec CHANGED
@@ -12,7 +12,7 @@ variables:
12
12
  upper:
13
13
  WLang
14
14
  version:
15
- 2.2.1
15
+ 2.2.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.2.1
4
+ version: 2.2.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: 2013-04-29 00:00:00.000000000 Z
13
+ date: 2013-05-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: awesome_print
@@ -366,7 +366,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
366
366
  version: '0'
367
367
  segments:
368
368
  - 0
369
- hash: 1908849138847270231
369
+ hash: 4259108141907788869
370
370
  required_rubygems_version: !ruby/object:Gem::Requirement
371
371
  none: false
372
372
  requirements: