scout 5.1.3 → 5.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/lib/scout.rb +1 -1
- data/lib/scout/server.rb +6 -6
- metadata +12 -4
data/CHANGELOG
CHANGED
data/lib/scout.rb
CHANGED
data/lib/scout/server.rb
CHANGED
@@ -19,9 +19,9 @@ module Scout
|
|
19
19
|
class APITimeoutError < RuntimeError; end
|
20
20
|
|
21
21
|
# Headers passed up with all API requests.
|
22
|
-
HTTP_HEADERS = { "
|
23
|
-
"
|
24
|
-
"
|
22
|
+
HTTP_HEADERS = { "Client-Version" => Scout::VERSION,
|
23
|
+
"Client-Hostname" => Socket.gethostname,
|
24
|
+
"Accept-Encoding" => "gzip" }
|
25
25
|
|
26
26
|
#
|
27
27
|
# A plugin cannot take more than DEFAULT_PLUGIN_TIMEOUT seconds to execute,
|
@@ -67,7 +67,7 @@ module Scout
|
|
67
67
|
def fetch_plan
|
68
68
|
url = urlify(:plan)
|
69
69
|
info "Pinging server at #{url}..."
|
70
|
-
headers = {"
|
70
|
+
headers = {"x-scout-tty" => ($stdin.tty? ? 'true' : 'false')}
|
71
71
|
if @history["plan_last_modified"] and @history["old_plugins"]
|
72
72
|
headers["If-Modified-Since"] = @history["plan_last_modified"]
|
73
73
|
end
|
@@ -391,7 +391,7 @@ module Scout
|
|
391
391
|
"Unable to check in with the server.",
|
392
392
|
io.string,
|
393
393
|
"Content-Type" => "application/json",
|
394
|
-
"
|
394
|
+
"Content-Encoding" => "gzip" )
|
395
395
|
rescue Exception
|
396
396
|
error "Unable to check in with the server."
|
397
397
|
debug $!.class.to_s
|
@@ -417,4 +417,4 @@ module Scout
|
|
417
417
|
end
|
418
418
|
end
|
419
419
|
end
|
420
|
-
end
|
420
|
+
end
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 59
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 5
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 5.1.
|
9
|
+
- 4
|
10
|
+
version: 5.1.4
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Highgroove Studios
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-07-14 00:00:00 -07:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: elif
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
27
30
|
segments:
|
28
31
|
- 0
|
29
32
|
version: "0"
|
@@ -176,6 +179,7 @@ files:
|
|
176
179
|
- vendor/json_pure/tools/server.rb
|
177
180
|
- vendor/json_pure/VERSION
|
178
181
|
- Rakefile
|
182
|
+
- bin/scout
|
179
183
|
- AUTHORS
|
180
184
|
- COPYING
|
181
185
|
- README
|
@@ -196,23 +200,27 @@ rdoc_options:
|
|
196
200
|
require_paths:
|
197
201
|
- lib
|
198
202
|
required_ruby_version: !ruby/object:Gem::Requirement
|
203
|
+
none: false
|
199
204
|
requirements:
|
200
205
|
- - ">="
|
201
206
|
- !ruby/object:Gem::Version
|
207
|
+
hash: 3
|
202
208
|
segments:
|
203
209
|
- 0
|
204
210
|
version: "0"
|
205
211
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
|
+
none: false
|
206
213
|
requirements:
|
207
214
|
- - ">="
|
208
215
|
- !ruby/object:Gem::Version
|
216
|
+
hash: 3
|
209
217
|
segments:
|
210
218
|
- 0
|
211
219
|
version: "0"
|
212
220
|
requirements: []
|
213
221
|
|
214
222
|
rubyforge_project: scout
|
215
|
-
rubygems_version: 1.3.
|
223
|
+
rubygems_version: 1.3.7
|
216
224
|
signing_key:
|
217
225
|
specification_version: 3
|
218
226
|
summary: Scout makes monitoring and reporting on your web applications as flexible and simple as possible.
|