togls 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.ruby-version +1 -1
- data/.travis.yml +8 -0
- data/CHANGELOG.md +97 -92
- data/Gemfile +1 -1
- data/README.md +0 -7
- data/lib/togls/version.rb +1 -1
- data/togls.gemspec +6 -6
- metadata +17 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8aaeba16d1e8c1b71a95078a6e48e09dab50185a217c27a61cd4ed5f00705232
|
4
|
+
data.tar.gz: 5c106d92c10db86665e35953424420fc082f54539d07658b4b6efe7f90670e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f76e83878de4eb90626ad5121c34d369b9ac41c6b51f6979e070ebe7f912352e4f0e0aa3cebd7c2f9b3a32e37caaf6c5705ca2a7cc5c2494d9c28ee03261394
|
7
|
+
data.tar.gz: ab30b986bfb1e217056292a765879db2d35cb925f3b03b805a32e5ef081b8631996c2bd49dadb75748d30de5788c397ef28611f79af8a2278e77d49112cb06ea
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.3.3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -3,142 +3,147 @@
|
|
3
3
|
The following are lists of the notable changes included with each release.
|
4
4
|
This is intended to help keep people informed about notable changes between
|
5
5
|
versions, as well as provide a rough history. Each item is prefixed with
|
6
|
-
one of the following labels:
|
7
|
-
|
6
|
+
one of the following labels: *Added*, *Changed*, *Deprecated*,
|
7
|
+
*Removed*, *Fixed*, *Security*. We also use [Semantic
|
8
8
|
Versioning](http://semver.org) to manage the versions of this gem so
|
9
9
|
that you can set version constraints properly.
|
10
10
|
|
11
11
|
#### [Unreleased] - now
|
12
12
|
|
13
|
+
#### [v3.2.1] - 2017-03-16
|
14
|
+
|
15
|
+
* Added support for Ruby 2.4.0
|
16
|
+
|
13
17
|
#### [v3.2.0] - 2016-10-27
|
14
18
|
|
15
|
-
*
|
16
|
-
*
|
19
|
+
* Added toggle evaluation logging
|
20
|
+
* Changed debug logging to warn logging
|
17
21
|
|
18
22
|
#### [v3.1.0] - 2016-10-26
|
19
23
|
|
20
|
-
*
|
24
|
+
* Changed `optional_logger` dependency to v2.0.0
|
21
25
|
|
22
26
|
#### [v3.0.0] - 2016-10-19
|
23
27
|
|
24
|
-
*
|
25
|
-
*
|
26
|
-
*
|
27
|
-
*
|
28
|
+
* Changed `Togls.logger` over to the `optional_logger` gem
|
29
|
+
* Changed Rules to be identified by an abstract given string id
|
30
|
+
* Changed Rule and Rule Type management to be global under Togls
|
31
|
+
* Changed The testing interface to allow for contract enforcement in tests
|
28
32
|
and allow altering existing feature rules within tests.
|
29
|
-
*
|
30
|
-
([#86](https://github.com/
|
31
|
-
*
|
32
|
-
([#86](https://github.com/
|
33
|
-
*
|
34
|
-
*
|
35
|
-
([#78](https://github.com/
|
36
|
-
*
|
37
|
-
([#69](https://github.com/
|
38
|
-
*
|
39
|
-
([#69](https://github.com/
|
40
|
-
*
|
41
|
-
([#69](https://github.com/
|
42
|
-
*
|
43
|
-
([#67](https://github.com/
|
44
|
-
*
|
45
|
-
([#65](https://github.com/
|
46
|
-
*
|
47
|
-
([#62](https://github.com/
|
48
|
-
*
|
49
|
-
([#61](https://github.com/
|
50
|
-
*
|
51
|
-
([#59](https://github.com/
|
52
|
-
*
|
53
|
-
([#59](https://github.com/
|
54
|
-
*
|
55
|
-
([#56](https://github.com/
|
56
|
-
*
|
57
|
-
([#56](https://github.com/
|
58
|
-
*
|
59
|
-
([#56](https://github.com/
|
60
|
-
*
|
61
|
-
([#48](https://github.com/
|
62
|
-
*
|
63
|
-
([#44](https://github.com/
|
64
|
-
*
|
65
|
-
([#38](https://github.com/
|
66
|
-
*
|
67
|
-
([#41](https://github.com/
|
68
|
-
*
|
33
|
+
* Added `Togls.rule` method to simplify rule construction from `type_id`
|
34
|
+
([#86](https://github.com/uptech/togls/issues/86))
|
35
|
+
* Changed Rule construction to require an abstract rule `type_id`
|
36
|
+
([#86](https://github.com/uptech/togls/issues/86))
|
37
|
+
* Added Feature repository response validation
|
38
|
+
* Added validation of targets against feature `target_type` contract
|
39
|
+
([#78](https://github.com/uptech/togls/issues/78))
|
40
|
+
* Added setting a default feature target type
|
41
|
+
([#69](https://github.com/uptech/togls/issues/69))
|
42
|
+
* Added logging for target type mismatches/erroneous states
|
43
|
+
([#69](https://github.com/uptech/togls/issues/69))
|
44
|
+
* Changed in code feature rule association API to require `target_type`
|
45
|
+
([#69](https://github.com/uptech/togls/issues/69))
|
46
|
+
* Added rule instance target types and switch type checking over
|
47
|
+
([#67](https://github.com/uptech/togls/issues/67))
|
48
|
+
* Added optional target types, and target type checking
|
49
|
+
([#65](https://github.com/uptech/togls/issues/65))
|
50
|
+
* Changed rule type repository to store meta data
|
51
|
+
([#62](https://github.com/uptech/togls/issues/62))
|
52
|
+
* Added uniqueness check for rule types
|
53
|
+
([#61](https://github.com/uptech/togls/issues/61)
|
54
|
+
* Changed rule repository to use rule type repository
|
55
|
+
([#59](https://github.com/uptech/togls/issues/59))
|
56
|
+
* Added rule type registration
|
57
|
+
([#59](https://github.com/uptech/togls/issues/59))
|
58
|
+
* Changed driver construction to RegistryManager
|
59
|
+
([#56](https://github.com/uptech/togls/issues/56))
|
60
|
+
* Removed `TestToggleRegistry`
|
61
|
+
([#56](https://github.com/uptech/togls/issues/56))
|
62
|
+
* Changed `ReleaseToggleRegistry` to `ToggleRegistry`
|
63
|
+
([#56](https://github.com/uptech/togls/issues/56))
|
64
|
+
* Removed `features` rake task
|
65
|
+
([#48](https://github.com/uptech/togls/issues/48))
|
66
|
+
* Added `test_mode` block style method
|
67
|
+
([#44](https://github.com/uptech/togls/issues/44))
|
68
|
+
* Changed `Togls.features` to `Togls.release`
|
69
|
+
([#38](https://github.com/uptech/togls/issues/38))
|
70
|
+
* Changed `FeatureToggleRegistry` name to `ReleaseToggleRegistry`
|
71
|
+
([#41](https://github.com/uptech/togls/issues/41))
|
72
|
+
* Added `FeatureToggleRegistryManager` methods, `enable_test_mode` &
|
69
73
|
`disable_test_mode`
|
70
|
-
*
|
71
|
-
*
|
72
|
-
([#40](https://github.com/
|
73
|
-
*
|
74
|
-
*
|
75
|
-
*
|
76
|
-
([#39](https://github.com/
|
77
|
-
*
|
74
|
+
* Removed `features=` setter
|
75
|
+
* Changed `FeatureRepository` moved from `Registry` to `RegistryManager`
|
76
|
+
([#40](https://github.com/uptech/togls/issues/40))
|
77
|
+
* Removed `FeatureToggleRegistry.create` and `TestToggleRegistry.create`
|
78
|
+
* Changed `ReleaseToggleRegistryManager` to `FeatureToggleRegistryManager`
|
79
|
+
* Added Base Error class for Togls exceptions
|
80
|
+
([#39](https://github.com/uptech/togls/issues/39))
|
81
|
+
* Added Exception for when a feature has already been defined in the feature
|
78
82
|
repository
|
79
|
-
([#42](https://github.com/
|
83
|
+
([#42](https://github.com/uptech/togls/issues/42))
|
80
84
|
|
81
85
|
#### [v2.2.1] - 2016-03-24
|
82
86
|
|
83
|
-
*
|
87
|
+
* Added in-memory driver `set`, `get`, `all` Marshaling to correct a threading
|
84
88
|
reference based collision.
|
85
|
-
([#35](https://github.com/
|
89
|
+
([#35](https://github.com/uptech/togls/issues/35))
|
86
90
|
|
87
91
|
#### [v2.2.0] - 2016-03-04
|
88
92
|
|
89
|
-
*
|
90
|
-
*
|
91
|
-
*
|
93
|
+
* Changed Togls to be thread-safe
|
94
|
+
* Added `Togls::TestToggleRegistry` class for initializing test state
|
95
|
+
* Added ability to create additional toggle registries
|
92
96
|
|
93
97
|
#### [v2.1.1] - 2015-12-14
|
94
98
|
|
95
|
-
*
|
99
|
+
* Fixed env variable override wasn't falling through to in
|
96
100
|
code defined memory value.
|
97
|
-
([#24](https://github.com/
|
101
|
+
([#24](https://github.com/uptech/togls/issues/24))
|
98
102
|
|
99
103
|
#### [v2.1.0] - 2015-11-24
|
100
104
|
|
101
|
-
*
|
105
|
+
* Fixed exceptions happened on evaluation after setting
|
102
106
|
`Togls.features = nil`
|
103
|
-
([#19](https://github.com/
|
107
|
+
([#19](https://github.com/uptech/togls/issues/19))
|
104
108
|
|
105
109
|
#### [v2.0.0] - 2015-11-23
|
106
110
|
|
107
|
-
*
|
108
|
-
*
|
109
|
-
*
|
110
|
-
*
|
111
|
+
* Added ability to create empty feature toggle set via `Togls.features`
|
112
|
+
* Added toggle definition expansion with multiple `Togls.features` blocks
|
113
|
+
* Added set `FeatureToggleRegistry` instance, `Togls.features = toggle_registry`
|
114
|
+
* Changed `Togls.features` to return `FeatureToggleRegistry` instance
|
111
115
|
rather than an Array of Toggle objects.
|
112
116
|
|
113
117
|
#### [v1.1.0] - 2015-11-17
|
114
118
|
|
115
|
-
*
|
116
|
-
*
|
117
|
-
*
|
119
|
+
* Added `off?` method for asking if a defined feature is off
|
120
|
+
* Added feature toggle overrides
|
121
|
+
* Changed Architecture to support concept of repositories and datastores allowing
|
118
122
|
further growth in the future
|
119
123
|
|
120
124
|
#### [v1.0.0] - 2015-05-19
|
121
125
|
|
122
|
-
*
|
123
|
-
*
|
126
|
+
* Changed to require human readable description to define a feature toggle
|
127
|
+
* Added rake task that outputs all the feature toggles states (on, off, ? -
|
124
128
|
unknown due to Compex Rule), keys, and human readable descritpions
|
125
129
|
|
126
130
|
#### [v0.1.0] - 2015-05-03
|
127
131
|
|
128
|
-
*
|
129
|
-
*
|
132
|
+
* Added concept of Groups as a provided rule
|
133
|
+
* Added concept of Rules and Custom Rules, allowing users to have more dynamic
|
130
134
|
feature toggles
|
131
|
-
*
|
132
|
-
|
133
|
-
[Unreleased]: https://github.com/
|
134
|
-
[v3.2.
|
135
|
-
[v3.
|
136
|
-
[v3.
|
137
|
-
[
|
138
|
-
[v2.2.
|
139
|
-
[v2.
|
140
|
-
[v2.1.
|
141
|
-
[v2.
|
142
|
-
[
|
143
|
-
[v1.
|
144
|
-
[
|
135
|
+
* Added basic feature toggles able to be switched on/off
|
136
|
+
|
137
|
+
[Unreleased]: https://github.com/uptech/togls/compare/v3.2.1...HEAD
|
138
|
+
[v3.2.1]: https://github.com/uptech/togls/compare/v3.2.1...v3.2.0
|
139
|
+
[v3.2.0]: https://github.com/uptech/togls/compare/v3.2.0...v3.1.0
|
140
|
+
[v3.1.0]: https://github.com/uptech/togls/compare/v3.1.0...v3.0.0
|
141
|
+
[v3.0.0]: https://github.com/uptech/togls/compare/v2.2.1...v3.0.0
|
142
|
+
[v2.2.1]: https://github.com/uptech/togls/compare/v2.2.0...v2.2.1
|
143
|
+
[v2.2.0]: https://github.com/uptech/togls/compare/v2.1.1...v2.2.0
|
144
|
+
[v2.1.1]: https://github.com/uptech/togls/compare/v2.1.0...v2.1.1
|
145
|
+
[v2.1.0]: https://github.com/uptech/togls/compare/v2.0.0...v2.1.0
|
146
|
+
[v2.0.0]: https://github.com/uptech/togls/compare/v1.1.0...v2.0.0
|
147
|
+
[v1.1.0]: https://github.com/uptech/togls/compare/v1.0.0...v1.1.0
|
148
|
+
[v1.0.0]: https://github.com/uptech/togls/compare/v0.1.0...v1.0.0
|
149
|
+
[v0.1.0]: https://github.com/uptech/togls/compare/0fa2feb...v0.1.0
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,3 @@
|
|
1
|
-
[![Gem Version](https://badge.fury.io/rb/togls.svg)](http://badge.fury.io/rb/togls)
|
2
|
-
[![Build Status](https://travis-ci.org/codebreakdown/togls.svg?branch=master)](https://travis-ci.org/codebreakdown/togls)
|
3
|
-
[![Code Climate](https://codeclimate.com/github/codebreakdown/togls/badges/gpa.svg)](https://codeclimate.com/github/codebreakdown/togls)
|
4
|
-
[![Test Coverage](https://codeclimate.com/github/codebreakdown/togls/badges/coverage.svg)](https://codeclimate.com/github/codebreakdown/togls/coverage)
|
5
|
-
[![Dependency Status](https://gemnasium.com/codebreakdown/togls.svg)](https://gemnasium.com/codebreakdown/togls)
|
6
|
-
[![Inline docs](http://inch-ci.org/github/codebreakdown/togls.svg?branch=master)](http://inch-ci.org/github/codebreakdown/togls)
|
7
|
-
|
8
1
|
# Togls
|
9
2
|
|
10
3
|
A lightweight, simple, and yet extremely flexible feature toggle library
|
data/lib/togls/version.rb
CHANGED
data/togls.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.description = 'An ultra light weight yet ridiculously powerful' \
|
16
16
|
' ruby feature toggle gem that supports the concept' \
|
17
17
|
' of release toggles and business toggles.'
|
18
|
-
spec.homepage = 'http://github.com/
|
18
|
+
spec.homepage = 'http://github.com/drewdeponte/togls'
|
19
19
|
spec.license = 'MIT'
|
20
20
|
|
21
21
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
@@ -25,9 +25,9 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
26
|
spec.require_paths = ['lib']
|
27
27
|
|
28
|
-
spec.add_dependency 'optional_logger', '~> 2.
|
29
|
-
spec.add_development_dependency 'bundler', '~>
|
30
|
-
spec.add_development_dependency 'rake', '~>
|
31
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
32
|
-
spec.add_development_dependency 'pry', '~> 0.
|
28
|
+
spec.add_dependency 'optional_logger', '~> 2.1'
|
29
|
+
spec.add_development_dependency 'bundler', '~> 2.5'
|
30
|
+
spec.add_development_dependency 'rake', '~> 13.2'
|
31
|
+
spec.add_development_dependency 'rspec', '~> 3.13'
|
32
|
+
spec.add_development_dependency 'pry', '~> 0.14'
|
33
33
|
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: togls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Miller
|
8
8
|
- Andrew DePonte
|
9
9
|
- Ryan Hedges
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2024-08-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: optional_logger
|
@@ -18,70 +18,70 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '2.
|
21
|
+
version: '2.1'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: '2.
|
28
|
+
version: '2.1'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: bundler
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
35
|
+
version: '2.5'
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '2.5'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rake
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '
|
49
|
+
version: '13.2'
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
56
|
+
version: '13.2'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: rspec
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '3.
|
63
|
+
version: '3.13'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '3.
|
70
|
+
version: '3.13'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: pry
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: '0.
|
77
|
+
version: '0.14'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - "~>"
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: '0.
|
84
|
+
version: '0.14'
|
85
85
|
description: An ultra light weight yet ridiculously powerful ruby feature toggle gem
|
86
86
|
that supports the concept of release toggles and business toggles.
|
87
87
|
email:
|
@@ -140,11 +140,11 @@ files:
|
|
140
140
|
- lib/togls/toggler.rb
|
141
141
|
- lib/togls/version.rb
|
142
142
|
- togls.gemspec
|
143
|
-
homepage: http://github.com/
|
143
|
+
homepage: http://github.com/drewdeponte/togls
|
144
144
|
licenses:
|
145
145
|
- MIT
|
146
146
|
metadata: {}
|
147
|
-
post_install_message:
|
147
|
+
post_install_message:
|
148
148
|
rdoc_options: []
|
149
149
|
require_paths:
|
150
150
|
- lib
|
@@ -159,9 +159,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
|
-
|
163
|
-
|
164
|
-
signing_key:
|
162
|
+
rubygems_version: 3.5.14
|
163
|
+
signing_key:
|
165
164
|
specification_version: 4
|
166
165
|
summary: An ultra light weight yet ridiculously powerfulruby feature toggle gem.
|
167
166
|
test_files: []
|