appsignal 1.0.5.beta.1 → 1.0.5.beta.2

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: 60c1db0e297973e3f82bb7f4e066f81e7f3aa21b
4
- data.tar.gz: 1ac6c8bd4fc0e5d427c92fde8c1fa2a277137f02
3
+ metadata.gz: 4dd8c7b3fec034fcd99924f7658b6b698878c520
4
+ data.tar.gz: be461d8b433726f48663e7b40a631460f0ad1a1e
5
5
  SHA512:
6
- metadata.gz: b92b2e03ddd2ab61e795545deb0241e7bb87270389bd558b9b6bb2b72da38f3a91b6171b595df64b0b2f498a9345622afb3048cbf9cde4363e0df413a38dbd09
7
- data.tar.gz: d26efb030425c886260fd4e0fa9788127dd4bb829bc4bb9e8efc44e041e92d03be44a0246b54aadec6b7b9b72c9be703d60de48efdff428213d523a2a557d69e
6
+ metadata.gz: 021c29a0304e931d1a6f8df1e24d2d2c4fc9923ec43f9262cdb880d0f57a553209815e5b7a98a5169f729d5b84354e0e8dc95c63fdfc74752832528ad26f5ecc
7
+ data.tar.gz: a50f561dcfc6121ed0052f918b12651017d520ce4f0ab1f2fcb4621884abf253c56146118c029146620fca60f178f240f113b701f572afbac6947563db4ec5e9
@@ -28,7 +28,7 @@ module Appsignal
28
28
 
29
29
  def self.sanitize_key(key, sanitizer)
30
30
  case sanitizer
31
- when :mongodb then key.gsub(/(\..+)/, '.?')
31
+ when :mongodb then key.to_s.gsub(/(\..+)/, '.?')
32
32
  else key
33
33
  end
34
34
  end
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '1.0.5.beta.1'
4
+ VERSION = '1.0.5.beta.2'
5
5
  end
@@ -47,6 +47,10 @@ describe Appsignal::Utils do
47
47
  it "should sanitize key when dots are in the key" do
48
48
  expect( Appsignal::Utils.sanitize_key('foo.bar', :mongodb) ).to eql('foo.?')
49
49
  end
50
+
51
+ it "should sanitize a symbol" do
52
+ expect( Appsignal::Utils.sanitize_key(:ismaster, :mongodb) ).to eql('ismaster')
53
+ end
50
54
  end
51
55
  end
52
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appsignal
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5.beta.1
4
+ version: 1.0.5.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Beekman