volt-mongo 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff97d5ab7532abf7e6542c4653a5a225764d7485
4
- data.tar.gz: 50ce3f2e837ede6bc6ebc498a0c230d12a1af0ae
3
+ metadata.gz: 43063074686dca2266c780c50fcbe0433b8e406e
4
+ data.tar.gz: c2ebd5819f1fbd43d7143c59c058ecd008681084
5
5
  SHA512:
6
- metadata.gz: 8c29a45ec0db090fd79f69192f94af854159f61a9afd8b91a68ad913901533d9fe8286b7671818392fcda090cdb1746fcbeada15a886a197e1c5ce9d457cebe1
7
- data.tar.gz: a47ef4a98b5eb70088edfe29d30d4c02fe31597f6d624d53be99c73ed5f3bae90b3d07086f568adec3a08fca4a8fe50e54f6f7cbb8f913a6cca80605566b70d4
6
+ metadata.gz: 9b90bb5875a5693e6f9ad5009eff4d6456ef728c859690874c4a0c1219bcc07870772bf7933876bc3e2ef55b57eb43b2735d3c2bc3807bb1a1e19ad6cb042ed0
7
+ data.tar.gz: 9bee73448f9b6b923e880f0cc05fd93aa99a55d30e35e77ef80ca9fc250c4ef30a912268be161e9f2878d2043893220ebfb40f1529e6682ceca49dae97af0bf6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -1,4 +1,4 @@
1
- require 'mongo/config/initializers/boot'
1
+ # require 'mongo/config/initializers/boot'
2
2
  module Mongo
3
3
  class MainController < Volt::ModelController
4
4
  end
@@ -71,6 +71,10 @@ module Volt
71
71
  end
72
72
 
73
73
  def query(collection, query)
74
+ if ENV['DB_LOG'] && collection.to_s != 'active_volt_instances'
75
+ Volt.logger.info("Query: #{collection}: #{query.inspect}")
76
+ end
77
+
74
78
  allowed_methods = %w(find skip limit sort)
75
79
 
76
80
  result = db[collection]
data/volt-mongo.gemspec CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency 'mongo', '~> 1.9.0'
22
+ spec.add_dependency 'mongo', '~> 1.12.0'
23
23
  spec.add_development_dependency "rake"
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-mongo
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
  - Ryan Stout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-14 00:00:00.000000000 Z
11
+ date: 2015-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongo
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.9.0
19
+ version: 1.12.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.9.0
26
+ version: 1.12.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement