Skip to content

Commit

Permalink
Rename generated project from ui to ib
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 16, 2012
1 parent df5aa56 commit 496640f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -16,3 +16,4 @@ test/tmp
test/version_tmp
tmp
ui.xcodeproj
ib.xcodeproj
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -107,7 +107,7 @@ end

Run `rake design` create Storyboard or nibs (put them in resources folder) and you will be able to bind outlets and actions to your ruby code.

**Note** : add ui.xcodeproj to your .gitignore
**Note** : add ib.xcodeproj to your .gitignore

# Sample app

Expand Down
6 changes: 3 additions & 3 deletions lib/ib/project.rb
Expand Up @@ -4,10 +4,10 @@ def write app_path = "app", resources_path = "resources", pods_headers_path = "v
target = project.targets.new_static_library(:ios, 'ui')

resources = project.groups.new('path' => resources_path, 'name' => 'Resources')
support = project.groups.new('name' => 'Supporting Files', 'path' => 'ui.xcodeproj')
support = project.groups.new('name' => 'Supporting Files', 'path' => 'ib.xcodeproj')
pods = project.groups.new('name' => 'Pods')

IB::Generator.new.write(app_path, "ui.xcodeproj")
IB::Generator.new.write(app_path, "ib.xcodeproj")
support.files.new 'path' => 'Stubs.h', 'sourceTree' => '<group>'

path = Pathname.new("Stubs.m")
Expand Down Expand Up @@ -42,6 +42,6 @@ def write app_path = "app", resources_path = "resources", pods_headers_path = "v
target.frameworks_build_phases.first << file
end

project.save_as("ui.xcodeproj")
project.save_as("ib.xcodeproj")
end
end

0 comments on commit 496640f

Please sign in to comment.