feature_flag_client 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 15d0f87f4b7f35e40dc810108972fdad0d5a5c269c0df54efd2702828e226487
4
+ data.tar.gz: 690edf715a654e06bbc70bec36e93b53bf7514fffbe7c09dc1ff59837d7a6b1a
5
+ SHA512:
6
+ metadata.gz: c9befad151fd62cffa052fc12a2a408edef28ebaf52837bda25c876e8202c0c453f5dbd3930203b7eb133c03f31abc9dfefd3cabdcade9cb1111c3da1aff5452
7
+ data.tar.gz: ae4ab58b011a62012c78b8654a387789bc9e109675614782f844f558c4cf402e9212d3d5c3cab6e7266449d55de5a0b99be24262fd1862496b49ad8b74f6f99e
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,8 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ Metrics/BlockLength:
4
+ Exclude:
5
+ - '*.gemspec'
6
+ - 'Rakefile'
7
+ - '**/*.rake'
8
+ - 'spec/**/*.rb'
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.3.5
7
+ before_install: gem install bundler -v 1.17.1
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ ## 0.2.0
2
+
3
+ * Major refactor
4
+ * Introducing `Session`, `Configuration` classes
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at ardeshir.eshghi@fundingcircle.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in feature_flag_client.gemspec
8
+ gemspec
9
+
10
+ gem 'rubocop', '~> 0.91.0'
11
+
12
+ gem 'webmock', '~> 3.9'
data/Gemfile.lock ADDED
@@ -0,0 +1,76 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ feature_flag_client (0.1.0)
5
+ httparty (~> 0.17.3)
6
+ mini_cache (~> 1.1)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.7.0)
12
+ public_suffix (>= 2.0.2, < 5.0)
13
+ ast (2.4.1)
14
+ crack (0.4.4)
15
+ diff-lcs (1.3)
16
+ hashdiff (1.0.1)
17
+ httparty (0.17.3)
18
+ mime-types (~> 3.0)
19
+ multi_xml (>= 0.5.2)
20
+ mime-types (3.3.1)
21
+ mime-types-data (~> 3.2015)
22
+ mime-types-data (3.2019.1009)
23
+ mini_cache (1.1.0)
24
+ multi_xml (0.6.0)
25
+ parallel (1.19.2)
26
+ parser (2.7.1.4)
27
+ ast (~> 2.4.1)
28
+ public_suffix (4.0.6)
29
+ rainbow (3.0.0)
30
+ rake (10.4.2)
31
+ regexp_parser (1.8.0)
32
+ rexml (3.2.4)
33
+ rspec (3.8.0)
34
+ rspec-core (~> 3.8.0)
35
+ rspec-expectations (~> 3.8.0)
36
+ rspec-mocks (~> 3.8.0)
37
+ rspec-core (3.8.0)
38
+ rspec-support (~> 3.8.0)
39
+ rspec-expectations (3.8.2)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.8.0)
42
+ rspec-mocks (3.8.0)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.8.0)
45
+ rspec-support (3.8.0)
46
+ rubocop (0.91.0)
47
+ parallel (~> 1.10)
48
+ parser (>= 2.7.1.1)
49
+ rainbow (>= 2.2.2, < 4.0)
50
+ regexp_parser (>= 1.7)
51
+ rexml
52
+ rubocop-ast (>= 0.4.0, < 1.0)
53
+ ruby-progressbar (~> 1.7)
54
+ unicode-display_width (>= 1.4.0, < 2.0)
55
+ rubocop-ast (0.4.2)
56
+ parser (>= 2.7.1.4)
57
+ ruby-progressbar (1.10.1)
58
+ unicode-display_width (1.7.0)
59
+ webmock (3.9.1)
60
+ addressable (>= 2.3.6)
61
+ crack (>= 0.3.2)
62
+ hashdiff (>= 0.4.0, < 2.0.0)
63
+
64
+ PLATFORMS
65
+ ruby
66
+
67
+ DEPENDENCIES
68
+ bundler (~> 2.1)
69
+ feature_flag_client!
70
+ rake (~> 10.0)
71
+ rspec (~> 3.0)
72
+ rubocop (~> 0.91.0)
73
+ webmock (~> 3.9)
74
+
75
+ BUNDLED WITH
76
+ 2.1.4
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Ardeshir Eshghi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Feature::Flag::Client
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/feature/flag/client`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'feature-flag-client'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install feature-flag-client
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/feature-flag-client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Feature::Flag::Client project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/feature-flag-client/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'feature/flag/client'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,48 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'feature_flag_client/client/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'feature_flag_client'
9
+ spec.version = FeatureFlagClient::Version::VERSION
10
+ spec.authors = ['Ardeshir Eshghi']
11
+ spec.email = ['ardeshir.eshghi@fundingcircle.com']
12
+ spec.required_ruby_version = '~> 2.4'
13
+
14
+ spec.summary = 'Write a short summary, because RubyGems requires one.'
15
+ spec.description = 'Write a longer description or delete this line.'
16
+ spec.homepage = 'https://github.com/ardeshireshghi/feature-flag-clients/lib/clients/ruby'
17
+ spec.license = 'MIT'
18
+
19
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
20
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
21
+ if spec.respond_to?(:metadata)
22
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
23
+
24
+ spec.metadata['homepage_uri'] = spec.homepage
25
+ spec.metadata['source_code_uri'] = 'https://github.com/ardeshireshghi/feature-flag-clients/lib/clients/ruby'
26
+ spec.metadata['changelog_uri'] = 'https://github.com/ardeshireshghi/feature-flag-clients/lib/clients/ruby/feature-flag-client/CHANGELOG.md'
27
+ else
28
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
29
+ 'public gem pushes.'
30
+ end
31
+
32
+ # Specify which files should be added to the gem when it is released.
33
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
34
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
35
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
36
+ end
37
+ spec.bindir = 'exe'
38
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
39
+ spec.require_paths = ['lib']
40
+
41
+ spec.add_dependency 'httparty', '~> 0.17.3'
42
+ spec.add_dependency 'mini_cache', '~> 1.1'
43
+
44
+ spec.add_development_dependency 'bundler', '~> 2.1'
45
+ spec.add_development_dependency 'rake', '~> 10.0'
46
+ spec.add_development_dependency 'rspec', '~> 3.0'
47
+ spec.add_development_dependency 'webmock', '~> 3.9'
48
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FeatureFlagClient
4
+ module Version
5
+ VERSION = '0.2.0'
6
+ end
7
+ end
@@ -0,0 +1,132 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'httparty'
4
+ require 'mini_cache'
5
+ require 'json'
6
+
7
+ require_relative './client/version'
8
+
9
+ module FeatureFlagClient
10
+ class ClientError < StandardError; end
11
+
12
+ # Featureflag service Client configuration to set client details
13
+ class Configuration
14
+ attr_accessor :client_id, :client_secret, :api_base_url, :auth_url, :api_session
15
+ end
16
+
17
+ # Api response wrapper
18
+ class Response
19
+ def self.from_raw(raw_response)
20
+ new(raw_response)
21
+ end
22
+
23
+ def initialize(raw_response)
24
+ @body = raw_response.body
25
+ @code = raw_response.code
26
+ end
27
+
28
+ def parsed
29
+ @parsed ||= parse_response
30
+ end
31
+
32
+ def ok?
33
+ @code >= 200 && @code < 400
34
+ end
35
+
36
+ def error
37
+ case @code
38
+ when 401...505
39
+ parsed = JSON.parse(@body)
40
+ parsed.key?('message') ? parsed['message'] : parsed['error']
41
+ end
42
+ end
43
+
44
+ private
45
+
46
+ def parse_response
47
+ hash_response = JSON.parse(@body)
48
+ hash_response.each_with_object({}) do |item, result|
49
+ name, attributes = item
50
+ result[name] = OpenStruct.new(attributes)
51
+ end
52
+ end
53
+ end
54
+
55
+ # Api Client class to fetch the features
56
+ class Client
57
+ include FeatureFlagClient::Version
58
+
59
+ CACHE_KEY = 'features'
60
+ CACHE_TTL = 3600
61
+
62
+ def self.config
63
+ @config ||= FeatureFlagClient::Configuration.new
64
+ end
65
+
66
+ def self.configure
67
+ yield(config) if block_given?
68
+ end
69
+
70
+ def self.api_session
71
+ @api_session ||= Session.new(client_id: config.client_id, client_secret: config.client_secret) do |s|
72
+ s.auth_service_url = config.auth_url
73
+ end
74
+ end
75
+
76
+ def initialize
77
+ validate_config
78
+ end
79
+
80
+ def features(product_name)
81
+ if cache.get("#{CACHE_KEY}_#{product_name}").nil?
82
+ url = "#{config.api_base_url}#{features_pathname}"
83
+ response = Response.from_raw(perform_request_with_query(url, productName: product_name))
84
+
85
+ raise ClientError, response.error unless response.ok?
86
+
87
+ cache.set("#{CACHE_KEY}_#{product_name}", response.parsed, expires_in: CACHE_TTL)
88
+ end
89
+
90
+ cache.get("#{CACHE_KEY}_#{product_name}")
91
+ end
92
+
93
+ def version
94
+ VERSION
95
+ end
96
+
97
+ def cache
98
+ @cache ||= MiniCache::Store.new
99
+ end
100
+
101
+ def api_session
102
+ config.api_session || self.class.api_session
103
+ end
104
+
105
+ private
106
+
107
+ def config
108
+ self.class.config
109
+ end
110
+
111
+ def features_pathname
112
+ '/features'
113
+ end
114
+
115
+ def validate_config
116
+ raise ClientError, "'api_base_url' is not set" unless config.api_base_url
117
+
118
+ %w[auth_url client_id client_secret].each do |config_key|
119
+ raise ClientError, "'#{config_key}' is not set" if config.send(config_key).nil? && config.api_session.nil?
120
+ end
121
+ end
122
+
123
+ def perform_request_with_query(url, query)
124
+ HTTParty.get(url, {
125
+ query: query,
126
+ headers: {
127
+ 'Authorization' => "Bearer #{api_session.access_token}"
128
+ }
129
+ })
130
+ end
131
+ end
132
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'httparty'
4
+
5
+ module FeatureFlagClient
6
+ # Takes care of getting access_token necessary to call features service
7
+ class Session
8
+ attr_accessor :client_id, :client_secret, :auth_service_url
9
+
10
+ def initialize(client_id:, client_secret:)
11
+ @client_id = client_id
12
+ @client_secret = client_secret
13
+ yield(self) if block_given?
14
+ end
15
+
16
+ def access_token
17
+ @token ||= request_access_token
18
+ @token = request_access_token(refresh: true) if token_expired?
19
+ @token
20
+ end
21
+
22
+ def refresh_token
23
+ access_token if @parsed_auth_response.nil?
24
+ @parsed_auth_response['refresh_token']
25
+ end
26
+
27
+ private
28
+
29
+ def request_access_token(refresh: false)
30
+ raise StandardError, 'auth_service_url must be defined' if auth_service_url.nil?
31
+
32
+ auth_service_response_raw = HTTParty.post(auth_service_url, {
33
+ body: auth_params(refresh: refresh).to_json,
34
+ headers: {
35
+ 'Content-Type' => 'application/json'
36
+ }
37
+ })
38
+
39
+ @parsed_auth_response = JSON.parse(auth_service_response_raw.body)
40
+ @parsed_auth_response['access_token']
41
+ end
42
+
43
+ def token_expired?
44
+ Time.now > Time.at(Time.now.to_i + @parsed_auth_response['expires_in'])
45
+ end
46
+
47
+ def auth_params(refresh: false)
48
+ params = {
49
+ client_id: client_id,
50
+ client_secret: client_secret
51
+ }
52
+
53
+ return params unless refresh
54
+
55
+ params.merge(refresh_token: @parsed_auth_response['refresh_token'])
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'feature_flag_client/session'
4
+ require 'feature_flag_client/client'
metadata ADDED
@@ -0,0 +1,149 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: feature_flag_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Ardeshir Eshghi
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-09-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.17.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.17.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: mini_cache
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.1'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.9'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.9'
97
+ description: Write a longer description or delete this line.
98
+ email:
99
+ - ardeshir.eshghi@fundingcircle.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - ".rubocop.yml"
107
+ - ".travis.yml"
108
+ - CHANGELOG.md
109
+ - CODE_OF_CONDUCT.md
110
+ - Gemfile
111
+ - Gemfile.lock
112
+ - LICENSE.txt
113
+ - README.md
114
+ - Rakefile
115
+ - bin/console
116
+ - bin/setup
117
+ - feature_flag_client.gemspec
118
+ - lib/feature_flag_client.rb
119
+ - lib/feature_flag_client/client.rb
120
+ - lib/feature_flag_client/client/version.rb
121
+ - lib/feature_flag_client/session.rb
122
+ homepage: https://github.com/ardeshireshghi/feature-flag-clients/lib/clients/ruby
123
+ licenses:
124
+ - MIT
125
+ metadata:
126
+ allowed_push_host: https://rubygems.org
127
+ homepage_uri: https://github.com/ardeshireshghi/feature-flag-clients/lib/clients/ruby
128
+ source_code_uri: https://github.com/ardeshireshghi/feature-flag-clients/lib/clients/ruby
129
+ changelog_uri: https://github.com/ardeshireshghi/feature-flag-clients/lib/clients/ruby/feature-flag-client/CHANGELOG.md
130
+ post_install_message:
131
+ rdoc_options: []
132
+ require_paths:
133
+ - lib
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '2.4'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubygems_version: 3.1.2
146
+ signing_key:
147
+ specification_version: 4
148
+ summary: Write a short summary, because RubyGems requires one.
149
+ test_files: []