sync_issues 0.2.0 → 0.3.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: 77f59d92db9bb219cd1ff88a3914d4b9fea5e917
4
- data.tar.gz: f454013652d08bc68ec38a74172741e451a62db0
3
+ metadata.gz: 7873e9ea0bceb36eb67b8a4db5e4343de2b3ae04
4
+ data.tar.gz: d6b8e6c793bb9c78426b3e5669fc4eb67d3e4273
5
5
  SHA512:
6
- metadata.gz: 517e439aec314cbd00a20bd268e02b1254352f8cf112eb284b8cbcc7e71c12cc50516d851c7122ad830a9bdd0aabd261f66a377f57a6ffe9d10e43f8990edc4b
7
- data.tar.gz: 60af37b8b814bffea5db9d38d1e27dcde4b907cfccc35999d0ca9f944783fdacf8ad070b80612c6c1d6a3e0542e1d0531067f98ccc2338a39dd002262524faa3
6
+ metadata.gz: fc7b40a5768fc125e814058a7aeb3ee8037bd7f6187c50eed0cead494944efb312519e0e0d821ef13984a8390a61b4e39a14bcc8ecbd4da9614e59d3c9c3782f
7
+ data.tar.gz: f5b50077873172c7ee27819262005b38ec868d4ec89466adbe5fa16d9514e28c23f623bd476fd3d0e744fc600755c502eeced8dc38cfb018f8d6dd61926b7420
@@ -7,6 +7,7 @@ module SyncIssues
7
7
  class GitHub
8
8
  def initialize
9
9
  @client = Octokit::Client.new access_token: token
10
+ @client.auto_paginate = true
10
11
  end
11
12
 
12
13
  def create_issue(repository, issue)
@@ -14,7 +15,7 @@ module SyncIssues
14
15
  end
15
16
 
16
17
  def issues(repository)
17
- @client.issues(repository, state: :all)
18
+ @client.issues(repository.full_name, state: :all)
18
19
  end
19
20
 
20
21
  def repository(repository_name)
@@ -62,7 +62,7 @@ module SyncIssues
62
62
  puts "Repository: #{repository.full_name}"
63
63
 
64
64
  existing_by_title = {}
65
- @github.issues(repository.full_name).each do |issue|
65
+ @github.issues(repository).each do |issue|
66
66
  existing_by_title[issue.title] = issue
67
67
  end
68
68
 
@@ -1,4 +1,4 @@
1
1
  # SyncIssues
2
2
  module SyncIssues
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.3.0'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sync_issues
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryce Boe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-12 00:00:00.000000000 Z
11
+ date: 2016-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt