mongo_request_logger 0.2.6 → 0.2.7

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: 53d796aa5a6db0352796bd9b46d084720365b2ba
4
- data.tar.gz: f558a7fb8110e323c44d6b654e80d3388a24b6c4
3
+ metadata.gz: 7bee44b6c8d96b9e6a214308f9509e5516b896db
4
+ data.tar.gz: 4546dd6af95b6367f3a65b316ef70bc5f229c31f
5
5
  SHA512:
6
- metadata.gz: 1804e0557babf3f86126f22a3046d3d16b992fd2f773453f9f4e8dbb5bd0edbcf3cce9541eb38d3521935bdd19c8bb0cd8987b019930e870bb82d197758f86fc
7
- data.tar.gz: e81f29301848770c59d1b9285ba21265d967704425ce60dbd89dd9a3c3b8cbca96c5aea5f122d34109596bf39f16f2c620291f2321e3ae040d1edf4c73335ba2
6
+ metadata.gz: 5cbc2ace680b82bd8afe5c82b0c7b7c1cefffb91ffd8906568a26b51e18d31e8ba2271b59b987f52d44040e3ddae9e2e4134ab414416991cf9525937b60b8a9b
7
+ data.tar.gz: 431ddf7e4c17c78ae9b2045ac08e40367dbe2986639b2442da51a8e1f471a0de57596dd9191b8b08bcb4e6f19e688ea44a55a43f73d673eb6d59612c07955cf7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.2.7
2
+
3
+ * Ensure that the collection is created on the primary node in a replica set, even if the session consistency is set to :eventual.
4
+
5
+ ## 0.2.6
6
+
7
+ * Handle forking with Unicorn and Passenger (Moped driver only).
8
+
1
9
  ## 0.2.5
2
10
 
3
11
  * Don't replace rack.errors -> that should be a standard IO stream.
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongo_request_logger (0.2.6)
5
- activesupport (> 3.0.0)
4
+ mongo_request_logger (0.2.7)
5
+ activesupport (~> 3.0)
6
6
  sinatra (>= 1.3.2)
7
7
  sinatra-contrib
8
8
 
@@ -12,7 +12,7 @@ GEM
12
12
  activesupport (3.2.13)
13
13
  i18n (= 0.6.1)
14
14
  multi_json (~> 1.0)
15
- backports (3.3.0)
15
+ backports (3.3.3)
16
16
  bson (1.8.5)
17
17
  bson_ext (1.8.5)
18
18
  bson (~> 1.8.5)
@@ -22,7 +22,7 @@ GEM
22
22
  mongo (1.8.5)
23
23
  bson (~> 1.8.5)
24
24
  moped (1.4.5)
25
- multi_json (1.7.2)
25
+ multi_json (1.7.7)
26
26
  rack (1.5.2)
27
27
  rack-protection (1.5.0)
28
28
  rack
@@ -1,8 +1,8 @@
1
1
  PATH
2
- remote: /home/ralf/src/request_logger
2
+ remote: /Users/john/src/mongo_request_logger
3
3
  specs:
4
- mongo_request_logger (0.2.6)
5
- activesupport (> 3.0.0)
4
+ mongo_request_logger (0.2.7)
5
+ activesupport (~> 3.0)
6
6
  sinatra (>= 1.3.2)
7
7
  sinatra-contrib
8
8
 
@@ -37,7 +37,7 @@ GEM
37
37
  i18n (= 0.6.1)
38
38
  multi_json (~> 1.0)
39
39
  arel (3.0.2)
40
- backports (3.3.0)
40
+ backports (3.3.3)
41
41
  bson (1.8.5)
42
42
  bson_ext (1.8.5)
43
43
  bson (~> 1.8.5)
@@ -1,8 +1,8 @@
1
1
  PATH
2
- remote: /home/ralf/src/request_logger
2
+ remote: /Users/john/src/mongo_request_logger
3
3
  specs:
4
- mongo_request_logger (0.2.6)
5
- activesupport (> 3.0.0)
4
+ mongo_request_logger (0.2.7)
5
+ activesupport (~> 3.0)
6
6
  sinatra (>= 1.3.2)
7
7
  sinatra-contrib
8
8
 
@@ -12,7 +12,7 @@ GEM
12
12
  activesupport (3.2.13)
13
13
  i18n (= 0.6.1)
14
14
  multi_json (~> 1.0)
15
- backports (3.3.0)
15
+ backports (3.3.3)
16
16
  bson (1.8.5)
17
17
  bson_ext (1.8.5)
18
18
  bson (~> 1.8.5)
@@ -22,7 +22,7 @@ GEM
22
22
  mongo (1.8.5)
23
23
  bson (~> 1.8.5)
24
24
  moped (1.4.5)
25
- multi_json (1.7.2)
25
+ multi_json (1.7.7)
26
26
  rack (1.5.2)
27
27
  rack-protection (1.5.0)
28
28
  rack
@@ -50,7 +50,9 @@ module MongoRequestLogger
50
50
  end
51
51
 
52
52
  def create_collection
53
- @connection.command(create: collection_name, capped: true, size: @configuration['capsize'].to_i*1024*1024)
53
+ @connection.cluster.with_primary do |node|
54
+ node.command(@configuration['database'], {create: collection_name, capped: true, size: @configuration['capsize'].to_i*1024*1024})
55
+ end
54
56
  end
55
57
 
56
58
  def create_index field
@@ -1,3 +1,3 @@
1
1
  module MongoRequestLogger
2
- VERSION = '0.2.6'
2
+ VERSION = '0.2.7'
3
3
  end
@@ -20,5 +20,5 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.add_dependency 'sinatra', '>= 1.3.2'
22
22
  gem.add_dependency 'sinatra-contrib'
23
- gem.add_dependency 'activesupport', '> 3.0.0'
23
+ gem.add_dependency 'activesupport', '~> 3.0'
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_request_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Embark Mobile
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-27 00:00:00.000000000 Z
11
+ date: 2013-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>'
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 3.0.0
47
+ version: '3.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>'
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 3.0.0
54
+ version: '3.0'
55
55
  description: Request logger for Rack apps
56
56
  email:
57
57
  - info@embarkmobile.com
@@ -427,7 +427,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
427
427
  version: '0'
428
428
  requirements: []
429
429
  rubyforge_project:
430
- rubygems_version: 2.0.3
430
+ rubygems_version: 2.0.2
431
431
  signing_key:
432
432
  specification_version: 4
433
433
  summary: Structured logger and log viewer for Rack (including Rails) requests