light_service-validated_context 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: b2320137a6c0f04088e028ad9978b2d98f8a8fcd371c503f264ea7cf740741fb
4
+ data.tar.gz: bc4d7056281ee5dbbb0c8ef51b22abea07e9f9fe44bd0f3dc89efcca89933274
5
+ SHA512:
6
+ metadata.gz: d3d9723e894f7a2bf924c6be97456c928e789e301312d575d9c81b1ac3ebcb4dd8030303054eea561c384e357c4a4c25353fbeb7f9201c9551c475f5eceabbb7
7
+ data.tar.gz: 372908640fc08d0e88b2a93748ba84ba7bd1b6d4ef32cbad8b218a6ea0250d0d9f21f5b745deb1948f1dc27487971af9c2d88a207a7b309063d9ea8d64181f21
data/.rubocop.yml ADDED
@@ -0,0 +1,10 @@
1
+ inherit_gem:
2
+ light-service: .rubocop.yml
3
+
4
+ AllCops:
5
+ TargetRubyVersion: 3.1
6
+ Exclude:
7
+ - "bin/*"
8
+
9
+ Style/LambdaCall:
10
+ Enabled: false
@@ -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 alessandro.fazzi@welaika.com. 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,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in light_service-validated_context.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.26.0"
13
+
14
+ gem "debug"
data/Gemfile.lock ADDED
@@ -0,0 +1,95 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ light_service-validated_context (0.1.0)
5
+ dry-types (~> 1.7.0)
6
+ light-service (>= 0.18.0)
7
+ zeitwerk
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activesupport (7.0.4)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 1.6, < 2)
15
+ minitest (>= 5.1)
16
+ tzinfo (~> 2.0)
17
+ ast (2.4.2)
18
+ concurrent-ruby (1.1.10)
19
+ debug (1.6.3)
20
+ irb (>= 1.3.6)
21
+ reline (>= 0.3.1)
22
+ diff-lcs (1.5.0)
23
+ dry-core (1.0.0)
24
+ concurrent-ruby (~> 1.0)
25
+ zeitwerk (~> 2.6)
26
+ dry-inflector (1.0.0)
27
+ dry-logic (1.5.0)
28
+ concurrent-ruby (~> 1.0)
29
+ dry-core (~> 1.0, < 2)
30
+ zeitwerk (~> 2.6)
31
+ dry-types (1.7.0)
32
+ concurrent-ruby (~> 1.0)
33
+ dry-core (~> 1.0, < 2)
34
+ dry-inflector (~> 1.0, < 2)
35
+ dry-logic (>= 1.4, < 2)
36
+ zeitwerk (~> 2.6)
37
+ i18n (1.12.0)
38
+ concurrent-ruby (~> 1.0)
39
+ io-console (0.5.11)
40
+ irb (1.5.0)
41
+ reline (>= 0.3.0)
42
+ light-service (0.18.0)
43
+ activesupport (>= 4.0.0)
44
+ minitest (5.16.3)
45
+ parallel (1.22.1)
46
+ parser (3.1.3.0)
47
+ ast (~> 2.4.1)
48
+ rainbow (3.1.1)
49
+ rake (13.0.6)
50
+ regexp_parser (2.6.1)
51
+ reline (0.3.1)
52
+ io-console (~> 0.5)
53
+ rexml (3.2.5)
54
+ rspec (3.12.0)
55
+ rspec-core (~> 3.12.0)
56
+ rspec-expectations (~> 3.12.0)
57
+ rspec-mocks (~> 3.12.0)
58
+ rspec-core (3.12.0)
59
+ rspec-support (~> 3.12.0)
60
+ rspec-expectations (3.12.0)
61
+ diff-lcs (>= 1.2.0, < 2.0)
62
+ rspec-support (~> 3.12.0)
63
+ rspec-mocks (3.12.0)
64
+ diff-lcs (>= 1.2.0, < 2.0)
65
+ rspec-support (~> 3.12.0)
66
+ rspec-support (3.12.0)
67
+ rubocop (1.26.1)
68
+ parallel (~> 1.10)
69
+ parser (>= 3.1.0.0)
70
+ rainbow (>= 2.2.2, < 4.0)
71
+ regexp_parser (>= 1.8, < 3.0)
72
+ rexml
73
+ rubocop-ast (>= 1.16.0, < 2.0)
74
+ ruby-progressbar (~> 1.7)
75
+ unicode-display_width (>= 1.4.0, < 3.0)
76
+ rubocop-ast (1.23.0)
77
+ parser (>= 3.1.1.0)
78
+ ruby-progressbar (1.11.0)
79
+ tzinfo (2.0.5)
80
+ concurrent-ruby (~> 1.0)
81
+ unicode-display_width (2.3.0)
82
+ zeitwerk (2.6.6)
83
+
84
+ PLATFORMS
85
+ arm64-darwin-21
86
+
87
+ DEPENDENCIES
88
+ debug
89
+ light_service-validated_context!
90
+ rake (~> 13.0)
91
+ rspec (~> 3.0)
92
+ rubocop (~> 1.26.0)
93
+
94
+ BUNDLED WITH
95
+ 2.3.7
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 'Alessandro Fazzi'
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,94 @@
1
+ # LightService - ValidatedContext
2
+
3
+ This gem _patches_ `light-service` gem implementing validated keys
4
+ for `expects` and `promises` action's macros.
5
+
6
+ This gem is a plugin to `light-service`, thus it depends on it (~> 0.18.0).
7
+
8
+ ## What do I mean with validation
9
+
10
+ - type check
11
+ - type coercion
12
+ - mandatory/optional presence
13
+ - default value
14
+
15
+ ## Stability, affordability
16
+
17
+ This plugin uses monkey patching in order to alter the behaviour of `light-service`.
18
+ AFAIK this is the only way to achieve the goal. Because of this fact I consider
19
+ `light_service-validated_context` more of an experiment/POC.
20
+
21
+ ## Goals
22
+
23
+ - implement an advanced and flexible interface to declare,
24
+ type-check, coerce and describe action's arguments without reinventing the wheel (the wheel we use under the wood is [`dry-types`](https://dry-rb.org/gems/dry-types))
25
+ - testing DX and interfaces
26
+ - study what parts of code are involved into this area of `light-service`'s code base
27
+
28
+ ## Installation
29
+
30
+ Add this line to your application's Gemfile:
31
+
32
+ ```ruby
33
+ gem 'light_service-validated_context'
34
+ ```
35
+
36
+ And then execute:
37
+
38
+ $ bundle install
39
+
40
+ ## Usage
41
+
42
+ ```ruby
43
+ class ActionOne
44
+ extend LightService::Action
45
+
46
+ expects VK.(:email, Types::Strict::String)
47
+ expects VK.(:age, Types::Coercible::Integer.constrained(gt: 30))
48
+ expects VK.(:ary, Types::Array.of(Types::Strict::Symbol).constrained(min_size: 1))
49
+ promises VK.(:text, Types::Strict::String.constrained(max_size: 10).default('foobar'))
50
+
51
+ executed do |context|
52
+ # something happens
53
+ end
54
+ end
55
+
56
+ result = ActionOne.execute(email: 'foo@example.com', age: '37', ary: [:foo])
57
+ # => {:email=>"foo@example.com", :age=>37, :ary=>[:foo], :text=>"foobar"}
58
+ result = ActionOne.execute(age: '37', ary: [:foo])
59
+ # expected :email to be in the context during ActionOne (LightService::ExpectedKeysNotInContextError)
60
+ result = ActionOne.execute(email: 'foo@example.com', age: '37', ary: [])
61
+ # [] violates constraints (min_size?(1, []) failed) (LightService::ExpectedKeysNotInContextError)
62
+ ```
63
+
64
+ Since all the validation and coercion logic is delegated to `dry-types`, you can
65
+ read more about what you can achieve at https://dry-rb.org/gems/dry-types/1.2/
66
+
67
+ `VK` objects needs to be created with 2 positional arguments:
68
+
69
+ - key name as a symbol
70
+ - A type
71
+
72
+ `VK` and `ValidatedKey` (equivalent) are short aliases for `LightService::Context::ValidatedKey`.
73
+ They are created only if not already defined in the global space. You're free to use the namespaced
74
+ form to avoid name collisions.
75
+
76
+ You can find more usage example in `spec/support/test_doubles.rb`
77
+
78
+ ## Development
79
+
80
+ 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.
81
+
82
+ 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).
83
+
84
+ ## Contributing
85
+
86
+ Bug reports and pull requests are welcome on GitHub at https://github.com/pioneerskies/light_service-validated_context. 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/pioneerskies/light_service-validated_context/blob/main/CODE_OF_CONDUCT.md).
87
+
88
+ ## License
89
+
90
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
91
+
92
+ ## Code of Conduct
93
+
94
+ Everyone interacting in the LightService::ValidatedContext project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/pioneerskies/light_service-validated_context/blob/main/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[rubocop spec]
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ValidatedContext
4
+ module ContextOverrides
5
+ def define_accessor_methods_for_keys(keys)
6
+ super keys.map(&:to_sym)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ValidatedContext
4
+ module ExpectedKeyVerifier
5
+ def keys
6
+ action.expected_keys.map do |key|
7
+ next key unless key.is_a?(LightService::Context::ValidatedKey)
8
+
9
+ key.label
10
+ end
11
+ end
12
+
13
+ def raw_keys
14
+ action.expected_keys
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ValidatedContext
4
+ module KeyVerifier
5
+ def are_all_keys_valid?(validated_keys)
6
+ errors = []
7
+
8
+ validated_keys.each do |key|
9
+ next unless key.is_a?(LightService::Context::ValidatedKey)
10
+
11
+ begin
12
+ context[key.label] = key.type[context[key.label] || Dry::Types::Undefined]
13
+ rescue Dry::Types::CoercionError => e
14
+ errors << e.message
15
+ end
16
+ end
17
+
18
+ [errors.none?, errors]
19
+ end
20
+
21
+ def are_all_keys_in_context?(keys)
22
+ keys_are_all_valid, validation_errors = are_all_keys_valid?(raw_keys)
23
+
24
+ not_found_keys = keys_not_found(keys)
25
+ keys_are_all_present = not_found_keys.none?
26
+
27
+ return true if keys_are_all_valid && keys_are_all_present
28
+
29
+ msg = if !keys_are_all_present
30
+ error_message
31
+ elsif !keys_are_all_valid
32
+ validation_errors.join(', ')
33
+ end
34
+
35
+ LightService::Configuration.logger.error msg
36
+ raise error_to_throw, msg
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ValidatedContext
4
+ module PromisedKeyVerifier
5
+ def keys
6
+ action.promised_keys.map do |key|
7
+ next key unless key.is_a?(LightService::Context::ValidatedKey)
8
+
9
+ key.label
10
+ end
11
+ end
12
+
13
+ def raw_keys
14
+ action.promised_keys
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ValidatedContext
4
+ ValidatedKey = Struct.new(:label, :type) do
5
+ def self.call(*args)
6
+ new(*args)
7
+ end
8
+
9
+ def to_sym
10
+ label.to_sym
11
+ end
12
+
13
+ def to_s
14
+ label.to_s
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LightService
4
+ module ValidatedContext
5
+ VERSION = "0.1.0"
6
+ end
7
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "zeitwerk"
4
+ loader = Zeitwerk::Loader.for_gem
5
+ loader.setup
6
+
7
+ require 'light-service'
8
+ require 'dry-types'
9
+
10
+ module ValidatedContext; end
11
+
12
+ module LightService
13
+ class Context
14
+ ValidatedKey = ::ValidatedContext::ValidatedKey
15
+ prepend ::ValidatedContext::ContextOverrides
16
+
17
+ class ExpectedKeyVerifier
18
+ prepend ::ValidatedContext::KeyVerifier
19
+ prepend ::ValidatedContext::ExpectedKeyVerifier
20
+ end
21
+
22
+ class PromisedKeyVerifier
23
+ prepend ::ValidatedContext::KeyVerifier
24
+ prepend ::ValidatedContext::PromisedKeyVerifier
25
+ end
26
+ end
27
+
28
+ module Types
29
+ include Dry.Types()
30
+ end
31
+ end
32
+
33
+ # Convenience namespace for implementor
34
+ Types = LightService::Types unless Module.const_defined?('Types')
35
+
36
+ # Convenience alias for implementor
37
+ ValidatedKey = LightService::Context::ValidatedKey unless Module.const_defined?('ValidatedKey')
38
+ VK = LightService::Context::ValidatedKey unless Module.const_defined?('VK')
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/light_service/validated_context/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "light_service-validated_context"
7
+ spec.version = LightService::ValidatedContext::VERSION
8
+ spec.authors = ["'Alessandro Fazzi'"]
9
+ spec.email = ["alessandro.fazzi@welaika.com"]
10
+
11
+ spec.summary = "LightService plugin adding DSL for expected/promised keys validation"
12
+ # spec.description = "TODO: Write a longer description or delete this line."
13
+ spec.homepage = "https://github.com/pioneerskies/light_service-validated_context"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 3.1"
16
+
17
+ # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
18
+
19
+ spec.metadata["homepage_uri"] = spec.homepage
20
+ spec.metadata["source_code_uri"] = spec.homepage
21
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
22
+
23
+ # Specify which files should be added to the gem when it is released.
24
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
+ # rubocop:disable Layout/LineLength
26
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
27
+ `git ls-files -z`.split("\x0").reject do |f|
28
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|github|solargraph|rspec|vscode)|appveyor)})
29
+ end
30
+ end
31
+ # rubocop:enable Layout/LineLength
32
+
33
+ # spec.bindir = "exe"
34
+ # spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
35
+ spec.require_paths = ["lib"]
36
+
37
+ # Uncomment to register a new dependency of your gem
38
+ spec.add_dependency "dry-types", "~> 1.7.0"
39
+ spec.add_dependency "light-service", ">= 0.18.0"
40
+ spec.add_dependency "zeitwerk"
41
+
42
+ # For more information and examples about making a new gem, check out our
43
+ # guide at: https://bundler.io/guides/creating_gem.html
44
+ spec.metadata['rubygems_mfa_required'] = 'true'
45
+ end
@@ -0,0 +1,6 @@
1
+ module LightService
2
+ module ValidatedContext
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: light_service-validated_context
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - "'Alessandro Fazzi'"
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dry-types
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.7.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.7.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: light-service
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.18.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 0.18.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: zeitwerk
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description:
56
+ email:
57
+ - alessandro.fazzi@welaika.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".rubocop.yml"
63
+ - CODE_OF_CONDUCT.md
64
+ - Gemfile
65
+ - Gemfile.lock
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - lib/light_service/validated_context.rb
70
+ - lib/light_service/validated_context/context_overrides.rb
71
+ - lib/light_service/validated_context/expected_key_verifier.rb
72
+ - lib/light_service/validated_context/key_verifier.rb
73
+ - lib/light_service/validated_context/promised_key_verifier.rb
74
+ - lib/light_service/validated_context/validated_key.rb
75
+ - lib/light_service/validated_context/version.rb
76
+ - light_service-validated_context.gemspec
77
+ - sig/light_service/validated_context.rbs
78
+ homepage: https://github.com/pioneerskies/light_service-validated_context
79
+ licenses:
80
+ - MIT
81
+ metadata:
82
+ homepage_uri: https://github.com/pioneerskies/light_service-validated_context
83
+ source_code_uri: https://github.com/pioneerskies/light_service-validated_context
84
+ rubygems_mfa_required: 'true'
85
+ post_install_message:
86
+ rdoc_options: []
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '3.1'
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ requirements: []
100
+ rubygems_version: 3.3.7
101
+ signing_key:
102
+ specification_version: 4
103
+ summary: LightService plugin adding DSL for expected/promised keys validation
104
+ test_files: []