github-issue-importer 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 486720d76822cabfd9d71eb93977b18e2a6ea0c8
4
- data.tar.gz: 55a67b025d4d859ac6a434c52bd16b3d4bd34174
3
+ metadata.gz: 1bd733521e570924aef4316098894ed10bf6d713
4
+ data.tar.gz: e4332ecf36101ef4f41e492c931556fd64904a18
5
5
  SHA512:
6
- metadata.gz: 0749fa08b16ef63f48340a4e5427b08f5db757077da7fc579816db50026878f365c5d1a8113c474d18947d9c8750a0099665e79da5f9f8c517e0fef55305b191
7
- data.tar.gz: afd4eede2334ee89850ae8ae8b16ae95726dec256a1fb3f2c124bd3c13f626be7570cc521b03fce1ac189781dc12976bab3b0873f845a7e0158b78ae5ecea46b
6
+ metadata.gz: cca7e40750a13a618bfa6e8bef1f5ac7ca0b4d2c16c38d11df6b699dddc6e22daa6b5dba62cdc850e1e18626a60e117210d416b118677cb09709ac1db62121d8
7
+ data.tar.gz: 9d9fecc4df34a2d26ddb78e117ffbb6c98dca58b0651c7f75cce7fdffbc8885302b0c91d1fee67413ed2435ec6252a7941779f648ab3ba035e9bb5669ef94293
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.0.4 (2014-04-21)
2
+
3
+ * Support multiple pages of launchpad bugs (@johnf)
4
+
1
5
  # 0.0.3 (2014-03-10)
2
6
 
3
7
  * Use the right options to Auth to Github v3 API (@johnf)
@@ -9,8 +9,18 @@ module GithubIssueImporter
9
9
  end
10
10
 
11
11
  def get_bug_entries(project)
12
- bugs = get "https://api.launchpad.net/1.0/#{project}?ws.op=searchTasks"
13
- bugs['entries']
12
+ entries = []
13
+
14
+ url = "https://api.launchpad.net/1.0/#{project}?ws.op=searchTasks"
15
+ loop do
16
+ bugs = get url
17
+ entries += bugs['entries']
18
+
19
+ url = bugs['next_collection_link']
20
+ break unless url
21
+ end
22
+
23
+ entries
14
24
  end
15
25
 
16
26
  def get_bug(id)
@@ -1,7 +1,7 @@
1
1
  module Github
2
2
  module Issue
3
3
  module Importer
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-issue-importer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Ferlito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-10 00:00:00.000000000 Z
11
+ date: 2014-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit