fastlane-plugin-rustore_developer 0.2.11 → 0.3.0

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: ade9978261f53fe28ab63b9a0f81d5f36197ab693af8ae67cd54982ffe4cf8d1
4
- data.tar.gz: c1936f548ab7ce2b8c598f892117d3309e583bb2db69b4310ef879ed12ea5746
3
+ metadata.gz: 53144470a71b21979fa3d285a238a4bf012e75adf2478522f0d11673222101a0
4
+ data.tar.gz: aa28c2818008cecbe35eaacdfeeae9819bed0dbfbea30edfaacee200ae6040b9
5
5
  SHA512:
6
- metadata.gz: afbf5d6788c8612c89d067ce9d4400c68c4c0925e0647a6c716c3e8e34fabf07a2289ae146f282ac797e840c074a8ac1ab727f61e3b4740098c59731c331a5a2
7
- data.tar.gz: 8972b68f2645e596d760d4c44fc49880be36ee74952f82fa24cc35637020ed2ee74c12afb053a92daad7141d30ed99439579a948481b29bfd8ce6e3c6d8ed47b
6
+ metadata.gz: 59ef5487b15dcb403401925f073417b323f5cd09bc1689db078fa0c7ab41d0cc31acf9b3d88d04c2cb337bd065f966e552a99a3f5a21a183c79819f12a66361c
7
+ data.tar.gz: b2ed13df9417768795bced7903c3619979ea2628aeec8d0248dcad38911d59fc42bda174ba6102ac442b51c087b065bef390ee5ed6f08c34638f023999a44bb6
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
@@ -9,7 +9,7 @@ module Fastlane
9
9
  class RustoreDeveloperAuthAction < Action
10
10
 
11
11
  def self.run(params)
12
- token = Helper::RustoreDeveloperHelper.getAccessToken(params[:company_id], params[:key_path])
12
+ token = Helper::RustoreDeveloperHelper.getAccessToken(params[:key_id], params[:key_path])
13
13
  Actions.lane_context[SharedValues::RUSTORE_DEVELOPER_ACCESS_TOKEN] = token
14
14
  return token
15
15
  end
@@ -33,9 +33,9 @@ module Fastlane
33
33
 
34
34
  def self.available_options
35
35
  [
36
- FastlaneCore::ConfigItem.new(key: :company_id,
37
- env_name: "RUSTORE_COMPANY_ID",
38
- description: "Company ID",
36
+ FastlaneCore::ConfigItem.new(key: :key_id,
37
+ env_name: "RUSTORE_KEY_ID",
38
+ description: "Key ID",
39
39
  optional: false,
40
40
  type: String),
41
41
  FastlaneCore::ConfigItem.new(key: :key_path,
@@ -56,7 +56,7 @@ module Fastlane
56
56
  type: String),
57
57
  FastlaneCore::ConfigItem.new(key: :news,
58
58
  description: "What's new listing",
59
- optional: false,
59
+ optional: true,
60
60
  type: String),
61
61
  ]
62
62
  end
@@ -14,24 +14,24 @@ module Fastlane
14
14
  # return '2023-08-23T09:00:32.939+03:00'
15
15
  end
16
16
 
17
- def self.getSignatureEncoded(company_id, timestamp, key_path)
17
+ def self.getSignatureEncoded(key_id, timestamp, key_path)
18
18
  private_key = OpenSSL::PKey.read(File.read(key_path))
19
- data = company_id + timestamp
19
+ data = key_id + timestamp
20
20
  signature = private_key.sign("SHA512", data)
21
21
  encoded = Base64.strict_encode64(signature)
22
22
  return encoded
23
23
  end
24
24
 
25
- def self.getAccessToken(company_id, key_path)
25
+ def self.getAccessToken(key_id, key_path)
26
26
  UI.important("Getting access token ...")
27
27
  timestamp = getTimestamp()
28
- sign = getSignatureEncoded(company_id, timestamp, key_path)
28
+ sign = getSignatureEncoded(key_id, timestamp, key_path)
29
29
  uri = URI(BASE_URL + '/public/auth/')
30
30
  http = Net::HTTP.new(uri.host, uri.port)
31
31
  http.use_ssl = true
32
32
  req = Net::HTTP::Post.new(uri.path)
33
33
  req["Content-Type"] = "application/json"
34
- data = {'companyId': company_id, 'timestamp': timestamp, 'signature': sign}
34
+ data = {'keyId': key_id, 'timestamp': timestamp, 'signature': sign}
35
35
  req.body = data.to_json
36
36
  res = http.request(req)
37
37
  result_json = JSON.parse(res.body)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module RustoreDeveloper
3
- VERSION = "0.2.11"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-rustore_developer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - RimiX2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-04 00:00:00.000000000 Z
11
+ date: 2024-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  requirements: []
190
- rubygems_version: 3.1.6
190
+ rubygems_version: 3.3.15
191
191
  signing_key:
192
192
  specification_version: 4
193
193
  summary: RUSTORE beta API integration plugin