xcodeproj 0.19.1 → 0.19.2
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 +4 -4
- data/README.md +7 -0
- data/lib/xcodeproj/gem_version.rb +1 -1
- data/lib/xcodeproj/plist_helper.rb +6 -14
- data/lib/xcodeproj/project.rb +1 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1129b473d86da3499713744a267d7d8f5ffd9efb
|
4
|
+
data.tar.gz: ab2240c06b99dc3cccdfc3efaa471425b06d6ee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca89358ff49c9a8688a25ab5bcfef6c43903879b68f3757fef972a60a8d16b2fa96c025dee010323abb0c90053466d3f2dad066c3b43f4cfa823f3af9bc6bad6
|
7
|
+
data.tar.gz: 563f05cce3f9828c5e9869f585ebd775d5c43ad3492735a3544bf5bd05ea6201aea3c3007cb75c431bccef265186ace283b9bd167f3eb135586dc5cfe4bdf073
|
data/README.md
CHANGED
@@ -20,6 +20,13 @@ by performing the following command:
|
|
20
20
|
|
21
21
|
$ [sudo] gem install xcodeproj
|
22
22
|
|
23
|
+
To improve the performance of Xcodeproj it is possible to install [LibXML Ruby](http://xml4r.github.io/libxml-ruby/):
|
24
|
+
|
25
|
+
$ [sudo] gem install libxml-ruby
|
26
|
+
|
27
|
+
To make Xcodeproj output projects in the same format of Xcode (deprecated ASCII Plists format) in order to reduce the SCM noise it is possible to install [xcproj](https://github.com/0xced/xcproj):
|
28
|
+
|
29
|
+
$ brew install xcproj
|
23
30
|
|
24
31
|
## Collaborate
|
25
32
|
|
@@ -8,6 +8,8 @@ module Xcodeproj
|
|
8
8
|
# other faster strategies, if their dependencies are available.
|
9
9
|
#
|
10
10
|
module PlistHelper
|
11
|
+
PLUTIL_BIN = '/usr/bin/plutil'
|
12
|
+
|
11
13
|
class << self
|
12
14
|
# Serializes a hash as an XML property list file.
|
13
15
|
#
|
@@ -91,7 +93,7 @@ module Xcodeproj
|
|
91
93
|
# @note This method was extracted to simplify testing.
|
92
94
|
#
|
93
95
|
def plutil_contents(path)
|
94
|
-
`#{
|
96
|
+
`#{PLUTIL_BIN} -convert xml1 "#{path}" -o -`
|
95
97
|
end
|
96
98
|
|
97
99
|
# Saves a property to an XML file via the plutil tool.
|
@@ -103,7 +105,7 @@ module Xcodeproj
|
|
103
105
|
# The path of the file.
|
104
106
|
#
|
105
107
|
def plutil_save(contents, path)
|
106
|
-
Open3.popen3("#{
|
108
|
+
Open3.popen3("#{PLUTIL_BIN} -convert xml1 -o '#{path}' -") do |stdin, stdout, _stderr|
|
107
109
|
stdin.puts(contents)
|
108
110
|
stdin.close
|
109
111
|
stdout.read # Make Ruby 1.8.7 wait
|
@@ -113,18 +115,8 @@ module Xcodeproj
|
|
113
115
|
# @return [Bool] Whether the `plutil` tool is available.
|
114
116
|
#
|
115
117
|
def plutil_available?
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
# @return [String] The path of the `plutil` tool.
|
120
|
-
# @return [Nil] In case the plutil is not found.
|
121
|
-
#
|
122
|
-
def plutil_bin
|
123
|
-
unless @bin
|
124
|
-
bin = `which plutil`.strip
|
125
|
-
@bin = bin if $?.success?
|
126
|
-
end
|
127
|
-
@bin
|
118
|
+
@plutil_available = File.executable?(PLUTIL_BIN) if @plutil_available.nil?
|
119
|
+
@plutil_available
|
128
120
|
end
|
129
121
|
end
|
130
122
|
end
|
data/lib/xcodeproj/project.rb
CHANGED
@@ -686,6 +686,7 @@ module Xcodeproj
|
|
686
686
|
def recreate_user_schemes(visible = true)
|
687
687
|
schemes_dir = XCScheme.user_data_dir(path)
|
688
688
|
FileUtils.rm_rf(schemes_dir)
|
689
|
+
FileUtils.mkdir_p(schemes_dir)
|
689
690
|
|
690
691
|
xcschememanagement = {}
|
691
692
|
xcschememanagement['SchemeUserState'] = {}
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcodeproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.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
26
|
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: colored
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: CFPropertyList
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '2.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '2.2'
|
55
55
|
description: Xcodeproj lets you create and modify Xcode projects from Ruby. Script
|
@@ -115,12 +115,12 @@ require_paths:
|
|
115
115
|
- lib
|
116
116
|
required_ruby_version: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
|
-
- -
|
118
|
+
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|