hub_link 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93ee43fb3a227d9cf2d717bbfc4a0360322fc7fb
4
- data.tar.gz: 996bee5b052dcc20175d5f5b44c0b6b990574bb6
3
+ metadata.gz: 7e1c1295694c7b1b4a26ca785a375fa392118591
4
+ data.tar.gz: '016957bbb445f0a9d781dfada8629c14603be691'
5
5
  SHA512:
6
- metadata.gz: 6f1a78064fbb51df76882b32a2365340d89848bb366a1de9adb6b16a15e8f61076b4e37a26c3ad2d8b40a507b65564dea4462e0539d620e2db2b38c302f5740f
7
- data.tar.gz: 587a65a67cf82553d22b84a12145681da1fe4e7e03a3b44a03185d20272aaa748c9b1f139d12db6e8cc67f102ba7192a2c00c04cf921a3084e5864676e9e419f
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
@@ -5,7 +5,7 @@ module HubLink
5
5
  class Stream
6
6
  GITHUB_BATCH_SIZE = 14
7
7
 
8
- def initialize(repos, start_date: 64.weeks.ago)
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 created:#{date}..#{date + GITHUB_BATCH_SIZE} #{repo_query}"
25
+ "type:pr updated:#{date}..#{date + GITHUB_BATCH_SIZE} #{repo_query}"
26
26
  end
27
27
  end
28
28
 
@@ -1,3 +1,3 @@
1
1
  module HubLink
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hub_link
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig