smooth_change 0.1.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: a31069e315f9d39ed4e2d51bf0a43e79c568a734841633ba91618bc04a1d6d25
4
+ data.tar.gz: e5a0ec805547a4646865e3026e4954a999137bc9e0681a8e80ff62c8014bd5a3
5
+ SHA512:
6
+ metadata.gz: 2ec03f1102b5432698c03935550cc982fb002f8e95cc22ec661f1fd3a5c12207c5fc19cddd5520362985f24a534c4d7543c97178a995fd3edc3059deff9eba2f
7
+ data.tar.gz: c565f396f72623581823ed82196ebae2ccec7ba23db3a376e2bfc78a1b86b7140291de16406261bae33be3d4ab9c5e52853432ed8fac3bc494ea9f4ff9c80546
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,19 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5
3
+ NewCops: enable
4
+
5
+ Style/StringLiterals:
6
+ Enabled: true
7
+ EnforcedStyle: double_quotes
8
+
9
+ Style/StringLiteralsInInterpolation:
10
+ Enabled: true
11
+ EnforcedStyle: double_quotes
12
+
13
+ Layout/LineLength:
14
+ Max: 120
15
+
16
+ Metrics/BlockLength:
17
+ Exclude:
18
+ - "spec/**/*"
19
+ - "*.gemspec"
data/.simplecov ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ SimpleCov.start do
4
+ load_profile "test_frameworks"
5
+ enable_coverage :branch
6
+ add_filter %r{^/sig/}
7
+
8
+ add_group "Libraries", "lib/"
9
+ end
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2021-09-23
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at alexandre.narbonne@yahoo.fr. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in smooth_change.gemspec
6
+ gemspec
7
+
8
+ gem "rails", "~> #{ENV["RAILS_VERSION"] || "6.0"}"
9
+
10
+ gem "simplecov", require: false, group: :test
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Alexandre Narbonne
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,52 @@
1
+ # SmoothChange
2
+
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/48a49429c6d98780a96e/maintainability)](https://codeclimate.com/github/Zooip/smooth_change/maintainability)
4
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/48a49429c6d98780a96e/test_coverage)](https://codeclimate.com/github/Zooip/smooth_change/test_coverage)
5
+
6
+ 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/smooth_change`. To experiment with that code, run `bin/console` for an interactive prompt.
7
+
8
+ TODO: Delete this and the text above, and describe your gem
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'smooth_change'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle install
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install smooth_change
25
+
26
+ ## Usage
27
+
28
+ TODO: Write usage instructions here
29
+
30
+ ## Development
31
+
32
+ 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.
33
+
34
+ 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
35
+
36
+ ## Road Map
37
+ * Instrumentation
38
+ * Framework agnostic (remove dependencies from rails and move helpers to dedicated gem)
39
+ * Response helpers
40
+
41
+
42
+ ## Contributing
43
+
44
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/smooth_change. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/smooth_change/blob/master/CODE_OF_CONDUCT.md).
45
+
46
+ ## License
47
+
48
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
49
+
50
+ ## Code of Conduct
51
+
52
+ Everyone interacting in the SmoothChange project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/smooth_change/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
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
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
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 "smooth_change"
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,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/concern"
4
+
5
+ module SmoothChange
6
+ module ActionController
7
+ # Add helper methods to use SmoothChange in your Rails's ActionControllers
8
+ module Helper
9
+ extend ActiveSupport::Concern
10
+
11
+ def store_smooth_change
12
+ SmoothChange::Current.smooth_change = smooth_change
13
+ end
14
+
15
+ def smooth_change
16
+ @smooth_change ||= SmoothChange::ClientFeatureToggler.from_http_header(http_header_value)
17
+ end
18
+
19
+ private
20
+
21
+ def http_header_value
22
+ request.headers.fetch(SmoothChange.configuration.http_header_name, "")
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SmoothChange
4
+ module Adapters
5
+ # Load features from a YAML file
6
+ class Yaml
7
+ def initialize(file:)
8
+ @file_content = if file.respond_to?(:read)
9
+ file.read
10
+ else
11
+ File.read(file)
12
+ end
13
+ parse_file
14
+ end
15
+
16
+ def features
17
+ @features ||= {}.with_indifferent_access
18
+ end
19
+
20
+ # @return [Feature]
21
+ # @param [string] feature_name
22
+ def get(feature_name)
23
+ @features[feature_name]
24
+ end
25
+
26
+ private
27
+
28
+ def parse_file
29
+ file_content = ::YAML.safe_load(@file_content)
30
+ file_content["features"].each do |name, opts|
31
+ features[name] = Feature.new(name, opts["mode"])
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SmoothChange
4
+ # Store client features requirements
5
+ class ClientFeatureToggler
6
+ def initialize(values = {})
7
+ @values = values.transform_keys(&:to_sym)
8
+ end
9
+
10
+ def values
11
+ @values ||= {}
12
+ end
13
+
14
+ # if true : feature is wanted
15
+ # if false : feature is explicitly not wanted
16
+ # if nil : not specified
17
+ def value_for(feature)
18
+ values[feature.to_sym]
19
+ end
20
+
21
+ def enabled?(feature_name)
22
+ feature = find_feature(feature_name)
23
+ feature.enabled_with?(self)
24
+ end
25
+
26
+ # Http header is expected to be a comma separated list like :
27
+ # "feature1, !feature2, feature3"
28
+ # Spaces between elements are ignored
29
+ # A leading "!" means the feature request is opt-out
30
+ def self.from_http_header(http_header_value)
31
+ values = http_header_value
32
+ .split(",")
33
+ .each_with_object({}) do |item, memo|
34
+ feature_name = item.strip
35
+
36
+ # NOTE: delete_prefix! returns nil if prefix is not found
37
+ enabled = !feature_name.delete_prefix!("!")
38
+ memo[feature_name] = enabled
39
+ end
40
+ new(values)
41
+ end
42
+
43
+ private
44
+
45
+ def adapter
46
+ SmoothChange.configuration.adapter
47
+ end
48
+
49
+ # @return [SmoothChange::Feature]
50
+ # @param [String] feature_name
51
+ def find_feature(feature_name)
52
+ adapter.get(feature_name)
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SmoothChange
4
+ # Store SmoothChange gem's global configuration
5
+ class Configuration
6
+ def initialize
7
+ set_defaults!
8
+ end
9
+
10
+ attr_accessor :http_header_name,
11
+ :adapter
12
+
13
+ private
14
+
15
+ def set_defaults!
16
+ self.http_header_name = "X-ApiFeatureFlags"
17
+ self.adapter = nil # @TODO
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support"
4
+
5
+ module SmoothChange
6
+ # Thread safe Rails request store
7
+ class Current < ActiveSupport::CurrentAttributes
8
+ attribute :smooth_change
9
+
10
+ # override with default value
11
+ def smooth_change
12
+ self.smooth_change = SmoothChange::ClientFeatureToggler.new unless attributes[:smooth_change]
13
+ attributes[:smooth_change]
14
+ end
15
+
16
+ delegate :enabled?, to: :smooth_change
17
+ end
18
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SmoothChange
4
+ # A feature to be mentioned by a feature flag
5
+ class Feature
6
+ attr_accessor :name
7
+ attr_reader :mode
8
+
9
+ def initialize(name, mode)
10
+ self.name = name
11
+ self.mode = mode
12
+ end
13
+
14
+ # @param [String,Symbol] value
15
+ # @return [String,Symbol] value
16
+ # @raise ArgumentError on unexpected value
17
+ def mode=(value)
18
+ @mode = case value.to_s
19
+ when "opt_in" then :opt_in
20
+ when "opt_out" then :opt_out
21
+ else raise ArgumentError, "mode must be one of : opt_in, opt_out "
22
+ end
23
+ end
24
+
25
+ # @return [Boolean]
26
+ def enabled_with?(feature_toggler)
27
+ value = feature_toggler.value_for(name)
28
+ return default_enabled_value if value.nil?
29
+
30
+ !!value
31
+ end
32
+
33
+ # @return [Boolean]
34
+ def default_enabled_value
35
+ mode == :opt_out
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SmoothChange
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "smooth_change/version"
4
+ require_relative "smooth_change/configuration"
5
+ require_relative "smooth_change/client_feature_toggler"
6
+ require_relative "smooth_change/feature"
7
+ require_relative "smooth_change/current"
8
+ require_relative "smooth_change/adapters/yaml"
9
+ require_relative "smooth_change/action_controller/helper"
10
+
11
+ module SmoothChange # rubocop:disable Style/Documentation
12
+ class Error < StandardError; end
13
+
14
+ class << self
15
+ def configure
16
+ yield configuration
17
+ end
18
+
19
+ def configuration
20
+ @configuration ||= Configuration.new
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,20 @@
1
+ module SmoothChange
2
+ # Store client features requirements
3
+ class ClientFeatureToggler
4
+ type value_store = Hash[Symbol, bool | nil]
5
+
6
+ @values: value_store
7
+ # @param [Hash] values
8
+ def initialize: (Hash[Symbol | String, bool?] values) -> void
9
+
10
+ def values: () -> value_store
11
+
12
+ # @param [String, Symbol] feature
13
+ # @return [Boolean, nil]
14
+ def value_for: (String | Symbol feature) -> bool?
15
+
16
+ # @param [String] http_header_value
17
+ # @return [SmoothChange::ClientToggler]
18
+ def self.from_http_header: (String http_header_value) -> ClientFeatureToggler
19
+ end
20
+ end
@@ -0,0 +1,7 @@
1
+ module SmoothChange
2
+ class Configuration
3
+
4
+ attr_writer http_header_name: String
5
+ def http_header_name: () -> String
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ module SmoothChange
2
+ class Feature
3
+ attr_accessor name: String
4
+
5
+ attr_accessor mode: Symbol
6
+
7
+ def initialize: (String name, String | Symbol mode) -> void
8
+
9
+ def mode=: ( String | Symbol value) -> Symbol
10
+
11
+ def enabled_with?: (ClientFeatureToggler feature_toggler) -> bool
12
+
13
+ def default_enabled_value: () -> bool
14
+ end
15
+ end
@@ -0,0 +1,6 @@
1
+ module SmoothChange
2
+ class Error < StandardError
3
+ end
4
+
5
+ def self.configuration: () -> Configuration
6
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/smooth_change/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "smooth_change"
7
+ spec.version = SmoothChange::VERSION
8
+ spec.authors = ["Alexandre Narbonne"]
9
+ spec.email = ["alexandre.narbonne@yahoo.fr"]
10
+
11
+ spec.summary = "Change your API behaviour without breaking everything"
12
+ # spec.description = "TODO: Write a longer description or delete this line."
13
+ spec.homepage = "https://github.com/Zooip/smooth_change"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.5.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/Zooip/smooth_change"
19
+ spec.metadata["changelog_uri"] = "https://github.com/Zooip/smooth_change/blob/main/CHANGELOG.md"
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_dependency "activesupport", ">= 5.2.3", "< 7"
33
+
34
+ spec.add_development_dependency "rake", "~> 13.0"
35
+ spec.add_development_dependency "rbs", "~> 1.6", ">= 1.6.2"
36
+ spec.add_development_dependency "rspec", "~> 3.0"
37
+ spec.add_development_dependency "rspec-rails", "~> 3.4", ">= 3.4.2"
38
+ spec.add_development_dependency "rubocop", "~> 1.21"
39
+ spec.add_development_dependency "rubocop-performance", "~> 1.11"
40
+ spec.add_development_dependency "rubocop-rspec", "~> 2.5"
41
+
42
+ # For more information and examples about making a new gem, checkout our
43
+ # guide at: https://bundler.io/guides/creating_gem.html
44
+ end
metadata ADDED
@@ -0,0 +1,200 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: smooth_change
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Alexandre Narbonne
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-09-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 5.2.3
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '7'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 5.2.3
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '7'
33
+ - !ruby/object:Gem::Dependency
34
+ name: rake
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '13.0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '13.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rbs
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.6'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 1.6.2
57
+ type: :development
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - "~>"
62
+ - !ruby/object:Gem::Version
63
+ version: '1.6'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 1.6.2
67
+ - !ruby/object:Gem::Dependency
68
+ name: rspec
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '3.0'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '3.0'
81
+ - !ruby/object:Gem::Dependency
82
+ name: rspec-rails
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - "~>"
86
+ - !ruby/object:Gem::Version
87
+ version: '3.4'
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: 3.4.2
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '3.4'
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ version: 3.4.2
101
+ - !ruby/object:Gem::Dependency
102
+ name: rubocop
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '1.21'
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '1.21'
115
+ - !ruby/object:Gem::Dependency
116
+ name: rubocop-performance
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: '1.11'
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - "~>"
127
+ - !ruby/object:Gem::Version
128
+ version: '1.11'
129
+ - !ruby/object:Gem::Dependency
130
+ name: rubocop-rspec
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: '2.5'
136
+ type: :development
137
+ prerelease: false
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - "~>"
141
+ - !ruby/object:Gem::Version
142
+ version: '2.5'
143
+ description:
144
+ email:
145
+ - alexandre.narbonne@yahoo.fr
146
+ executables: []
147
+ extensions: []
148
+ extra_rdoc_files: []
149
+ files:
150
+ - ".rspec"
151
+ - ".rubocop.yml"
152
+ - ".simplecov"
153
+ - CHANGELOG.md
154
+ - CODE_OF_CONDUCT.md
155
+ - Gemfile
156
+ - LICENSE.txt
157
+ - README.md
158
+ - Rakefile
159
+ - bin/console
160
+ - bin/setup
161
+ - lib/smooth_change.rb
162
+ - lib/smooth_change/action_controller/helper.rb
163
+ - lib/smooth_change/adapters/yaml.rb
164
+ - lib/smooth_change/client_feature_toggler.rb
165
+ - lib/smooth_change/configuration.rb
166
+ - lib/smooth_change/current.rb
167
+ - lib/smooth_change/feature.rb
168
+ - lib/smooth_change/version.rb
169
+ - sig/lib/smooth_change.rbs
170
+ - sig/lib/smooth_change/client_feature_toggler.rbs
171
+ - sig/lib/smooth_change/configuration.rbs
172
+ - sig/lib/smooth_change/feature.rbs
173
+ - smooth_change.gemspec
174
+ homepage: https://github.com/Zooip/smooth_change
175
+ licenses:
176
+ - MIT
177
+ metadata:
178
+ homepage_uri: https://github.com/Zooip/smooth_change
179
+ source_code_uri: https://github.com/Zooip/smooth_change
180
+ changelog_uri: https://github.com/Zooip/smooth_change/blob/main/CHANGELOG.md
181
+ post_install_message:
182
+ rdoc_options: []
183
+ require_paths:
184
+ - lib
185
+ required_ruby_version: !ruby/object:Gem::Requirement
186
+ requirements:
187
+ - - ">="
188
+ - !ruby/object:Gem::Version
189
+ version: 2.5.0
190
+ required_rubygems_version: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ requirements: []
196
+ rubygems_version: 3.1.6
197
+ signing_key:
198
+ specification_version: 4
199
+ summary: Change your API behaviour without breaking everything
200
+ test_files: []