semi 0.8.2 → 0.8.3
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.
- checksums.yaml +4 -4
- data/lib/semi/variables/boolean.rb +2 -2
- data/lib/semi/version.rb +1 -1
- data/spec/semi_variable_spec.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 580eb8d376ba4101f2e2c84662ccf5869565ff85
|
4
|
+
data.tar.gz: 1a83723ef50b5e35b8618df4082fd46cd6c4b8fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cebb91f0dc58ef4f1e51f46265b53b25f6100dd831c1df7969251bbfea83bd3a5a1a5b11beabc034996d79efa9402ff34b93720a0d47441933496bb0befc73e
|
7
|
+
data.tar.gz: 71f9fa49b0a91815b61b0dd5fa2bfa897e2dba917e367c507104e0a10154f2da99ce0db09ae9f3de59e7335ee03884f604b206aef8aa163d038c0928f9fc115c
|
@@ -33,9 +33,9 @@ module Semi::Variables
|
|
33
33
|
end
|
34
34
|
|
35
35
|
# test to see if the value is a common true value
|
36
|
-
if value =~
|
36
|
+
if value =~ /^(true|yes|on|enable)$/i
|
37
37
|
real_value = true
|
38
|
-
elsif value =~
|
38
|
+
elsif value =~ /^(false|no|off|disable)$/i
|
39
39
|
real_value = false
|
40
40
|
end
|
41
41
|
|
data/lib/semi/version.rb
CHANGED
data/spec/semi_variable_spec.rb
CHANGED
@@ -90,6 +90,8 @@ describe Semi::Variable do
|
|
90
90
|
['http://www:888', 'Semi::Variables::Url', nil],
|
91
91
|
['http://www/some/file', 'Semi::Variables::Url', nil],
|
92
92
|
['http:/www/', 'Semi::Variables::Path', nil],
|
93
|
+
['production', 'Semi::Variables::String', 'string'],
|
94
|
+
['production', 'Semi::Variables::String', nil],
|
93
95
|
|
94
96
|
].each do |test|
|
95
97
|
it "#import identifies #{test[0]} as #{test[1]}" do
|