redmon 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmZjOTRiZTdlM2U1YjBhMjcxZTlkYmE1MDNjZjE3ZTlkMzlkODk2NQ==
4
+ ZWM1NzliMjNjZWZjYjZiZTdhMWFhYWY4NTg5NWE2NTQ4MjBlNzBjYQ==
5
5
  data.tar.gz: !binary |-
6
- MGEwNzdiMDVlNDFkNDMxMjY4MzAyMDkwZmU1N2FhM2Y2M2E4NjM4MQ==
6
+ NmM3YjNjM2E4YWM5MTFlMDdjODhiY2QwM2ViNzA1M2YzNWZiYzM3Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- Y2U5NDkxYzhmYTI3N2JlY2VkMjFmNDc4NmUxZDg3MWIzMWRlMjc2NWMzNzM0
10
- ZTU3MmQwMzZiMmYxMDQzNGMyNWZiZjlkZjdlMDMxZTMwZTNiMGU3NDk0MjAx
11
- YTFiOWQxNDMxZDIzMzYzODZiZGMzZjgxNjk0NTFhZGFmNWZmM2M=
9
+ OGI0NDdlZjk1NmM0NDMzZWMyZDNjOWVkM2VmNThjN2M0MWVmYTJiNWZiMTRi
10
+ NGQxNmUwMTdiMmZkMmUzMmM4MjZkMDJhY2IxMTdkYzk2ODJmOGViNDNjYmM0
11
+ ZGEyYWYwZjMxZWVmNWE5ZjMxYTdkY2JmMWYyMTExZWYxMWM1OTQ=
12
12
  data.tar.gz: !binary |-
13
- ZDFlYzU2YTk5MjEzYjJmYWVmYjhhZmU5NWFmNzZhYzdkMDNiMzNhMGNhMTdl
14
- NTRkN2ZmYmQ5YzRhMWU4NmJhNTFmMzQ0YmVmZDJkY2JlYzM1NjE3OWE5YTQ0
15
- Y2Q3Y2Q2OWZmODgyODNhYjcyODdiZTdmMDY0MjNkM2NlYzVhOTk=
13
+ NTY0MWM5OWEwNmU4NjEwYzkzNDg1N2MxMjg4OTAyZTNkNjM3MmY0MDY3OTVh
14
+ NmNlNDc0MzAyZjVmZWIxMWJmOTJlY2U1Nzk2NTg4N2RlNmE5MGFjM2U5NjQz
15
+ NzBiYjZhNjA3OTVlOGI2NDBjOGE2MGM1NzY5OTJiZTQ0MGMxYWQ=
@@ -1,7 +1,5 @@
1
1
  require 'eventmachine'
2
- require 'active_support'
3
- require 'active_support/deprecation'
4
- require 'active_support/core_ext'
2
+ require 'json'
5
3
 
6
4
  module Redmon
7
5
  extend self
@@ -28,7 +28,7 @@ module Redmon
28
28
 
29
29
  get '/cli' do
30
30
  args = params[:command].split(/ *"(.*?)" *| *'(.*?)' *| /)
31
- args.reject!(&:blank?)
31
+ args.reject!(&:empty?)
32
32
  @cmd = args.shift.downcase.intern
33
33
  begin
34
34
  raise RuntimeError unless supported? @cmd
@@ -1,3 +1,3 @@
1
1
  module Redmon
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -26,7 +26,6 @@ Gem::Specification.new do |s|
26
26
  s.add_dependency "haml"
27
27
  s.add_dependency "rack"
28
28
  s.add_dependency "thin", "~> 1.5.1"
29
- s.add_dependency "activesupport", "~> 3.2.0"
30
29
  s.add_dependency "mixlib-cli"
31
30
 
32
31
  s.add_development_dependency "sinatra-contrib", "~> 1.3.1"
@@ -16,17 +16,17 @@ describe "worker" do
16
16
  redis = mock_redis
17
17
  redis.should_receive(:zadd).at_least(:twice)
18
18
  redis.should_receive(:zremrangebyscore).at_least(:twice)
19
-
19
+
20
20
  @worker.stub(:stats).and_return(['ts', 'stats'])
21
21
 
22
22
  emThread = Thread.new do
23
23
  EM.run do
24
- @timer = @worker.run!
24
+ @timer = @worker.run!
25
25
  end
26
26
  end
27
27
 
28
28
  puts "sleeping for 3 cycles of Redmon.config.poll_interval: #{Redmon.config.poll_interval} seconds to ensure polling occurred"
29
- sleep 3 * Redmon.config.poll_interval.seconds
29
+ sleep 3 * Redmon.config.poll_interval
30
30
  @timer.cancel
31
31
  emThread.kill
32
32
  @worker.cleanup_old_stats
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean McDaniel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-13 00:00:00.000000000 Z
11
+ date: 2014-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -122,20 +122,6 @@ dependencies:
122
122
  - - ~>
123
123
  - !ruby/object:Gem::Version
124
124
  version: 1.5.1
125
- - !ruby/object:Gem::Dependency
126
- name: activesupport
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ~>
130
- - !ruby/object:Gem::Version
131
- version: 3.2.0
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ~>
137
- - !ruby/object:Gem::Version
138
- version: 3.2.0
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: mixlib-cli
141
127
  requirement: !ruby/object:Gem::Requirement