fastlane-plugin-stream_actions 0.1.21 → 0.1.23

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
  SHA256:
3
- metadata.gz: 1a131bf535364c7ba5981fe5202b3f4643d3da279eb57f241d9b5468ce3ec0eb
4
- data.tar.gz: d2ac3b4fdffbb6d0b0c0f8e5eec3acf735cf076f3b4208e19485600f855f3ac0
3
+ metadata.gz: f99ec615b021134cc7809c41f2bf64c2ba8e52343002d06eb5f26252a7375331
4
+ data.tar.gz: 3b48230a283ce9b78e2161c1630f63dae49ce749119488cf8fa9f1ad6cbf423d
5
5
  SHA512:
6
- metadata.gz: 84465194c5f4fcdcd82bc03804eb70616b6da1010ef1648bd70020c52f366e8c0222b7c383b9c6d7837cd506e05b7f245ccd83c2ba166cd928375c56f1f29167
7
- data.tar.gz: 470c7a95b117f448ac9753fbd6e08a8c1250501a0c7cba98e67ad96d51bce5a9009138fb230430cc928fc42c10630f60c8c02e866911514b40cb2de5ce892b88
6
+ metadata.gz: 6ab0a343f368dc693c0f2c167eec55b99cf6557428fa928469907da572c89e1037bd9e66ad00f7fe63274455b769b4b04562feb78ea7c536b04cdcbe28595a5d
7
+ data.tar.gz: fb90466f4372b5fc504204e070adc69ef698ac0ba6647d83dcb3db233d85085cd7bfbe7193ad7a37ee35e0a92769eb6289d5a42e28540b87aeed50655c8c6977
@@ -2,9 +2,9 @@ module Fastlane
2
2
  module Actions
3
3
  class AllureApiAction < Action
4
4
  def self.run(params)
5
- url = URI("#{params[:url]}/api/rs/#{options[:endpoint]}")
5
+ url = URI("#{params[:url]}/api/rs/#{params[:path]}")
6
6
  request =
7
- case options[:http_method].upcase
7
+ case params[:http_method].upcase
8
8
  when 'GET'
9
9
  Net::HTTP::Get.new(url)
10
10
  when 'POST'
@@ -20,7 +20,7 @@ module Fastlane
20
20
 
21
21
  request['authorization'] = "Api-Token #{params[:token]}"
22
22
  request['content-type'] = 'application/json'
23
- request.body = options[:request_body] if options[:request_body]
23
+ request.body = params[:request_body] if params[:request_body]
24
24
 
25
25
  response_body = http.request(request).read_body
26
26
  JSON.parse(response_body) if !response_body.nil? && !response_body.empty?
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = "0.1.21"
3
+ VERSION = "0.1.23"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream