xcodeproj 0.24.0 → 0.24.1

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
  SHA1:
3
- metadata.gz: 5724a3e3cb2b1913f237022c11277c66c0bf32bc
4
- data.tar.gz: b0bfc425a1c68e5d260dc3f3b45df5a03d479ca3
3
+ metadata.gz: e2ce59e9bc1fcd8555fe5c05da10dd3cb997cfa4
4
+ data.tar.gz: b5773e697609ae9a4b497a0f991ca4cd3561bdeb
5
5
  SHA512:
6
- metadata.gz: 11bad35703123c93d69dae1b88676b9534cdeacf4a11492c5fe12de3fb039aed5a9f4136c12319f7e1382025a05ec211573bb4f2ef10177331137042a9c36b35
7
- data.tar.gz: a99f49f21b18873cd489ce6d38932094bbfd3ab68499ef70993a394994740f47216f3270463658bc25a710fdb9a19d28e6b0dd91f69ca45265bc07fdea22f9fc
6
+ metadata.gz: 16c8cb156aa7c9bf1719aa6c8c4635988b5ac815791247cfb4dbd128d466a219bddc04796f319ef04134f4a967b037e6f15ab5f6de2d1919b30e5a3a6b7d3d37
7
+ data.tar.gz: 7cb2a84fa807b7ea112a83595d57381e0271b1bfdf6c9ef08590d3d961bb40744daffb2492d337034091c9a87f784015e4f883c7d6c2e3f9965fbe041b6ea5ae
@@ -4,23 +4,26 @@ module Xcodeproj
4
4
  module Constants
5
5
  # @return [String] The last known iOS SDK (stable).
6
6
  #
7
- LAST_KNOWN_IOS_SDK = '7.1'
7
+ LAST_KNOWN_IOS_SDK = '8.3'
8
8
 
9
9
  # @return [String] The last known OS X SDK (stable).
10
10
  #
11
- LAST_KNOWN_OSX_SDK = '10.9'
11
+ LAST_KNOWN_OSX_SDK = '10.10'
12
12
 
13
13
  # @return [String] The last known archive version to Xcodeproj.
14
14
  #
15
15
  LAST_KNOWN_ARCHIVE_VERSION = 1
16
16
 
17
+ # @return [String] The default object version for Xcodeproj.
18
+ DEFAULT_OBJECT_VERSION = 46
19
+
17
20
  # @return [String] The last known object version to Xcodeproj.
18
21
  #
19
- LAST_KNOWN_OBJECT_VERSION = 46
22
+ LAST_KNOWN_OBJECT_VERSION = 47
20
23
 
21
24
  # @return [String] The last known object version to Xcodeproj.
22
25
  #
23
- LAST_UPGRADE_CHECK = '0510'
26
+ LAST_UPGRADE_CHECK = '0640'
24
27
 
25
28
  # @return [Hash] The all the known ISAs grouped by superclass.
26
29
  #
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '0.24.0' unless defined? Xcodeproj::VERSION
4
+ VERSION = '0.24.1' unless defined? Xcodeproj::VERSION
5
5
  end
@@ -48,17 +48,20 @@ module Xcodeproj
48
48
  # The path provided will be expanded to an absolute path.
49
49
  # @param [Bool] skip_initialization
50
50
  # Wether the project should be initialized from scratch.
51
+ # @param [Int] object_version
52
+ # Object version to use for serialization, defaults to Xcode 3.2 compatible.
51
53
  #
52
54
  # @example Creating a project
53
55
  # Project.new("path/to/Project.xcodeproj")
54
56
  #
55
- def initialize(path, skip_initialization = false)
57
+ def initialize(path, skip_initialization = false, object_version = Constants::DEFAULT_OBJECT_VERSION)
56
58
  @path = Pathname.new(path).expand_path
57
59
  @objects_by_uuid = {}
58
60
  @generated_uuids = []
59
61
  @available_uuids = []
60
62
  unless skip_initialization
61
63
  initialize_from_scratch
64
+ @object_version = object_version.to_s
62
65
  end
63
66
  unless skip_initialization.is_a?(TrueClass) || skip_initialization.is_a?(FalseClass)
64
67
  raise ArgumentError, '[Xcodeproj] Initialization parameter expected to ' \
@@ -163,7 +166,6 @@ module Xcodeproj
163
166
  #
164
167
  def initialize_from_scratch
165
168
  @archive_version = Constants::LAST_KNOWN_ARCHIVE_VERSION.to_s
166
- @object_version = Constants::LAST_KNOWN_OBJECT_VERSION.to_s
167
169
  @classes = {}
168
170
 
169
171
  root_object.remove_referrer(self) if root_object
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcodeproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.24.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-18 00:00:00.000000000 Z
11
+ date: 2015-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport