xcodeproj 1.2.0 → 1.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ca60747e446e5e585d290d9a504f06e4fee6019
4
- data.tar.gz: 727648b30f7b1a64960aad8729a652bb1e533e54
3
+ metadata.gz: e0c5baea015a74f760845e1088a8248cea2a4e9a
4
+ data.tar.gz: f2304115edad58e7babba2267ce0155f83415552
5
5
  SHA512:
6
- metadata.gz: 3ff953b6a376b57e49c109720f1c48310647081d8cdebac8df33508a9cf0145b4888aae9c9357df1fbd61ecd367fa25ad3795f2e274461326736123a881a64ca
7
- data.tar.gz: 2d0918aaa5872e7b963509f06bed07d886cff04c493247c427e7eca691df2a59345791cc828492d5ad1755c40afac24c42adc1ff5af1701c82eac47dab2d1509
6
+ metadata.gz: 58bf0a3f1696676cea1bcd991207b57e954a6aa77a216aa35a58c4a56e86c1804189cc676d8add8c1e811710314c3cbb2f66635522c1bb25514c4515aa274284
7
+ data.tar.gz: 34f5300506484186ea25e7b6720dc1c84339579adefa28f380d6c25b6db02c4a458fd232be25058a7998777da5dae22acc5a5413b46f8bc4f43e0f6260d08bba
@@ -106,23 +106,24 @@ module Xcodeproj
106
106
  # @return [Hash] The uniform type identifier of various product types.
107
107
  #
108
108
  PRODUCT_TYPE_UTI = {
109
- :application => 'com.apple.product-type.application',
110
- :framework => 'com.apple.product-type.framework',
111
- :dynamic_library => 'com.apple.product-type.library.dynamic',
112
- :static_library => 'com.apple.product-type.library.static',
113
- :bundle => 'com.apple.product-type.bundle',
114
- :octest_bundle => 'com.apple.product-type.bundle',
115
- :unit_test_bundle => 'com.apple.product-type.bundle.unit-test',
116
- :ui_test_bundle => 'com.apple.product-type.bundle.ui-testing',
117
- :app_extension => 'com.apple.product-type.app-extension',
118
- :command_line_tool => 'com.apple.product-type.tool',
119
- :watch_app => 'com.apple.product-type.application.watchapp',
120
- :watch2_app => 'com.apple.product-type.application.watchapp2',
121
- :watch_extension => 'com.apple.product-type.watchkit-extension',
122
- :watch2_extension => 'com.apple.product-type.watchkit2-extension',
123
- :tv_extension => 'com.apple.product-type.tv-app-extension',
124
- :messages_extension => 'com.apple.product-type.app-extension.messages',
125
- :sticker_pack => 'com.apple.product-type.app-extension.messages-sticker-pack',
109
+ :application => 'com.apple.product-type.application',
110
+ :framework => 'com.apple.product-type.framework',
111
+ :dynamic_library => 'com.apple.product-type.library.dynamic',
112
+ :static_library => 'com.apple.product-type.library.static',
113
+ :bundle => 'com.apple.product-type.bundle',
114
+ :octest_bundle => 'com.apple.product-type.bundle',
115
+ :unit_test_bundle => 'com.apple.product-type.bundle.unit-test',
116
+ :ui_test_bundle => 'com.apple.product-type.bundle.ui-testing',
117
+ :app_extension => 'com.apple.product-type.app-extension',
118
+ :command_line_tool => 'com.apple.product-type.tool',
119
+ :watch_app => 'com.apple.product-type.application.watchapp',
120
+ :watch2_app => 'com.apple.product-type.application.watchapp2',
121
+ :watch_extension => 'com.apple.product-type.watchkit-extension',
122
+ :watch2_extension => 'com.apple.product-type.watchkit2-extension',
123
+ :tv_extension => 'com.apple.product-type.tv-app-extension',
124
+ :messages_application => 'com.apple.product-type.application.messages',
125
+ :messages_extension => 'com.apple.product-type.app-extension.messages',
126
+ :sticker_pack => 'com.apple.product-type.app-extension.messages-sticker-pack',
126
127
  }.freeze
127
128
 
128
129
  # @return [Hash] The extensions or the various product UTIs.
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '1.2.0'.freeze unless defined? Xcodeproj::VERSION
4
+ VERSION = '1.3.0'.freeze unless defined? Xcodeproj::VERSION
5
5
  end
@@ -556,7 +556,7 @@ module Xcodeproj
556
556
  def host_targets_for_embedded_target(embedded_target)
557
557
  native_targets.select do |native_target|
558
558
  ((embedded_target.uuid != native_target.uuid) &&
559
- (native_target.dependencies.map(&:target).map(&:uuid).include? embedded_target.uuid))
559
+ (native_target.dependencies.map(&:native_target_uuid).include? embedded_target.uuid))
560
560
  end
561
561
  end
562
562
 
@@ -39,6 +39,17 @@ module Xcodeproj
39
39
  return target_proxy.remote_info if target_proxy
40
40
  end
41
41
 
42
+ # @return [String] uuid of the target, if the dependency
43
+ # is a native target, otherwise the uuid of the
44
+ # target in the sub-project if the dependency is
45
+ # a target proxy
46
+ #
47
+ def native_target_uuid
48
+ return target.uuid if target
49
+ return target_proxy.remote_global_id_string if target_proxy
50
+ raise 'Expected target or target_proxy, from which to fetch a uuid'
51
+ end
52
+
42
53
  # @note This override is necessary because Xcode allows for circular
43
54
  # target dependencies.
44
55
  #
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: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-11 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.6.6
151
+ rubygems_version: 2.4.5.1
152
152
  signing_key:
153
153
  specification_version: 3
154
154
  summary: Create and modify Xcode projects from Ruby.