xcodeproj 1.0.0 → 1.1.0

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: 4661a83a53151976f7e363d73feda6f24df578e0
4
- data.tar.gz: c9a08f7dca14cd343e14ab4bfbb0e2f46bbf89fd
3
+ metadata.gz: d0259d3fcd165b76b23b22fbd8a6e75b0aee2d21
4
+ data.tar.gz: acdb6e1ad6df583dc8a5eca2b810ed7341f246a4
5
5
  SHA512:
6
- metadata.gz: 45849f18963cedccdb3d56284f9f7b9ae4eb671750dce2acb138b3760072afdd116b293953b0a476b521df35a24e074c56d52a0b942425a384619b0aefdea6b5
7
- data.tar.gz: 0c32c169f15589f51712eec8ae8bf7f95f62781ba3e31eb20e38593768e89ed9d4ada6ecaec33d00be49b2224765710565af3517a509e21c385286a6f4eda850
6
+ metadata.gz: ad150ebf0f6b9fd198a443d590d70ff2ea5ba08b0df075cf1197d56ce4eb31334803ec130db4a53c1e86288fd136ce721bc3eefc2714d4f1c174fdc6c8915c10
7
+ data.tar.gz: 9ceb7e7978abad793e43b33843ffe7b9fa6f81dbdcfbf062521948738c8e4e011ea33e73681780ae912f1c0ef09b6802283664c0087ecfd0973653be5c578fc3
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '1.0.0'.freeze unless defined? Xcodeproj::VERSION
4
+ VERSION = '1.1.0'.freeze unless defined? Xcodeproj::VERSION
5
5
  end
@@ -419,9 +419,29 @@ module Xcodeproj
419
419
  # @return [Symbol] The type of the target expressed as a symbol.
420
420
  #
421
421
  def symbol_type
422
- pair = Constants::PRODUCT_TYPE_UTI.find { |_key, value| value == product_type }
423
- return nil if pair.nil?
424
- pair.first
422
+ Constants::PRODUCT_TYPE_UTI.key(product_type)
423
+ end
424
+
425
+ # @return [Boolean] Whether the target is a test target.
426
+ #
427
+ def test_target_type?
428
+ case symbol_type
429
+ when :octest_bundle, :unit_test_bundle, :ui_test_bundle
430
+ true
431
+ else
432
+ false
433
+ end
434
+ end
435
+
436
+ # @return [Boolean] Whether the target is an extension.
437
+ #
438
+ def extension_target_type?
439
+ case symbol_type
440
+ when :app_extension, :watch_extension, :watch2_extension, :tv_extension
441
+ true
442
+ else
443
+ false
444
+ end
425
445
  end
426
446
 
427
447
  # Adds source files to the target.
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.0.0
4
+ version: 1.1.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-05-10 00:00:00.000000000 Z
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport