redmine-cli 0.1.4 → 0.1.5

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
  SHA512:
3
- metadata.gz: cc478e4f17439fc1f2a7d167365e96b271c12c846182000c3c7dc5563b751a8c9e4f33add97d6df6195b60a7624db6a61eff7987bc8c6fad051c32688b71b1dc
4
- data.tar.gz: c40552a5ff0f9b21b73190a151ae48a03fde7625828118ee5cbf64725ec66c7818a7448fc140a026e70f4d5be824520d8c8013ced4502714e1c94255a908080b
3
+ metadata.gz: 896bdb7a8315493240aca6a624484c570f731c57d7f0791d68ee82e077618cd7e17347846b16362e85342de403647837cee7a6eed2d1b0c62a4c7be40e2b0a5c
4
+ data.tar.gz: 5ebeb7bcba54ea0382a817a5879638e7e8becc8d8f8b56eee17fa4a8e74e1f99f1415d0f369b1ae40e6847025e577ffbbc7cddd8d0c39b757e2abada5ebc7641
5
5
  SHA1:
6
- metadata.gz: 46a0d3ee489a5d807551fb3d1b38220e55ff0333
7
- data.tar.gz: 8b27f9c02e87d3c635db32fea2a6a707cdae243e
6
+ metadata.gz: c40b6d47be90c4baae7ef1582f0d8b9a4d296a1e
7
+ data.tar.gz: cfcea000850f572b241e52b8852f1d6121782e14
@@ -32,6 +32,9 @@ module Redmine
32
32
  while((fetched_resources = self.all(:params => params.merge({:limit => limit, :offset => offset}))).any?)
33
33
  resources += fetched_resources
34
34
  offset += limit
35
+ if fetched_resources.length < limit then
36
+ break
37
+ end
35
38
  end
36
39
 
37
40
  resources
@@ -1,5 +1,5 @@
1
1
  module Redmine
2
2
  module Cli
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Dias
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2015-02-25 00:00:00 Z
12
+ date: 2015-04-08 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeresource