Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename generated project from ui to ib

  • Loading branch information...
commit 496640f2f86963954fb8203a03d75a1894c33dec 1 parent df5aa56
@yury yury authored
Showing with 5 additions and 4 deletions.
  1. +1 −0  .gitignore
  2. +1 −1  README.md
  3. +3 −3 lib/ib/project.rb
View
1  .gitignore
@@ -16,3 +16,4 @@ test/tmp
test/version_tmp
tmp
ui.xcodeproj
+ib.xcodeproj
View
2  README.md
@@ -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
View
6 lib/ib/project.rb
@@ -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")
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.