newrelic_rpm 5.6.0.349 → 5.7.0.350

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
  SHA256:
3
- metadata.gz: eafe4315178abb8fe388bdae54e2c201fa080b142d093d0aa66678e2dff39596
4
- data.tar.gz: 1c7d5d213331e77c5e3c78c1bf58cc956336615aa5d08bc7331a56ca2293a351
3
+ metadata.gz: 625a0434dacaefcf0902757f00bc9da4d6076c6060599b696a582e90187fc883
4
+ data.tar.gz: fac2ce2e4f4d293a123c93bebbfc62093f2c02ae1580b9a1a24df3c901ad09db
5
5
  SHA512:
6
- metadata.gz: e8027ef671be103e04bc674a35fccfed2c292abe47873281d0007738a306b88422493283eb04881cb6794478b9c10307db3a89c342d149456bc21e73cffbcf83
7
- data.tar.gz: 8d6006908631d158b0edc1757c80960a80e7d415599faf5516635fa96dafe16e228e20263dbf1961f82e7cc6483f7ebbdd26f4dc8e8602846bc8e1e6a114ab72
6
+ metadata.gz: 579cab156bcd049477932f8411b028d83469e21aa6404a6c9a66a7e2289849a78dade9d723bd43233f3889069581217e067c951c42a5ff63f59c5f9213957072
7
+ data.tar.gz: 62e685079a4f023713ad7a3e520a9b7519b957b762a84dcc5857d2024a52f3180d783e12a9992b0d4696eaa636866d8bf56d1dc130a75a5b32ead180ab1a75e9
@@ -13,11 +13,13 @@ before_install:
13
13
  - sudo rm -f /etc/apt/sources.list.d/travis_ci_zeromq3.list
14
14
 
15
15
  - gem --version
16
- - gem update --system
16
+ - ./test/script/before_install/update_rubygems.sh
17
+ - gem uninstall bundler -a -x
18
+ - gem install bundler -v=1.17.3
17
19
  - ./test/script/before_install/gemstash_mirror.sh
18
- - bundle --version
20
+ - bundle _1.17.3_ --version
19
21
 
20
- install: bundle install
22
+ install: bundle _1.17.3_ install
21
23
 
22
24
  addons:
23
25
  apt:
@@ -46,7 +48,7 @@ notifications:
46
48
  rvm:
47
49
  # Run slowest builds first to try and optimize overall cycle time.
48
50
  - jruby-9.1.13.0
49
- - 2.6.0-preview3
51
+ - 2.6.0
50
52
  - 2.5.0
51
53
  - 2.4.2
52
54
  - 2.3.5
@@ -96,21 +98,21 @@ matrix:
96
98
  exclude:
97
99
  # Unsupported Rails/Ruby combinations
98
100
  # 2.6
99
- - rvm: 2.6.0-preview3
101
+ - rvm: 2.6.0
100
102
  env: TYPE=UNIT ENVIRONMENT=rails21
101
- - rvm: 2.6.0-preview3
103
+ - rvm: 2.6.0
102
104
  env: TYPE=UNIT ENVIRONMENT=rails22
103
- - rvm: 2.6.0-preview3
105
+ - rvm: 2.6.0
104
106
  env: TYPE=UNIT ENVIRONMENT=rails23
105
- - rvm: 2.6.0-preview3
107
+ - rvm: 2.6.0
106
108
  env: TYPE=UNIT ENVIRONMENT=rails30
107
- - rvm: 2.6.0-preview3
109
+ - rvm: 2.6.0
108
110
  env: TYPE=UNIT ENVIRONMENT=rails31
109
- - rvm: 2.6.0-preview3
111
+ - rvm: 2.6.0
110
112
  env: TYPE=UNIT ENVIRONMENT=rails32
111
- - rvm: 2.6.0-preview3
113
+ - rvm: 2.6.0
112
114
  env: TYPE=UNIT ENVIRONMENT=rails40
113
- - rvm: 2.6.0-preview3
115
+ - rvm: 2.6.0
114
116
  env: TYPE=UNIT ENVIRONMENT=rails41
115
117
 
116
118
  # 2.5
@@ -1,5 +1,30 @@
1
1
  # New Relic Ruby Agent Release Notes #
2
2
 
3
+ ## v5.7.0
4
+
5
+ * Ruby 2.6 support
6
+
7
+ We have tested the agent with the official release of Ruby 2.6.0
8
+ made on December 25, 2018, and it looks great! Feel free to use
9
+ agent v5.7 to measure the performance of your Ruby 2.6
10
+ applications.
11
+
12
+ * Support for loading Sequel core standalone
13
+
14
+ Earlier versions of the agent required users of the Sequel data
15
+ mapping library to load the _entire_ library. The agent will now
16
+ enable Sequel instrumentation when an application loads Sequel's
17
+ core standalone; i.e., without the `Sequel::Model` class. Thanks
18
+ to Vasily Kolesnikov for the contribution!
19
+
20
+ * Grape 1.2 support
21
+
22
+ With agent versions 5.6 and earlier, Grape 1.2 apps reported
23
+ their transactions under the name `Proc#call` instead of the name
24
+ of the API endpoint. Starting with agent version 5.7, all
25
+ existing versions of Grape will report the correct transaction
26
+ name. Thanks to Masato Ohba for the contribution!
27
+
3
28
  ## v5.6.0
4
29
 
5
30
  * Bugfix for transactions with `ActionController::Live`
@@ -114,7 +114,15 @@ DependencyDetection.defer do
114
114
  ::NewRelic::Agent::Instrumentation::GrapeInstrumentation.send :alias_method, :name_for_transaction, :name_for_transaction_deprecated
115
115
  end
116
116
 
117
- ::Grape::API.class_eval do
117
+ # Since 1.2.0, the class `Grape::API` no longer refers to an API instance, rather, what used to be `Grape::API` is `Grape::API::Instance`
118
+ # https://github.com/ruby-grape/grape/blob/c20a73ac1e3f3ba1082005ed61bf69452373ba87/UPGRADING.md#upgrading-to--120
119
+ grape_api_class = if defined?(Grape::API::Instance)
120
+ ::Grape::API::Instance
121
+ else
122
+ ::Grape::API
123
+ end
124
+
125
+ grape_api_class.class_eval do
118
126
  def call_with_new_relic(env)
119
127
  begin
120
128
  response = call_without_new_relic(env)
@@ -122,7 +130,10 @@ DependencyDetection.defer do
122
130
  begin
123
131
  endpoint = env[::NewRelic::Agent::Instrumentation::GrapeInstrumentation::API_ENDPOINT]
124
132
  version = env[::NewRelic::Agent::Instrumentation::GrapeInstrumentation::API_VERSION]
125
- ::NewRelic::Agent::Instrumentation::GrapeInstrumentation.handle_transaction(endpoint, self.class.name, version)
133
+
134
+ # Since 1.2.0, how to obtain the class name is changed.
135
+ class_name = self.class.respond_to?(:base) ? self.class.base.name : self.class.name
136
+ ::NewRelic::Agent::Instrumentation::GrapeInstrumentation.handle_transaction(endpoint, class_name, version)
126
137
  rescue => e
127
138
  ::NewRelic::Agent.logger.warn("Error in Grape instrumentation", e)
128
139
  end
@@ -38,7 +38,7 @@ DependencyDetection.defer do
38
38
  db.extension :newrelic_instrumentation
39
39
  end
40
40
 
41
- Sequel::Model.plugin :newrelic_instrumentation
41
+ Sequel::Model.plugin(:newrelic_instrumentation) if defined?(Sequel::Model)
42
42
  else
43
43
 
44
44
  NewRelic::Agent.logger.info "Sequel instrumentation requires at least version 3.37.0."
@@ -26,7 +26,7 @@ EOS
26
26
  # * This is a patch item (3.7.1.188)
27
27
  def self.read_patch(patch_level, changelog=default_changelog)
28
28
  latest = extract_latest_changes(File.read(changelog))
29
- changes = ["## v#{patch_level} ##", ""]
29
+ changes = ["## v#{patch_level}", ""]
30
30
 
31
31
  current_item = nil
32
32
  latest.each do |line|
@@ -52,7 +52,7 @@ EOS
52
52
  changes = []
53
53
  version_count = 0
54
54
  contents.each_line do |line|
55
- if line.match(/##\s+v[\d.]+\s+##/)
55
+ if line.match(/##\s+v[\d.]+/)
56
56
  version_count += 1
57
57
  end
58
58
  break if version_count >= 2
@@ -11,7 +11,7 @@ module NewRelic
11
11
  end
12
12
 
13
13
  MAJOR = 5
14
- MINOR = 6
14
+ MINOR = 7
15
15
  TINY = 0
16
16
 
17
17
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_rpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.0.349
4
+ version: 5.7.0.350
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Wear
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-12-08 00:00:00.000000000 Z
14
+ date: 2019-01-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake