flexquery_datastore 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -0
- data/flexquery_datastore-0.1.1.gem +0 -0
- data/lib/flexquery_datastore.rb +7 -3
- data/lib/flexquery_datastore/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c615d122fa60724f5b3e1c5d3502b40139222e60
|
4
|
+
data.tar.gz: 165e828e3f38c2b26a1bff3cfb11d764ddbaa68a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 064df7df746784c31acfcb2cb8577c50c1b9aec007c0861c4b0b354c88637eb4af54a6635435ba06c753bb040844baf9a99384310bb8b639b29cb22d3705a247
|
7
|
+
data.tar.gz: bd3c5a228d1c31f9c39e77e6ba331f2a0a0e24859fab0a0ea158a2ef51dc4c1eada2d4844171666a188b97ca4feb02ec03f2446a050b93e63efce4e65000a229
|
data/README.md
CHANGED
@@ -36,6 +36,11 @@ Optionally, you can set DataMapper to log all sql queries generated.
|
|
36
36
|
```ruby
|
37
37
|
LOG_DATASTORE_QUERIES=true
|
38
38
|
```
|
39
|
+
|
40
|
+
Before you can read from your DataStore database you need to run a setup method.
|
41
|
+
```ruby
|
42
|
+
DataStore::setup
|
43
|
+
```
|
39
44
|
### Available Classes and Associations
|
40
45
|
The following are the classes and associations available in this gem. All have been namespaced with DataStore::
|
41
46
|
|
Binary file
|
data/lib/flexquery_datastore.rb
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
require "flexquery_datastore/version"
|
2
2
|
require "data_mapper"
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
module DataStore
|
5
|
+
def self.setup
|
6
|
+
DataMapper::Logger.new($stdout, :debug) if ENV['LOG_DATASTORE_QUERIES']
|
7
|
+
DataMapper.setup(:default, ENV['DATASTORE_POSTGRES_URL'])
|
8
|
+
Dir[File.dirname(__FILE__) + '/flexquery_datastore/models/*.rb'].each {|file| require file }
|
9
|
+
end
|
10
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexquery_datastore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eli Shkurkin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- bin/console
|
101
101
|
- bin/setup
|
102
102
|
- flexquery_datastore-0.1.0.gem
|
103
|
+
- flexquery_datastore-0.1.1.gem
|
103
104
|
- flexquery_datastore.gemspec
|
104
105
|
- lib/flexquery_datastore.rb
|
105
106
|
- lib/flexquery_datastore/models/Category.rb
|