app-info 1.1.0 → 1.1.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: 348142dbbeecec1ec30e820e2ec8c37a5d9be66ebc5926e5d733614c3a810147
4
- data.tar.gz: a0d411d78587fc3a83d83d1b077d0c4662742eb5dee1860a95d32b7296cb560a
3
+ metadata.gz: 793a068c529256dde69cf03cca101166d5b243e9c0e10d7a00b2356abfc4496c
4
+ data.tar.gz: 1ded82e082abf6d096e29ebbfb120d3edb1beaa77a44b834c10eebee5ac9cf05
5
5
  SHA512:
6
- metadata.gz: acf5cee8ba9187a39709a8dd0c7bab31f501d04265b563a2b419b28a1e4352509fb290127ad37eb368eca741c309067fef6ba80b4a6152991bdf30f3425cd669
7
- data.tar.gz: f911bc65aa41ebc8b4dadf2f3d765a81b1205207fb770b68ba931a28d858f0e77cd5808ff9c6faaf09c986d00b52b463b70fd470d3876ae4aa5d318191feacc3
6
+ metadata.gz: 9f90c3648d3bbedeb62695b874d9047d50d2b9538a60d4a186c37b287fc16950fdabe9a687b34fd7440ed337a0a9f2198d6f914cbac0fd5ee7d90cb2ebd0363d
7
+ data.tar.gz: 5ad5fc23c5ff8e30aadfa204567d09629f8b2628e357aa83f75aa49788591017daa6e08de0e5895ebcf2d0e5bbfd3da7669267c9b6629e7721ca72b58d60b228
@@ -19,6 +19,7 @@ module AppInfo
19
19
  def identifier
20
20
  info.try(:[], 'CFBundleIdentifier')
21
21
  end
22
+ alias bundle_id identifier
22
23
 
23
24
  def name
24
25
  display_name || bundle_name
@@ -100,6 +101,12 @@ module AppInfo
100
101
  end
101
102
  end
102
103
 
104
+ def [](key)
105
+ info.try(:[], key.to_s)
106
+ end
107
+
108
+ private
109
+
103
110
  def info
104
111
  @info ||= CFPropertyList.native_types(CFPropertyList::List.new(file: info_path).value)
105
112
  end
@@ -108,10 +115,6 @@ module AppInfo
108
115
  File.join(@app_path, 'Info.plist')
109
116
  end
110
117
 
111
- alias bundle_id identifier
112
-
113
- private
114
-
115
118
  def icons_root_path
116
119
  iphone = 'CFBundleIcons'.freeze
117
120
  ipad = 'CFBundleIcons~ipad'.freeze
@@ -1,3 +1,3 @@
1
1
  module AppInfo
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  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: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - icyleaf
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-17 00:00:00.000000000 Z
11
+ date: 2019-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: CFPropertyList