fastlane-plugin-circle_ci 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df159dcb5e7196261f50c734d884710f7914b100117215c6f15ffa21083c1ba8
4
- data.tar.gz: 5ade2668f0c01b0db8d55a2aec8ace417a4d54bc7bf983ae25bad26e93acbbb3
3
+ metadata.gz: 310a5f9bf0095968820fde6642c4112fc1d6bc449dc9e38b0b408abcd3320613
4
+ data.tar.gz: 88089e5f6e51984ae7b8d13545e23bdc5bbe1bf92dc2c550f6d32b90faadfb64
5
5
  SHA512:
6
- metadata.gz: f1f1d15f56fd15b4d134c451e7c64146c44e276d8b6cbeb243daf651b48720ce5f37db5c75f9de91be3f18ef845a598cfb7faf8cfbf1494081f87e0323830213
7
- data.tar.gz: 0c87e5b6b4c66be23dcbd33e13bc3bccc275b1bbea1b0dc02c4611a3c04c3030a9a40233c8ab60b7a0e8adc1be6a862b0f9ca9b3f5b42d3f81d64131b33bd6f4
6
+ metadata.gz: 94b9b68f1e9bf5535b08d116d483f07d622c3af2951592f7396432c86bcbe0a331f3cc15d346da6c89058744884d8a79f92bb4348795169eb8063718735c99cf
7
+ data.tar.gz: 2d35a6e23b7f2f63bb3c6a3e07530e68c705c68c914a0c703d9742d61d83594d1426e3baec1fcdd4666b1a9e3a04e67ffd270528d0886990bfcf2ce4c2c85100
@@ -19,7 +19,7 @@ module Fastlane
19
19
  api_url = "api/v1.1/project/#{vcs}/#{name}/#{project}/#{build}/artifacts"
20
20
  curl_command = "curl -H 'Content-Type: application/json' -H 'Circle-Token: #{token}' -s #{uri}/#{api_url}"
21
21
 
22
- result = Actions::sh("#{curl_command}", log: false)
22
+ result = Helper::CircleCiHelper.execute(curl_command)
23
23
 
24
24
  Actions.lane_context[SharedValues::GET_CIRCLE_CI_ARTIFACTS_RESULT] = result
25
25
  result
@@ -19,7 +19,7 @@ module Fastlane
19
19
  api_url = "api/v1.1/project/#{vcs}/#{name}/#{project}/#{build}"
20
20
  curl_command = "curl -H 'Content-Type: application/json' -H 'Circle-Token: #{token}' -s #{uri}/#{api_url}"
21
21
 
22
- result = Actions::sh("#{curl_command}", log: false)
22
+ result = Helper::CircleCiHelper.execute(curl_command)
23
23
 
24
24
  Actions.lane_context[SharedValues::GET_CIRCLE_CI_BUILD_STATUS_RESULT] = result
25
25
  result
@@ -25,7 +25,7 @@ module Fastlane
25
25
  api_url = "api/v1.1/project/#{vcs}/#{name}/#{project}/tree/#{branch}"
26
26
  curl_command = "curl -X POST -u #{token}: -H 'Content-Type: application/json' -d '{\"build_parameters\": #{parameters}}' -s #{uri}/#{api_url}"
27
27
 
28
- result = Actions::sh("#{curl_command}", log: false)
28
+ result = Helper::CircleCiHelper.execute(curl_command)
29
29
 
30
30
  Actions.lane_context[SharedValues::TRIGGER_CIRCLE_CI_JOB_RESULT] = result
31
31
  result
@@ -5,11 +5,11 @@ module Fastlane
5
5
 
6
6
  module Helper
7
7
  class CircleCiHelper
8
- # class methods that you define here become available in your action
9
- # as `Helper::CircleCiHelper.your_method`
10
- #
11
- def self.show_message
12
- UI.message("Hello from the circle_ci plugin helper!")
8
+ def self.execute(curl_command)
9
+ response = Fastlane::Actions::sh("#{curl_command}", log: false)
10
+
11
+ require 'json'
12
+ JSON.parse(response) || {}
13
13
  end
14
14
  end
15
15
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module CircleCi
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-circle_ci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manish Rathi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-05 00:00:00.000000000 Z
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry