elementary-rpc 2.7.0.81 → 2.8.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +3 -4
- data/elementary-rpc.gemspec +1 -1
- data/lib/elementary/middleware/statsd.rb +4 -4
- data/lib/elementary/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NzZiNjY1MmIzMWY4MDhkYTM3NTRhODhlZTUyNzUxNzVmNWQ1YjIwMg==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
OTA3ZTdlNDM2NmMxZDNmYjBjODc0MjNjODBhYTRmMGE5MTEyOWVlYg==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Y2E0ODVmMzY2OGI1OTMwNDVlN2YyZDU3MmY4ZDhiY2JjNjYzZDZhZjU4MDU5
|
|
10
|
+
ZGM1NGU2MTIzNTE5MDVmODQ5Y2NlNzliOGY0NzE5ZTE0ZjM5YTRiNDI5NjBm
|
|
11
|
+
MzNjZjQ2MTU5YTEyYjE5MGNlMDE2OTNiMTFiYzdiNTMzZjY1NGE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YjAwN2NhN2FiZDdmMjJhYjQ3ZjYzZmViM2ZkYTgxMDdmNmUyZWY0NThjMWFk
|
|
14
|
+
MzFlMjY5Njc0OTFmMTI1NGEwN2YzZjRiNWNiZTEwNTdkODMzNjIwYmIyODky
|
|
15
|
+
NjYyMDE5Y2YxN2IzNjE0MjY4NzY3MmRjMjIxNTI3ZGUxZjFlMWM=
|
data/README.md
CHANGED
|
@@ -42,9 +42,9 @@ hosts = [{:host => 'localhost', :port => '9292', :prefix => '/rpcserv'}]
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
# Let's use the Statsd middleware to send RPC timing and count information to
|
|
45
|
-
# Graphite (this presumes we have already used `Statsd.create_instance`
|
|
46
|
-
# in our code)
|
|
47
|
-
Elementary.use(Elementary::Middleware::Statsd, :client => Statsd.instance)
|
|
45
|
+
# Graphite (this presumes we have already used `Lookout::Statsd.create_instance`
|
|
46
|
+
# elsewhere in our code)
|
|
47
|
+
Elementary.use(Elementary::Middleware::Statsd, :client => Lookout::Statsd.instance)
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
# Create our Connection object that knows about our Protobuf service
|
|
@@ -123,4 +123,3 @@ Start the server hosting the rpc as below:
|
|
|
123
123
|
Run the tests
|
|
124
124
|
|
|
125
125
|
bundle exec rspec spec
|
|
126
|
-
|
data/elementary-rpc.gemspec
CHANGED
|
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.add_dependency 'concurrent-ruby', '>= 0.7'
|
|
25
25
|
spec.add_dependency 'faraday', '~> 0.9.0'
|
|
26
26
|
spec.add_dependency 'net-http-persistent', '~> 2.9.4'
|
|
27
|
-
spec.add_dependency 'lookout-statsd', '~>
|
|
27
|
+
spec.add_dependency 'lookout-statsd', '~> 3.0'
|
|
28
28
|
spec.add_dependency 'hashie'
|
|
29
29
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require 'rubygems'
|
|
2
|
-
require 'statsd'
|
|
2
|
+
require 'lookout/statsd'
|
|
3
3
|
|
|
4
4
|
module Elementary
|
|
5
5
|
module Middleware
|
|
@@ -7,12 +7,12 @@ module Elementary
|
|
|
7
7
|
# Create a new Statsd middleware for Elementary
|
|
8
8
|
#
|
|
9
9
|
# @param [Hash] opts Hash of optional parameters
|
|
10
|
-
# @option opts [::
|
|
11
|
-
# a +
|
|
10
|
+
# @option opts [Lookout::StatsdClient] :client Set to an existing instance of
|
|
11
|
+
# a +Lookout::StatsdClient+ or other object implementing Statsd interface.
|
|
12
12
|
def initialize(app, opts={})
|
|
13
13
|
@app = app
|
|
14
14
|
|
|
15
|
-
@statsd = opts[:client] || ::
|
|
15
|
+
@statsd = opts[:client] || Lookout::StatsdClient.new
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
def call(service, rpc_method, *params)
|
data/lib/elementary/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: elementary-rpc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.8.0.84
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- R. Tyler Croy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-07-
|
|
11
|
+
date: 2016-07-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -86,14 +86,14 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - ~>
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version:
|
|
89
|
+
version: '3.0'
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - ~>
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version:
|
|
96
|
+
version: '3.0'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: hashie
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|