ib 0.4.9 → 0.5.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: f742a208567118fa1ec3d7a6e6141a1e77a7d937
4
- data.tar.gz: fa5fc995153368ac2664e0707c30248ebc57a43d
3
+ metadata.gz: 970354de7e8a0a2e965f215673de3a7c00d659a0
4
+ data.tar.gz: 1c6d8deff6094f753953df2c79c2d6f1ada3423f
5
5
  SHA512:
6
- metadata.gz: b9a0ce78b45aed3a6e7f86c41eab5119b6f01f385a03dc70997d7b0839a591e141b1a3c92885e4c8b5c47af5451519c2889a0586f0313e7d8846568f92712b1f
7
- data.tar.gz: 6378290e1211ef16e97f627c0f8c1e428db092186ee8da99335c32cb252772c608dad83a2f275ba1e587ad807869fbfd0dceb50829b4b948feb35ab8c81cec31
6
+ metadata.gz: 00ad21b6fe42c935032d0e02bbcd88ffc855114741e0c339cc6193f76a5893e0fcedf127086cc6ea0f954481210aa91f68efbc9bffdb8eabb6fde0310188f374
7
+ data.tar.gz: c4d14336f5f46fa82e418c9578b0e64fb13dd39126fd76b1f04229d9300cdc1a18e1d9a87e671e49263d7febb1b722af7fb69969cf4a5ec56a19e7ec900ef570
data/README.md CHANGED
@@ -131,6 +131,17 @@ Everytime you make a change in your ruby files (like adding a new outlet or acti
131
131
 
132
132
  This gem parses your Ruby code and generates two Objective-c files (Stub.m and Stub.h) which are populated with the classes, methods and outlets you have defined. This is necessary for Interface Builder to bind outlets and actions to your code.
133
133
 
134
+ ### Warning
135
+
136
+ Various versions of the `ib` gem are incompatible with advancing versions of Xcode. If you are not seeing your outlets and actions in Interface Builder, it's possible you have such a mismatch. Here's a way to find out if this might be true:
137
+
138
+ * Check the version of the gem by doing `gem list|grep ib` from the command line.
139
+ * Compare the version listed with that in the most current gem (assuming you are using a current version of Xcode). You can find this in `lib/ib/version.ib`
140
+
141
+ If you find your version of the `ib` gem is not current, try `bundle update ib`. If this does not resolve the problem, the conflict can be in required versions of Thor. For example, Guard requires a particular version of Thor and `ib` does not specify. You may find removing Guard will allow your bundle update to bring `ib` up to the current version.
142
+
143
+ > Further note: If you are working on a current app and are used to creating your views programmatically, read on. If you're an Interface Builder ninja, nevermind(tm). It is important that you set your File's Owner in Interface Builder *to the controller you are using*. Remember, *File's Owner*, not View. Next, drag the `View` outlet in File's owner to the view you should have by now created. This will reduce the traffic on Google looking up "how come I can't get my nib hooked up right?" And remember, because File's Owner is the controller, you will bind all outlets and actions to File's Owner, so look there for these magic thingies.
144
+
134
145
  # Sample app
135
146
 
136
147
  Here is [sample app](https://github.com/yury/ibsample)
data/lib/ib/project.rb CHANGED
@@ -109,6 +109,25 @@ class IB::Project
109
109
  DEFAULT_FRAMEWORKS.each do |framework|
110
110
  target.add_system_framework framework
111
111
  end
112
+
113
+ extra_frameworks.each do |framework|
114
+ add_extra_framework framework
115
+ end
116
+ end
117
+
118
+ def extra_frameworks
119
+ Motion::Project::App.config.vendor_projects.select { |vp| vp.opts[:ib] }
120
+ end
121
+
122
+ def add_extra_framework(framework)
123
+ framework_name = framework.path.split('/').last
124
+ framework_group = project.new_group(framework_name)
125
+ framework_group.path = File.join(project_path, framework.path)
126
+ framework_target = project.new_target(:framework, framework_name, platform)
127
+ Dir.glob("#{framework.path}/**/*.{h,m}") do |file|
128
+ file_ref = framework_group.new_file File.join(project_path, file)
129
+ framework_target.add_file_references([file_ref])
130
+ end
112
131
  end
113
132
 
114
133
  def ib_project_path
data/lib/ib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module IB
3
- VERSION = '0.4.9'
3
+ VERSION = '0.5.0'
4
4
  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.4.9
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Korolev
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-18 00:00:00.000000000 Z
12
+ date: 2014-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: xcodeproj