molasses 0.4.0 → 0.4.1
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/molasses.rb +2 -2
- data/spec/molasses_spec.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d508ad9b8da82f0847404e2952c7da584498472b479946cf493f5f30e8c5bff3
|
4
|
+
data.tar.gz: d72c43aac2273436539a840194c2725528a5752fb724cfddecbd86c7b23ac121
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1153ff848c5a16bb18dde2fe87099310838a69800a9406dbdacf000e84c5067d6e2d573e0cb55830b7c37284115a534b206aeaf95f179a103026fe2998154599
|
7
|
+
data.tar.gz: 43a7de947daac266594e545afca20df5ee3bf9e51b1d059a28d67b270257ac1d461725a275627818bc8b0c9275cfe2784cfdef69168ffbca3ce2f900397140ae
|
data/lib/molasses.rb
CHANGED
@@ -214,8 +214,8 @@ module Molasses
|
|
214
214
|
user_value = parse_bool(user_value)
|
215
215
|
constraint_value = parse_bool(constraint_value)
|
216
216
|
when "semver"
|
217
|
-
user_value = Semantic.
|
218
|
-
constraint_value = Semantic.
|
217
|
+
user_value = Semantic::Version.new user_value
|
218
|
+
constraint_value = Semantic::Version.new constraint_value
|
219
219
|
else
|
220
220
|
user_value = user_value.to_s
|
221
221
|
end
|
data/spec/molasses_spec.rb
CHANGED
@@ -434,7 +434,7 @@ RSpec.describe Molasses::Client do
|
|
434
434
|
expect(client.is_active("semver", {
|
435
435
|
"id" => "123444", # valid crc32 percentage
|
436
436
|
"params" => {
|
437
|
-
"lt" => "1.1",
|
437
|
+
"lt" => "1.1.0",
|
438
438
|
},
|
439
439
|
})).to be_truthy
|
440
440
|
|
@@ -462,7 +462,7 @@ RSpec.describe Molasses::Client do
|
|
462
462
|
expect(client.is_active("semver", {
|
463
463
|
"id" => "123444", # valid crc32 percentage
|
464
464
|
"params" => {
|
465
|
-
"lte" => "1.1",
|
465
|
+
"lte" => "1.1.0",
|
466
466
|
},
|
467
467
|
})).to be_truthy
|
468
468
|
|