rom-github 0.0.1

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
+ SHA1:
3
+ metadata.gz: 42d43dbad2d1e534835bea113de97a643c3e35dc
4
+ data.tar.gz: 0146c2a360e5dd22343b8e9fc6391a7fe92efd32
5
+ SHA512:
6
+ metadata.gz: 2b5c9c0b2e02b705eb7d86c86989c1f7d3beb0ae09ca8b52acca60977dc3612952d1371e1930fa53373c9bb2af61dc16177a4cf27963476fe6cf52424a520748
7
+ data.tar.gz: aa1b7aacd4fd0846f1dbd7849f33d2bf6cf2deafda337a0f088d244eff78115473e1c7df3937f501d72fc6e187592113de78a2e6630f6378a00da70c40c562df
data/.gitignore ADDED
@@ -0,0 +1,53 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /tmp/
12
+
13
+ # Used by dotenv library to load environment variables.
14
+ # .env
15
+
16
+ ## Specific to RubyMotion:
17
+ .dat*
18
+ .repl_history
19
+ build/
20
+ *.bridgesupport
21
+ build-iPhoneOS/
22
+ build-iPhoneSimulator/
23
+
24
+ ## Specific to RubyMotion (use of CocoaPods):
25
+ #
26
+ # We recommend against adding the Pods directory to your .gitignore. However
27
+ # you should judge for yourself, the pros and cons are mentioned at:
28
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
29
+ #
30
+ # vendor/Pods/
31
+
32
+ ## Documentation cache and generated files:
33
+ /.yardoc/
34
+ /_yardoc/
35
+ /doc/
36
+ /rdoc/
37
+
38
+ ## Environment normalization:
39
+ /.bundle/
40
+ /vendor/bundle
41
+ /lib/bundler/man/
42
+
43
+ # for a library or gem, you might want to ignore these files since the code is
44
+ # intended to run in multiple environments; otherwise, check them in:
45
+ # Gemfile.lock
46
+ # .ruby-version
47
+ # .ruby-gemset
48
+
49
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
50
+ .rvmrc
51
+
52
+ # rspec failure tracking
53
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at phuocviet89@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in rom-github.gemspec
6
+ gemspec
7
+
8
+ gem 'rom'
data/Gemfile.lock ADDED
@@ -0,0 +1,101 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rom-github (0.0.1)
5
+ rom-http (>= 0.8.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ addressable (2.6.0)
11
+ public_suffix (>= 2.0.2, < 4.0)
12
+ byebug (9.1.0)
13
+ concurrent-ruby (1.1.5)
14
+ diff-lcs (1.3)
15
+ dry-configurable (0.8.3)
16
+ concurrent-ruby (~> 1.0)
17
+ dry-core (~> 0.4, >= 0.4.7)
18
+ dry-container (0.7.2)
19
+ concurrent-ruby (~> 1.0)
20
+ dry-configurable (~> 0.1, >= 0.1.3)
21
+ dry-core (0.4.9)
22
+ concurrent-ruby (~> 1.0)
23
+ dry-equalizer (0.2.2)
24
+ dry-inflector (0.1.2)
25
+ dry-initializer (3.0.1)
26
+ dry-logic (1.0.3)
27
+ concurrent-ruby (~> 1.0)
28
+ dry-core (~> 0.2)
29
+ dry-equalizer (~> 0.2)
30
+ dry-struct (1.0.0)
31
+ dry-core (~> 0.4, >= 0.4.3)
32
+ dry-equalizer (~> 0.2)
33
+ dry-types (~> 1.0)
34
+ ice_nine (~> 0.11)
35
+ dry-types (1.1.1)
36
+ concurrent-ruby (~> 1.0)
37
+ dry-container (~> 0.3)
38
+ dry-core (~> 0.4, >= 0.4.4)
39
+ dry-equalizer (~> 0.2, >= 0.2.2)
40
+ dry-inflector (~> 0.1, >= 0.1.2)
41
+ dry-logic (~> 1.0, >= 1.0.2)
42
+ ice_nine (0.11.2)
43
+ public_suffix (3.1.1)
44
+ rake (10.5.0)
45
+ rom (5.1.2)
46
+ rom-changeset (~> 5.1)
47
+ rom-core (~> 5.1, >= 5.1.2)
48
+ rom-repository (~> 5.1)
49
+ rom-changeset (5.1.2)
50
+ dry-core (~> 0.4)
51
+ rom-core (~> 5.1, >= 5.1.2)
52
+ transproc (~> 1.0, >= 1.1.0)
53
+ rom-core (5.1.2)
54
+ concurrent-ruby (~> 1.1)
55
+ dry-container (~> 0.7)
56
+ dry-core (~> 0.4)
57
+ dry-equalizer (~> 0.2)
58
+ dry-inflector (~> 0.1)
59
+ dry-initializer (~> 3.0, >= 3.0.1)
60
+ dry-struct (~> 1.0)
61
+ dry-types (~> 1.0)
62
+ transproc (~> 1.0, >= 1.1.0)
63
+ rom-http (0.8.0)
64
+ addressable (~> 2.6)
65
+ concurrent-ruby (~> 1.1)
66
+ dry-configurable (~> 0.6)
67
+ dry-core (~> 0.4)
68
+ dry-equalizer (~> 0.2)
69
+ rom-core (~> 5.0, >= 5.0.1)
70
+ rom-repository (5.1.2)
71
+ dry-core (~> 0.4)
72
+ dry-initializer (~> 3.0, >= 3.0.1)
73
+ rom-core (~> 5.1, >= 5.1.2)
74
+ rspec (3.8.0)
75
+ rspec-core (~> 3.8.0)
76
+ rspec-expectations (~> 3.8.0)
77
+ rspec-mocks (~> 3.8.0)
78
+ rspec-core (3.8.2)
79
+ rspec-support (~> 3.8.0)
80
+ rspec-expectations (3.8.4)
81
+ diff-lcs (>= 1.2.0, < 2.0)
82
+ rspec-support (~> 3.8.0)
83
+ rspec-mocks (3.8.1)
84
+ diff-lcs (>= 1.2.0, < 2.0)
85
+ rspec-support (~> 3.8.0)
86
+ rspec-support (3.8.2)
87
+ transproc (1.1.0)
88
+
89
+ PLATFORMS
90
+ ruby
91
+
92
+ DEPENDENCIES
93
+ bundler (~> 1.17)
94
+ byebug
95
+ rake (~> 10.0)
96
+ rom
97
+ rom-github!
98
+ rspec (~> 3.0)
99
+
100
+ BUNDLED WITH
101
+ 1.17.3
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Viet (Drake) Tran
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
+ # Rom::Github
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/rom/github`. 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 'rom-github'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rom-github
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 tags, 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]/rom-github. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
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 Rom::Github project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/rom-github/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rom/github"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ 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
data/lib/rom-github.rb ADDED
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rom/github'
data/lib/rom/github.rb ADDED
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'cgi'
4
+ require 'rom/core'
5
+ require 'rom/http'
6
+ require 'rom/transformer'
7
+
8
+ require_relative 'github/types'
9
+ require_relative 'github/uri_helper'
10
+
11
+ require_relative 'github/associations/one_to_many'
12
+ require_relative 'github/associations/one_to_one'
13
+
14
+ require_relative 'github/schema'
15
+ require_relative 'github/resources/base'
16
+ require_relative 'github/resources/repositories'
17
+ require_relative 'github/resources/pull_requests'
18
+
19
+ require_relative 'github/mappers/pull_request_mapper'
20
+
21
+ module ROM
22
+ module Github
23
+ class Error < StandardError; end
24
+
25
+ def self.create_container(*args, **opts)
26
+ config = if args.first.is_a?(ROM::Configuration)
27
+ args.first
28
+ else
29
+ options = { uri: 'https://api.github.com', handlers: :json }
30
+ options = Transproc::HashTransformations[:deep_merge].call(options, opts)
31
+ ROM::Configuration.new(:http, options)
32
+ end
33
+
34
+ config.register_relation(
35
+ ROM::Github::Resources::Repositories,
36
+ ROM::Github::Resources::PullRequests
37
+ )
38
+
39
+ config.register_mapper(ROM::Github::Mappers::PullRequestMapper)
40
+
41
+ ROM.container(config)
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,10 @@
1
+ require 'rom/associations/one_to_many'
2
+
3
+ module ROM
4
+ module Github
5
+ module Associations
6
+ class OneToMany < ROM::Associations::OneToMany
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ require 'rom/associations/one_to_one'
2
+
3
+ module ROM
4
+ module Github
5
+ module Associations
6
+ class OneToOne < ROM::Associations::OneToOne
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,27 @@
1
+ module ROM
2
+ module Github
3
+ module Mappers
4
+ class PullRequestMapper < ROM::Transformer
5
+ relation :pull_requests
6
+ register_as :github
7
+
8
+ map do
9
+ copy_keys(base: :base_repo_id)
10
+ copy_keys(base: :base_repo_name)
11
+ map_value(:base_repo_id, &:base_repo_id)
12
+ map_value(:base_repo_name, &:base_repo_name)
13
+
14
+ symbolize_keys
15
+ end
16
+
17
+ def base_repo_id(base)
18
+ base[:repo][:id]
19
+ end
20
+
21
+ def base_repo_name(base)
22
+ base[:repo][:full_name]
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,17 @@
1
+ module ROM
2
+ module Github
3
+ module Resources
4
+ class Base < ROM::Relation[:http]
5
+ schema_class Github::Schema
6
+
7
+ def page(number)
8
+ add_params(page: number)
9
+ end
10
+
11
+ def per_page(number)
12
+ add_params(per_page: number)
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,43 @@
1
+ module ROM
2
+ module Github
3
+ module Resources
4
+ class PullRequests < Resources::Base
5
+ include UriHelper
6
+
7
+ schema(:pulls, as: :pull_requests) do
8
+ attribute :id, Types::Integer
9
+ attribute :number, Types::Integer
10
+ attribute :state, Types::String.constrained(included_in: %w[open closed])
11
+ attribute :title, Types::String
12
+ attribute :body, Types::String
13
+ attribute :created_at, Types::DateTime
14
+ attribute :merged, Types::Bool.meta(omittable: true)
15
+ attribute :merged_at, Types::DateTime
16
+ attribute :base, Types::Hash.schema(
17
+ repo: Types::Hash.schema(
18
+ id: Types::Integer,
19
+ full_name: Types::String
20
+ ).with_key_transform(&:to_sym)
21
+ ).with_key_transform(&:to_sym)
22
+
23
+ primary_key :id
24
+ end
25
+
26
+ def for_repo(name)
27
+ with_base_path("repos/#{escape_repository_name(name)}/pulls")
28
+ end
29
+
30
+ def by_number(number)
31
+ append_path(CGI.escape(number.to_s))
32
+ end
33
+
34
+ #--- Associations ---#
35
+ def for_repos(_assoc, repos)
36
+ repos.map do |repo|
37
+ for_repo(repo[:full_name]).map_with(:github)
38
+ end.flatten
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,39 @@
1
+ module ROM
2
+ module Github
3
+ module Resources
4
+ class Repositories < Resources::Base
5
+ include UriHelper
6
+
7
+ schema(:repos, as: :repositories) do
8
+ attribute :id, Types::Integer
9
+ attribute :name, Types::String
10
+ attribute :full_name, Types::String
11
+ attribute :private, Types::Bool
12
+ attribute :description, Types::String
13
+
14
+ primary_key :id
15
+
16
+ associations do
17
+ has_many :pull_requests, combine_keys: { id: :base_repo_id }, override: true, view: :for_repos
18
+ end
19
+ end
20
+
21
+ def for_org(name)
22
+ with_base_path("orgs/#{CGI.escape(name)}/repos")
23
+ end
24
+
25
+ def for_user(name)
26
+ with_base_path("users/#{CGI.escape(name)}/repos")
27
+ end
28
+
29
+ def mine
30
+ with_base_path('user/repos')
31
+ end
32
+
33
+ def by_name(name)
34
+ append_path(escape_repository_name(name))
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,13 @@
1
+ module ROM
2
+ module Github
3
+ class Schema < ROM::HTTP::Schema
4
+ def finalize_associations!(relations:)
5
+ super do
6
+ associations.map do |definition|
7
+ ROM::Github::Associations.const_get(definition.type).new(definition, relations)
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ require 'rom/types'
2
+
3
+ module ROM
4
+ module Github
5
+ module Types
6
+ include ROM::Types
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,11 @@
1
+ module ROM
2
+ module Github
3
+ module UriHelper
4
+ def escape_repository_name(full_name)
5
+ full_name.to_s.split('/').take(2).map do |part|
6
+ CGI.escape(part)
7
+ end.join('/')
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Rom
2
+ module Github
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,33 @@
1
+
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'rom/github/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'rom-github'
8
+ spec.version = Rom::Github::VERSION
9
+ spec.authors = ["Viet (Drake) Tran"]
10
+ spec.email = ["phuocviet89@gmail.com"]
11
+
12
+ spec.summary = 'Github API HTTP client for ROM'
13
+ spec.description = spec.summary
14
+ spec.homepage = 'https://github.com/tiev/rom-github'
15
+ spec.license = 'MIT'
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.bindir = 'exe'
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ['lib']
25
+
26
+ # spec.add_dependency 'rom'
27
+ spec.add_dependency 'rom-http', '>= 0.8.0'
28
+
29
+ spec.add_development_dependency 'bundler', '~> 1.17'
30
+ spec.add_development_dependency 'byebug'
31
+ spec.add_development_dependency 'rake', '~> 10.0'
32
+ spec.add_development_dependency 'rspec', '~> 3.0'
33
+ end
metadata ADDED
@@ -0,0 +1,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rom-github
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Viet (Drake) Tran
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-08-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rom-http
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.8.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.8.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.17'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.17'
41
+ - !ruby/object:Gem::Dependency
42
+ name: byebug
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
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: Github API HTTP client for ROM
84
+ email:
85
+ - phuocviet89@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - CODE_OF_CONDUCT.md
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/setup
100
+ - lib/rom-github.rb
101
+ - lib/rom/github.rb
102
+ - lib/rom/github/associations/one_to_many.rb
103
+ - lib/rom/github/associations/one_to_one.rb
104
+ - lib/rom/github/mappers/pull_request_mapper.rb
105
+ - lib/rom/github/resources/base.rb
106
+ - lib/rom/github/resources/pull_requests.rb
107
+ - lib/rom/github/resources/repositories.rb
108
+ - lib/rom/github/schema.rb
109
+ - lib/rom/github/types.rb
110
+ - lib/rom/github/uri_helper.rb
111
+ - lib/rom/github/version.rb
112
+ - rom-github.gemspec
113
+ homepage: https://github.com/tiev/rom-github
114
+ licenses:
115
+ - MIT
116
+ metadata: {}
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ requirements: []
132
+ rubyforge_project:
133
+ rubygems_version: 2.6.14.4
134
+ signing_key:
135
+ specification_version: 4
136
+ summary: Github API HTTP client for ROM
137
+ test_files: []