hub_link 0.1.0 → 0.2.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 +4 -4
- data/lib/hub_link/api/pull_request.rb +1 -1
- data/lib/hub_link/stream.rb +2 -2
- data/lib/hub_link/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e1c1295694c7b1b4a26ca785a375fa392118591
|
4
|
+
data.tar.gz: '016957bbb445f0a9d781dfada8629c14603be691'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9a43680586ee4aa0e263288b93c3d8fdc24d643a03c85c3d5dc9439de7b2bfaea101c46f03451f993c378dff20fdbeeac6f3dd590fab790b30fc8f84623ab32
|
7
|
+
data.tar.gz: 11624d4357248a179fa8bc32a7fe4791d78f08ffca9fa7566fb8a1dd8de144ba06ffd8f273c74db4856252e96ecac40f37e7f72135682f6cbb05c8ad1a17e572
|
@@ -66,7 +66,7 @@ module HubLink
|
|
66
66
|
end
|
67
67
|
|
68
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
|
69
|
+
Slicer.new(self, columns: %i(id number created_at updated_at closed_at approval_time time_to_first_review merge_time body_size additions review_count submitter straight_approval? labels repo)).to_h
|
70
70
|
end
|
71
71
|
|
72
72
|
private
|
data/lib/hub_link/stream.rb
CHANGED
@@ -5,7 +5,7 @@ module HubLink
|
|
5
5
|
class Stream
|
6
6
|
GITHUB_BATCH_SIZE = 14
|
7
7
|
|
8
|
-
def initialize(repos, start_date:
|
8
|
+
def initialize(repos, start_date: 2.years.ago)
|
9
9
|
@repos = repos.split(",")
|
10
10
|
@start_date = start_date.to_date
|
11
11
|
end
|
@@ -22,7 +22,7 @@ module HubLink
|
|
22
22
|
|
23
23
|
def queries
|
24
24
|
start_date.step(end_date, GITHUB_BATCH_SIZE).map do |date|
|
25
|
-
"type:pr
|
25
|
+
"type:pr updated:#{date}..#{date + GITHUB_BATCH_SIZE} #{repo_query}"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
data/lib/hub_link/version.rb
CHANGED