fastlane-plugin-app_info 0.5.1 → 0.5.2

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: 71469bee2fa19c249a86327d93c899b4cf159d3a065d27ba5251624814fe9185
4
- data.tar.gz: 6fa0b0575ada3377668f52aa1278847eec32825593f5fc89ab3b8d6e753077f2
3
+ metadata.gz: cf6ec1a91ce4659cca2e3ef7c061e8c5e669b6830bfa9993a632d067b4299f2a
4
+ data.tar.gz: 6e0c2257caa7ad083a70c01fb804caac49c5b1397602ba0ee3453675955c2afa
5
5
  SHA512:
6
- metadata.gz: 17139e9c9797161b1a4ed80cf67f06c5c6f50d893d1754abf5a7b4c9a12c0a49b0a66b2ead187e2186e3676bc1a881ec7926df912a1b8091eb0d90c397829f8a
7
- data.tar.gz: 393b389eb3fd57dd2a4542c5db1661e3ded1d6df033e9c53b7a080d1a18ca31d87ff4c4167aaa19dd6a83623e7a8fc461219aab7370373962e9d63bb172916d8
6
+ metadata.gz: 54405927aa32d6b56ca0eebced81c389c56b4a640a60cd95dc9d08b037b6377453719578e0a598792eb9f09746c45c3e9f4194039df049bb5b9ba2e4845f802e
7
+ data.tar.gz: a87b625bfb4a0f3c4a40fdca6c039295e6a20c3626b018e533f7652715dc100b83cb024149ab2cc694c11ef52dac25c4fb8e6776c2fda877db0f993323eaa888
@@ -32,7 +32,7 @@ module Fastlane
32
32
  obj[upcase(key)] = value
33
33
  end
34
34
  elsif app.os == 'Android'
35
- signs = app.signs.map { |f| f.path }
35
+ signs = app.signs.map(&:path)
36
36
  issuers = android_certificate_issuer(app)
37
37
  permissions = app.use_permissions
38
38
  features = app.use_features
@@ -52,7 +52,7 @@ module Fastlane
52
52
 
53
53
  def self.common_columns(app)
54
54
  COMMON_COLUMNS.each_with_object({}) do |key, hash|
55
- value = key == 'size' ? app.size(true) : app.send(key.to_sym)
55
+ value = key == 'size' ? app.size(human_size: true) : app.send(key.to_sym)
56
56
  hash[upcase(key)] = value
57
57
  end
58
58
  end
@@ -80,7 +80,14 @@ module Fastlane
80
80
  end
81
81
 
82
82
  def self.upcase(key)
83
- key == 'os' ? key.upcase : key.split('_').map(&:capitalize).join('')
83
+ return key.upcase if key == 'os'
84
+
85
+ str = key.dup
86
+ ['-', '_', '\s'].each do |s|
87
+ str = str.gsub(/(?:#{s}+)([a-z])/) { $1.upcase }
88
+ end
89
+
90
+ return str.gsub(/(\A|\s)([a-z])/) { $1 + $2.upcase }
84
91
  end
85
92
 
86
93
  def self.android_certificate_issuer(app)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AppInfo
3
- VERSION = '0.5.1'.freeze
3
+ VERSION = '0.5.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-app_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-09 00:00:00.000000000 Z
11
+ date: 2021-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: app-info
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.5.2
19
+ version: 2.6.5
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '3'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 2.5.2
29
+ version: 2.6.5
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '3'