pliny-librato 0.1.0 → 0.2.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
  SHA1:
3
- metadata.gz: 4537379850b2cbc3f82de6883462bb90cb8090eb
4
- data.tar.gz: a08dd1d9657a788b8374fa6f58d3c9346c6f752b
3
+ metadata.gz: 819e9aba7d88aaa273c9f4eea4d349712502ae07
4
+ data.tar.gz: 07e5ca4178d3b9f42e991328932f30bd340d851a
5
5
  SHA512:
6
- metadata.gz: 9bc278ff5bf2168b479c5d559258dc02288d1b890c9f6692fc406e1d443e88fb318d07d00c4c54799dd2efb338e40a732cbc7b84f02264a45ae05d9e854dfa46
7
- data.tar.gz: d615ddbf8e1b126d3331d299b43c993ace653bb9bb840bdcfa7d6b086351b64fae214150f9621267f7add7ba86774fcfa380c4194e9c08bab20a40a6b624be1b
6
+ metadata.gz: c90b369cbc07f97e345f2b8772cf2b72ac222da997972b71261fda2b6c6f726a22aa0489f77d057a0a20f0bb62f85aec7913bb02e969c2324216749a939a593f
7
+ data.tar.gz: f8b408bc4e582033a7adb33b91abc5121f73e8f12990d09692a5a66dd502419831d994f284fd00b277da4cb685a234f6e938d8b002a6f6afcf04b65b96b0c970
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pliny-librato*.gem
data/CHANGELOG.md ADDED
@@ -0,0 +1,2 @@
1
+ **0.2.0**
2
+ - Catch and report errors in async calls to the Librato API
data/Gemfile.lock CHANGED
@@ -4,22 +4,47 @@ PATH
4
4
  pliny-librato (0.1.0)
5
5
  concurrent-ruby (~> 1.0)
6
6
  librato-metrics (~> 2.0)
7
+ pliny (>= 0.20.0)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
10
11
  specs:
12
+ activesupport (4.2.7.1)
13
+ i18n (~> 0.7)
14
+ json (~> 1.7, >= 1.7.7)
15
+ minitest (~> 5.1)
16
+ thread_safe (~> 0.3, >= 0.3.4)
17
+ tzinfo (~> 1.1)
11
18
  aggregate (0.2.2)
12
19
  byebug (9.0.6)
13
20
  coderay (1.1.1)
14
21
  concurrent-ruby (1.0.2)
15
22
  diff-lcs (1.2.5)
23
+ erubis (2.7.0)
16
24
  faraday (0.10.0)
17
25
  multipart-post (>= 1.2, < 3)
26
+ http_accept (0.1.6)
27
+ i18n (0.7.0)
28
+ json (1.8.3)
29
+ json_schema (0.15.0)
18
30
  librato-metrics (2.0.2)
19
31
  aggregate (~> 0.2.2)
20
32
  faraday
21
33
  method_source (0.8.2)
34
+ minitest (5.10.1)
35
+ multi_json (1.12.1)
22
36
  multipart-post (2.0.0)
37
+ pliny (0.20.0)
38
+ activesupport (~> 4.1, >= 4.1.0)
39
+ http_accept (~> 0.1, >= 0.1.5)
40
+ multi_json (~> 1.9, >= 1.9.3)
41
+ prmd (~> 0.11, >= 0.11.4)
42
+ sinatra (~> 1.4, >= 1.4.7)
43
+ sinatra-router (~> 0.2, >= 0.2.3)
44
+ thor (~> 0.19, >= 0.19.1)
45
+ prmd (0.12.0)
46
+ erubis (~> 2.7)
47
+ json_schema (~> 0.3, >= 0.3.1)
23
48
  pry (0.10.4)
24
49
  coderay (~> 1.1.0)
25
50
  method_source (~> 0.8.1)
@@ -27,6 +52,9 @@ GEM
27
52
  pry-byebug (3.4.1)
28
53
  byebug (~> 9.0)
29
54
  pry (~> 0.10)
55
+ rack (1.6.5)
56
+ rack-protection (1.5.3)
57
+ rack
30
58
  rake (10.5.0)
31
59
  rspec (3.5.0)
32
60
  rspec-core (~> 3.5.0)
@@ -41,8 +69,19 @@ GEM
41
69
  diff-lcs (>= 1.2.0, < 2.0)
42
70
  rspec-support (~> 3.5.0)
43
71
  rspec-support (3.5.0)
72
+ sinatra (1.4.7)
73
+ rack (~> 1.5)
74
+ rack-protection (~> 1.4)
75
+ tilt (>= 1.3, < 3)
76
+ sinatra-router (0.2.3)
77
+ sinatra (~> 1.4)
44
78
  slop (3.6.0)
79
+ thor (0.19.4)
80
+ thread_safe (0.3.5)
81
+ tilt (2.0.5)
45
82
  timecop (0.8.1)
83
+ tzinfo (1.2.2)
84
+ thread_safe (~> 0.1)
46
85
 
47
86
  PLATFORMS
48
87
  ruby
@@ -50,8 +89,8 @@ PLATFORMS
50
89
  DEPENDENCIES
51
90
  bundler (~> 1.13)
52
91
  pliny-librato!
53
- pry
54
- pry-byebug
92
+ pry (~> 0.10)
93
+ pry-byebug (~> 3.4)
55
94
  rake (~> 10.0)
56
95
  rspec (~> 3.3)
57
96
  timecop (~> 0.8.1)
@@ -1,5 +1,6 @@
1
1
  require "librato/metrics"
2
2
  require "concurrent"
3
+ require "pliny/error_reporters"
3
4
 
4
5
  module Pliny::Librato
5
6
  module Metrics
@@ -21,10 +22,14 @@ module Pliny::Librato
21
22
 
22
23
  def _report_counts(counts)
23
24
  ::Librato::Metrics.submit(expand(:counter, counts))
25
+ rescue => error
26
+ Pliny::ErrorReporters.notify(error)
24
27
  end
25
28
 
26
29
  def _report_measures(measures)
27
30
  ::Librato::Metrics.submit(expand(:gauge, measures))
31
+ rescue => error
32
+ Pliny::ErrorReporters.notify(error)
28
33
  end
29
34
 
30
35
  private
@@ -1,5 +1,5 @@
1
1
  module Pliny
2
2
  module Librato
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -20,8 +20,9 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency "librato-metrics", "~> 2.0"
24
23
  spec.add_dependency "concurrent-ruby", "~> 1.0"
24
+ spec.add_dependency "librato-metrics", "~> 2.0"
25
+ spec.add_dependency "pliny", ">= 0.20.0"
25
26
 
26
27
  spec.add_development_dependency "bundler", "~> 1.13"
27
28
  spec.add_development_dependency "pry", "~> 0.10"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pliny-librato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Appleton
@@ -9,8 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-12-06 00:00:00.000000000 Z
12
+ date: 2016-12-07 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: concurrent-ruby
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.0'
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: librato-metrics
16
30
  requirement: !ruby/object:Gem::Requirement
@@ -26,19 +40,19 @@ dependencies:
26
40
  - !ruby/object:Gem::Version
27
41
  version: '2.0'
28
42
  - !ruby/object:Gem::Dependency
29
- name: concurrent-ruby
43
+ name: pliny
30
44
  requirement: !ruby/object:Gem::Requirement
31
45
  requirements:
32
- - - "~>"
46
+ - - ">="
33
47
  - !ruby/object:Gem::Version
34
- version: '1.0'
48
+ version: 0.20.0
35
49
  type: :runtime
36
50
  prerelease: false
37
51
  version_requirements: !ruby/object:Gem::Requirement
38
52
  requirements:
39
- - - "~>"
53
+ - - ">="
40
54
  - !ruby/object:Gem::Version
41
- version: '1.0'
55
+ version: 0.20.0
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: bundler
44
58
  requirement: !ruby/object:Gem::Requirement
@@ -129,7 +143,9 @@ executables: []
129
143
  extensions: []
130
144
  extra_rdoc_files: []
131
145
  files:
146
+ - ".gitignore"
132
147
  - ".rspec"
148
+ - CHANGELOG.md
133
149
  - Gemfile
134
150
  - Gemfile.lock
135
151
  - README.md