ib 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/ib/project.rb +8 -1
  2. data/lib/ib/version.rb +1 -1
  3. metadata +3 -3
data/lib/ib/project.rb CHANGED
@@ -13,7 +13,14 @@ class IB::Project
13
13
 
14
14
  resource_exts = %W{xcdatamodeld png jpg jpeg storyboard xib lproj}
15
15
  Dir.glob("#{resources_path}/**/*.{#{resource_exts.join(",")}}") do |file|
16
- resources.files.new('path' => file)
16
+ file = file.gsub(/^#{resources_path}\//, '')
17
+ if file.end_with? ".xcdatamodeld"
18
+ obj = resources.groups.new('isa' => 'XCVersionGroup', 'path' => file, 'sourceTree' => '<group>', 'versionGroupType' => 'wrapper.xcdatamodel')
19
+ file = obj.files.new('path' => file.gsub(/xcdatamodeld$/, 'xcdatamodel'), 'sourceTree' => '<group>', 'lastKnownFileType' => 'wrapper.xcdatamodel')
20
+ obj.attributes['currentVersion'] = file.uuid
21
+ else
22
+ resources.files.new('path' => file, 'sourceTree' => '<group>')
23
+ end
17
24
  end
18
25
 
19
26
  Dir.glob("#{pods_headers_path}/**/*.h") do |file|
data/lib/ib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module IB
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -3368252777998978159
111
+ hash: 2688650702896177142
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: -3368252777998978159
120
+ hash: 2688650702896177142
121
121
  requirements: []
122
122
  rubyforge_project:
123
123
  rubygems_version: 1.8.24