fastlane-plugin-gs_project_flow_ios 0.4.8 → 0.4.9

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
  SHA1:
3
- metadata.gz: 5f7b4da9485447094393e70d2d8715078cd622fa
4
- data.tar.gz: 33fe10c8aad46bbcdfce62566a7e9308faa363b7
3
+ metadata.gz: 45136839673c9a91f21e10fdf49d87122df1e91a
4
+ data.tar.gz: b30eb94a44fb73ab1b4a117a27298bb23af6b2f2
5
5
  SHA512:
6
- metadata.gz: baabe789318cadc604dd55aa8db1a5fb65411a83a01293e6b47e31007d682998c3b1bb660cbb64ebfc0448d2813c88c720d8b5d9a7e3c1f0bb35745279c6428a
7
- data.tar.gz: 40484bddf850c5409b394629b08dcdf3ad9905932ed00ce722f192ee2d61d0306412e993dd0813dcdb4d1cdc064d5581e6a63c03551231e92d385ad5692cfbda
6
+ metadata.gz: 1d5eae29bc1bc663df0084a5a23666c33b3492fb05cb9686f8aab63b40e14857ca93344081c764301bba4f387ac4b5ca1a3bfe963c7fb6020f411bd23df95611
7
+ data.tar.gz: c4a2e425473d3cf754a873f874bf1f8dee785c983e5b0a016c53cb211220891e3065f53a239f7fe9d214cf9381aaa2c9f1938c12c743946551c03995b92530cd
@@ -0,0 +1,7 @@
1
+ module Spaceship
2
+ class GSBotClient < Spaceship::Client
3
+ def self.hostname
4
+ 'http://mobile.geo4.io/bot/releaseBuilder/'
5
+ end
6
+ end
7
+ end
@@ -20,6 +20,8 @@ module Fastlane
20
20
  end
21
21
  end
22
22
 
23
+
24
+
23
25
  class GsProjectFlowIosHelper
24
26
  # class methods that you define here become available in your action
25
27
  # as `Helper::GsProjectFlowIosHelper.your_method`
@@ -123,9 +125,18 @@ module Fastlane
123
125
 
124
126
 
125
127
  paramsJSON = params.to_json
126
- require 'json'
127
- Actions::ShAction.run(FastlaneCore::Configuration.create(Actions::ShAction.available_options,
128
- {command:"curl -X POST -H \"Content-Type: application/json\" -d '#{paramsJSON}' http://mobile.geo4.io/bot/releaseBuilder/jobStates"}))
128
+
129
+
130
+ client = Spaceship::GSBotClient.new
131
+ url = 'jobStates'
132
+ client.request(:post) do |req|
133
+ req.url url
134
+ req.body = paramsJSON
135
+ req.headers['Content-Type'] = 'application/json'
136
+ end
137
+
138
+ # Actions::ShAction.run(FastlaneCore::Configuration.create(Actions::ShAction.available_options,
139
+ # {command:"curl -X POST -H \"Content-Type: application/json\" -d '#{paramsJSON}' http://mobile.geo4.io/bot/releaseBuilder/jobStates"}))
129
140
  # sh "sh build_reporter.sh " + chat_id.to_s + " " + message
130
141
  # end
131
142
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GsProjectFlowIos
3
- VERSION = "0.4.8"
3
+ VERSION = "0.4.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-gs_project_flow_ios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Сергей Веселовский
@@ -107,6 +107,7 @@ files:
107
107
  - lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_external_runner_lane.rb
108
108
  - lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_rc_lane.rb
109
109
  - lib/fastlane/plugin/gs_project_flow_ios/actions/gs_execute_release_lane.rb
110
+ - lib/fastlane/plugin/gs_project_flow_ios/helper/gs_bot_client.rb
110
111
  - lib/fastlane/plugin/gs_project_flow_ios/helper/gs_project_flow_ios_helper.rb
111
112
  - lib/fastlane/plugin/gs_project_flow_ios/version.rb
112
113
  - lib/fastlane/plugin/gs_project_flow_ios.rb