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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a5499ea34bcb9b38735cb01457645d2241e7984
4
- data.tar.gz: c0f019e55c361cc126a490db5f626afdf31f7f86
3
+ metadata.gz: c615d122fa60724f5b3e1c5d3502b40139222e60
4
+ data.tar.gz: 165e828e3f38c2b26a1bff3cfb11d764ddbaa68a
5
5
  SHA512:
6
- metadata.gz: 4fae9c66dfb2152f0a79ac99016eb57a9f66704941ea3082f96b1ab32540e4918e62435c1dd063eb64216dccf31382dfc8192aa38d4668fbc2727fbeb21c8783
7
- data.tar.gz: 9f20addb2913815d7b0bc036a8d7870a8da2664777e5af3b49fa1319fea35d11bd67bd97ff48ba597c4c1edbbe4bd1fe51c05fc368032c2e3fef609bcd8b9e7e
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
 
@@ -1,6 +1,10 @@
1
1
  require "flexquery_datastore/version"
2
2
  require "data_mapper"
3
3
 
4
- DataMapper::Logger.new($stdout, :debug) if ENV['LOG_DATASTORE_QUERIES']
5
- DataMapper.setup(:default, ENV['DATASTORE_POSTGRES_URL'])
6
- Dir[File.dirname(__FILE__) + '/flexquery_datastore/models/*.rb'].each {|file| require file }
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
@@ -1,3 +1,3 @@
1
1
  module FlexqueryDatastore
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  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.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-17 00:00:00.000000000 Z
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