hub_link 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +37 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/hub_link.gemspec +31 -0
- data/lib/hub_link/api/.review_request.rb +14 -0
- data/lib/hub_link/api/pull_request.rb +107 -0
- data/lib/hub_link/api/review.rb +37 -0
- data/lib/hub_link/api/review_request.rb +21 -0
- data/lib/hub_link/batch.rb +27 -0
- data/lib/hub_link/configuration.rb +40 -0
- data/lib/hub_link/core_ext/float.rb +5 -0
- data/lib/hub_link/slicer.rb +18 -0
- data/lib/hub_link/stream.rb +43 -0
- data/lib/hub_link/version.rb +3 -0
- data/lib/hub_link.rb +8 -0
- data/tmp/.gitkeep +0 -0
- metadata +192 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 93ee43fb3a227d9cf2d717bbfc4a0360322fc7fb
|
4
|
+
data.tar.gz: 996bee5b052dcc20175d5f5b44c0b6b990574bb6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6f1a78064fbb51df76882b32a2365340d89848bb366a1de9adb6b16a15e8f61076b4e37a26c3ad2d8b40a507b65564dea4462e0539d620e2db2b38c302f5740f
|
7
|
+
data.tar.gz: 587a65a67cf82553d22b84a12145681da1fe4e7e03a3b44a03185d20272aaa748c9b1f139d12db6e8cc67f102ba7192a2c00c04cf921a3084e5864676e9e419f
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at jens@balvig.com. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Jens Balvig
|
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
|
+
# Hub Link
|
2
|
+
|
3
|
+
When you just want the loop through all the raw pull request and review data from GitHub
|
4
|
+
(for exporting metrics f.ex).
|
5
|
+
|
6
|
+
## Usage
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "hub_store"
|
12
|
+
```
|
13
|
+
|
14
|
+
Then you can do:
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
REPOS = "balvig/hub_link,balvig/hub_store"
|
18
|
+
|
19
|
+
stream = HubLink::Stream.new(REPOS, start_date: 3.months.ago)
|
20
|
+
|
21
|
+
stream.in_batches do |batch|
|
22
|
+
batch.prs # => [{ id: 34, merge_time: 6400, ... }]
|
23
|
+
batch.reviews # => [{ id: 54, reviewer: "balvig", approval: true, ... }]
|
24
|
+
batch.review_requests # => [{ id: 74, reviewer: "balvig", ... }]
|
25
|
+
end
|
26
|
+
```
|
27
|
+
|
28
|
+
Hub Link will loop through the API in batches of 2 weeks at a time.
|
29
|
+
|
30
|
+
## Contributing
|
31
|
+
|
32
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/balvig/hub_link. 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.
|
33
|
+
|
34
|
+
|
35
|
+
## License
|
36
|
+
|
37
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "hub_link"
|
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
|
data/bin/setup
ADDED
data/hub_link.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'hub_link/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "hub_link"
|
8
|
+
spec.version = HubLink::VERSION
|
9
|
+
spec.authors = ["Jens Balvig"]
|
10
|
+
spec.email = ["jens@balvig.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Fetch raw data from GitHub for metrics}
|
13
|
+
spec.homepage = "https://github.com/balvig/hub_link"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
+
spec.bindir = "exe"
|
18
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "activesupport"
|
22
|
+
spec.add_dependency "dotenv"
|
23
|
+
spec.add_dependency "faraday_middleware"
|
24
|
+
spec.add_dependency "faraday-detailed_logger"
|
25
|
+
spec.add_dependency "octokit"
|
26
|
+
|
27
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
28
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
30
|
+
spec.add_development_dependency "pry"
|
31
|
+
end
|
@@ -0,0 +1,107 @@
|
|
1
|
+
require "octokit"
|
2
|
+
require "hub_link/core_ext/float"
|
3
|
+
require "hub_link/api/review"
|
4
|
+
require "hub_link/api/review_request"
|
5
|
+
require "hub_link/slicer"
|
6
|
+
|
7
|
+
module HubLink
|
8
|
+
module Api
|
9
|
+
class PullRequest < SimpleDelegator
|
10
|
+
def self.search(filter)
|
11
|
+
Octokit.search_issues(filter).items.map { |item| new(item) }
|
12
|
+
end
|
13
|
+
|
14
|
+
def submitter
|
15
|
+
user.login
|
16
|
+
end
|
17
|
+
|
18
|
+
def reviews
|
19
|
+
@_reviews ||= fetch_reviews
|
20
|
+
end
|
21
|
+
|
22
|
+
def review_requests
|
23
|
+
@_review_requests ||= fetch_review_requests
|
24
|
+
end
|
25
|
+
|
26
|
+
def additions
|
27
|
+
extended_data.additions
|
28
|
+
end
|
29
|
+
|
30
|
+
def body_size
|
31
|
+
body.to_s.size
|
32
|
+
end
|
33
|
+
|
34
|
+
def merge_time
|
35
|
+
return unless merged?
|
36
|
+
|
37
|
+
(closed_at - created_at).in_hours
|
38
|
+
end
|
39
|
+
|
40
|
+
def time_to_first_review
|
41
|
+
return if first_review.blank?
|
42
|
+
|
43
|
+
(first_review.submitted_at - created_at).in_hours
|
44
|
+
end
|
45
|
+
|
46
|
+
def approval_time
|
47
|
+
return if first_approval.blank?
|
48
|
+
|
49
|
+
(first_approval.submitted_at - created_at).in_hours
|
50
|
+
end
|
51
|
+
|
52
|
+
def straight_approval?
|
53
|
+
reviews.all?(&:approval?)
|
54
|
+
end
|
55
|
+
|
56
|
+
def review_count
|
57
|
+
reviews.size
|
58
|
+
end
|
59
|
+
|
60
|
+
def repo
|
61
|
+
extended_data.base.repo.full_name
|
62
|
+
end
|
63
|
+
|
64
|
+
def labels
|
65
|
+
@_labels ||= Octokit.labels_for_issue(repo, number).map(&:name).join(", ")
|
66
|
+
end
|
67
|
+
|
68
|
+
def to_h
|
69
|
+
Slicer.new(self, columns: %i(id number created_at closed_at approval_time time_to_first_review merge_time body_size additions review_count submitter straight_approval? labels repo)).to_h
|
70
|
+
end
|
71
|
+
|
72
|
+
private
|
73
|
+
|
74
|
+
def merged?
|
75
|
+
closed_at.present?
|
76
|
+
end
|
77
|
+
|
78
|
+
def fetch_review_requests
|
79
|
+
requests = Octokit.pull_request_review_requests(repo, number)
|
80
|
+
|
81
|
+
requests.users.compact.map do |user|
|
82
|
+
ReviewRequest.new(id: id, created_at: created_at, user: user)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
def fetch_reviews
|
87
|
+
Octokit.pull_request_reviews(repo, number).map do |data|
|
88
|
+
data.pull_request_id = id
|
89
|
+
data.number = number
|
90
|
+
Review.new(data)
|
91
|
+
end.reject(&:invalid?)
|
92
|
+
end
|
93
|
+
|
94
|
+
def first_approval
|
95
|
+
reviews.find(&:approval?)
|
96
|
+
end
|
97
|
+
|
98
|
+
def first_review
|
99
|
+
reviews.first
|
100
|
+
end
|
101
|
+
|
102
|
+
def extended_data
|
103
|
+
@_extended_data ||= Octokit.get(pull_request.url)
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module HubLink
|
2
|
+
module Api
|
3
|
+
class Review < SimpleDelegator
|
4
|
+
BOTS = %w(houndci-bot cookpad-devel)
|
5
|
+
|
6
|
+
def reviewer
|
7
|
+
user.login
|
8
|
+
end
|
9
|
+
|
10
|
+
def approval?
|
11
|
+
state == "APPROVED"
|
12
|
+
end
|
13
|
+
|
14
|
+
def invalid?
|
15
|
+
bot? || driveby? || draft?
|
16
|
+
end
|
17
|
+
|
18
|
+
def to_h
|
19
|
+
Slicer.new(self, columns: %i(id pull_request_id submitted_at reviewer approval?)).to_h
|
20
|
+
end
|
21
|
+
|
22
|
+
private
|
23
|
+
|
24
|
+
def bot?
|
25
|
+
BOTS.include?(user.login)
|
26
|
+
end
|
27
|
+
|
28
|
+
def driveby?
|
29
|
+
state == "COMMENTED"
|
30
|
+
end
|
31
|
+
|
32
|
+
def draft?
|
33
|
+
state == "PENDING"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module HubLink
|
2
|
+
module Api
|
3
|
+
class ReviewRequest
|
4
|
+
attr_reader :created_at, :user, :id
|
5
|
+
|
6
|
+
def initialize(id:, created_at:, user:)
|
7
|
+
@id = id
|
8
|
+
@created_at = created_at
|
9
|
+
@user = user
|
10
|
+
end
|
11
|
+
|
12
|
+
def reviewer
|
13
|
+
user.login
|
14
|
+
end
|
15
|
+
|
16
|
+
def to_h
|
17
|
+
Slicer.new(self, columns: %i(id user created_at reviewer)).to_h
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module HubLink
|
2
|
+
class Batch
|
3
|
+
def initialize(query)
|
4
|
+
@query = query
|
5
|
+
end
|
6
|
+
|
7
|
+
def pull_requests
|
8
|
+
results.map(&:to_h)
|
9
|
+
end
|
10
|
+
|
11
|
+
def reviews
|
12
|
+
results.flat_map(&:reviews).map(&:to_h)
|
13
|
+
end
|
14
|
+
|
15
|
+
def review_requests
|
16
|
+
results.flat_map(&:review_requests).map(&:to_h)
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
attr_reader :query
|
22
|
+
|
23
|
+
def results
|
24
|
+
@_results ||= Api::PullRequest.search(query)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
require "faraday/detailed_logger"
|
2
|
+
require "faraday_middleware"
|
3
|
+
require "active_support"
|
4
|
+
|
5
|
+
module HubLink
|
6
|
+
class Configuration
|
7
|
+
def initialize(cache_time: 3600)
|
8
|
+
@cache_time = cache_time
|
9
|
+
end
|
10
|
+
|
11
|
+
def apply
|
12
|
+
Octokit.middleware = middleware
|
13
|
+
Octokit.auto_paginate = true
|
14
|
+
end
|
15
|
+
|
16
|
+
private
|
17
|
+
|
18
|
+
attr_reader :cache_time
|
19
|
+
|
20
|
+
def middleware
|
21
|
+
Faraday::RackBuilder.new do |builder|
|
22
|
+
builder.response :detailed_logger, logger
|
23
|
+
builder.response :caching, cache
|
24
|
+
builder.use Octokit::Response::RaiseError
|
25
|
+
builder.adapter Faraday.default_adapter
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def cache
|
30
|
+
ActiveSupport::Cache::FileStore.new "tmp/cache", expires_in: cache_time
|
31
|
+
end
|
32
|
+
|
33
|
+
def logger
|
34
|
+
logger = Logger.new(STDOUT)
|
35
|
+
logger.formatter = ->(_, datetime, _, msg) { "#{datetime.to_s(:db)} - #{msg}\n" }
|
36
|
+
logger.level = Logger::INFO
|
37
|
+
logger
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module HubLink
|
2
|
+
class Slicer
|
3
|
+
def initialize(record, columns: [])
|
4
|
+
@record = record
|
5
|
+
@columns = columns
|
6
|
+
end
|
7
|
+
|
8
|
+
def to_h
|
9
|
+
columns.inject({}) do |result, column|
|
10
|
+
result.merge(column => record.public_send(column))
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
attr_reader :record, :columns
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require "hub_link/api/pull_request"
|
2
|
+
require "hub_link/batch"
|
3
|
+
|
4
|
+
module HubLink
|
5
|
+
class Stream
|
6
|
+
GITHUB_BATCH_SIZE = 14
|
7
|
+
|
8
|
+
def initialize(repos, start_date: 64.weeks.ago)
|
9
|
+
@repos = repos.split(",")
|
10
|
+
@start_date = start_date.to_date
|
11
|
+
end
|
12
|
+
|
13
|
+
def in_batches(&block)
|
14
|
+
queries.each do |query|
|
15
|
+
yield Batch.new(query)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
attr_accessor :repos, :start_date
|
22
|
+
|
23
|
+
def queries
|
24
|
+
start_date.step(end_date, GITHUB_BATCH_SIZE).map do |date|
|
25
|
+
"type:pr created:#{date}..#{date + GITHUB_BATCH_SIZE} #{repo_query}"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def end_date
|
30
|
+
Date.tomorrow
|
31
|
+
end
|
32
|
+
|
33
|
+
def repo_query
|
34
|
+
@_repo_query ||= build_repo_query
|
35
|
+
end
|
36
|
+
|
37
|
+
def build_repo_query
|
38
|
+
repos.map do |r|
|
39
|
+
"repo:#{r}"
|
40
|
+
end.join(" ")
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
data/lib/hub_link.rb
ADDED
data/tmp/.gitkeep
ADDED
File without changes
|
metadata
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hub_link
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jens Balvig
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-01-11 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
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
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: dotenv
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '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'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday_middleware
|
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
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: faraday-detailed_logger
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: octokit
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.12'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.12'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '10.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '10.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: minitest
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '5.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '5.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description:
|
140
|
+
email:
|
141
|
+
- jens@balvig.com
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- ".gitignore"
|
147
|
+
- ".travis.yml"
|
148
|
+
- CODE_OF_CONDUCT.md
|
149
|
+
- Gemfile
|
150
|
+
- LICENSE.txt
|
151
|
+
- README.md
|
152
|
+
- Rakefile
|
153
|
+
- bin/console
|
154
|
+
- bin/setup
|
155
|
+
- hub_link.gemspec
|
156
|
+
- lib/hub_link.rb
|
157
|
+
- lib/hub_link/api/.review_request.rb
|
158
|
+
- lib/hub_link/api/pull_request.rb
|
159
|
+
- lib/hub_link/api/review.rb
|
160
|
+
- lib/hub_link/api/review_request.rb
|
161
|
+
- lib/hub_link/batch.rb
|
162
|
+
- lib/hub_link/configuration.rb
|
163
|
+
- lib/hub_link/core_ext/float.rb
|
164
|
+
- lib/hub_link/slicer.rb
|
165
|
+
- lib/hub_link/stream.rb
|
166
|
+
- lib/hub_link/version.rb
|
167
|
+
- tmp/.gitkeep
|
168
|
+
homepage: https://github.com/balvig/hub_link
|
169
|
+
licenses:
|
170
|
+
- MIT
|
171
|
+
metadata: {}
|
172
|
+
post_install_message:
|
173
|
+
rdoc_options: []
|
174
|
+
require_paths:
|
175
|
+
- lib
|
176
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '0'
|
186
|
+
requirements: []
|
187
|
+
rubyforge_project:
|
188
|
+
rubygems_version: 2.6.13
|
189
|
+
signing_key:
|
190
|
+
specification_version: 4
|
191
|
+
summary: Fetch raw data from GitHub for metrics
|
192
|
+
test_files: []
|