mina-circle 1.3.5 → 1.4.0

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: fe0e8ab7891689de6f7a84fcc3e68bedd34345c8
4
- data.tar.gz: cdde5e5c0d94844f5bda4f9ff28f93f1e9671922
3
+ metadata.gz: 5b24a4c6e3a4b0fac490634f87c07b44d18a8b22
4
+ data.tar.gz: 2998dcb6f40bfcc4ed2443a8161677e0cc668bb6
5
5
  SHA512:
6
- metadata.gz: 1985240691fd8810b349b42493209294897556beec5daa3760b1bf664666af3c949d865a38135d01137939206ab38efd1d2adb1709bcdfb01cad6c3e7f1fc582
7
- data.tar.gz: 44bc80029760072caeaa53bf8fa1b1063a6aed9ad5b8662f5bdd2c4c301e7485a645de1d302fc4c6cbefb5b30094a3ca4e78e03aacc2baabeadb05e6dbe6fc37
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
- artifact_hashes = CircleCI::Client.instance.get "#{api_path}/latest/artifacts", filter: 'successful', branch: branch ? branch : 'master'
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
  }
@@ -1,3 +1,3 @@
1
1
  module MinaCircle
2
- VERSION = '1.3.5'
2
+ VERSION = '1.4.0'
3
3
  end
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.3.5
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: 2017-09-05 00:00:00.000000000 Z
12
+ date: 2018-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mina