newrelic_moped 0.0.11 → 0.0.12

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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- M2RhNzE2YTM4MWFkOTcwMGUzMDc2MWYyMWNjYjIxYjE3YjgwNDhmOQ==
5
- data.tar.gz: !binary |-
6
- Nzc3YjRjODFiOTU3NGJmYjlkNWFmZWE3YmNiNmQ5MzUzYmU2NDI2Yw==
2
+ SHA1:
3
+ metadata.gz: eb10551204086d61a0666ab12ae010503dc83469
4
+ data.tar.gz: 34f77ae2ebd8efe70d384bf94f1185cfbe3e1bba
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NjUxMzQ0NDljOTdjYzRlNzA5YTc5ZDNiOGJkMjk0NjVmZTM0OWYwODcyYjNh
10
- OTRiY2NmOTZkOTUzZTBhYzcwYWU0NzE4YjcyNmI1MWNlYTBhYzUyZjdmMGVl
11
- ZWZhMjU1ZjdlMzdkOTkyOTA4YTQ0YTgxNmIxZmJkZmNkMzRmOGQ=
12
- data.tar.gz: !binary |-
13
- NGQwZDZiZDQ4ZjYzNzI2NGY0ZmE3OTk0YjcxZDA2ZmQxNjI0MTJjNDllN2Ez
14
- Yzk1Yzk5NzIxMDk3ZTk5OGFkMDAxMDlhY2I1MmEwMDMxODM3NGFlYzFjNzVh
15
- NWYyMmRiNzEyMWY5MWYzY2Q5MDc4OWZkNjNkN2U3MTgxODM1ZmQ=
6
+ metadata.gz: eca1b75b94c28240348ab200eff88126eed01e0950a26d6b35e7646c374a0da1f8246be166a1faa61a9ca0c7a8680787a8ef48d65e8d6faaa9ed7e8d6d887983
7
+ data.tar.gz: f84b315c407941e9d58edb88517fc51a6cda752f65f6df5fa5f9372ef5fa920e2cf202cf24bf8f508a2764c756fac2a6d006a2eea3917db6efd21a67b00feed8
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Change log
2
+
3
+ ## master (unreleased)
4
+
5
+ ## 0.0.12 (2014-12-29)
6
+
7
+ ### Bugfixes
8
+ * findAndModify tracking - #30 (thanks @pmckee11)
9
+ * fix test suite - #30 (thanks @pmckee11)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # New Relic Moped
2
2
 
3
- New Relic instrumentation for Moped / Mongoid 3
3
+ New Relic instrumentation for Moped (1.x, 2.0) / Mongoid (3.x, 4.0)
4
4
 
5
5
  ## Installation
6
6
 
@@ -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', "AGGREGATE" then 'find'
35
- when 'DELETE' then 'destroy'
33
+ when 'INSERT', 'UPDATE', 'CREATE', 'FIND_AND_MODIFY' 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
@@ -78,6 +78,9 @@ module NewRelic
78
78
  elsif operation_name == 'COMMAND' && log_statement.include?(":aggregate")
79
79
  operation_name = 'AGGREGATE'
80
80
  collection = log_statement[/:aggregate=>"([^"]+)/,1]
81
+ elsif operation_name == 'COMMAND' && log_statement.include?(":findAndModify")
82
+ operation_name = 'FIND_AND_MODIFY'
83
+ collection = log_statement[/:findAndModify=>"([^"]+)/,1]
81
84
  end
82
85
  return operation_name, collection
83
86
  end
@@ -1,3 +1,3 @@
1
1
  module NewrelicMoped
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Bartholomew
@@ -9,54 +9,54 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-08 00:00:00.000000000 Z
12
+ date: 2014-12-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: newrelic_rpm
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '3.0'
21
- - - ! '>='
21
+ - - ">="
22
22
  - !ruby/object:Gem::Version
23
23
  version: '3.7'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - ~>
28
+ - - "~>"
29
29
  - !ruby/object:Gem::Version
30
30
  version: '3.0'
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.7'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: moped
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rake
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ! '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  description: New Relic Instrumentation for Moped & Mongoid 3
@@ -66,6 +66,7 @@ executables: []
66
66
  extensions: []
67
67
  extra_rdoc_files: []
68
68
  files:
69
+ - CHANGELOG.md
69
70
  - LICENSE
70
71
  - README.md
71
72
  - lib/newrelic_moped.rb
@@ -81,12 +82,12 @@ require_paths:
81
82
  - lib
82
83
  required_ruby_version: !ruby/object:Gem::Requirement
83
84
  requirements:
84
- - - ! '>='
85
+ - - ">="
85
86
  - !ruby/object:Gem::Version
86
87
  version: '0'
87
88
  required_rubygems_version: !ruby/object:Gem::Requirement
88
89
  requirements:
89
- - - ! '>='
90
+ - - ">="
90
91
  - !ruby/object:Gem::Version
91
92
  version: '0'
92
93
  requirements: []
@@ -96,4 +97,3 @@ signing_key:
96
97
  specification_version: 4
97
98
  summary: New Relic Instrumentation for Moped & Mongoid 3
98
99
  test_files: []
99
- has_rdoc: