xcodeproj 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,55 @@
1
+ module Xcodeproj
2
+ class Project
3
+ module XCProjHelper
4
+ class << self
5
+
6
+ # @return [Bool] Whether the xcproj tool is available in the path of
7
+ # the user.
8
+ #
9
+ def available?
10
+ `which xcproj`
11
+ $?.exitstatus.zero?
12
+ end
13
+
14
+ # Touches the project at the given path if the xcproj tool is
15
+ # available.
16
+ #
17
+ # @return [void]
18
+ #
19
+ def touch(path)
20
+ if available?
21
+ command = "xcproj --project #{path} touch"
22
+ success, output = execute(command)
23
+ unless success
24
+ message = "xcproj failed to touch the project. Check whether you installation of xcproj is functional.\n\n"
25
+ message << command << "\n"
26
+ message << output
27
+ UI.warn(message)
28
+ end
29
+ end
30
+ end
31
+
32
+ private
33
+
34
+ # @!group Private Helpers
35
+ #---------------------------------------------------------------------#
36
+
37
+ # Executes the given command redirecting the standard error to the
38
+ # standard output.
39
+ #
40
+ # @return [Array<Bool, String>] A tuple where the firs element
41
+ # indicates whether the exit status of the command was 0 and the
42
+ # second the output printed by the command.
43
+ #
44
+ def execute(command)
45
+ output = `#{command} 2>&1`
46
+ success = $?.exitstatus.zero?
47
+ [success, output]
48
+ end
49
+
50
+ #---------------------------------------------------------------------#
51
+
52
+ end
53
+ end
54
+ end
55
+ end
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.9.0
4
+ version: 0.10.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: 2013-08-02 00:00:00.000000000 Z
11
+ date: 2013-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.13
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.13
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: colored
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -55,6 +55,7 @@ files:
55
55
  - lib/xcodeproj/config.rb
56
56
  - lib/xcodeproj/constants.rb
57
57
  - lib/xcodeproj/differ.rb
58
+ - lib/xcodeproj/gem_version.rb
58
59
  - lib/xcodeproj/helper.rb
59
60
  - lib/xcodeproj/project/object/build_configuration.rb
60
61
  - lib/xcodeproj/project/object/build_file.rb
@@ -64,6 +65,8 @@ files:
64
65
  - lib/xcodeproj/project/object/container_item_proxy.rb
65
66
  - lib/xcodeproj/project/object/file_reference.rb
66
67
  - lib/xcodeproj/project/object/group.rb
68
+ - lib/xcodeproj/project/object/helpers/file_references_factory.rb
69
+ - lib/xcodeproj/project/object/helpers/groupable_helper.rb
67
70
  - lib/xcodeproj/project/object/native_target.rb
68
71
  - lib/xcodeproj/project/object/reference_proxy.rb
69
72
  - lib/xcodeproj/project/object/root_object.rb
@@ -73,6 +76,7 @@ files:
73
76
  - lib/xcodeproj/project/object_dictionary.rb
74
77
  - lib/xcodeproj/project/object_list.rb
75
78
  - lib/xcodeproj/project/project_helper.rb
79
+ - lib/xcodeproj/project/xcproj_helper.rb
76
80
  - lib/xcodeproj/project.rb
77
81
  - lib/xcodeproj/scheme.rb
78
82
  - lib/xcodeproj/user_interface.rb