this_feature 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/linter-rubocop.yml +19 -0
- data/.github/workflows/test.yml +6 -21
- data/.gitignore +2 -0
- data/.rubocop.yml +32 -0
- data/.rubocop_todo.yml +100 -0
- data/.ruby-version +1 -0
- data/Gemfile +17 -4
- data/Gemfile.lock +80 -45
- data/README.md +2 -7
- data/Rakefile +3 -3
- data/bin/console +3 -7
- data/docs/flipper.md +1 -1
- data/docs/memory.md +2 -2
- data/docs/splitio.md +5 -5
- data/docs/writing_an_adapter.md +3 -3
- data/lib/this_feature/adapters/flipper.rb +2 -2
- data/lib/this_feature/adapters/memory.rb +0 -1
- data/lib/this_feature/adapters/split_io.rb +1 -1
- data/lib/this_feature/adapters.rb +2 -2
- data/lib/this_feature/configuration.rb +3 -3
- data/lib/this_feature/errors.rb +2 -4
- data/lib/this_feature/version.rb +1 -1
- data/this_feature-adapters-flipper.gemspec +27 -20
- data/this_feature-adapters-split_io.gemspec +26 -19
- data/this_feature.gemspec +26 -22
- metadata +20 -107
- data/docs/flipper.html +0 -1087
@@ -1,24 +1,31 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
$:.unshift File.expand_path('../lib', __FILE__)
|
1
|
+
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
4
2
|
|
5
3
|
require 'this_feature/version'
|
6
4
|
|
7
|
-
Gem::Specification.new do |
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'this_feature-adapters-flipper'
|
7
|
+
spec.version = ThisFeature::VERSION
|
8
|
+
|
9
|
+
spec.required_ruby_version = '>= 3.2'
|
10
|
+
|
11
|
+
spec.authors = ['Max Pleaner', 'Matt Fong']
|
12
|
+
spec.email = ['maxpleaner@gmail.com', 'matthewjf@gmail.com']
|
13
|
+
spec.homepage = 'http://hover.to'
|
14
|
+
|
15
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
16
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
17
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
18
|
+
|
19
|
+
spec.licenses = ['MIT']
|
20
|
+
spec.summary = 'A ThisFeature adapter to Flipper'
|
21
|
+
spec.description = ''
|
22
|
+
spec.homepage = 'https://github.com/hoverinc/this_feature'
|
23
|
+
|
24
|
+
spec.files = Dir.glob('{bin/*,lib/**/*,[A-Z]*}')
|
25
|
+
spec.platform = Gem::Platform::RUBY
|
26
|
+
spec.require_paths = ['lib']
|
27
|
+
|
28
|
+
spec.add_runtime_dependency 'flipper'
|
29
|
+
spec.add_runtime_dependency 'flipper-active_record'
|
30
|
+
spec.add_runtime_dependency 'this_feature'
|
24
31
|
end
|
@@ -1,23 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
$:.unshift File.expand_path('../lib', __FILE__)
|
1
|
+
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
4
2
|
|
5
3
|
require 'this_feature/version'
|
6
4
|
|
7
|
-
Gem::Specification.new do |
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'this_feature-adapters-split_io'
|
7
|
+
spec.version = ThisFeature::VERSION
|
8
|
+
|
9
|
+
spec.required_ruby_version = '>= 3.2'
|
10
|
+
|
11
|
+
spec.authors = ['Max Pleaner', 'Matt Fong']
|
12
|
+
spec.email = ['maxpleaner@gmail.com', 'matthewjf@gmail.com']
|
13
|
+
spec.homepage = 'http://hover.to'
|
14
|
+
|
15
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
16
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
17
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
18
|
+
|
19
|
+
spec.licenses = ['MIT']
|
20
|
+
spec.summary = 'A ThisFeature adapter to Split.io'
|
21
|
+
spec.description = ''
|
22
|
+
spec.homepage = 'https://github.com/hoverinc/this_feature'
|
23
|
+
|
24
|
+
spec.files = Dir.glob('{bin/*,lib/**/*,[A-Z]*}')
|
25
|
+
spec.platform = Gem::Platform::RUBY
|
26
|
+
spec.require_paths = ['lib']
|
27
|
+
|
28
|
+
spec.add_runtime_dependency 'splitclient-rb'
|
29
|
+
spec.add_runtime_dependency 'this_feature'
|
23
30
|
end
|
data/this_feature.gemspec
CHANGED
@@ -1,34 +1,38 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
3
|
+
require 'this_feature/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name
|
7
|
-
spec.version
|
8
|
-
spec.authors = ["Max Pleaner"]
|
9
|
-
spec.email = ["max.pleaner@hover.to"]
|
6
|
+
spec.name = 'this_feature'
|
7
|
+
spec.version = ThisFeature::VERSION
|
10
8
|
|
11
|
-
spec.
|
12
|
-
spec.description = spec.summary
|
13
|
-
spec.homepage = "https://github.com/hoverinc/this_feature"
|
9
|
+
spec.required_ruby_version = '>= 3.2'
|
14
10
|
|
15
|
-
|
16
|
-
|
11
|
+
contributors = {
|
12
|
+
'Max Pleaner' => 'max.pleaner@hover.to',
|
13
|
+
'Matt Fong' => 'matt.fong@hover.to',
|
14
|
+
'Shane Becker' => 'shane.becker@hover.to',
|
15
|
+
'Daniel Deutsch' => 'daniel.deutsch@hover.to'
|
16
|
+
}
|
17
|
+
spec.authors = contributors.keys
|
18
|
+
spec.email = contributors.values
|
19
|
+
|
20
|
+
spec.licenses = ['MIT']
|
21
|
+
spec.summary = 'A common interface to interact with many feature flag providers'
|
22
|
+
spec.description = ''
|
23
|
+
spec.homepage = 'https://github.com/hoverinc/this_feature'
|
24
|
+
|
25
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
26
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
27
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
17
28
|
|
18
29
|
# Specify which files should be added to the gem when it is released.
|
19
30
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
-
spec.files
|
31
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
32
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
33
|
end
|
23
|
-
spec.bindir = "exe"
|
24
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
25
|
-
spec.require_paths = ["lib"]
|
26
34
|
|
27
|
-
spec.
|
28
|
-
spec.
|
29
|
-
spec.
|
30
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
31
|
-
spec.add_development_dependency "sqlite3"
|
32
|
-
spec.add_development_dependency "database_cleaner-active_record"
|
33
|
-
spec.add_development_dependency "gem-release"
|
35
|
+
spec.bindir = 'exe'
|
36
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
37
|
+
spec.require_paths = ['lib']
|
34
38
|
end
|
metadata
CHANGED
@@ -1,123 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: this_feature
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Pleaner
|
8
|
+
- Matt Fong
|
9
|
+
- Shane Becker
|
10
|
+
- Daniel Deutsch
|
8
11
|
autorequire:
|
9
12
|
bindir: exe
|
10
13
|
cert_chain: []
|
11
|
-
date: 2023-
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '2.0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '2.0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: pry-byebug
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '13.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '13.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: sqlite3
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: database_cleaner-active_record
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: gem-release
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
description: Feature flag control
|
14
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
15
|
+
dependencies: []
|
16
|
+
description: ''
|
112
17
|
email:
|
113
18
|
- max.pleaner@hover.to
|
19
|
+
- matt.fong@hover.to
|
20
|
+
- shane.becker@hover.to
|
21
|
+
- daniel.deutsch@hover.to
|
114
22
|
executables: []
|
115
23
|
extensions: []
|
116
24
|
extra_rdoc_files: []
|
117
25
|
files:
|
26
|
+
- ".github/workflows/linter-rubocop.yml"
|
118
27
|
- ".github/workflows/test.yml"
|
119
28
|
- ".gitignore"
|
120
29
|
- ".rspec"
|
30
|
+
- ".rubocop.yml"
|
31
|
+
- ".rubocop_todo.yml"
|
32
|
+
- ".ruby-version"
|
121
33
|
- ".travis.yml"
|
122
34
|
- CODE_OF_CONDUCT.md
|
123
35
|
- Gemfile
|
@@ -127,7 +39,6 @@ files:
|
|
127
39
|
- Rakefile
|
128
40
|
- bin/console
|
129
41
|
- bin/setup
|
130
|
-
- docs/flipper.html
|
131
42
|
- docs/flipper.md
|
132
43
|
- docs/memory.md
|
133
44
|
- docs/splitio.md
|
@@ -146,10 +57,12 @@ files:
|
|
146
57
|
- this_feature-adapters-split_io.gemspec
|
147
58
|
- this_feature.gemspec
|
148
59
|
homepage: https://github.com/hoverinc/this_feature
|
149
|
-
licenses:
|
60
|
+
licenses:
|
61
|
+
- MIT
|
150
62
|
metadata:
|
151
63
|
homepage_uri: https://github.com/hoverinc/this_feature
|
152
64
|
source_code_uri: https://github.com/hoverinc/this_feature
|
65
|
+
rubygems_mfa_required: 'true'
|
153
66
|
post_install_message:
|
154
67
|
rdoc_options: []
|
155
68
|
require_paths:
|
@@ -158,15 +71,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
71
|
requirements:
|
159
72
|
- - ">="
|
160
73
|
- !ruby/object:Gem::Version
|
161
|
-
version: '
|
74
|
+
version: '3.2'
|
162
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
76
|
requirements:
|
164
77
|
- - ">="
|
165
78
|
- !ruby/object:Gem::Version
|
166
79
|
version: '0'
|
167
80
|
requirements: []
|
168
|
-
rubygems_version: 3.
|
81
|
+
rubygems_version: 3.4.13
|
169
82
|
signing_key:
|
170
83
|
specification_version: 4
|
171
|
-
summary:
|
84
|
+
summary: A common interface to interact with many feature flag providers
|
172
85
|
test_files: []
|