mina-circle 2.0.0 → 2.0.1
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 +5 -5
- data/lib/mina-circle/circle-ci/build.rb +1 -1
- data/lib/mina-circle/helpers.rb +5 -0
- data/lib/mina-circle/version.rb +1 -1
- metadata +21 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 3d74061e3e7b564e9e64f33d37499a7689a59e2b87295e5d9daa105d32bcdb6a
|
|
4
|
+
data.tar.gz: a16346b86f5fd2220ace7b88b2056e9cf862a24b4a5ff5a602bae53dcbaac9b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 244468e559eef0982a4c0edbde2b2c831747977cf6a35acf2d0ac1341263dc4013d1ba4dbfa499df9baeb68bcd7d60271035bfc9d58c0126c95fc0cc636ab213
|
|
7
|
+
data.tar.gz: 4dad1f59a2cf15c69f526b19650cac309facd42a10fc7249897f6cd8448dc3fda880cf8dc0c6ea2fb6b976a357e3893d88f57f03ee914b5e4f3cae4e839792f2
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
class CircleCI::Build
|
|
2
2
|
attr_reader :job_name, :build_number, :status, :project
|
|
3
3
|
def initialize(hash, project)
|
|
4
|
-
@job_name = hash
|
|
4
|
+
@job_name = hash.dig 'workflows', 'job_name'
|
|
5
5
|
@build_number = hash['build_num']
|
|
6
6
|
@status = hash['status']
|
|
7
7
|
@project = project
|
data/lib/mina-circle/helpers.rb
CHANGED
|
@@ -14,6 +14,11 @@ module MinaCircle
|
|
|
14
14
|
.select { |build| build.status == 'success' && build.job_name == settings[:circleci_job_name] }
|
|
15
15
|
.sort { |a, b| a.build_number <=> b.build_number }
|
|
16
16
|
|
|
17
|
+
if successful_for_job.empty?
|
|
18
|
+
STDERR.puts 'No successful builds for this branch and job name'
|
|
19
|
+
exit 1
|
|
20
|
+
end
|
|
21
|
+
|
|
17
22
|
build_artifacts = successful_for_job.last.artifacts
|
|
18
23
|
|
|
19
24
|
deploy_artifact = build_artifacts.find { |artifact| artifact.filename == settings[:circleci_artifact] }
|
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: 2.0.
|
|
4
|
+
version: 2.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Patrick Simpson
|
|
@@ -9,68 +9,68 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-
|
|
12
|
+
date: 2019-06-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mina
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
|
17
17
|
requirements:
|
|
18
|
-
- - "~>"
|
|
19
|
-
- !ruby/object:Gem::Version
|
|
20
|
-
version: '0.3'
|
|
21
18
|
- - ">="
|
|
22
19
|
- !ruby/object:Gem::Version
|
|
23
20
|
version: 0.3.0
|
|
21
|
+
- - "~>"
|
|
22
|
+
- !ruby/object:Gem::Version
|
|
23
|
+
version: '0.3'
|
|
24
24
|
type: :runtime
|
|
25
25
|
prerelease: false
|
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
|
27
27
|
requirements:
|
|
28
|
-
- - "~>"
|
|
29
|
-
- !ruby/object:Gem::Version
|
|
30
|
-
version: '0.3'
|
|
31
28
|
- - ">="
|
|
32
29
|
- !ruby/object:Gem::Version
|
|
33
30
|
version: 0.3.0
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0.3'
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: rake
|
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '10.4'
|
|
41
38
|
- - ">="
|
|
42
39
|
- !ruby/object:Gem::Version
|
|
43
40
|
version: 10.4.0
|
|
41
|
+
- - "~>"
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: '10.4'
|
|
44
44
|
type: :development
|
|
45
45
|
prerelease: false
|
|
46
46
|
version_requirements: !ruby/object:Gem::Requirement
|
|
47
47
|
requirements:
|
|
48
|
-
- - "~>"
|
|
49
|
-
- !ruby/object:Gem::Version
|
|
50
|
-
version: '10.4'
|
|
51
48
|
- - ">="
|
|
52
49
|
- !ruby/object:Gem::Version
|
|
53
50
|
version: 10.4.0
|
|
51
|
+
- - "~>"
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '10.4'
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: minitest
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
|
-
- - "~>"
|
|
59
|
-
- !ruby/object:Gem::Version
|
|
60
|
-
version: '5.8'
|
|
61
58
|
- - ">="
|
|
62
59
|
- !ruby/object:Gem::Version
|
|
63
60
|
version: 5.8.0
|
|
61
|
+
- - "~>"
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '5.8'
|
|
64
64
|
type: :development
|
|
65
65
|
prerelease: false
|
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
|
68
|
-
- - "~>"
|
|
69
|
-
- !ruby/object:Gem::Version
|
|
70
|
-
version: '5.8'
|
|
71
68
|
- - ">="
|
|
72
69
|
- !ruby/object:Gem::Version
|
|
73
70
|
version: 5.8.0
|
|
71
|
+
- - "~>"
|
|
72
|
+
- !ruby/object:Gem::Version
|
|
73
|
+
version: '5.8'
|
|
74
74
|
description: Deploy without dependancies using mina and CircleCI.
|
|
75
75
|
email:
|
|
76
76
|
- patrick@heysparkbox.com
|
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
109
109
|
version: '0'
|
|
110
110
|
requirements: []
|
|
111
111
|
rubyforge_project:
|
|
112
|
-
rubygems_version: 2.
|
|
112
|
+
rubygems_version: 2.7.9
|
|
113
113
|
signing_key:
|
|
114
114
|
specification_version: 4
|
|
115
115
|
summary: Deploy your application from artifacts produced by CircleCI
|