g5_prom_rails 0.3.0 → 0.3.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: 6bc20803779b0772690357f3d5982926b3d1f2ac
4
- data.tar.gz: 6749752184cea03076373233cbfffa632b4ec853
3
+ metadata.gz: 87dcb8f11ee3931dd32b61ba2388ba60c0a8678e
4
+ data.tar.gz: 6b5c35d2de78c04acb370abb11baf1efe314e78d
5
5
  SHA512:
6
- metadata.gz: 473ec2350a816b44ef4e0e40a0813ad80ea7a049359cdf9be9118cb4b56a8af007dd10796e0f65ec9ff8fa1d21c0a24615eba2a344fd5e25466f2ec2610478f2
7
- data.tar.gz: d84afd21c2983fddc2f1584db58ba999f8db396aedaf9ecdb8ad0f89c99aff14245e2399853785718f5017f9d2ad7da72daa9386714c5ea4d59b5e3378f08079
6
+ metadata.gz: 400c030ba01100d5ee83d4d4944526bcf07e6f885c1c602b01af717499e163b1d96304b39a8b1e393566977a543240a5f0216e15769a8c6781c52423cca05698
7
+ data.tar.gz: 2acf2bf0fc20b6cd2c4282c05a943def2f03d3342979d77d6969515b9d7923e52587c5475ccf6f0edeed7a67810e312bc3f74de93bcdf701754ff0aa9e8e2cc9
data/README.md CHANGED
@@ -53,7 +53,7 @@ class Metrics
53
53
  @published_posts = registry.gauge(:my_app_posts, "published blog posts")
54
54
  end
55
55
 
56
- def initialize_per_application(registry)
56
+ def initialize_per_process(registry)
57
57
  @post_shares = registry.counter(:my_app_post_shares, "blog post shares")
58
58
  end
59
59
  end
@@ -1,4 +1,4 @@
1
- require 'prometheus/client/rack/exporter'
1
+ require 'prometheus/middleware/exporter'
2
2
  require_relative 'metrics'
3
3
  require_relative 'refreshing_exporter'
4
4
  require_relative 'settable_counter'
@@ -29,7 +29,7 @@ module G5PromRails
29
29
  end
30
30
 
31
31
  initializer "g5_prom_rails.add_exporter" do |app|
32
- Prometheus::Client::Rack::Exporter.send(
32
+ Prometheus::Middleware::Exporter.send(
33
33
  :prepend,
34
34
  G5PromRails::RefreshingExporter
35
35
  )
@@ -48,7 +48,7 @@ module G5PromRails
48
48
  app = Rack::Builder.new do
49
49
  use Rack::ShowExceptions
50
50
  use Rack::Lint
51
- use Prometheus::Client::Rack::Exporter, per_process_opts
51
+ use Prometheus::Middleware::Exporter, per_process_opts
52
52
  run -> { [ '404', {}, ["Not Found"] ] }
53
53
  end
54
54
 
@@ -60,8 +60,8 @@ module G5PromRails
60
60
  )
61
61
  end
62
62
  else
63
- app.middleware.use(Prometheus::Client::Rack::Exporter, per_process_opts)
64
- app.middleware.use(Prometheus::Client::Rack::Exporter, per_application_opts)
63
+ app.middleware.use(Prometheus::Middleware::Exporter, per_process_opts)
64
+ app.middleware.use(Prometheus::Middleware::Exporter, per_application_opts)
65
65
  end
66
66
  end
67
67
 
@@ -1,3 +1,3 @@
1
1
  module G5PromRails
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: g5_prom_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Don Petersen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-31 00:00:00.000000000 Z
11
+ date: 2017-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.6'
33
+ version: 0.7.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.6'
40
+ version: 0.7.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: tzinfo-data
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  description: Rails-friendly prometheus base
84
98
  email:
85
99
  - don@donpetersen.net
@@ -123,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
137
  version: '0'
124
138
  requirements: []
125
139
  rubyforge_project:
126
- rubygems_version: 2.5.1
140
+ rubygems_version: 2.6.11
127
141
  signing_key:
128
142
  specification_version: 4
129
143
  summary: Rails-friendly prometheus base