README.md in nano-store-0.6.2 vs README.md in nano-store-0.6.3
- old
+ new
@@ -31,11 +31,11 @@
Motion::Project::App.setup do |app|
app.name = 'myapp'
# Add the pod NanoStore to your project
app.pods do
- pod 'NanoStore', '~> 2.5.7'
+ pod 'NanoStore', '~> 2.6.0'
end
end
```
Now, you can use NanoStore in your app.
@@ -47,12 +47,16 @@
## Basic Usage
### Set default storage type
````ruby
-NanoStore.shared_store = NanoStore.store(:memory) # memory only db
-NanoStore.shared_store = NanoStore.store(:file, documents_path + "/nano.db") # persist the data
+# memory only db
+NanoStore.shared_store = NanoStore.store(:memory)
+
+# file based db
+documents_path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0]
+NanoStore.shared_store = NanoStore.store(:file, documents_path + "/nano.db")
````
### Define Model
````ruby
@@ -243,6 +247,6 @@
- Based on [NanoStore](https://github.com/tciuro/NanoStore) from Tito Ciuro, Webbo, L.L.C.
## License
-BSD License
\ No newline at end of file
+BSD License