sal 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/sal/u.rb +1 -1
  2. data/lib/sal/version.rb +1 -1
  3. metadata +8 -8
data/lib/sal/u.rb CHANGED
@@ -20,7 +20,7 @@ module Sal
20
20
 
21
21
  def parse_for_html(result, code, text = '')
22
22
  result = result.value if result.kind_of?(Sal::Wrapper)
23
- if result.kind_of?(String)
23
+ if result.kind_of?(String) || result.kind_of?(Numeric)
24
24
  result
25
25
  elsif result.kind_of?(Hash)
26
26
  result[:html] || result[code.to_sym]
data/lib/sal/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sal
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,12 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-22 00:00:00.000000000 -04:00
12
+ date: 2011-10-23 00:00:00.000000000 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri
17
- requirement: &2164373500 !ruby/object:Gem::Requirement
17
+ requirement: &2153584420 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '1.4'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2164373500
25
+ version_requirements: *2153584420
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: temple
28
- requirement: &2164372980 !ruby/object:Gem::Requirement
28
+ requirement: &2153583900 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2164372980
36
+ version_requirements: *2153583900
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: tilt
39
- requirement: &2164372500 !ruby/object:Gem::Requirement
39
+ requirement: &2153583420 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: '1.2'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2164372500
47
+ version_requirements: *2153583420
48
48
  description: sal.rb is an attribute language.
49
49
  email:
50
50
  - andy@stonean.com