featureflow 0.5.0 → 0.5.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
  SHA1:
3
- metadata.gz: 00f058644ba632ecf6f92804dc59b33eb490e32d
4
- data.tar.gz: c44e7dfdb900915a1168564133c52b73f0f90db3
3
+ metadata.gz: 14f14953f195ceeb742c570f0bf89c40436dc068
4
+ data.tar.gz: 4036b8cc67e22251bfcaf7d83d2cc412f0e50dbb
5
5
  SHA512:
6
- metadata.gz: b07f297834f1f88f40a44801efc3856e6c91c8ce7cdf8eced76439036a4070b995f8109c3d93cdfffd59cad9ad340b0e2fb1a6906eb2f648362047448f621dd2
7
- data.tar.gz: f13e86bb9ceb4bdd42adef3b459d979db408dcc899549fa18bb9658c07b98219f17870dedfc77c8975a273f755bd5457da3e9780e54d0b392e2898664c00c56b
6
+ metadata.gz: d75e26abe09444b7ecdc9e35a281be54fa14bf4398a358a99d32e94774d8b25abd81a558425c584532e0431942863e64c223bfd553680ee869a11802c6786bb5
7
+ data.tar.gz: 7238f9574262b630d372f97ddf1d18b6d7ec01e000f3d4fd27a7191ca8969d09036484c3bed01bce690dcad32296d82f14739a1e973cb741e91c996ed105358a
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # Change log
2
+ ## [0.5.1] - 2017-07-17
3
+ ### Fixed
4
+ - Feature registration now compatible with Ruby 2.4
2
5
  ## [0.5.0] - 2017-06-29
3
6
  ### Fixed
4
7
  - Changed `feature[:failoverVariant]` to `feature[:failover_variant]` for feature registration
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- featureflow (0.4.0)
4
+ featureflow (0.5.0)
5
5
  excon (~> 0.57.0)
6
6
 
7
7
  GEM
@@ -2,7 +2,7 @@ module Featureflow
2
2
  class Feature
3
3
  def self.create(key, failover_variant = 'off')
4
4
  raise ArgumentError, 'Parameter key must be a String' unless valid_key?(key)
5
- raise ArgumentError, 'Parameter default_variant must be a String' unless valid_key?(failover_variant) || failover_variant.is_a?(NilClass)
5
+ raise ArgumentError, 'Parameter failover_variant must be a String containing only letters, numbers, hyphens or underscores' unless valid_key?(failover_variant) || failover_variant.is_a?(NilClass)
6
6
  {
7
7
  key: key,
8
8
  failover_variant: failover_variant,
@@ -20,5 +20,5 @@ module Featureflow
20
20
  end
21
21
 
22
22
  def valid_key?(value)
23
- value.is_a?(String) && !value.empty? && /^[a-z\-\_0-9]+$/.match?(value)
23
+ value.is_a?(String) && !value.empty? && value =~ /^[a-z\-\_0-9]+$/
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module Featureflow
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: featureflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Young
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-29 00:00:00.000000000 Z
11
+ date: 2017-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler