honeycomb-rails 0.7.2 → 0.8.0

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: 017fdc196902aa439d9db39265aa6184ca8c13c40bb79bcb770c29d7f8621ab1
4
- data.tar.gz: 575023c210eade7f3f1dd18ba720937f82e055b72c9c7d556879acdf84807bd2
3
+ metadata.gz: 533c50b666c1fcedea44b6c995cbf9b355c5f77797a75ab3453ec3d8f0b16bee
4
+ data.tar.gz: 1ca9b5003000633990a29fdee9c953ad229e27d52eada2e2d4b38dca9ea8e232
5
5
  SHA512:
6
- metadata.gz: 4d630a38edf0578e6cd0eccdcaaf82a3347225f477c1bb239c2b67a796f32b21dd6eba172870fae4216cb344f4d8c95092c5d6e1552ea8c885b2fbcb2189aaa5
7
- data.tar.gz: 36d6080273a54706b3e57cd61b1231418ecd45b082134a4bf9c103697abba09f02a485ca33966d3eddcac6b96e5a6f7fbc7ab0f3cacc3e953935a45fd2237f0c
6
+ metadata.gz: 476b8657c45a060dccf94228e4b02782c22a62047ee5da2c08e0330b93e8c48a4b9a019daab2cbfab00dcf52d87ae2798cd4bd2fce11503f59548fbf6f999577
7
+ data.tar.gz: 3ebdf878c27405f7e11cb5f840862d4c0fb9ed4b76813b4bda4df86a16e1fd977b8be27cfaf2f2110956762aa8b9320421f420408181bdf80a2a734693c4c61d
@@ -11,7 +11,7 @@ module HoneycombRails
11
11
 
12
12
  metadata.merge!(honeycomb_user_metadata)
13
13
 
14
- if HoneycombRails.config.record_flash?
14
+ if HoneycombRails.config.record_flash? && respond_to?(:flash)
15
15
  flash.each do |k, v|
16
16
  metadata[:"flash_#{k}"] = v
17
17
  end
@@ -8,10 +8,18 @@ module HoneycombRails
8
8
  class Railtie < ::Rails::Railtie
9
9
  initializer 'honeycomb.action_controller_extensions', after: :action_controller do
10
10
  ::ActionController::Base.include(Extensions::ActionController::InstanceMethods)
11
+
12
+ if defined?(::ActionController::API) # Rails 5 and above
13
+ ::ActionController::API.include(Extensions::ActionController::InstanceMethods)
14
+ end
11
15
  end
12
16
 
13
17
  initializer 'honeycomb.action_controller_overrides', after: :action_controller do
14
18
  ::ActionController::Base.include(Overrides::ActionControllerInstrumentation)
19
+
20
+ if defined?(::ActionController::API) # Rails 5 and above
21
+ ::ActionController::API.include(Overrides::ActionControllerInstrumentation)
22
+ end
15
23
  end
16
24
 
17
25
  # set up libhoney after application initialization so that any config in
@@ -1,7 +1,7 @@
1
1
  module HoneycombRails
2
2
  GEM_NAME = 'honeycomb-rails'
3
3
 
4
- VERSION = '0.7.2'
4
+ VERSION = '0.8.0'
5
5
 
6
6
  USER_AGENT_SUFFIX = "#{GEM_NAME}/#{VERSION}".freeze
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeycomb-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Stokes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-05 00:00:00.000000000 Z
12
+ date: 2018-08-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: libhoney