microphite 0.5.5 → 0.5.6

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGEzZjk0MTcxYjA0NjhiMjBmOTA4ZDE3N2U2MmY1YzM1ZjJmNGMzOQ==
4
+ OWE5MmFmZjE2NWJjNDM5NGY3NTZiMjJkNDQ4OTk5ZTNiMDA5ZmNiMQ==
5
5
  data.tar.gz: !binary |-
6
- ZjRmYTcxNDhjYzNlMmExYTM0M2QxYjYwNGM0ZGQxMmRhNDMxN2E2ZA==
7
- SHA512:
6
+ OGQ1MDNiZGQ4ODQ5MzljMzg5ZmRmYzc5OWU4MTJjNzg3NGQ4YTdjZA==
7
+ !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZGFhZjgxNjUwYWNlNmU3NzAxMmE1ZTMxM2I5YzE2NjQzZWY3MDJiNGQxOGMx
10
- NzQyNGYyNTEyOTBhYWUzYzg5NjQ4NzQwYjFmN2VlNzBkY2YwMDlhYTc2MmJk
11
- NzVjZDczZDU1ZTY4YzcyMTlhMWIxYWQ2YzRjNzlkOWE5OTViOTQ=
9
+ NjcyZDMzY2ZmMzI2ZWVkNDdlMjYyYjUxNzFjZjU0YTdkYzJjNGI0OTcwMTBm
10
+ OTdlNTBjNDUyZGRjYjM0NjRhZjRiNTAzZjZmY2JiNDk3ZTQxZGQwMzUwOTI1
11
+ YjcxY2QyZTc5OTk3MjA2YzRhYjRmNzFhYjczZDViZDA1YjRmYjc=
12
12
  data.tar.gz: !binary |-
13
- ZDI5ODcxZWUzYWVlNGRmOWU3MmY2OGRiNGZhMjNhYmRlMmY4MjM4Njg5ODhi
14
- M2E5M2E2Y2M5MDAwMzI1M2VkZDNmMjJlNWFiNTA3N2IwYTk3M2Y0YmE2OTQw
15
- MDczODRhZThlNTM2MjdjYjI2NGI2OTJiOGIzN2IyZjM3ZWExNGQ=
13
+ Njg1NTBiZGYwMDNjNWEwMDYwOWExMzViNGMwZjkxNzc0NDQ5Y2EwMzYzNDRi
14
+ NWFiZDhlYmRiZjQwNmM0Mjg3YjJiMDRkZDVlN2VkNzcxYmJlZTkzYzY4YTAx
15
+ MjA5MjgxNGUyYzc3ZTFmM2M0NWY5MmY2ZTcwYWNlMmRjZmQyNGU=
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Microphite CHANGELOG
2
2
  ====================
3
3
 
4
+ v0.5.6
5
+ ------
6
+ - Expose a few of Client::Base's helper methods as protected visibility
7
+
4
8
  v0.5.5
5
9
  ------
6
10
  - Use proc.call to ensure caller self is preserved
@@ -103,6 +103,24 @@ module Microphite
103
103
  raise(AssertionError, 'write_metric must be implemented in subclasses')
104
104
  end
105
105
 
106
+ def now
107
+ Time.now.to_f
108
+ end
109
+
110
+ def error(error)
111
+ if @error_handler.is_a? Proc
112
+ @error_handler.call(error)
113
+ end
114
+ end
115
+
116
+ def wrap_errors(&block)
117
+ begin
118
+ block.call
119
+ rescue Exception => e
120
+ error(e)
121
+ end
122
+ end
123
+
106
124
  private
107
125
 
108
126
  def worker_loop
@@ -183,24 +201,6 @@ module Microphite
183
201
  def should_flush?
184
202
  now > @next_flush
185
203
  end
186
-
187
- def now
188
- Time.now.to_f
189
- end
190
-
191
- def error(error)
192
- if @error_handler.is_a? Proc
193
- @error_handler.call(error)
194
- end
195
- end
196
-
197
- def wrap_errors(&block)
198
- begin
199
- block.call
200
- rescue Exception => e
201
- error(e)
202
- end
203
- end
204
204
  end
205
205
  end
206
206
  end
@@ -1,3 +1,3 @@
1
1
  module Microphite
2
- VERSION = '0.5.5'
2
+ VERSION = '0.5.6'
3
3
  end
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.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - BZ
@@ -14,47 +14,53 @@ cert_chain: []
14
14
  date: 2013-11-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
- name: rake
18
17
  requirement: !ruby/object:Gem::Requirement
19
18
  requirements:
20
19
  - - ! '>='
21
20
  - !ruby/object:Gem::Version
22
- version: '0'
23
- type: :development
24
- prerelease: false
21
+ version: !binary |-
22
+ MA==
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
24
  requirements:
27
25
  - - ! '>='
28
26
  - !ruby/object:Gem::Version
29
- version: '0'
27
+ version: !binary |-
28
+ MA==
29
+ name: rake
30
+ type: :development
31
+ prerelease: false
30
32
  - !ruby/object:Gem::Dependency
31
- name: rspec
32
33
  requirement: !ruby/object:Gem::Requirement
33
34
  requirements:
34
35
  - - ! '>='
35
36
  - !ruby/object:Gem::Version
36
- version: '0'
37
- type: :development
38
- prerelease: false
37
+ version: !binary |-
38
+ MA==
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
- version: '0'
43
+ version: !binary |-
44
+ MA==
45
+ name: rspec
46
+ type: :development
47
+ prerelease: false
44
48
  - !ruby/object:Gem::Dependency
45
- name: coveralls
46
49
  requirement: !ruby/object:Gem::Requirement
47
50
  requirements:
48
51
  - - ! '>='
49
52
  - !ruby/object:Gem::Version
50
- version: '0'
51
- type: :development
52
- prerelease: false
53
+ version: !binary |-
54
+ MA==
53
55
  version_requirements: !ruby/object:Gem::Requirement
54
56
  requirements:
55
57
  - - ! '>='
56
58
  - !ruby/object:Gem::Version
57
- version: '0'
59
+ version: !binary |-
60
+ MA==
61
+ name: coveralls
62
+ type: :development
63
+ prerelease: false
58
64
  description: A tiny and fast, asynchronous graphite client
59
65
  email:
60
66
  - support@bz-technology.com
@@ -98,15 +104,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
104
  requirements:
99
105
  - - ! '>='
100
106
  - !ruby/object:Gem::Version
101
- version: '0'
107
+ version: !binary |-
108
+ MA==
102
109
  required_rubygems_version: !ruby/object:Gem::Requirement
103
110
  requirements:
104
111
  - - ! '>='
105
112
  - !ruby/object:Gem::Version
106
- version: '0'
113
+ version: !binary |-
114
+ MA==
107
115
  requirements: []
108
116
  rubyforge_project:
109
- rubygems_version: 2.1.11
117
+ rubygems_version: 2.0.6
110
118
  signing_key:
111
119
  specification_version: 4
112
120
  summary: A tiny and fast, asynchronous graphite client