toggles 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/toggles.rb +2 -2
  3. data/toggles.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c6cab928b9d2ae109e343f8fc2080a03d5e0da6
4
- data.tar.gz: 4aca8601e7c8b6857af5e2fc4a5e0414d3103a50
3
+ metadata.gz: 4c0bf3043c4b85c32062fa22750cc20c88af4cd4
4
+ data.tar.gz: f8aeb5d080385e546815ccc57d8401e8abc1c9e4
5
5
  SHA512:
6
- metadata.gz: 3e5c709861c01f380f9b96b36415f18f03f20dcbca802f1f3698d5838b57d399e88c6e008da98cb61f7a8709eeca7a7fc37f9813ce192e037f3b1e63c9459ab6
7
- data.tar.gz: cf89cf95d9901490bc73d2f8dfab2b62159c4da89f1a02255d920fdccb3ee51a166fae52efce1164791194dfbad91d4d9195f5f62bdc19ce7e944c5f7477e0a9
6
+ metadata.gz: 2b7f5e471ba5456ee1ecc659f902b2826fecd2de532c1a4aef9b49e4791985df6cbdf73260e9643cd340711c3ab8f63c6daefb2691bcbc761fade903d3eacf93
7
+ data.tar.gz: 08d1d0b300525bde3f0166b3fced8bc426b11f383eeb0ef4a6a60a1530e4e52f1e67522ea96472f2546a4f98d35ffece5642b3997569fb00777639626e9b14e0
@@ -37,9 +37,9 @@ module Toggles
37
37
  previous = Feature
38
38
  directories.each do |directory|
39
39
  module_name = directory.split("_").map(&:capitalize).join.to_sym
40
- previous = begin
40
+ previous = if previous.constants.include? module_name
41
41
  previous.const_get(module_name)
42
- rescue NameError
42
+ else
43
43
  previous.const_set(module_name, Module.new)
44
44
  end
45
45
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "toggles"
3
- s.version = "0.1.0"
3
+ s.version = "0.1.1"
4
4
  s.authors = ["Andrew Tribone"]
5
5
  s.summary = "YAML backed feature toggles"
6
6
  s.email = "tribone@easypost.com"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toggles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Tribone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2015-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler