microphite 0.6.1 → 1.0.0
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/CHANGELOG.md +4 -0
- data/README.md +4 -2
- data/lib/microphite/version.rb +1 -1
- data/microphite.gemspec +3 -3
- data/spec/microphite_spec.rb +2 -2
- data/spec/spec_helper.rb +11 -9
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTcwZTI0NTA4ZGNjMzQ1ZjhkZmE0ZTA0M2UwOWZmNWI0NjA1YTljNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmI0ZjliYTg3ZjkwYWJjMDRhZjNmYmY2OTk4MWQyZmRkOTZkNTU5Yw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTFkNWQ4NjVjMzljMGZiOTkyNjg2NzA1NWY4NGQxNGRhNzRmMGI0YjViMGRm
|
10
|
+
ZjcyY2Y2YjQ3ZDc2ZjU5OTVhYzA2NjMzYWNiODg4OGYxZWM3MTBlYjkxYmRk
|
11
|
+
YmRhMDgwZmJmZDE4Y2I4NTNjYjkzOGE1NTNlMTFjMGVlOGFjOGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzI5NGRlNGI5NDM2OTdlYzgyYzRjZmIxYzg2ZDY2ZTI5MzAxM2EyZWUzNmVk
|
14
|
+
YmUxN2U5NGViNDdiODVmYjQ4ZDM4Zjk2ODViZDAxZTJmOTQwZjcxZGU5Y2M5
|
15
|
+
NmNkMzMyYzZiNDFiZDFhYjI4YTUzMzRlZWMxNmMwYjdlODJlZWM=
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
Microphite CHANGELOG
|
2
2
|
====================
|
3
3
|
|
4
|
+
v1.0.0
|
5
|
+
------
|
6
|
+
- No functional changes. Code has been used in production for a long time without issue. Release v1.0 to indicate stability.
|
7
|
+
|
4
8
|
v0.6.1
|
5
9
|
------
|
6
10
|
- Code cleanup/refactoring. No functional changes.
|
data/README.md
CHANGED
@@ -9,10 +9,12 @@ Microphite
|
|
9
9
|
Overview
|
10
10
|
--------
|
11
11
|
|
12
|
-
Microphite is a tiny and fast, asynchronous graphite client. It can be called
|
12
|
+
Microphite is a tiny and fast, asynchronous [Graphite](http://graphite.wikidot.com/) client. It can be called
|
13
13
|
many times per second with minimal overhead. It is synchronized internally and
|
14
14
|
can be shared across threads. Both tcp and udp connections are supported.
|
15
15
|
|
16
|
+
Microphite has been in use in production by a BZ technology client for quite some time without issue.
|
17
|
+
|
16
18
|
|
17
19
|
Usage
|
18
20
|
-----
|
@@ -52,7 +54,7 @@ Time a code block, gathering to timing.task
|
|
52
54
|
task
|
53
55
|
end
|
54
56
|
|
55
|
-
Execute-around for writes and gathers -- Send data unless a block throws
|
57
|
+
Execute-around for writes and gathers -- Send data unless a block throws. The block's return value is preserved.
|
56
58
|
|
57
59
|
client.write(accurate_data: 42) do
|
58
60
|
something_that_may_throw()
|
data/lib/microphite/version.rb
CHANGED
data/microphite.gemspec
CHANGED
@@ -14,9 +14,9 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.description = 'A tiny and fast, asynchronous graphite client'
|
15
15
|
gem.homepage = 'https://github.com/bz-technology/microphite'
|
16
16
|
|
17
|
-
gem.add_development_dependency 'rake'
|
18
|
-
gem.add_development_dependency 'rspec'
|
19
|
-
gem.add_development_dependency 'coveralls'
|
17
|
+
gem.add_development_dependency 'rake', '~> 10.0'
|
18
|
+
gem.add_development_dependency 'rspec', '~> 2.14.1'
|
19
|
+
gem.add_development_dependency 'coveralls', '~> 0.7'
|
20
20
|
|
21
21
|
gem.files = `git ls-files`.split("\n")
|
22
22
|
gem.test_files = `git ls-files -- spec/*`.split("\n")
|
data/spec/microphite_spec.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# Sanity tests for the convenience factories
|
2
2
|
module Microphite
|
3
3
|
describe :client do
|
4
|
-
before_block = Proc.new { @client = Microphite
|
4
|
+
before_block = Proc.new { @client = Microphite.client(host: 'localhost') }
|
5
5
|
after_block = Proc.new {}
|
6
6
|
|
7
7
|
it_should_behave_like 'a microphite client', before_block, after_block
|
8
8
|
end
|
9
9
|
|
10
10
|
describe :noop do
|
11
|
-
before_block = Proc.new { @client = Microphite
|
11
|
+
before_block = Proc.new { @client = Microphite.noop(host: 'localhost') }
|
12
12
|
after_block = Proc.new {}
|
13
13
|
|
14
14
|
it_should_behave_like 'a microphite client', before_block, after_block
|
data/spec/spec_helper.rb
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
# Copyright (c) 2013 BZ Technology Services, LLC
|
2
2
|
# Released under the MIT License (http://opensource.org/licenses/MIT)
|
3
3
|
|
4
|
-
require 'microphite'
|
5
|
-
require 'socket'
|
6
|
-
|
7
|
-
# Coveralls support
|
8
|
-
require 'coveralls'
|
9
|
-
Coveralls.wear!
|
10
|
-
|
11
4
|
Dir['./spec/support/**/*.rb'].each { |file| require file }
|
12
|
-
|
13
|
-
|
14
5
|
RSpec.configure do |config|
|
15
6
|
config.include Helpers
|
16
7
|
end
|
8
|
+
|
9
|
+
require 'simplecov'
|
10
|
+
SimpleCov.configure do
|
11
|
+
add_filter "/spec/"
|
12
|
+
end
|
13
|
+
|
14
|
+
# Coveralls coverage (simplecov-based)
|
15
|
+
require 'coveralls'
|
16
|
+
Coveralls.wear!
|
17
|
+
|
18
|
+
require 'microphite'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microphite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BZ
|
@@ -11,50 +11,50 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date:
|
14
|
+
date: 2014-09-26 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '0'
|
22
|
+
version: '10.0'
|
23
23
|
type: :development
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
29
|
+
version: '10.0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: rspec
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - ~>
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
36
|
+
version: 2.14.1
|
37
37
|
type: :development
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ~>
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 2.14.1
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
45
|
name: coveralls
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - ~>
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '0'
|
50
|
+
version: '0.7'
|
51
51
|
type: :development
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- -
|
55
|
+
- - ~>
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: '0'
|
57
|
+
version: '0.7'
|
58
58
|
description: A tiny and fast, asynchronous graphite client
|
59
59
|
email:
|
60
60
|
- support@bz-technology.com
|