pulse-meter 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,10 +1,16 @@
1
+ [![Gem Version](https://badge.fury.io/rb/pulse-meter.png)](http://badge.fury.io/rb/pulse-meter)
1
2
  [![Build Status](https://secure.travis-ci.org/savonarola/pulse-meter.png)](http://travis-ci.org/savonarola/pulse-meter)
2
- [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/savonarola/pulse-meter)
3
+ [![Dependency Status](https://gemnasium.com/savonarola/pulse-meter.png)](https://gemnasium.com/savonarola/pulse-meter)
4
+ [![Code Climate](https://codeclimate.com/github/savonarola/pulse-meter.png)](https://codeclimate.com/github/savonarola/pulse-meter)
3
5
 
4
6
  # PulseMeter
5
7
 
6
8
  PulseMeter is a gem for fast and convenient realtime aggregating of software internal stats through Redis.
7
9
 
10
+ ## Live Demo
11
+
12
+ A small live demo is located here: [rubybox.ru](http://rubybox.ru), its source code can be found here: [https://github.com/savonarola/pulse-meter-demo](https://github.com/savonarola/pulse-meter-demo)
13
+
8
14
  ## Features
9
15
 
10
16
  PulseMeter is designed to provide the following features:
@@ -36,7 +36,7 @@ module PulseMeter
36
36
  def send_buffer
37
37
  data = @buffer.to_json
38
38
  @sock.send(data, 0, *@servers.sample)
39
- rescue StandardError
39
+ rescue StandardError => e
40
40
  PulseMeter.error "error sending data: #{e}, #{e.backtrace.join("\n")}"
41
41
  ensure
42
42
  @buffer = []
@@ -1,3 +1,3 @@
1
1
  module PulseMeter
2
- VERSION = "0.4.7"
2
+ VERSION = "0.4.8"
3
3
  end
@@ -22,6 +22,13 @@ describe PulseMeter::CommandAggregator::UDP do
22
22
  @ca.set("yyyy", "zzzz")
23
23
  end
24
24
  end
25
+
26
+ it "should ignore standard exceptions" do
27
+ udp_sock.should_receive(:send).and_raise(StandardError)
28
+ @ca.multi do
29
+ @ca.set("xxxx", "zzzz")
30
+ end
31
+ end
25
32
  end
26
33
 
27
34
  describe "any other redis instance method" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulse-meter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-24 00:00:00.000000000 Z
13
+ date: 2013-02-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: gon-sinatra
@@ -612,9 +612,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
612
612
  - - ! '>='
613
613
  - !ruby/object:Gem::Version
614
614
  version: '0'
615
- segments:
616
- - 0
617
- hash: -1191505495034659126
618
615
  requirements: []
619
616
  rubyforge_project:
620
617
  rubygems_version: 1.8.23