what 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/what/server.rb +2 -2
  2. data/lib/what/version.rb +1 -1
  3. metadata +49 -77
data/lib/what/server.rb CHANGED
@@ -8,12 +8,12 @@ module What
8
8
 
9
9
  def call(env)
10
10
  if Config['secret_token'] && Config['secret_token'] != env['QUERY_STRING']
11
- [403, {'Content-Type' => 'text/plain'}, "403 Forbidden\n"]
11
+ [403, {'Content-Type' => 'text/plain'}, ["403 Forbidden\n"]]
12
12
  else
13
13
  [
14
14
  Status['health'] != 'alert' ? 200 : 503,
15
15
  {'Content-Type' => Formatter.mime},
16
- Formatter.format(Status.all)
16
+ [Formatter.format(Status.all)]
17
17
  ]
18
18
  end
19
19
  end
data/lib/what/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module What
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,85 +1,67 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: what
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 0
10
- version: 0.1.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Ryan Fitzgerald
14
9
  - Ryan Lower
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-06-01 00:00:00 -07:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
13
+ date: 2012-03-01 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
23
16
  name: rack
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &70189107394580 !ruby/object:Gem::Requirement
26
18
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 23
31
- segments:
32
- - 1
33
- - 1
34
- - 2
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
35
22
  version: 1.1.2
36
23
  type: :runtime
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
39
- name: excon
40
24
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *70189107394580
26
+ - !ruby/object:Gem::Dependency
27
+ name: excon
28
+ requirement: &70189107394060 !ruby/object:Gem::Requirement
42
29
  none: false
43
- requirements:
30
+ requirements:
44
31
  - - ~>
45
- - !ruby/object:Gem::Version
46
- hash: 5
47
- segments:
48
- - 0
49
- - 6
50
- - 1
32
+ - !ruby/object:Gem::Version
51
33
  version: 0.6.1
52
34
  type: :runtime
53
- version_requirements: *id002
54
- - !ruby/object:Gem::Dependency
55
- name: json
56
35
  prerelease: false
57
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *70189107394060
37
+ - !ruby/object:Gem::Dependency
38
+ name: json
39
+ requirement: &70189107393640 !ruby/object:Gem::Requirement
58
40
  none: false
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
66
45
  type: :runtime
67
- version_requirements: *id003
68
- description: |
69
- What uses WEBrick to serve a JSON object representing the state of services
46
+ prerelease: false
47
+ version_requirements: *70189107393640
48
+ description: ! 'What uses WEBrick to serve a JSON object representing the state of
49
+ services
50
+
70
51
  running on a machine. It currently includes modules for monitoring Unicorn
52
+
71
53
  workers, checking for the existence of files and processes, and combining
54
+
72
55
  the output of other What servers.
73
56
 
74
- email:
57
+ '
58
+ email:
75
59
  - team@academia.edu
76
- executables:
60
+ executables:
77
61
  - what
78
62
  extensions: []
79
-
80
63
  extra_rdoc_files: []
81
-
82
- files:
64
+ files:
83
65
  - .gitignore
84
66
  - Gemfile
85
67
  - LICENSE
@@ -108,39 +90,29 @@ files:
108
90
  - lib/what/status.rb
109
91
  - lib/what/version.rb
110
92
  - what.gemspec
111
- has_rdoc: true
112
93
  homepage: http://academia.edu/
113
94
  licenses: []
114
-
115
95
  post_install_message:
116
96
  rdoc_options: []
117
-
118
- require_paths:
97
+ require_paths:
119
98
  - lib
120
- required_ruby_version: !ruby/object:Gem::Requirement
99
+ required_ruby_version: !ruby/object:Gem::Requirement
121
100
  none: false
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- hash: 3
126
- segments:
127
- - 0
128
- version: "0"
129
- required_rubygems_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
130
106
  none: false
131
- requirements:
132
- - - ">="
133
- - !ruby/object:Gem::Version
134
- hash: 3
135
- segments:
136
- - 0
137
- version: "0"
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
138
111
  requirements: []
139
-
140
112
  rubyforge_project: what
141
- rubygems_version: 1.5.1
113
+ rubygems_version: 1.8.11
142
114
  signing_key:
143
115
  specification_version: 3
144
116
  summary: Simple server monitoring tool
145
117
  test_files: []
146
-
118
+ has_rdoc: