jira-ruby-dmg 0.1.33 → 0.1.34

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: 663dcf8f3f0a12baf5645a6a1e4621e040f74fc6
4
- data.tar.gz: 6209553d914f5a100722fb6d7b399fbaab67af6e
3
+ metadata.gz: 344b6531162b0fe6da493902685f3e98a06580c9
4
+ data.tar.gz: 1b3f5b6b08afb474c9b7718ab7c989707f1e0abb
5
5
  SHA512:
6
- metadata.gz: dca4707faa444dd62ed92f6306be0e76075c30847ebe7db62163de7e2cee881a523535abf575d3b42823c357d35247e7d30a87215d7bc70ed86eac21e30e9273
7
- data.tar.gz: 8194bf63b7943bc89e588244bd73ad4b432cefce88c5b40c3c01fa7e2af3ca5fd6d7b19516f548cb0f9382bd713445f913590a1e4cdbe2fd30e1db23cfee4a34
6
+ metadata.gz: 8fe530ec61d7d05382d7466190372e1769ee23a1a1d4205f5ae19283dd08eddbd2586f9e73bfd424248cf6f9a98cb4458f66530889bb572ce561f774600dfbb8
7
+ data.tar.gz: be0e710435d8cdbda7cc47d398e1614754fef74fe7cbfe8f02cee347289a455c9bc33bfb9d1d78934a7360f01a8d2c404582809a8a78fce00bab4be52759b892
@@ -30,7 +30,9 @@ module JIRA
30
30
  'timestamp' => now
31
31
  }
32
32
 
33
- cache_file(uri, 'w+b').write(Marshal.dump(new_cache))
33
+ file = cache_file(uri, 'w+b')
34
+ file.write(Marshal.dump(new_cache))
35
+ file.close
34
36
  end
35
37
 
36
38
 
@@ -49,11 +51,15 @@ module JIRA
49
51
  end
50
52
 
51
53
  def cache(uri)
54
+ begin
52
55
  if File.exists? cache_path(uri)
53
56
  Marshal.restore(cache_file(uri, 'r+b').read())
54
57
  else
55
58
  {}
56
59
  end
60
+ rescue
61
+ binding.pry
62
+ end
57
63
  end
58
64
 
59
65
  def cache_key(uri)
@@ -52,6 +52,9 @@ module JIRA
52
52
  new_issues = self.get_issues_by_jql(client, jql, fields, max_results, start_at)
53
53
  result_issues += new_issues
54
54
  result_count = new_issues.length
55
+
56
+ break if result_count == 0
57
+
55
58
  max_results -= result_count
56
59
  start_at += result_count
57
60
  end
@@ -26,6 +26,9 @@ module JIRA
26
26
  new_issues = get_issues(options)
27
27
  result_issues += new_issues
28
28
  result_count = new_issues.length
29
+
30
+ break if result_count == 0
31
+
29
32
  options[:maxResults] -= result_count
30
33
  options[:startAt] += result_count
31
34
  end
data/lib/jira/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module JIRA
2
- VERSION = "0.1.33"
2
+ VERSION = "0.1.34"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jira-ruby-dmg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.33
4
+ version: 0.1.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - ThisIs! DMG