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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42083df0653fde203c183ed8ca245ac17a9775c91b38a5b29fc4c4cd8daeb20f
4
- data.tar.gz: 8462ce48c1c8fdca83b4afbd9f88916f7446e8599a6a95cd13f994861518ad06
3
+ metadata.gz: d508ad9b8da82f0847404e2952c7da584498472b479946cf493f5f30e8c5bff3
4
+ data.tar.gz: d72c43aac2273436539a840194c2725528a5752fb724cfddecbd86c7b23ac121
5
5
  SHA512:
6
- metadata.gz: 870f6b7e93f799a977bc527315c682b44b8b87137165086e0903ee1a7243cd3817b629f388e747b998f00e9c7e6f7438ff8e996877db4c11c0e074ef36fc4666
7
- data.tar.gz: 89985334bb33c925721e43188c418414ff290e9693a2b2ffe857ed24f69dc072878ae3940a635ef2a27136feaaa07788e542c7c9aa26b13e509104997e376c80
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.parse_version(user_value)
218
- constraint_value = Semantic.parse_version(constraint_value)
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
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: molasses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Hrisho