Permalink
Browse files

refactor, add readme

  • Loading branch information...
1 parent de8cca1 commit 0943b0f63376982c8e0b43b16531251df00dd1cd @siuying committed May 9, 2012
View
@@ -4,6 +4,25 @@ A wrapper for using NanoStore in RubyMotion.
Status: Work in progress. API subject to change.
+## Installation
+
+Add BubbleWrap and NanoStore as a git submodule of your RubyMotion project:
+
+ git clone https://github.com/mattetti/BubbleWrap.git vendor/BubbleWrap
+ git clone https://github.com/siuying/NanoStoreInMotion.git vendor/NanoStoreInMotion
+
+Add the lib path to your project 'Rakefile'
+
+```ruby
+Motion::Project::App.setup do |app|
+ app.name = 'myapp'
+ app.files += Dir.glob(File.join(app.project_dir, 'vendor/BubbleWrap/lib/**/*.rb'))
+ app.files += Dir.glob(File.join(app.project_dir, 'vendor/NanoStoreInMotion/lib/**/*.rb'))
+end
+```
+
+Now, you can use NanoStore in your app.
+
## Usage
### Define Model
View
@@ -5,7 +5,10 @@ require 'motion-cocoapods'
Motion::Project::App.setup do |app|
# Use `rake config' to see complete project settings.
app.name = 'NanoStoreDemo'
+
app.files += Dir.glob(File.join(app.project_dir, 'vendor/BubbleWrap/lib/**/*.rb'))
+ app.files += Dir.glob(File.join(app.project_dir, 'lib/**/*.rb'))
+
app.pods do
dependency 'NanoStore'
end
File renamed without changes.
File renamed without changes.

0 comments on commit 0943b0f

Please sign in to comment.