scout 5.3.0 → 5.3.1
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/CHANGELOG +5 -1
- data/lib/scout.rb +1 -1
- data/lib/scout/server.rb +8 -2
- metadata +4 -4
data/CHANGELOG
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
+
== 5.3.1
|
2
|
+
|
3
|
+
* Write a log message if a full disk prevents Scout from creating a history file.
|
4
|
+
|
1
5
|
== 5.3.0
|
2
6
|
|
3
7
|
* Ping over http instead of https. All plan retrievals and check-ins are still SSL
|
4
8
|
* Added ability to post troubleshooting report back to scoutapp.com
|
5
9
|
|
6
|
-
|
10
|
+
== 5.2.2
|
7
11
|
|
8
12
|
* More graceful handling of *rare* client_history.yaml corruption
|
9
13
|
|
data/lib/scout.rb
CHANGED
data/lib/scout/server.rb
CHANGED
@@ -425,6 +425,12 @@ module Scout
|
|
425
425
|
@history = File.open(@history_file) { |file| YAML.load(file) }
|
426
426
|
end
|
427
427
|
|
428
|
+
# YAML interprets an empty file as false. This condition catches that
|
429
|
+
if !@history
|
430
|
+
info "There is a problem with the history file at '#{@history_file}'. The root cause is sometimes a full disk. "+
|
431
|
+
"If '#{@history_file}' exists but is empty, your disk is likely full."
|
432
|
+
exit(1)
|
433
|
+
end
|
428
434
|
info "History file loaded."
|
429
435
|
end
|
430
436
|
|
@@ -434,8 +440,8 @@ module Scout
|
|
434
440
|
File.open(@history_file, "w") do |file|
|
435
441
|
YAML.dump({"last_runs" => Hash.new, "memory" => Hash.new}, file)
|
436
442
|
end
|
437
|
-
info "History file created."
|
438
|
-
end
|
443
|
+
info "History file created."
|
444
|
+
end
|
439
445
|
|
440
446
|
# Saves the history file to disk.
|
441
447
|
def save_history
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 5
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 5.3.
|
9
|
+
- 1
|
10
|
+
version: 5.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scout Monitoring
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03
|
18
|
+
date: 2011-05-03 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|