datadog-notifications 0.4.0 → 0.4.1

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: 10fe24906ae47d9adc63c38b816c2a0037031a5b
4
- data.tar.gz: d246fe0ea9503450f1a07877603912ccbb63604f
3
+ metadata.gz: b1984c169963a2eeace0c9677653439ba3314d17
4
+ data.tar.gz: 8a7eead8b155b359f1965f00c5d752b10e5f96db
5
5
  SHA512:
6
- metadata.gz: e59089271f9102c824bdf60774a71bc5addea3375d3267f43fc40f3f3b873148d06e5f9be9ae4ef9e9315f944c211ae724ab6136dbed335ab513098a413396f4
7
- data.tar.gz: 8e62d04b05baba9d2476842b04e17a2d3354a6d639e304f6a4c246b82d744da0ece0c8e27fdb6bdd2deab4b1f7dab200249fdd99646d14b1ffddb936396b24d3
6
+ metadata.gz: 5dc39b00b0481f71cee32c24cd37c5b0cadfb6906dc722fbf61c5aed269a96e6908da978c9919188b5bf269ea35133a00ff212ecb8f30e4a54b0835275d46948
7
+ data.tar.gz: 8f209d8de85e9c66e883399b42a28c034ae019bca9ba83a253b7f9741ddfcf844906b76aab52378b789f34e8486affdcc8fa864f0be4841713dfd3b5ef19c7df
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
@@ -0,0 +1,100 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ datadog-notifications (0.4.1)
5
+ activesupport
6
+ dogstatsd-ruby
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (4.2.6)
12
+ activesupport (= 4.2.6)
13
+ builder (~> 3.1)
14
+ activerecord (4.2.6)
15
+ activemodel (= 4.2.6)
16
+ activesupport (= 4.2.6)
17
+ arel (~> 6.0)
18
+ activesupport (4.2.6)
19
+ i18n (~> 0.7)
20
+ json (~> 1.7, >= 1.7.7)
21
+ minitest (~> 5.1)
22
+ thread_safe (~> 0.3, >= 0.3.4)
23
+ tzinfo (~> 1.1)
24
+ arel (6.0.3)
25
+ axiom-types (0.1.1)
26
+ descendants_tracker (~> 0.0.4)
27
+ ice_nine (~> 0.11.0)
28
+ thread_safe (~> 0.3, >= 0.3.1)
29
+ builder (3.2.2)
30
+ coercible (1.0.0)
31
+ descendants_tracker (~> 0.0.1)
32
+ descendants_tracker (0.0.4)
33
+ thread_safe (~> 0.3, >= 0.3.1)
34
+ diff-lcs (1.2.5)
35
+ dogstatsd-ruby (1.6.0)
36
+ enumerable-lazy (0.0.1)
37
+ equalizer (0.0.11)
38
+ grape (0.16.2)
39
+ activesupport
40
+ builder
41
+ hashie (>= 2.1.0)
42
+ multi_json (>= 1.3.2)
43
+ multi_xml (>= 0.5.2)
44
+ mustermann19 (~> 0.4.3)
45
+ rack (>= 1.3.0)
46
+ rack-accept
47
+ virtus (>= 1.0.0)
48
+ hashie (3.4.4)
49
+ i18n (0.7.0)
50
+ ice_nine (0.11.2)
51
+ json (1.8.3)
52
+ minitest (5.9.0)
53
+ multi_json (1.12.1)
54
+ multi_xml (0.5.5)
55
+ mustermann19 (0.4.3)
56
+ enumerable-lazy
57
+ rack (1.6.4)
58
+ rack-accept (0.4.5)
59
+ rack (>= 0.4)
60
+ rack-test (0.6.3)
61
+ rack (>= 1.0)
62
+ rake (11.1.2)
63
+ rspec (3.4.0)
64
+ rspec-core (~> 3.4.0)
65
+ rspec-expectations (~> 3.4.0)
66
+ rspec-mocks (~> 3.4.0)
67
+ rspec-core (3.4.4)
68
+ rspec-support (~> 3.4.0)
69
+ rspec-expectations (3.4.0)
70
+ diff-lcs (>= 1.2.0, < 2.0)
71
+ rspec-support (~> 3.4.0)
72
+ rspec-mocks (3.4.1)
73
+ diff-lcs (>= 1.2.0, < 2.0)
74
+ rspec-support (~> 3.4.0)
75
+ rspec-support (3.4.1)
76
+ sqlite3 (1.3.11)
77
+ thread_safe (0.3.5)
78
+ tzinfo (1.2.2)
79
+ thread_safe (~> 0.1)
80
+ virtus (1.0.5)
81
+ axiom-types (~> 0.1)
82
+ coercible (~> 1.0)
83
+ descendants_tracker (~> 0.0, >= 0.0.3)
84
+ equalizer (~> 0.0, >= 0.0.9)
85
+
86
+ PLATFORMS
87
+ ruby
88
+
89
+ DEPENDENCIES
90
+ activerecord
91
+ bundler
92
+ datadog-notifications!
93
+ grape (>= 0.16)
94
+ rack-test
95
+ rake
96
+ rspec
97
+ sqlite3
98
+
99
+ BUNDLED WITH
100
+ 1.11.2
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.add_runtime_dependency(%q<dogstatsd-ruby>)
21
21
 
22
22
  s.add_development_dependency(%q<rack-test>)
23
- s.add_development_dependency(%q<grape>)
23
+ s.add_development_dependency(%q<grape>, ">= 0.16")
24
24
  s.add_development_dependency(%q<sqlite3>)
25
25
  s.add_development_dependency(%q<activerecord>)
26
26
  s.add_development_dependency(%q<rake>)
@@ -22,10 +22,10 @@ module Datadog::Notifications::Plugins
22
22
  payload = event.payload
23
23
  endpoint = payload[:endpoint]
24
24
  route = endpoint.route
25
- version = route.route_version
26
- method = route.route_method
25
+ version = route.version
26
+ method = route.request_method
27
27
 
28
- path = route.route_path.dup
28
+ path = route.pattern.path.dup
29
29
  path.sub!(/\(\.\:format\)$/, '')
30
30
  path.sub!(":version/", "") if version
31
31
  path.gsub!(/:(\w+)/) {|m| m[1..-1].upcase }
@@ -1,5 +1,5 @@
1
1
  module Datadog
2
2
  class Notifications
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog-notifications
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '0.16'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '0.16'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sqlite3
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -147,6 +147,7 @@ files:
147
147
  - ".gitignore"
148
148
  - ".travis.yml"
149
149
  - Gemfile
150
+ - Gemfile.lock
150
151
  - MIT-LICENCE
151
152
  - README.md
152
153
  - Rakefile
@@ -186,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
187
  version: '0'
187
188
  requirements: []
188
189
  rubyforge_project:
189
- rubygems_version: 2.4.7
190
+ rubygems_version: 2.5.1
190
191
  signing_key:
191
192
  specification_version: 4
192
193
  summary: Generic ActiveSupport::Notifications Datadog handler