fastlane-plugin-stream_actions 0.1.20 → 0.1.22

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: 21c9b1b5d590a8e3b41c1508a4051a19d2f89eb8f674d14c4edac519ba9c17e2
4
- data.tar.gz: 75fd43b5ee80a9b694015e0d2fcd0b36dd34f72b544afcb1ceabbe64d861f62d
3
+ metadata.gz: 63d6fb695b134805b742d829178bd76b7d9bb36a04cea9d7a13f421cfe583e88
4
+ data.tar.gz: a9da78fb05930fbb7e079e6a36f76cad67435e78f5927b86c6e71a0430f5a633
5
5
  SHA512:
6
- metadata.gz: f28b7f0465716bd78fab3bd4c9b0779c22aeb89970726fa938322042f423bfbdfda23d64c41cb02105bfbbb8e6b08e433c2a83852dc447e40f9317ede4794159
7
- data.tar.gz: e821f54636c5eed82ce77294ef494aa8f1ae02a7f0f111cd67ec93b786c7d4b64d1610d124240299e5d8782f1bf22b658b4a391916343367e33ab459c8c0df9b
6
+ metadata.gz: 623868e9cf26e424b6acab4d19b5b387d38f3485a2091269a635a739e47e2460f00c3cf86ce325f73bbe6f869d93ddf0bcd26f09a03cef892b0866d81d13d170
7
+ data.tar.gz: 5dc40cb04e94707274d790d3c4f545d0150dc4b79f574db681d83a02a41ca79fbf1bdb8c313ce4c24e19badd472cab665aeba073277220b25fb32bdba29e96a4
@@ -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[:endpoint]}")
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?
@@ -32,7 +32,7 @@ module Fastlane
32
32
  token: params[:token],
33
33
  path: '/launch',
34
34
  http_method: 'POST',
35
- body: body
35
+ request_body: body
36
36
  )['id']
37
37
 
38
38
  UI.success("Launch with id #{launch_id} created successfully 🎉")
@@ -9,7 +9,7 @@ module Fastlane
9
9
  token: params[:token],
10
10
  path: '/testcase',
11
11
  http_method: 'POST',
12
- body: body
12
+ request_body: body
13
13
  )['id']
14
14
 
15
15
  UI.success("Testcase with id #{testcase_id} created successfully 🎉")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = "0.1.20"
3
+ VERSION = "0.1.22"
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.20
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream