precious-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: ca7de38c76a751b58ac46d8942654e3fe69fb3a0ffde5c4f1e1964201c3ba0b4
4
+ data.tar.gz: 42e235af2d2ddd3cd66f176d4e3239958b26ea3c7db1419023db9093f8e424a8
5
+ SHA512:
6
+ metadata.gz: e5004aa90cf81863831bf4ef100cec8811df1b1faaf9f6478efd089302e733b7ed10151ee2abeeae5e1544d965d98dbeb209ae1105027fb16d0d2499fdbaf7eb
7
+ data.tar.gz: ac00ecb9edc73e169273619ae8126a27af557939e944bd94c8678330554c64d61e1d47cf8b13f5a4a2720402cc1179fb946789b86d47212e9e95a40055b18757
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-04-09
4
+
5
+ - Initial release
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 precious.gemspec
6
+ gemspec
7
+
8
+ gem "faraday", "~> 0.15"
9
+ gem "oj", "~> 2.5"
10
+ gem "rake", "~> 13.0"
11
+ gem "rspec", "~> 3.0"
12
+ gem "vcr", "~> 3.0"
13
+ gem "rubocop", "~> 1.21"
14
+ gem "webmock", "~> 3.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,76 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ precious-sdk (0.1.0)
5
+ faraday (~> 0.15)
6
+ oj (~> 2.5)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ addressable (2.8.0)
12
+ public_suffix (>= 2.0.2, < 5.0)
13
+ ast (2.4.2)
14
+ crack (0.4.5)
15
+ rexml
16
+ diff-lcs (1.5.0)
17
+ faraday (0.17.5)
18
+ multipart-post (>= 1.2, < 3)
19
+ hashdiff (1.0.1)
20
+ multipart-post (2.1.1)
21
+ oj (2.18.5)
22
+ parallel (1.22.1)
23
+ parser (3.1.1.0)
24
+ ast (~> 2.4.1)
25
+ public_suffix (4.0.6)
26
+ rainbow (3.1.1)
27
+ rake (13.0.6)
28
+ regexp_parser (2.3.0)
29
+ rexml (3.2.5)
30
+ rspec (3.11.0)
31
+ rspec-core (~> 3.11.0)
32
+ rspec-expectations (~> 3.11.0)
33
+ rspec-mocks (~> 3.11.0)
34
+ rspec-core (3.11.0)
35
+ rspec-support (~> 3.11.0)
36
+ rspec-expectations (3.11.0)
37
+ diff-lcs (>= 1.2.0, < 2.0)
38
+ rspec-support (~> 3.11.0)
39
+ rspec-mocks (3.11.1)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.11.0)
42
+ rspec-support (3.11.0)
43
+ rubocop (1.27.0)
44
+ parallel (~> 1.10)
45
+ parser (>= 3.1.0.0)
46
+ rainbow (>= 2.2.2, < 4.0)
47
+ regexp_parser (>= 1.8, < 3.0)
48
+ rexml
49
+ rubocop-ast (>= 1.16.0, < 2.0)
50
+ ruby-progressbar (~> 1.7)
51
+ unicode-display_width (>= 1.4.0, < 3.0)
52
+ rubocop-ast (1.17.0)
53
+ parser (>= 3.1.1.0)
54
+ ruby-progressbar (1.11.0)
55
+ unicode-display_width (2.1.0)
56
+ vcr (3.0.3)
57
+ webmock (3.14.0)
58
+ addressable (>= 2.8.0)
59
+ crack (>= 0.3.2)
60
+ hashdiff (>= 0.4.0, < 2.0.0)
61
+
62
+ PLATFORMS
63
+ x86_64-darwin-21
64
+
65
+ DEPENDENCIES
66
+ faraday (~> 0.15)
67
+ oj (~> 2.5)
68
+ precious-sdk!
69
+ rake (~> 13.0)
70
+ rspec (~> 3.0)
71
+ rubocop (~> 1.21)
72
+ vcr (~> 3.0)
73
+ webmock (~> 3.0)
74
+
75
+ BUNDLED WITH
76
+ 2.3.5
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Michael Bastos
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,65 @@
1
+ # Precious
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/precious`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'precious'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install precious
22
+
23
+ ## Usage
24
+
25
+ Making sure you first require the gem in your code or console
26
+
27
+ ```
28
+ require 'precious'
29
+ ```
30
+
31
+ An Example of fetching books without an API key
32
+
33
+ ```
34
+ books = Precious::API::V2::Books.new
35
+
36
+ books.get_books
37
+ ```
38
+
39
+ An Example of fetching movies with an API key
40
+ ```
41
+ movies = Precious::API::V2::Movies.new(API_KEY)
42
+
43
+ movies.get_movies
44
+ ```
45
+
46
+ An Example of fetching character quotes with an API key
47
+ ```
48
+ characters = Precious::API::V2::Characters.new(API_KEY)
49
+
50
+ characters.get_character_quotes(id: '5cdbe73516d496d2c2940848')
51
+ ```
52
+
53
+ ## Development
54
+
55
+ 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.
56
+
57
+ 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).
58
+
59
+ ## Contributing
60
+
61
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/precious.
62
+
63
+ ## License
64
+
65
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
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/design.md ADDED
@@ -0,0 +1,15 @@
1
+ # SDK Design
2
+
3
+ I tried keeping the design pretty simple, function over form, and it allows the user to reuse many of the different elements while getting just a usable hash back.
4
+
5
+ ## Returning a Hash instead of an object
6
+
7
+ I like using complex map, reduce, select and even delete_if functions in my data manipulation so any library I get I tend to prefer just receiving a hash that makes it easier for me to implement in my own models but I understand that in other languages real objects are more desirable.
8
+
9
+ ## VCR for testing
10
+
11
+ One of the things I really like about the Rspec and Ruby ecosystem is the simplicity of testing existing API end points with real payloads, I was able to obfuscate the API_KEY itself in order to show that one can fetch data and test an API live without having to risk things such as keys and passwords etc. This can become important in automating testing.
12
+
13
+ ## Breaking each end point down into it's own namespace
14
+
15
+ It was important that I break each end point into it's own seperate namespace, ideally I would also limit the loading to the specific namespace someone needs but I felt this approach was sufficient to mimic the API as it stands.
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Precious
4
+ module API
5
+ module V2
6
+ class Base
7
+ API_ENDPOINT = "https://the-one-api.dev/v2/"
8
+
9
+ attr_reader :api_key
10
+
11
+ def initialize(api_key = nil)
12
+ @api_key = api_key
13
+ end
14
+
15
+ private
16
+
17
+ def request(http_method:, endpoint:, params: {})
18
+ response = client.public_send(http_method, endpoint, params)
19
+ Oj.load(response.body)
20
+ end
21
+
22
+ def client
23
+ Faraday.new(API_ENDPOINT) do |client|
24
+ client.request :url_encoded
25
+ client.adapter Faraday.default_adapter
26
+ client.headers["Content-Type"] = "application/json"
27
+ client.headers["Authorization"] = "Bearer #{api_key}" unless api_key&.nil?
28
+ end
29
+ end
30
+
31
+ def set_params(limit:, page:, offset:)
32
+ params = {}
33
+ params = params.merge(limit: limit) if limit.positive?
34
+ params = params.merge(page: page) if page.positive?
35
+ params = params.merge(offset: offset) if offset.positive?
36
+ params
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Precious
4
+ module API
5
+ module V2
6
+ class Books < Base
7
+ # GET https://the-one-api.dev/v2/book
8
+ def get_books(limit: 0, page: 0, offset: 0)
9
+ params = set_params(limit: limit, page: page, offset: offset)
10
+
11
+ request(
12
+ http_method: :get,
13
+ endpoint: "book",
14
+ params: params
15
+ )
16
+ end
17
+
18
+ # GET https://the-one-api.dev/v2/book/{id}
19
+ def get_book(id:)
20
+ params = {
21
+ _id: id
22
+ }
23
+
24
+ request(
25
+ http_method: :get,
26
+ endpoint: "book",
27
+ params: params
28
+ )
29
+ end
30
+
31
+ # GET https://the-one-api.dev/v2/book/{id}/chapters
32
+ def get_book_chapters(id:, limit: 0, page: 0, offset: 0)
33
+ params = set_params(limit: limit, page: page, offset: offset)
34
+
35
+ request(
36
+ http_method: :get,
37
+ endpoint: "book/#{id}/chapter",
38
+ params: params
39
+ )
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Precious
4
+ module API
5
+ module V2
6
+ class Chapters < Base
7
+ # GET https://the-one-api.dev/v2/chapter
8
+ def get_chapters(limit: 0, page: 0, offset: 0)
9
+ params = set_params(limit: limit, page: page, offset: offset)
10
+
11
+ request(
12
+ http_method: :get,
13
+ endpoint: "chapter",
14
+ params: params
15
+ )
16
+ end
17
+
18
+ # GET https://the-one-api.dev/v2/chapter/{id}
19
+ def get_chapter(id:)
20
+ params = {
21
+ _id: id
22
+ }
23
+
24
+ request(
25
+ http_method: :get,
26
+ endpoint: "chapter",
27
+ params: params
28
+ )
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Precious
4
+ module API
5
+ module V2
6
+ class Characters < Base
7
+ # GET https://the-one-api.dev/v2/character
8
+ def get_characters(limit: 0, page: 0, offset: 0)
9
+ params = set_params(limit: limit, page: page, offset: offset)
10
+
11
+ request(
12
+ http_method: :get,
13
+ endpoint: "character",
14
+ params: params
15
+ )
16
+ end
17
+
18
+ # GET https://the-one-api.dev/v2/character/{id}
19
+ def get_character(id:)
20
+ params = {
21
+ _id: id
22
+ }
23
+
24
+ request(
25
+ http_method: :get,
26
+ endpoint: "character",
27
+ params: params
28
+ )
29
+ end
30
+
31
+ # GET https://the-one-api.dev/v2/character/{id}/quote
32
+ def get_character_quotes(id:, limit: 0, page: 0, offset: 0)
33
+ params = set_params(limit: limit, page: page, offset: offset)
34
+
35
+ request(
36
+ http_method: :get,
37
+ endpoint: "character/#{id}/quote",
38
+ params: params
39
+ )
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Precious
4
+ module API
5
+ module V2
6
+ class Movies < Base
7
+ # GET https://the-one-api.dev/v2/movie
8
+ def get_movies(limit: 0, page: 0, offset: 0)
9
+ params = set_params(limit: limit, page: page, offset: offset)
10
+
11
+ request(
12
+ http_method: :get,
13
+ endpoint: "movie",
14
+ params: params
15
+ )
16
+ end
17
+
18
+ # GET https://the-one-api.dev/v2/movie/{id}
19
+ def get_movie(id:)
20
+ params = {
21
+ _id: id
22
+ }
23
+
24
+ request(
25
+ http_method: :get,
26
+ endpoint: "movie",
27
+ params: params
28
+ )
29
+ end
30
+
31
+ # GET https://the-one-api.dev/v2/character/{id}/quote
32
+ def get_movie_quotes(id:, limit: 0, page: 0, offset: 0)
33
+ params = set_params(limit: limit, page: page, offset: offset)
34
+
35
+ request(
36
+ http_method: :get,
37
+ endpoint: "movie/#{id}/quote",
38
+ params: params
39
+ )
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Precious
4
+ module API
5
+ module V2
6
+ class Quotes < Base
7
+ # GET https://the-one-api.dev/v2/quote
8
+ def get_quotes(limit: 0, page: 0, offset: 0)
9
+ params = set_params(limit: limit, page: page, offset: offset)
10
+
11
+ request(
12
+ http_method: :get,
13
+ endpoint: "quote",
14
+ params: params
15
+ )
16
+ end
17
+
18
+ # GET https://the-one-api.dev/v2/quote/{id}
19
+ def get_quote(id:)
20
+ params = {
21
+ _id: id
22
+ }
23
+
24
+ request(
25
+ http_method: :get,
26
+ endpoint: "quote",
27
+ params: params
28
+ )
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Precious
4
+ VERSION = "0.1.0"
5
+ end
data/lib/precious.rb ADDED
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "faraday"
4
+ require "oj"
5
+ require_relative "precious/base"
6
+ require_relative "precious/books"
7
+ require_relative "precious/chapters"
8
+ require_relative "precious/characters"
9
+ require_relative "precious/movies"
10
+ require_relative "precious/quotes"
11
+ require_relative "precious/version"
12
+
13
+ module Precious
14
+ class Error < StandardError; end
15
+ end
data/precious.gemspec ADDED
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/precious/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "precious-sdk"
7
+ spec.version = Precious::VERSION
8
+ spec.authors = ["Michael Bastos"]
9
+ spec.email = ["bastosmichael@gmail.com"]
10
+
11
+ spec.summary = "SDK for an existing Lord of the Rings API"
12
+ spec.description = "Well, if you don't know or neither like 'The Lord of the Rings', the epic masterpiece epos by J.R.R. Tolkien, then this API is most likely not for you. But if you do, this massive database will provide you with information about the books, the movie trilogy, many characters and quotes. You are welcome to use the data in your own apps, mixups and (fun) projects — like I did with creating this API. This project is totally non-profit and fan-made!"
13
+ spec.homepage = "https://github.com/bastosmichael/precious-gem"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 2.6.0"
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"] = "https://github.com/bastosmichael/precious-gem"
21
+ spec.metadata["changelog_uri"] = "https://github.com/bastosmichael/precious-gem/blob/main/CHANGELOG.md"
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
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
26
+ `git ls-files -z`.split("\x0").reject do |f|
27
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
28
+ end
29
+ end
30
+ spec.bindir = "exe"
31
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
+ spec.require_paths = ["lib"]
33
+
34
+ # Uncomment to register a new dependency of your gem
35
+ spec.add_dependency "faraday", "~> 0.15"
36
+ spec.add_dependency "oj", "~> 2.5"
37
+
38
+ spec.add_development_dependency "rspec", "~> 3.2"
39
+ spec.add_development_dependency "vcr", "~> 3.0"
40
+ spec.add_development_dependency "webmock", "~> 3.0"
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
+ end
data/sig/precious.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Precious
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,140 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: precious-sdk
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Michael Bastos
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-04-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.15'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: oj
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.5'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.5'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: vcr
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: webmock
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ description: Well, if you don't know or neither like 'The Lord of the Rings', the
84
+ epic masterpiece epos by J.R.R. Tolkien, then this API is most likely not for you.
85
+ But if you do, this massive database will provide you with information about the
86
+ books, the movie trilogy, many characters and quotes. You are welcome to use the
87
+ data in your own apps, mixups and (fun) projects — like I did with creating this
88
+ API. This project is totally non-profit and fan-made!
89
+ email:
90
+ - bastosmichael@gmail.com
91
+ executables: []
92
+ extensions: []
93
+ extra_rdoc_files: []
94
+ files:
95
+ - ".rspec"
96
+ - ".rubocop.yml"
97
+ - CHANGELOG.md
98
+ - Gemfile
99
+ - Gemfile.lock
100
+ - LICENSE.txt
101
+ - README.md
102
+ - Rakefile
103
+ - design.md
104
+ - lib/precious.rb
105
+ - lib/precious/base.rb
106
+ - lib/precious/books.rb
107
+ - lib/precious/chapters.rb
108
+ - lib/precious/characters.rb
109
+ - lib/precious/movies.rb
110
+ - lib/precious/quotes.rb
111
+ - lib/precious/version.rb
112
+ - precious.gemspec
113
+ - sig/precious.rbs
114
+ homepage: https://github.com/bastosmichael/precious-gem
115
+ licenses:
116
+ - MIT
117
+ metadata:
118
+ homepage_uri: https://github.com/bastosmichael/precious-gem
119
+ source_code_uri: https://github.com/bastosmichael/precious-gem
120
+ changelog_uri: https://github.com/bastosmichael/precious-gem/blob/main/CHANGELOG.md
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: 2.6.0
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubygems_version: 3.2.22
137
+ signing_key:
138
+ specification_version: 4
139
+ summary: SDK for an existing Lord of the Rings API
140
+ test_files: []