scout_apm 1.6.5 → 1.6.6

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
  SHA1:
3
- metadata.gz: 63ae601480e206eabc6a2a0f9d5b4a910ff1b96b
4
- data.tar.gz: 62e2cc35685a98a5ecb13432166ad0b31e5957ec
3
+ metadata.gz: eb70c9255d9b51e1691eb4f474a4630726754150
4
+ data.tar.gz: 6e6f32ce2e18b3b86f8da4ee54343779db645e2b
5
5
  SHA512:
6
- metadata.gz: 2de68e360bb022bfa74f2442f57fc84fc7914b084c3ef5c21870e79453197a7c2fb6744179f02d4ffbaabe4bbd265c586df0d9d3327f4a0628803bb11bf9de64
7
- data.tar.gz: 876b496318c21489278202605167d6879636c8363247df4da87301b19625f8a9f691a1b6e71a6ed905ef3af12da2ebd103763fbbb2f3c2bc9b2fdb4a8d3bdaa3
6
+ metadata.gz: 55ce37c278114185f6f80bfb0db10418f366f8a92693a27aaa9addbfa7f5d826fcb56655350fd8a15823997a3faf0880896fe5fd85ba172bc8f9dff136cd3bcb
7
+ data.tar.gz: 8e2f769bb9b69b9cb000e4d8cf276ce6c6be73e3715494506f8be649e05c509436681ccc47eca8b85c0ce8702caaf215c102479f49629c80f8b02c4a791c9370
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.6.6
2
+
3
+ * Bugfix related to DB detection
4
+
1
5
  # 1.6.5
2
6
 
3
7
  * Add Mongoid 5.x support
@@ -70,6 +70,10 @@ module ScoutApm
70
70
  framework_integration.database_engine
71
71
  end
72
72
 
73
+ def raw_database_adapter
74
+ framework_integration.raw_database_adapter
75
+ end
76
+
73
77
  def processors
74
78
  @processors ||= begin
75
79
  proc_file = '/proc/cpuinfo'
@@ -37,18 +37,14 @@ module ScoutApm
37
37
  default = :mysql
38
38
 
39
39
  if defined?(ActiveRecord::Base)
40
- if config && config["adapter"]
41
- case config["adapter"].to_s
42
- when "postgres" then :postgres
43
- when "postgresql" then :postgres
44
- when "postgis" then :postgres
45
- when "sqlite3" then :sqlite
46
- when "mysql" then :mysql
47
- when "mysql2" then :mysql
48
- else default
49
- end
50
- else
51
- default
40
+ case raw_database_adapter
41
+ when "postgres" then :postgres
42
+ when "postgresql" then :postgres
43
+ when "postgis" then :postgres
44
+ when "sqlite3" then :sqlite
45
+ when "mysql" then :mysql
46
+ when "mysql2" then :mysql
47
+ else default
52
48
  end
53
49
  else
54
50
  default
@@ -1,4 +1,4 @@
1
1
  module ScoutApm
2
- VERSION = "1.6.5"
2
+ VERSION = "1.6.6"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scout_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.5
4
+ version: 1.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Haynes