what 0.0.11 → 0.0.12

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/lib/what/helpers.rb CHANGED
@@ -35,11 +35,7 @@ module What
35
35
  end
36
36
 
37
37
  def self.curl(uri)
38
- curl = Curl::Easy.new(uri)
39
- curl.on_complete do |easy|
40
- yield(easy.body_str)
41
- end
42
- curl.perform
38
+ yield(Excon.get(uri).body)
43
39
  end
44
40
  end
45
41
  end
data/lib/what/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module What
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
data/lib/what.rb CHANGED
@@ -5,7 +5,7 @@ require 'json'
5
5
  require 'yaml'
6
6
  require 'webrick'
7
7
  require 'rack'
8
- require 'curl'
8
+ require 'excon'
9
9
 
10
10
  require 'what/config'
11
11
  require 'what/formatter'
data/what.gemspec CHANGED
@@ -6,15 +6,16 @@ Gem::Specification.new do |s|
6
6
  s.name = "what"
7
7
  s.version = What::VERSION
8
8
  s.platform = Gem::Platform::RUBY
9
- s.authors = ["Ryan Lower", "Ryan Fitzgerald"]
9
+ s.authors = ["Ryan Fitzgerald", "Ryan Lower"]
10
10
  s.email = ["team@academia.edu"]
11
11
  s.homepage = "http://academia.edu/"
12
12
  s.summary = %q{Simple server monitoring tool}
13
- s.description = "What uses WEBrick to serve a JSON object representing the " +
14
- "state of services running on a machine. It currently only " +
15
- "includes a module for monitoring Unicorn workers, but " +
16
- "it's easy to add custom modules."
17
-
13
+ s.description = <<-EOS
14
+ What uses WEBrick to serve a JSON object representing the state of services
15
+ running on a machine. It currently includes modules for monitoring Unicorn
16
+ workers, checking for the existence of files and processes, and combining
17
+ the output of other What servers.
18
+ EOS
18
19
  s.rubyforge_project = "what"
19
20
 
20
21
  s.files = `git ls-files`.split("\n")
@@ -23,6 +24,6 @@ Gem::Specification.new do |s|
23
24
  s.require_paths = ["lib"]
24
25
 
25
26
  s.add_dependency("rack", ">= 1.1.2")
27
+ s.add_dependency("excon", "~> 0.6.1")
26
28
  s.add_dependency("json")
27
- s.add_dependency("curb")
28
29
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: what
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
9
+ - 12
10
+ version: 0.0.12
11
11
  platform: ruby
12
12
  authors:
13
- - Ryan Lower
14
13
  - Ryan Fitzgerald
14
+ - Ryan Lower
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
@@ -36,21 +36,23 @@ dependencies:
36
36
  type: :runtime
37
37
  version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency
39
- name: json
39
+ name: excon
40
40
  prerelease: false
41
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
- - - ">="
44
+ - - ~>
45
45
  - !ruby/object:Gem::Version
46
- hash: 3
46
+ hash: 5
47
47
  segments:
48
48
  - 0
49
- version: "0"
49
+ - 6
50
+ - 1
51
+ version: 0.6.1
50
52
  type: :runtime
51
53
  version_requirements: *id002
52
54
  - !ruby/object:Gem::Dependency
53
- name: curb
55
+ name: json
54
56
  prerelease: false
55
57
  requirement: &id003 !ruby/object:Gem::Requirement
56
58
  none: false
@@ -63,7 +65,12 @@ dependencies:
63
65
  version: "0"
64
66
  type: :runtime
65
67
  version_requirements: *id003
66
- description: What uses WEBrick to serve a JSON object representing the state of services running on a machine. It currently only includes a module for monitoring Unicorn workers, but it's easy to add custom modules.
68
+ description: |
69
+ What uses WEBrick to serve a JSON object representing the state of services
70
+ running on a machine. It currently includes modules for monitoring Unicorn
71
+ workers, checking for the existence of files and processes, and combining
72
+ the output of other What servers.
73
+
67
74
  email:
68
75
  - team@academia.edu
69
76
  executables: