mina-circle 1.4.1 → 1.4.2
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/mina-circle/circle-ci/project.rb +3 -7
- data/lib/mina-circle/version.rb +1 -1
- 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: 564af880f7175c4b7f2f5d2b4bf3d48717e40d33
|
|
4
|
+
data.tar.gz: 7c32699c141eda87c7e11d497174961c7c3711ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 534006608e15d9998887a0fdc905b47dc5033681368257b04a6691c442ecb38e989b4baecd55987f38d28c63481ed21fb8814d11cf3a5a75db3ab745554ae2fd
|
|
7
|
+
data.tar.gz: 9843d874c5e77c4338e0696bd8421ddbea0ecb81688e7800fb91fe297ae02c2672e49fb9b08110c701c2a962ec1b83cfae50feb83723f150ff6fa06b0a1129a7
|
|
@@ -39,13 +39,9 @@ class CircleCI::Project
|
|
|
39
39
|
|
|
40
40
|
def fetch_artifacts
|
|
41
41
|
# To support Circle 2.0
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
build_num = '
|
|
45
|
-
|
|
46
|
-
if build_info.first['previous_successful_build']['build_num']
|
|
47
|
-
build_num = build_info.first['previous_successful_build']['build_num']
|
|
48
|
-
end
|
|
42
|
+
builds = CircleCI::Client.instance.get "#{build_path}", filter: 'successful', has_artifacts: true
|
|
43
|
+
builds = builds.sort { |a, b| b['build_num'] - a['build_num'] }
|
|
44
|
+
build_num = builds.first['build_num']
|
|
49
45
|
|
|
50
46
|
puts "Using Build: #{build_num}"
|
|
51
47
|
|
data/lib/mina-circle/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mina-circle
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Patrick Simpson
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-06-
|
|
12
|
+
date: 2018-06-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mina
|