mina-circle 1.3.5 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mina-circle/circle-ci/project.rb +12 -1
- 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: 5b24a4c6e3a4b0fac490634f87c07b44d18a8b22
|
4
|
+
data.tar.gz: 2998dcb6f40bfcc4ed2443a8161677e0cc668bb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2140e0f606001221f316c86db74f79bdeb819108b20433d3089b0891ddc882d0bc799e1e391c950a224a8ac7cd5fcb658c96cecefd0dc808d40102d47bd21cf3
|
7
|
+
data.tar.gz: 7cd5adf6327286fd21c886ecc5f3817901a8b4b40cce5fbafd3b66e3ec410f35c1eadefedba8d3a0813f46279a1053928a954d95960acad4bde4e4f76296b1cf
|
@@ -24,7 +24,18 @@ class CircleCI::Project
|
|
24
24
|
private
|
25
25
|
|
26
26
|
def fetch_artifacts
|
27
|
-
|
27
|
+
# To support Circle 2.0
|
28
|
+
build_info = CircleCI::Client.instance.get "#{api_path}", filter: 'successful', branch: branch ? branch : 'master', has_artifacts: true
|
29
|
+
|
30
|
+
build_num = 'latest' # circle version 1.0
|
31
|
+
|
32
|
+
if build_info.first['previous_successful_build']['build_num']
|
33
|
+
build_num = build_info.first['previous_successful_build']['build_num']
|
34
|
+
end
|
35
|
+
|
36
|
+
puts "Using Build: #{build_num}"
|
37
|
+
|
38
|
+
artifact_hashes = CircleCI::Client.instance.get "#{api_path}/#{build_num}/artifacts", filter: 'successful', branch: branch ? branch : 'master'
|
28
39
|
artifact_hashes.collect { |artifact_hash|
|
29
40
|
CircleCI::Artifact.new artifact_hash
|
30
41
|
}
|
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
|
+
version: 1.4.0
|
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:
|
12
|
+
date: 2018-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mina
|