metricize 0.4.6 → 0.4.7

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba2d742a43d5df4f2744e1f9ee423097c953b947
4
- data.tar.gz: 59f255649011baa295b25490ed3cd05dbdbab605
3
+ metadata.gz: 0a8cf931a25d42cfb633f176985e4384de6c6511
4
+ data.tar.gz: 9988f0a09c4f64195605fc8ca6cd7c4f806650f2
5
5
  SHA512:
6
- metadata.gz: 9131eb3bea2f4291c9578e2e7852ad330b80ecae486c1b91199164dfcd4b37ae4ff1c2dc5a8d13cd3922bd1a233ea4081ab11b77843af4c75c1b2ecd16b5b725
7
- data.tar.gz: 3cefc14f6532f3d3f6dd00d070ffcb61983ca7efdcf7b99de445cc69121599f79c8c52019d5952f7ad7d8630424161c37ac8c3aebaf84c234305f6055708f2e0
6
+ metadata.gz: c60726cfc70f886bf2ca1b6e4a67f510ac49842237cb7a367602dec91343167d1abe2a5fc9f6956ece80b92e33af9300448e5bccca91738e0cbc0b0f4700a1c6
7
+ data.tar.gz: ce714c019aa029f2eab3abd0d6278f11107dd890418d49251328bad093a607fb0aeff93ffaa0b2c869b20dcdf7d786f05d338655804f76f6e2c59c859dba9ef4
@@ -1,3 +1,3 @@
1
1
  module Metricize
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
@@ -21,7 +21,7 @@ describe Metricize do
21
21
  end
22
22
 
23
23
  it "provides null object implementations to allow for easily disabling metrics functionality" do
24
- expect(Metricize::NullClient).to respond_to(:new, :increment, :measure, :time)
24
+ expect(Metricize::NullClient).to respond_to(:new, :increment, :measure, :time, :establish_redis_connection)
25
25
  expect(Metricize::NullForwarder).to respond_to(:new, :go!)
26
26
  end
27
27
 
@@ -123,9 +123,11 @@ describe Metricize do
123
123
  end
124
124
 
125
125
  it "logs in splunk format a sampling of metrics" do
126
- logger.should_receive(:info).with(/prefix_value1=10.0/m).at_least(5).times
126
+ srand(1234)
127
+ logger.should_receive(:info) # ignore initial connection message
128
+ logger.should_receive(:info).with(/prefix_value1=10.0/m).exactly(9).times
127
129
  100.times { client.measure('value1', 10) }
128
- logger.should_receive(:info).with(/prefix_value2=20.0/m).at_most(20).times
130
+ logger.should_receive(:info).with(/prefix_value2=20.0/m).exactly(6).times
129
131
  100.times { client.measure('value2', 20) }
130
132
  end
131
133
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metricize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt McNeil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-08 00:00:00.000000000 Z
11
+ date: 2013-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler