bubble-wrap 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -4
- data/lib/bubble-wrap.rb +4 -0
- data/lib/bubble-wrap/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -8,22 +8,21 @@ A collection of helpers and wrappers used to wrap CocoaTouch code and provide mo
|
|
8
8
|
gem install bubble-wrap
|
9
9
|
```
|
10
10
|
|
11
|
-
|
11
|
+
## Setup
|
12
12
|
|
13
13
|
1. Edit the Rakefile of your RubyMotion project and add the following require line.
|
14
14
|
```ruby
|
15
15
|
require 'bubble-wrap'
|
16
16
|
```
|
17
|
-
|
18
17
|
2. Now, you can use BubbleWrap extension in your app:
|
19
|
-
|
18
|
+
```ruby
|
20
19
|
class AppDelegate
|
21
20
|
def application(application, didFinishLaunchingWithOptions:launchOptions)
|
22
21
|
puts "#{App.name} (#{documents_path})"
|
23
22
|
true
|
24
23
|
end
|
25
24
|
end
|
26
|
-
|
25
|
+
```
|
27
26
|
|
28
27
|
For a more complete list of helper/wrapper descriptions and more details, see the [wiki](https://github.com/mattetti/BubbleWrap/wiki).
|
29
28
|
|
data/lib/bubble-wrap.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
require "bubble-wrap/version"
|
2
2
|
|
3
|
+
unless defined?(Motion::Project::Config)
|
4
|
+
raise "This file must be required within a RubyMotion project Rakefile."
|
5
|
+
end
|
6
|
+
|
3
7
|
Motion::Project::App.setup do |app|
|
4
8
|
Dir.glob(File.join(File.dirname(__FILE__), 'bubble-wrap/*.rb')).each do |file|
|
5
9
|
app.files.unshift(file)
|
data/lib/bubble-wrap/version.rb
CHANGED