microphite 0.5.3 → 0.5.4

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.
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Microphite CHANGELOG
2
2
  ====================
3
3
 
4
+ v0.5.4
5
+ ------
6
+ - Add tests for the convenience factories
7
+
4
8
  v0.5.3
5
9
  ------
6
10
  - Change default flush period to 1 second for convenience
@@ -1,3 +1,3 @@
1
1
  module Microphite
2
- VERSION = '0.5.3'
2
+ VERSION = '0.5.4'
3
3
  end
data/lib/microphite.rb CHANGED
@@ -8,7 +8,7 @@ module Microphite
8
8
  Client::Socket.new(options)
9
9
  end
10
10
 
11
- def self.noop(options=nil)
11
+ def self.noop(options={})
12
12
  Client::Noop.new(options)
13
13
  end
14
14
  end
@@ -0,0 +1,16 @@
1
+ # Sanity tests for the convenience factories
2
+ module Microphite
3
+ describe :client do
4
+ before_block = Proc.new { @client = Microphite::Client::Socket.new(host: 'localhost') }
5
+ after_block = Proc.new {}
6
+
7
+ it_should_behave_like 'a microphite client', before_block, after_block
8
+ end
9
+
10
+ describe :noop do
11
+ before_block = Proc.new { @client = Microphite::Client::Noop.new(host: 'localhost') }
12
+ after_block = Proc.new {}
13
+
14
+ it_should_behave_like 'a microphite client', before_block, after_block
15
+ end
16
+ 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.3
4
+ version: 0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -72,6 +72,7 @@ files:
72
72
  - microphite.gemspec
73
73
  - spec/client/noop_spec.rb
74
74
  - spec/client/socket_spec.rb
75
+ - spec/microphite_spec.rb
75
76
  - spec/spec_helper.rb
76
77
  - spec/support/client_shared_examples.rb
77
78
  - spec/support/single_serve_helper.rb
@@ -91,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
92
  version: '0'
92
93
  segments:
93
94
  - 0
94
- hash: -1676839146932483609
95
+ hash: -3721843423147730065
95
96
  required_rubygems_version: !ruby/object:Gem::Requirement
96
97
  none: false
97
98
  requirements:
@@ -100,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
101
  version: '0'
101
102
  segments:
102
103
  - 0
103
- hash: -1676839146932483609
104
+ hash: -3721843423147730065
104
105
  requirements: []
105
106
  rubyforge_project:
106
107
  rubygems_version: 1.8.23
@@ -110,6 +111,7 @@ summary: A tiny and fast, asynchronous graphite client
110
111
  test_files:
111
112
  - spec/client/noop_spec.rb
112
113
  - spec/client/socket_spec.rb
114
+ - spec/microphite_spec.rb
113
115
  - spec/spec_helper.rb
114
116
  - spec/support/client_shared_examples.rb
115
117
  - spec/support/single_serve_helper.rb