purple-client 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: 6ad7fb028a6cea59812f508ffa5eac53ceb4655f6d8fdd1cc27e1536194459ca
4
+ data.tar.gz: 67cf8b6c40a3f0b2a4f7d87a4b170e80bc752a243c9ba346cdd0f5b2490b4801
5
+ SHA512:
6
+ metadata.gz: 12f5d02c393428a5d74fb61f1b6c62338c501313760c5eb46de4d5682260c8eac8178e6b49da873987e88dbe485e1be9e53c0ad8e82ce02a235a529295005706
7
+ data.tar.gz: 168a92b2190f1d0304ed8e6f4ea21fcb0912fc8f6d2b44c1d1f5a6541deebf14f6d55373733d79d334b637b5cb236c47f0b1a176c41d4bb7588fbb92a7b02292
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
+ TargetRubyVersion: 3.0
3
+
4
+ Style/StringLiterals:
5
+ EnforcedStyle: double_quotes
6
+
7
+ Style/StringLiteralsInInterpolation:
8
+ EnforcedStyle: double_quotes
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2024-12-01
4
+
5
+ - Initial release
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official email address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ [INSERT CONTACT METHOD].
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or permanent
93
+ ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within the
113
+ community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126
+ [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Pavel Kalashnikov
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
+ # Purple::Client
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ 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/purple/client`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ ```bash
14
+ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
15
+ ```
16
+
17
+ If bundler is not being used to manage dependencies, install the gem by executing:
18
+
19
+ ```bash
20
+ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
21
+ ```
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 the created tag, 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]/purple-client. 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]/purple-client/blob/main/CODE_OF_CONDUCT.md).
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 Purple::Client project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/purple-client/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[spec rubocop]
@@ -0,0 +1,106 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'purple/path'
4
+ require 'purple/request'
5
+ require 'purple/requests/authorization'
6
+ require 'purple/response'
7
+ require 'purple/responses/body'
8
+ require_relative "version"
9
+
10
+ module Purple
11
+ class Client
12
+ class << self
13
+ def domain(value = nil)
14
+ if value.nil?
15
+ @domain
16
+ else
17
+ @domain = value
18
+ end
19
+ end
20
+
21
+ def authorization(type = nil, value = nil, **custom_options)
22
+ if type.nil? && value.nil? && custom_options.empty?
23
+ @authorization
24
+ else
25
+ @authorization = case type
26
+ when :bearer
27
+ Purple::Requests::Authorization.bearer_token(value)
28
+ when :google_auth
29
+ Purple::Requests::Authorization.google_auth(**custom_options)
30
+ when :custom_headers
31
+ Purple::Requests::Authorization.custom_headers(custom_options)
32
+ when :custom_query
33
+ Purple::Requests::Authorization.custom_query(custom_options)
34
+ end
35
+ end
36
+ end
37
+
38
+ def callback(&block)
39
+ if block_given?
40
+ @callback = block
41
+ else
42
+ @callback
43
+ end
44
+ end
45
+
46
+ def path(name, method: :get)
47
+ path = Path.new(name:, parent: @parent_path, method:, client: self)
48
+
49
+ @paths ||= []
50
+ @paths << path
51
+
52
+ @parent_path.children << path if @parent_path
53
+
54
+ if block_given?
55
+ @parent_path = path
56
+ yield
57
+ end
58
+
59
+ @parent_path = path.parent
60
+ end
61
+
62
+ def root_method(method_name)
63
+ current_path = @parent_path
64
+
65
+ define_singleton_method method_name do |**args, &block|
66
+ params = current_path.request.params.call(**args) if current_path.request.params.is_a?(Proc)
67
+
68
+ current_path.execute(params, args, &block)
69
+ end
70
+ end
71
+
72
+ def request
73
+ yield if block_given?
74
+ end
75
+
76
+ def params(*args, &block)
77
+ @parent_path.request.params = if block_given?
78
+ block
79
+ else
80
+ args
81
+ end
82
+ end
83
+
84
+ def response(status)
85
+ resp = Response.new(status:, path: @parent_path)
86
+
87
+ @parent_path.responses << resp
88
+ @current_resp = resp
89
+
90
+ yield if block_given?
91
+ end
92
+
93
+ def body(_type = nil, **structure, &block)
94
+ @current_resp.body = Responses::Body.new(structure:, response: @current_resp, transform: block)
95
+ end
96
+
97
+ def method_missing(method_name, *args, &)
98
+ if @paths&.any? { |path| path.name == method_name }
99
+ @paths.find { |path| path.name == method_name }
100
+ else
101
+ super
102
+ end
103
+ end
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,65 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Purple
4
+ class Path
5
+ extend Dry::Initializer[undefined: false]
6
+
7
+ option :client
8
+ option :name
9
+ option :parent
10
+ option :children, default: -> { [] }
11
+ option :method, optional: true
12
+ option :request, optional: true, default: -> { Purple::Request.new }
13
+ option :responses, optional: true, default: -> { [] }
14
+
15
+ def full_path
16
+ parent.nil? ? name : "#{parent.full_path}/#{name}"
17
+ end
18
+
19
+ def method_missing(method_name, *args, &)
20
+ if children.any? { |child| child.name == method_name }
21
+ children.find { |child| child.name == method_name }
22
+ else
23
+ super
24
+ end
25
+ end
26
+
27
+ def execute(params = {}, args = {})
28
+ headers = {
29
+ 'Accept' => 'application/json',
30
+ 'Content-Type' => 'application/json'
31
+ }
32
+
33
+ if client.authorization
34
+ authorization = client.authorization[:data].call
35
+
36
+ headers.deep_merge!(authorization) if client.authorization[:type].in?(%i[bearer custom_headers])
37
+ params.deep_merge!(authorization) if client.authorization[:type] == :custom_query
38
+ end
39
+
40
+ connection = Faraday.new(url: client.domain) do |conn|
41
+ conn.headers = headers
42
+ end
43
+
44
+ url = "#{client.domain}/#{full_path}"
45
+ response = case method
46
+ when :get
47
+ connection.get(url, params)
48
+ when :post
49
+ connection.post(url, params.to_json)
50
+ end
51
+
52
+ resp_structure = responses.find { |resp| resp.status_code == response.status }
53
+
54
+ object = resp_structure.body.validate!(response.body, args) if resp_structure
55
+
56
+ client.callback&.call(url, params, headers, JSON.parse(response.body))
57
+
58
+ if block_given?
59
+ yield(resp_structure.status, object)
60
+ else
61
+ object
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Purple::Request
4
+ extend Dry::Initializer[undefined: false]
5
+
6
+ attr_accessor :params
7
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Purple
4
+ module Requests
5
+ class Authorization
6
+ class << self
7
+ def bearer_token(value)
8
+ {
9
+ type: :bearer,
10
+ data: lambda do
11
+ { Authorization: "Bearer #{value}" }
12
+ end
13
+ }
14
+ end
15
+
16
+ def google_auth(credentials:, product:)
17
+ auth_scope = case product
18
+ when :firebase
19
+ 'firebase.messaging'
20
+ end
21
+
22
+ {
23
+ type: :google_auth,
24
+ data: lambda do
25
+ authorizer = Google::Auth::ServiceAccountCredentials.make_creds(
26
+ json_key_io: StringIO.new(credentials),
27
+ scope: "https://www.googleapis.com/auth/#{auth_scope}"
28
+ )
29
+
30
+ access_token = authorizer.fetch_access_token!
31
+ bearer_token access_token['access_token']
32
+ end
33
+ }
34
+ end
35
+
36
+ def custom_headers(headers)
37
+ {
38
+ type: :custom_headers,
39
+ data: lambda do
40
+ headers
41
+ end
42
+ }
43
+ end
44
+
45
+ def custom_query(headers)
46
+ {
47
+ type: :custom_query,
48
+ data: lambda do
49
+ headers
50
+ end
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Implements basic response object
4
+ class Purple::Response
5
+ extend Dry::Initializer[undefined: false]
6
+
7
+ option :status
8
+ option :path
9
+
10
+ attr_accessor :body
11
+
12
+ CODES = {
13
+ ok: 200,
14
+ bad_request: 400,
15
+ unauthorized: 401,
16
+ forbidden: 403,
17
+ not_found: 404,
18
+ too_many_requests: 429,
19
+ internal_server_error: 500
20
+ }.freeze
21
+
22
+ def status_code
23
+ CODES[@status]
24
+ end
25
+ end
@@ -0,0 +1,95 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'purple/responses'
4
+ require 'purple/responses/object'
5
+
6
+ class Purple::Responses::Body
7
+ extend Dry::Initializer[undefined: false]
8
+
9
+ class BodyStructureMismatchError < StandardError
10
+ def initialize(field, expected_type, actual_value, object)
11
+ super("Field '#{field}' expected to be of type '#{expected_type}', but got '#{actual_value.class}' with value '#{actual_value}'.\nObject: #{object}")
12
+ end
13
+ end
14
+
15
+ option :structure, default: -> { {} }
16
+ option :response
17
+ option :transform, optional: true, default: -> {}
18
+
19
+ def validate!(body, arguments)
20
+ parsed_body = JSON.parse(body, symbolize_names: true)
21
+
22
+ result = if parsed_body.is_a? Integer
23
+ parsed_body
24
+ else
25
+ underscored_body = if parsed_body.is_a? Array
26
+ parsed_body.map { |item| item.transform_keys { |key| key.to_s.underscore.to_sym } }
27
+ else
28
+ parsed_body.transform_keys { |key| key.to_s.underscore.to_sym }
29
+ end
30
+
31
+ if underscored_body.is_a? Array
32
+ underscored_body.each do |item|
33
+ check_structure!(item)
34
+ end
35
+ else
36
+ check_structure!(underscored_body)
37
+ end
38
+
39
+ if underscored_body.is_a?(Array)
40
+ underscored_body.map { |item| create_object(item) }
41
+ else
42
+ create_object(underscored_body)
43
+ end
44
+ end
45
+
46
+ if transform.is_a?(Proc)
47
+ transform.call(result, arguments)
48
+ else
49
+ result
50
+ end
51
+ rescue JSON::ParserError => e
52
+ raise ArgumentError, "Invalid JSON format: #{e.message}"
53
+ end
54
+
55
+ private
56
+
57
+ def create_object(body)
58
+ object = Class.new(Purple::Responses::Object) do
59
+ body.each do |key, value|
60
+ define_method(key) { value }
61
+ end
62
+ end.new
63
+
64
+ object.attributes = body
65
+
66
+ object
67
+ end
68
+
69
+ def check_structure!(object, substructure = structure)
70
+ substructure.each do |key, value|
71
+ if value.is_a?(Hash)
72
+ if value.key?(:optional) && value.key?(:type)
73
+ next if value[:optional]
74
+
75
+ check_type!(object, key, value[:type])
76
+ else
77
+ check_structure!(object[key], substructure[key])
78
+ end
79
+ else
80
+ check_type!(object, key, value)
81
+ end
82
+ end
83
+ end
84
+
85
+ def check_type!(object, key, expected_type)
86
+ unless object.key?(key)
87
+ raise BodyStructureMismatchError.new(key, expected_type, object[key], object),
88
+ "Missing field '#{key}' in response body. Body: #{object}"
89
+ end
90
+
91
+ return if object[key].is_a?(expected_type)
92
+
93
+ raise BodyStructureMismatchError.new(key, expected_type, object[key], object)
94
+ end
95
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Purple returns objects as responses from API. This is a base class for all responses objects.
4
+ class Purple::Responses::Object
5
+ attr_accessor :attributes
6
+
7
+ delegate :to_s, to: :attributes
8
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Purple
4
+ module Responses
5
+ end
6
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Purple
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,6 @@
1
+ module Purple
2
+ module Client
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,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: purple-client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Pavel Kalashnikov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-12-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: dry-initializer
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Build API wrappers faster
28
+ email:
29
+ - kalashnikovisme@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - ".rspec"
35
+ - ".rubocop.yml"
36
+ - CHANGELOG.md
37
+ - CODE_OF_CONDUCT.md
38
+ - LICENSE.txt
39
+ - README.md
40
+ - Rakefile
41
+ - lib/purple/client.rb
42
+ - lib/purple/path.rb
43
+ - lib/purple/request.rb
44
+ - lib/purple/requests/authorization.rb
45
+ - lib/purple/response.rb
46
+ - lib/purple/responses.rb
47
+ - lib/purple/responses/body.rb
48
+ - lib/purple/responses/object.rb
49
+ - lib/purple/version.rb
50
+ - sig/purple/client.rbs
51
+ homepage: https://github.com/purple-magic/purple-client
52
+ licenses:
53
+ - MIT
54
+ metadata:
55
+ homepage_uri: https://github.com/purple-magic/purple-client
56
+ source_code_uri: https://github.com/purple-magic/purple-client
57
+ changelog_uri: https://github.com/Purple-Magic/purple-client/releases
58
+ post_install_message:
59
+ rdoc_options: []
60
+ require_paths:
61
+ - lib
62
+ required_ruby_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 3.0.0
67
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ requirements: []
73
+ rubygems_version: 3.4.6
74
+ signing_key:
75
+ specification_version: 4
76
+ summary: Build API wrappers faster
77
+ test_files: []