NG1BuildHelpers 0.1.2 → 0.1.3

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: 47655e8231fbdc1b8a996f533214372a8d780ee7
4
- data.tar.gz: 2724e423347a83344ab5a9caa1bcc049cf0eb908
3
+ metadata.gz: a2627df821cad68c8713487fff04ce3635c29e2f
4
+ data.tar.gz: e7dbb22db18cff52215730b3b068716bfefe51b5
5
5
  SHA512:
6
- metadata.gz: 1ff370e97967d38c8738b8244f80c30bfef8e8708dea30f1d006c6f5874f8fd6af174011e5b3cb503e9ad088719b54af58658e8798d0433a1bc46925f414f061
7
- data.tar.gz: 6eb1fc6b4bcbfa92bd23730d9e6ea7666f151099642b89f68d602550a99d58c130e8a9b07f7790d2920fddf784981a272b7e1c62fe32ebd229824e72df8eb537
6
+ metadata.gz: c3400837014b9f5d583e17854df80b1def8d4d4c27d12458b98b4bb403a84cc59cb9505e7a392af5b5b3439475d72f2267ba5bd43dc9766abeca50ace1bf50b7
7
+ data.tar.gz: 7ca5f6897ef4ab34176a59456ca1e7af9342905adc1e6fb69e90dea7761800404f1ef3c6081871f072f2136900e49cee726621a6a530ead6682a2f4a1b05f25e
@@ -1,3 +1,3 @@
1
1
  module NG1BuildHelpers
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -97,12 +97,14 @@ module NG1BuildHelpers::CircleCI
97
97
 
98
98
  json_response.each do |build|
99
99
  compare = build["compare"]
100
- # Get the compare last path. This will look
101
- # something like 'f6fb62c25d4c...39f49d7ca2af'
102
- revisions = compare.split('/')[-1]
103
- # Take the first revision and use this as the end
104
- end_revision = revisions.partition("...")[0]
105
- break
100
+ if (compare)
101
+ # Get the compare last path. This will look
102
+ # something like 'f6fb62c25d4c...39f49d7ca2af'
103
+ revisions = compare.split('/')[-1]
104
+ # Take the first revision and use this as the end
105
+ end_revision = revisions.partition("...")[0]
106
+ break
107
+ end
106
108
  end
107
109
 
108
110
  return end_revision
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: NG1BuildHelpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - NG1
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-21 00:00:00.000000000 Z
11
+ date: 2018-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: OptionParser