xcodeproj 0.7.1 → 0.8.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: 83e6bf6b11e996e68a074e5af25a00831f545ee6
4
- data.tar.gz: 4980d635c9662a3b452c176a17f341945c3fc93d
3
+ metadata.gz: 97d8e4a22727dedcf6fdb5519a3e6fd750f460cd
4
+ data.tar.gz: 58f5c265c6296a779af208542a4b653a1d1b2a5e
5
5
  SHA512:
6
- metadata.gz: 5f2739f78c34031a6dd82463ba6217b95c8db14f6aefd3a687025424f35333a3ace56d378949dc0f45b730edc06850351969c43177ee38a693843a9ba81a7058
7
- data.tar.gz: 7771e126db7c22b4c9ba2e66f414ea27e5a19a8e2c82eae683b58b6bc6529e8e7397a21a3fbecb4f67df0f09262659ada473bf0584a708588b9ec26390a180b8
6
+ metadata.gz: 7413a13df962717a8563f8e5c5fd1247d159afd52cb8ae96e268f93a74e1baf22e0250741f7434c8619181ff4263aed1724139d642fe70c171990fcf7ad6e732
7
+ data.tar.gz: 8eb8612c99b268da6da7aab894719b1feabdae35d647a970cf67b52df74dfa3f3bcc611716df54416af0fd272a64609a3a407a3f7e889d3fbf59da50b7c7ba72
data/lib/xcodeproj.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
- VERSION = '0.7.1' unless defined? Xcodeproj::VERSION
2
+ VERSION = '0.8.0' unless defined? Xcodeproj::VERSION
3
3
 
4
4
  class PlainInformative < StandardError
5
5
  end
@@ -71,8 +71,13 @@ module Xcodeproj
71
71
  'framework' => 'wrapper.framework',
72
72
  'h' => 'sourcecode.c.h',
73
73
  'm' => 'sourcecode.c.objc',
74
+ 'pch' => 'sourcecode.c.h',
74
75
  'xcconfig' => 'text.xcconfig',
75
76
  'xcdatamodel' => 'wrapper.xcdatamodel',
77
+ 'xib' => 'file.xib',
78
+ 'sh' => 'text.script.sh',
79
+ 'plist' => 'text.plist.xml',
80
+ 'markdown' => 'text',
76
81
  }.freeze
77
82
 
78
83
  # @return [Hash] The uniform type identifier of various product types.
@@ -18,7 +18,7 @@ module Xcodeproj
18
18
  # where `:value` can be `Public`, `Private`, or nil
19
19
  # (Protected).
20
20
  #
21
- attribute :settings, Hash, {}
21
+ attribute :settings, Hash
22
22
 
23
23
  # @return [PBXFileReference] the file that to build.
24
24
  #
@@ -121,10 +121,9 @@ module Xcodeproj
121
121
  #
122
122
  # @return [PBXFileReference] the new file reference.
123
123
  #
124
- def new_file(path, sub_group_path = nil)
124
+ def new_file(path, sub_group_path = nil, set_name = true)
125
125
  file = project.new(PBXFileReference)
126
126
  file.path = path.to_s
127
- file.name = file.pathname.basename.to_s
128
127
  file.update_last_known_file_type
129
128
 
130
129
  target = find_subpath(sub_group_path, true)
@@ -269,10 +268,8 @@ module Xcodeproj
269
268
  -1
270
269
  elsif x.is_a?(PBXFileReference) && y.is_a?(PBXGroup)
271
270
  1
272
- elsif x.respond_to?(:name) && y.respond_to?(:name)
273
- x.name <=> y.name
274
271
  else
275
- 0
272
+ x.display_name <=> y.display_name
276
273
  end
277
274
  end
278
275
  end
@@ -56,11 +56,11 @@ module Xcodeproj
56
56
 
57
57
  # @return [String] the directory of the project.
58
58
  #
59
- attribute :project_dir_path, String
59
+ attribute :project_dir_path, String, ''
60
60
 
61
61
  # @return [String] the root of the project.
62
62
  #
63
- attribute :project_root, String
63
+ attribute :project_root, String, ''
64
64
 
65
65
  # @return [Array<ObjectDictionary>] any reference to other projects.
66
66
  #
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.7.1
4
+ version: 0.8.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-07-01 00:00:00.000000000 Z
11
+ date: 2013-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport