mina-circle 0.1.0 → 1.0.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 +4 -4
- data/lib/mina-circle/helpers.rb +3 -1
- data/lib/mina-circle/tasks.rb +2 -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: 81d73b1ff165eaf193ab0d1653b391676d0b2ce3
|
|
4
|
+
data.tar.gz: dc915403c48c74f66b2d6e9d5085ef641bdd0301
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 657fbc44cb9a437846873d471c4ec9d8505f9fe207ccc726280a3f9cdb70aaf2a565de637f555b3d7d908e0c49f2af13ecd7a80ef4c9354289394e0d0ee0df67
|
|
7
|
+
data.tar.gz: 53f348c98b8b1d926079cf8754d85f3dbad6f9523c2a2676fe186510a947ad922b03774ef79e70173fa17b897e7037889f7272dbbab38bc81fe28685d1429008
|
data/lib/mina-circle/helpers.rb
CHANGED
|
@@ -12,7 +12,9 @@ module MinaCircle
|
|
|
12
12
|
base_uri = 'https://circleci.com/api/v1/project'
|
|
13
13
|
base_path = "#{circle_user}/#{circle_project}/tree/master"
|
|
14
14
|
url = "#{base_uri}/#{base_path}?circle-token=#{circle_token}&limit=1&filter=completed"
|
|
15
|
-
JSON.parse(open(url).read).first['build_num'].to_s
|
|
15
|
+
build_num = JSON.parse(open(url).read).first['build_num'].to_s
|
|
16
|
+
echo "[mina-circle] using build number: #{build_num}"
|
|
17
|
+
build_num
|
|
16
18
|
end
|
|
17
19
|
|
|
18
20
|
def build_url
|
data/lib/mina-circle/tasks.rb
CHANGED
|
@@ -19,7 +19,7 @@ extend MinaCircle::Helpers
|
|
|
19
19
|
# Name CircleCI calls your build archive
|
|
20
20
|
#
|
|
21
21
|
# ### circle_explode_command
|
|
22
|
-
# Command with options for decompressing the artifact archive
|
|
22
|
+
# Command with options for decompressing the artifact archive
|
|
23
23
|
|
|
24
24
|
set_default(:circle_token, parse_from_home_dir || fail('CircleCI token required'))
|
|
25
25
|
|
|
@@ -27,6 +27,7 @@ namespace :circleci do
|
|
|
27
27
|
|
|
28
28
|
desc 'Downloads and explodes the archive file containing the build'
|
|
29
29
|
task :deploy do
|
|
30
|
+
print "[mina-circle] Fetching: #{circle_artifact}"
|
|
30
31
|
queue "curl -o #{circle_artifact} #{build_url}"
|
|
31
32
|
queue "#{circle_explode_command} #{circle_artifact}"
|
|
32
33
|
end
|
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:
|
|
4
|
+
version: 1.0.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: 2015-
|
|
12
|
+
date: 2015-05-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: mina
|