snap_api_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: f4a8997b767d88477c2cd711e4b0b099d6c3270e628d2c8057b9e28c50cda4c2
4
+ data.tar.gz: 43d3305601a476be358f966981b5ed70e3681c220daa7a7435ac73eb75bf14e8
5
+ SHA512:
6
+ metadata.gz: f34fa74573d9ea56156b6941f810d8ae27fa6517ed966ee9aa1203076b228890d9ec96cc453645ebde3cbc7fa8c25f537e2acbbbc331341d1a399eda1d31032b
7
+ data.tar.gz: 6dcf7493da952c114597571853c231f6cefb82480f3751ad11257f1aec9a2b089cc3a7c40232554a19bd69298f1eb1d8248b584cad4d194c108e6b8d39b6d42d
data/.gitignore ADDED
@@ -0,0 +1,13 @@
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
12
+
13
+ Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,9 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ TargetRubyVersion: 3.0
4
+
5
+ Layout/LineLength:
6
+ Max: 120
7
+
8
+ Style/Documentation:
9
+ 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 lawrance@collabcollective.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,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in snap_api_client.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Lawrance Shepstone
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,37 @@
1
+ # Snap API Client
2
+
3
+ API client library for consuming Snap API resources.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'snap_api_client'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle install
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install snap_api_client
20
+
21
+ ## Development
22
+
23
+ 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.
24
+
25
+ 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).
26
+
27
+ ## Contributing
28
+
29
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/snap_api_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]/snap_api_client/blob/master/CODE_OF_CONDUCT.md).
30
+
31
+ ## License
32
+
33
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
34
+
35
+ ## Code of Conduct
36
+
37
+ Everyone interacting in the Snap API Client project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/snap_api_client/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 'snap_api_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/lint ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env bash
2
+
3
+ bundle exec rubocop --auto-correct-all --only Style/FrozenStringLiteralComment --format s &&
4
+ bundle exec rubocop --auto-correct --display-cop-names --extra-details --display-style-guide
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
data/bin/test ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env bash
2
+
3
+ bundle exec rspec
data/exe/snap ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'snap_api_client/cli'
5
+
6
+ SnapAPIClient::CLI::Application.start
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'snap_api_client/configuration'
4
+ require 'snap_api_client/errors'
5
+ require 'snap_api_client/response'
6
+ require 'snap_api_client/resources'
7
+ require 'snap_api_client/transport'
8
+ require 'snap_api_client/version'
9
+
10
+ # = Snap API Client
11
+ #
12
+ # API client library for consuming Snap API resources
13
+ #
14
+ # @see SnapAPIClient::Configuration
15
+ # @see SnapAPIClient::Transport
16
+ # @see SnapAPIClient::Response
17
+ module SnapAPIClient
18
+ module_function
19
+
20
+ attr_writer :transport
21
+
22
+ def configuration
23
+ @configuration ||= Configuration.new
24
+ end
25
+
26
+ def configure
27
+ yield(configuration) if block_given?
28
+ end
29
+
30
+ def transport
31
+ @transport ||= Transport.new
32
+ end
33
+
34
+ def card_resource
35
+ @card_resource ||= Resources::Card.new(transport)
36
+ end
37
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'thor'
4
+ require 'snap_api_client'
5
+ require 'snap_api_client/cli/cards'
6
+ require 'snap_api_client/cli/application'
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapAPIClient
4
+ module CLI
5
+ class Application < Thor
6
+ def self.exit_on_failure?
7
+ true
8
+ end
9
+
10
+ desc 'cards',
11
+ 'Perform actions on specific cards'
12
+ subcommand 'cards', Cards
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapAPIClient
4
+ module CLI
5
+ class Cards < Thor
6
+ desc 'update_review_url CARD_ID URL',
7
+ 'Updates the review URL for a given card'
8
+ def update_review_url(card_id, url)
9
+ SnapAPIClient.card_resource.update_review_url(card_id, url)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapAPIClient
4
+ # = Configuration
5
+ #
6
+ # Configuration object to be used throughout the library.
7
+ class Configuration
8
+ attr_writer :base_url,
9
+ :authentication_token
10
+
11
+ def base_url
12
+ @base_url || ENV.fetch('SNAP_API_BASE_URL', 'https://snap.collabcollective.com/api/v1')
13
+ end
14
+
15
+ def authentication_token
16
+ @authentication_token || ENV['SNAP_API_TOKEN'] || raise(ConfigurationError, 'no authentication token was found')
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapAPIClient
4
+ # General
5
+ class ConfigurationError < StandardError; end
6
+
7
+ # HTTP
8
+ class HttpResponseError < StandardError; end
9
+ class HttpBadRequestError < HttpResponseError; end
10
+ class HttpUnauthorizedError < HttpResponseError; end
11
+ class HttpForbiddenError < HttpResponseError; end
12
+ class HttpNotFoundError < HttpResponseError; end
13
+ class HttpUnprocessableEntityError < HttpResponseError; end
14
+ class HttpLockedError < HttpResponseError; end
15
+ class HttpInternalServerError < HttpResponseError; end
16
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'snap_api_client/resources/base'
4
+ require 'snap_api_client/resources/card'
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapAPIClient
4
+ module Resources
5
+ class Base
6
+ attr_reader :transport
7
+
8
+ def initialize(transport)
9
+ @transport = transport
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapAPIClient
4
+ module Resources
5
+ class Card < Base
6
+ def update_review_url(id, url)
7
+ transport.patch("/cards/#{id}/review", {
8
+ card: {
9
+ review_url: url
10
+ }
11
+ })
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'json'
4
+
5
+ module SnapAPIClient
6
+ # = Response
7
+ #
8
+ # Wrapper for an HTTP response.
9
+ class Response
10
+ attr_reader :response
11
+
12
+ def initialize(response)
13
+ @response = response
14
+ end
15
+
16
+ def code
17
+ response.status.code
18
+ end
19
+
20
+ def body_json
21
+ JSON.parse(response.body)
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,73 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'http'
4
+
5
+ module SnapAPIClient
6
+ # = Transport
7
+ #
8
+ # Transport wrapper for the HTTP library.
9
+ class Transport
10
+ RESPONSE_ERRORS = {
11
+ 400 => HttpBadRequestError,
12
+ 401 => HttpUnauthorizedError,
13
+ 403 => HttpForbiddenError,
14
+ 404 => HttpNotFoundError,
15
+ 422 => HttpUnprocessableEntityError,
16
+ 500 => HttpInternalServerError
17
+ }.freeze
18
+
19
+ def get(path, parameters = {}, headers = {})
20
+ do_request!(:get, path, :params, parameters, headers)
21
+ end
22
+
23
+ def post(path, parameters = {}, headers = {})
24
+ do_request!(:post, path, :json, parameters, headers)
25
+ end
26
+
27
+ def patch(path, parameters = {}, headers = {})
28
+ do_request!(:patch, path, :json, parameters, headers)
29
+ end
30
+
31
+ def delete(path, parameters = {}, headers = {})
32
+ do_request!(:delete, path, :params, parameters, headers)
33
+ end
34
+
35
+ private
36
+
37
+ def configuration
38
+ SnapAPIClient.configuration
39
+ end
40
+
41
+ def do_request!(type, path, parameters_type, parameters, headers)
42
+ response = make_http_call(type, path, parameters_type, parameters, headers)
43
+ filter_error_response!(response)
44
+ Response.new(response)
45
+ end
46
+
47
+ def make_http_call(type, path, parameters_type, parameters, headers)
48
+ HTTP
49
+ .headers(build_headers(headers))
50
+ .public_send(type, build_url(path), parameters_type => build_parameters(parameters))
51
+ end
52
+
53
+ def build_url(path)
54
+ "#{configuration.base_url}#{path}"
55
+ end
56
+
57
+ def build_headers(headers)
58
+ {
59
+ accept: 'application/json',
60
+ authorization: "Token token=#{configuration.authentication_token}"
61
+ }.merge(headers)
62
+ end
63
+
64
+ def build_parameters(parameters)
65
+ parameters.reject { |_, value| value.nil? }
66
+ end
67
+
68
+ def filter_error_response!(response)
69
+ exception_class = RESPONSE_ERRORS[response.status.code]
70
+ exception_class ? raise(exception_class, response) : response
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SnapAPIClient
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/snap_api_client/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'snap_api_client'
7
+ spec.version = SnapAPIClient::VERSION
8
+ spec.authors = ['Lawrance Shepstone']
9
+ spec.email = ['lawrance@collabcollective.com']
10
+
11
+ spec.summary = 'Snap API Client'
12
+ spec.description = 'API client library for consuming Snap API resources'
13
+ spec.homepage = 'https://github.com/collcoll/snap-api-client'
14
+ spec.license = 'MIT'
15
+ spec.required_ruby_version = Gem::Requirement.new('>= 3.0.0')
16
+
17
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
18
+
19
+ spec.metadata['homepage_uri'] = spec.homepage
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 { |f| f.match(%r{\A(?:test|spec|features)/}) }
25
+ end
26
+ spec.bindir = 'exe'
27
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ['lib']
29
+
30
+ spec.add_dependency 'http', '~> 4.4'
31
+ spec.add_dependency 'thor', '~> 1.1'
32
+
33
+ spec.add_development_dependency 'rake', '~> 13.0'
34
+ spec.add_development_dependency 'rspec', '~> 3.0'
35
+ spec.add_development_dependency 'rubocop', '~> 0'
36
+
37
+ # For more information and examples about making a new gem, checkout our
38
+ # guide at: https://bundler.io/guides/creating_gem.html
39
+ end
metadata ADDED
@@ -0,0 +1,142 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: snap_api_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Lawrance Shepstone
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-04-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: http
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '4.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '4.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: thor
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: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: API client library for consuming Snap API resources
84
+ email:
85
+ - lawrance@collabcollective.com
86
+ executables:
87
+ - snap
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".rspec"
93
+ - ".rubocop.yml"
94
+ - CODE_OF_CONDUCT.md
95
+ - Gemfile
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - bin/console
100
+ - bin/lint
101
+ - bin/setup
102
+ - bin/test
103
+ - exe/snap
104
+ - lib/snap_api_client.rb
105
+ - lib/snap_api_client/cli.rb
106
+ - lib/snap_api_client/cli/application.rb
107
+ - lib/snap_api_client/cli/cards.rb
108
+ - lib/snap_api_client/configuration.rb
109
+ - lib/snap_api_client/errors.rb
110
+ - lib/snap_api_client/resources.rb
111
+ - lib/snap_api_client/resources/base.rb
112
+ - lib/snap_api_client/resources/card.rb
113
+ - lib/snap_api_client/response.rb
114
+ - lib/snap_api_client/transport.rb
115
+ - lib/snap_api_client/version.rb
116
+ - snap_api_client.gemspec
117
+ homepage: https://github.com/collcoll/snap-api-client
118
+ licenses:
119
+ - MIT
120
+ metadata:
121
+ allowed_push_host: https://rubygems.org
122
+ homepage_uri: https://github.com/collcoll/snap-api-client
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 3.0.0
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubygems_version: 3.2.3
139
+ signing_key:
140
+ specification_version: 4
141
+ summary: Snap API Client
142
+ test_files: []