xcodebuilder 0.0.5 → 0.0.6
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.
- data/lib/xcode_builder/configuration.rb +12 -0
- metadata +4 -4
|
@@ -46,6 +46,18 @@ module XcodeBuilder
|
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
def bundle_id
|
|
50
|
+
# no plist is found, return a nil version
|
|
51
|
+
if (info_plist_path == nil) || (!File.exists? info_plist_path) then
|
|
52
|
+
return nil
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# read the plist and extract data
|
|
56
|
+
plist = CFPropertyList::List.new(:file => info_plist_path)
|
|
57
|
+
data = CFPropertyList.native_types(plist.value)
|
|
58
|
+
data["CFBundleIdentifier"]
|
|
59
|
+
end
|
|
60
|
+
|
|
49
61
|
def build_number
|
|
50
62
|
# no plist is found, return a nil version
|
|
51
63
|
if (info_plist_path == nil) || (!File.exists? info_plist_path) then
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xcodebuilder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.0.6
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Olivier Larivain
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2013-02-
|
|
18
|
+
date: 2013-02-13 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: CFPropertyList
|