prima-twig 0.1.2 → 0.1.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 +4 -4
- data/lib/prima_twig.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a55bab912a7aae649fd4d2898409c55bba647ac
|
|
4
|
+
data.tar.gz: 4dcc10969a7fabe090032e3a541bf910cd635232
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ebb35440ee45ca939e28ce4ae284d009f62aaeb8c59c236ddf080673faaf8f4d8bc278d54b524399db3c74cb9d07ad99fef5bc2f0646bae1eaa158a20bd2767
|
|
7
|
+
data.tar.gz: e3a0e7840b74dcd9d7178b55cc6c958a56d3d0077f8338db4a0782e63c4fa06901a51296c7d6a0a3cdf31ed8ca8a8933b9feec2896f6272fc7851389eb28bb4e
|
data/lib/prima_twig.rb
CHANGED
|
@@ -152,9 +152,11 @@ class Prima
|
|
|
152
152
|
|
|
153
153
|
def list_issues
|
|
154
154
|
results = @gh.list_issues repo_name, state: :open, :per_page => 20, :page => 1
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
unless @gh.last_response.rels[:last].nil?
|
|
156
|
+
number_of_pages = @gh.last_response.rels[:last].href.match(/page=(\d+)/)[1]
|
|
157
|
+
for i in 2..number_of_pages.to_i
|
|
158
|
+
results.concat @gh.list_issues(repo_name, state: :open, :per_page => 20, :page => i)
|
|
159
|
+
end
|
|
158
160
|
end
|
|
159
161
|
results
|
|
160
162
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prima-twig
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matteo Giachino
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2015-07
|
|
13
|
+
date: 2015-08-07 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: twig
|