mina-circle 1.3.2 → 1.3.3

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: 1ebe0fc91eac815704540d8c562c30548babe091
4
- data.tar.gz: c9ba552f69fbc3b28322df0cd5a3dcfd319063c6
3
+ metadata.gz: 777fcf6e22ad53538814830bce86c8c5cb59fef7
4
+ data.tar.gz: 7c681ff21520a0812c1bb0101876870247f258d3
5
5
  SHA512:
6
- metadata.gz: d9afb3342f0c9b3d937e1922bcadf66af5b8d10830cb036f2bf2c12738c1bd697f305a56303d80fcc8b6f8c11239b3e1e3dc976a61657ac4ace4e9a3b83c4cdb
7
- data.tar.gz: 799e3c53775dd0ccfce79eaf54b3e8676cfbd013e13c3c2693b582ded62e94e6076ea2ebead624a0ab8a4962bba33d37ecb039496fe0f8b3a8bf8d6c8e4772e5
6
+ metadata.gz: 8704d80df5ee81c5a6dc870e5865c2171b935c3e38559dc8bfab22309a5f90130e0b005224cae88f702790cf2f547c0c8e256141e318991540a9c75f03e59709
7
+ data.tar.gz: f8033a765089f0ddc8e25a7acc222090e1a1fcb1be220dcbd7c8d10ece9cd53f597cfa0a0eab07767ef737b0f1eb561397634a35b5844f5913d647b9deb3d769
@@ -14,6 +14,7 @@ class CircleCI::Client
14
14
  def get(path, params = {})
15
15
  uri = URI("#{BASE_URI}/#{path}")
16
16
  uri.query = URI.encode_www_form(params) unless params.empty?
17
+ print_str "Sending URL: #{uri}"
17
18
  request = Net::HTTP::Get.new uri
18
19
  request['Accept'] = 'application/json'
19
20
  request['Authorization'] = "Basic #{Base64.encode64(api_token).chomp}"
@@ -1,5 +1,3 @@
1
- extend MinaCircle::Helpers
2
- # # Mina CircleCI Build Artifact Deployment
3
1
  # Deploy builds from CircleCI's artifact library.
4
2
  #
5
3
  # require 'mina-circle'
@@ -23,7 +21,21 @@ set :artifact_source, :CircleCI
23
21
  namespace :mina_circle do
24
22
  desc 'Downloads and explodes the archive file containing the build'
25
23
  task :deploy do
26
- puts "[mina-circle] Fetching: #{circleci_artifact}"
24
+
25
+ if !circleci_artifact
26
+ print_error "[mina-circle] You must specify a `circleci_artifact`"
27
+ die
28
+ end
29
+ if !circleci_user
30
+ print_error "[mina-circle] You must specify a `circleci_user`"
31
+ die
32
+ end
33
+ if !circleci_project
34
+ print_error "[mina-circle] You must specify a `circleci_project`"
35
+ die
36
+ end
37
+
38
+ print_str "[mina-circle] Fetching: #{circleci_artifact}"
27
39
  queue echo_cmd("curl -o #{circleci_artifact} #{artifact_url}")
28
40
  queue echo_cmd("#{circleci_explode_command} #{circleci_artifact}")
29
41
  queue echo_cmd("rm #{circleci_artifact}")
@@ -1,3 +1,3 @@
1
1
  module MinaCircle
2
- VERSION = '1.3.2'
2
+ VERSION = '1.3.3'
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.2
4
+ version: 1.3.3
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: 2016-11-30 00:00:00.000000000 Z
12
+ date: 2017-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mina