app-info 2.7.0.beta2 → 2.7.0.beta5

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: '09f29a3f5c7efa6e39d589cfc5d4a168d5267bb88ebf9434a377dbe1ba9d6326'
4
- data.tar.gz: 45bb2036a6777b043ab85b399d0559f92f144750d98097ea3ad6007ffed39c0d
3
+ metadata.gz: 87af7ee3238f0c866c3d4ad7110bba74ae1950e28f1619049ec52470253bf45a
4
+ data.tar.gz: 8eeaaa20c0f5e4036e2c2138f51f42554d0e5b73dc340c9a71ea9ce344d0c55a
5
5
  SHA512:
6
- metadata.gz: 99af334d2500db7df891232986366e390943a11689b593f0b827edeabc68fdc3df38b0c2d675c09282941f4f3870ad8afa6ee46c95b18acf1d40c41990698b19
7
- data.tar.gz: 45c1da2efa47617b4dccd315fb868097df4814492e6e9e6371082c9f84171ed493eb9de8449483a8d640e8b0d2a830f0840eff199e4a786ff937f8662b102240
6
+ metadata.gz: c61cf34da0123d9cd6e0df63f3f342d61858c3dfc9dfd8e57cfce7a18af9bae5fbc85b8a20e79a9e8b54a630b240105ce036b0f03c49fd96df8945fa472ae148
7
+ data.tar.gz: ae7f4064095ad2c1518095876532c7c6364a785209fefb9e8fbf1fa7c3fe02fe3027df20572db55b5fb72d8cdadd70e59738ec0458a3fd391c264b168f744ff5
data/CHANGELOG.md CHANGED
@@ -9,6 +9,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9
9
 
10
10
  > List all changes before release a new version.
11
11
 
12
+ ## [2.7.0.beta5] (2021-10-14)
13
+
14
+ ### Fixed
15
+
16
+ - Renamed methods of inflector (Conflicts with similar external methods, such like ActiveSupport Core Extensions)
17
+ - Keep same behavior methods between apk and aab
18
+
12
19
  ## [2.7.0.beta2] (2021-09-29)
13
20
 
14
21
  ### Fixed
@@ -197,7 +204,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
197
204
 
198
205
  - Updated dependency of CFPropertly list be a range between 2.3.4. (thanks @[cschroed](https://github.com/cschroed))
199
206
 
200
- [Unreleased]: https://github.com/icyleaf/app-info/compare/v2.7.0.beta2..HEAD
207
+ [Unreleased]: https://github.com/icyleaf/app-info/compare/v2.7.0.beta5..HEAD
208
+ [2.7.0.beta5]: https://github.com/icyleaf/app-info/compare/v2.7.0.beta2...v2.7.0.beta5
201
209
  [2.7.0.beta2]: https://github.com/icyleaf/app-info/compare/v2.7.0.beta1...v2.7.0.beta2
202
210
  [2.7.0.beta1]: https://github.com/icyleaf/app-info/compare/v2.6.5...v2.7.0.beta1
203
211
  [2.6.5]: https://github.com/icyleaf/app-info/compare/v2.6.4...v2.6.5
data/lib/app_info/aab.rb CHANGED
@@ -101,17 +101,15 @@ module AppInfo
101
101
  end
102
102
 
103
103
  def activities
104
- @activities ||= manifest.activities.map(&:name)
104
+ @activities ||= manifest.activities
105
105
  end
106
106
 
107
107
  def services
108
- @services ||= manifest.services.map(&:name)
108
+ @services ||= manifest.services
109
109
  end
110
110
 
111
111
  def components
112
- @components ||= manifest.components.transform_values do |child|
113
- child.map(&:name)
114
- end
112
+ @components ||= manifest.components.transform_values
115
113
  end
116
114
 
117
115
  def signs
@@ -2,7 +2,7 @@
2
2
 
3
3
  module AppInfo
4
4
  module Inflector
5
- def snakecase
5
+ def ai_snakecase
6
6
  gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
7
7
  .gsub(/([a-z\d])([A-Z])/, '\1_\2')
8
8
  .tr('-', '_')
@@ -11,7 +11,7 @@ module AppInfo
11
11
  .downcase
12
12
  end
13
13
 
14
- def camelcase(first_letter: :upper, separators: ['-', '_', '\s'])
14
+ def ai_camelcase(first_letter: :upper, separators: ['-', '_', '\s'])
15
15
  str = dup
16
16
 
17
17
  separators.each do |s|
@@ -112,13 +112,13 @@ module AppInfo
112
112
  def_delegators :info, :to_h
113
113
 
114
114
  def method_missing(method_name, *args, &block)
115
- info.try(:[], method_name.to_s.camelcase) ||
115
+ info.try(:[], method_name.to_s.ai_camelcase) ||
116
116
  info.send(method_name) ||
117
117
  super
118
118
  end
119
119
 
120
120
  def respond_to_missing?(method_name, *args)
121
- info.key?(method_name.to_s.camelcase) ||
121
+ info.key?(method_name.to_s.ai_camelcase) ||
122
122
  info.respond_to?(method_name) ||
123
123
  super
124
124
  end
@@ -212,13 +212,13 @@ module AppInfo
212
212
  end
213
213
 
214
214
  def method_missing(method_name, *args, &block)
215
- mobileprovision.try(:[], method_name.to_s.camelcase) ||
215
+ mobileprovision.try(:[], method_name.to_s.ai_camelcase) ||
216
216
  mobileprovision.send(method_name) ||
217
217
  super
218
218
  end
219
219
 
220
220
  def respond_to_missing?(method_name, *args)
221
- mobileprovision.key?(method_name.to_s.camelcase) ||
221
+ mobileprovision.key?(method_name.to_s.ai_camelcase) ||
222
222
  mobileprovision.respond_to?(method_name) ||
223
223
  super
224
224
  end
@@ -72,7 +72,7 @@ module AppInfo
72
72
  @attributes = element.attribute.each_with_object({}).each do |item, obj|
73
73
  node = Attribute.new(item)
74
74
 
75
- method_name = node.name.snakecase
75
+ method_name = node.name.ai_snakecase
76
76
  obj[method_name] = node
77
77
  define_instance_method(method_name, node.value)
78
78
  end
@@ -87,11 +87,11 @@ module AppInfo
87
87
  @children = element.child.each_with_object({}) do |item, obj|
88
88
  next unless item_element = item.element
89
89
 
90
- class_name = item_element.name.camelcase
90
+ class_name = item_element.name.ai_camelcase
91
91
  klass = create_class(class_name, Protobuf::Node, namespace: 'AppInfo::Protobuf::Manifest')
92
92
  node = klass.new(item)
93
93
 
94
- method_name = item_element.name.snakecase
94
+ method_name = item_element.name.ai_snakecase
95
95
  if UNIQUE_KEY.include?(method_name)
96
96
  obj[method_name] = node
97
97
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppInfo
4
- VERSION = '2.7.0.beta2'
4
+ VERSION = '2.7.0.beta5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app-info
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0.beta2
4
+ version: 2.7.0.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-29 00:00:00.000000000 Z
11
+ date: 2021-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList