mongo_request_logger 0.2.6 → 0.2.7
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/CHANGELOG.md +8 -0
- data/Gemfile.lock +4 -4
- data/gemfiles/sinatra1.3.gemfile.lock +4 -4
- data/gemfiles/sinatra1.4.gemfile.lock +5 -5
- data/lib/mongo_request_logger/adapters/moped.rb +3 -1
- data/lib/mongo_request_logger/version.rb +1 -1
- data/mongo_request_logger.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bee44b6c8d96b9e6a214308f9509e5516b896db
|
4
|
+
data.tar.gz: 4546dd6af95b6367f3a65b316ef70bc5f229c31f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
5
|
-
activesupport (
|
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.
|
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.
|
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: /
|
2
|
+
remote: /Users/john/src/mongo_request_logger
|
3
3
|
specs:
|
4
|
-
mongo_request_logger (0.2.
|
5
|
-
activesupport (
|
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.
|
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: /
|
2
|
+
remote: /Users/john/src/mongo_request_logger
|
3
3
|
specs:
|
4
|
-
mongo_request_logger (0.2.
|
5
|
-
activesupport (
|
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.
|
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.
|
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.
|
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
|
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.
|
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-
|
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
|
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
|
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.
|
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
|