ltdtemplate 0.2.3 → 0.2.4

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 CHANGED
@@ -1,3 +1,7 @@
1
+ 2014-03-15 Version 0.2.4
2
+
3
+ Fixed a bug in the parameter scalar assignment determination.
4
+
1
5
  2013-08-04 Version 0.2.3
2
6
 
3
7
  Documented LtdTemplate constructor options, including the new
data/lib/ltdtemplate.rb CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  class LtdTemplate
10
10
 
11
- VERSION = '0.2.3'
11
+ VERSION = '0.2.4'
12
12
 
13
13
  TOKEN_MAP = {
14
14
  ?. => :dot, # method separator
@@ -56,7 +56,7 @@ class LtdTemplate::Code::Parameters < LtdTemplate::Code
56
56
  end
57
57
  scalar = false
58
58
  else
59
- scalar = positional.size == 1 and !named.empty?
59
+ scalar = (positional.size == 1) && named.empty?
60
60
  end
61
61
 
62
62
  array = @template.factory(:array).set_value(positional, named, scalar)
data/ltdtemplate.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "ltdtemplate"
3
- s.version = "0.2.3"
4
- s.date = "2013-08-04"
3
+ s.version = "0.2.4"
4
+ s.date = "2014-03-15"
5
5
  s.authors = ["Brian Katzung"]
6
6
  s.email = ["briank@kappacs.com"]
7
7
  s.homepage = "http://rubygems.org/gems/ltdtemplate"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 3
9
- version: 0.2.3
8
+ - 4
9
+ version: 0.2.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brian Katzung
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2013-08-04 00:00:00 -05:00
17
+ date: 2014-03-15 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20