newrelic_moped 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b11bf73d8b4ce82909d90697c6481a80631a7d74
4
- data.tar.gz: 07f5884074cad06f4763c71e8fd90e3a60913fda
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YWUwMDA0NDBlYjkzZjcyODA3OTI4NWZhYjEwMmVmMjUwNzVjMzdhYg==
5
+ data.tar.gz: !binary |-
6
+ OWE0NjQ4NTk2M2M3ZDRmZmIzZDYwZjlhYWNjZjkyZDk2YmJiMjM5Mg==
5
7
  SHA512:
6
- metadata.gz: a4e8c69ac7543dc3640bd1f962ce38e7e1d503d3b316f6ce2fea5f2c5c8bbaf61dac3d27a9ba23195b527c8aa0e3ef9dd5d009536d483d4e27ecfba843c8a83e
7
- data.tar.gz: 61cff8678283d9ff8eab4b10d59bc8e82d1ed99fef021a9ac3856c887e086c74a75015541fcbc54de5995f6ff4052faec920d6d20d871fcd00800877161ac963
8
+ metadata.gz: !binary |-
9
+ YjU2ZDk4MzdhN2MwN2RlOTNmOWNjNjUxZWRjNGI2NDNmYmQ2ZGVhMGNjZDJk
10
+ ZTQ5ZTBjNzJkNDEyNDc4M2Q3YTM2MzlhOWEyYWNhOWU4MmVlODFkOGMxZTI3
11
+ NzY3OWJlOGI0YWIyYmZkMTM0NjNlNjc2NWRjNGZkOWM5M2U2M2M=
12
+ data.tar.gz: !binary |-
13
+ ODZjNWNkOTdkZGQyYjgwZTRmNTU4ZWM4Y2RjMzVjYmE0NzdiNDRhZWIwMzhj
14
+ NjFhMWU0MjJiMzJiNjhmZDFjNWU2ODY0ZTBhZWMwZTk1MWU0MzdiMzFlMzU1
15
+ NTFiNDE0Y2I0MzRiMjNiZTVjMjQzNmJjYTEyYTA0MWQzNGRhNWU=
data/README.md CHANGED
@@ -16,6 +16,11 @@ Or install it yourself as:
16
16
 
17
17
  $ gem install newrelic_moped
18
18
 
19
+ ### Configuration
20
+
21
+ This gem does not require any specific configuration. Please follow general newrelic_rpm gem configuration:
22
+ https://github.com/newrelic/rpm/blob/master/newrelic.yml
23
+
19
24
  ## News
20
25
 
21
26
  There's no official place for news & updates yet but you can follow @sbartholomew on Twitter for announcements.
@@ -30,9 +30,9 @@ module NewRelic
30
30
  log_statement = operations.first.log_inspect.encode("UTF-8")
31
31
 
32
32
  operation = case operation_name
33
- when 'INSERT', 'UPDATE', 'CREATE' then 'save'
34
- when 'QUERY', 'COUNT', 'GET_MORE' then 'find'
35
- when 'DELETE' then 'destroy'
33
+ when 'INSERT', 'UPDATE', 'CREATE' then 'save'
34
+ when 'QUERY', 'COUNT', 'GET_MORE', "AGGREGATE" then 'find'
35
+ when 'DELETE' then 'destroy'
36
36
  else
37
37
  nil
38
38
  end
@@ -75,6 +75,9 @@ module NewRelic
75
75
  elsif operation_name == 'COMMAND' && log_statement.include?(":count")
76
76
  operation_name = 'COUNT'
77
77
  collection = log_statement[/:count=>"([^"]+)/,1]
78
+ elsif operation_name == 'COMMAND' && log_statement.include?(":aggregate")
79
+ operation_name = 'AGGREGATE'
80
+ collection = log_statement[/:aggregate=>"([^"]+)/,1]
78
81
  end
79
82
  return operation_name, collection
80
83
  end
@@ -1,3 +1,3 @@
1
1
  module NewrelicMoped
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_moped
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Bartholomew
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-01 00:00:00.000000000 Z
12
+ date: 2014-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: newrelic_rpm
@@ -29,28 +29,28 @@ dependencies:
29
29
  name: moped
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '>='
32
+ - - ! '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '>='
39
+ - - ! '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ! '>='
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - '>='
53
+ - - ! '>='
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  description: New Relic Instrumentation for Moped & Mongoid 3
@@ -60,11 +60,11 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - lib/newrelic_moped/instrumentation.rb
64
- - lib/newrelic_moped/version.rb
65
- - lib/newrelic_moped.rb
66
63
  - LICENSE
67
64
  - README.md
65
+ - lib/newrelic_moped.rb
66
+ - lib/newrelic_moped/instrumentation.rb
67
+ - lib/newrelic_moped/version.rb
68
68
  homepage: https://github.com/stevebartholomew/newrelic_moped
69
69
  licenses:
70
70
  - MIT
@@ -75,18 +75,19 @@ require_paths:
75
75
  - lib
76
76
  required_ruby_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - '>='
78
+ - - ! '>='
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
- - - '>='
83
+ - - ! '>='
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.0.14
88
+ rubygems_version: 2.2.2
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: New Relic Instrumentation for Moped & Mongoid 3
92
92
  test_files: []
93
+ has_rdoc: