scout 5.9.7.1 → 5.9.7.2.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.markdown +4 -0
- data/lib/scout.rb +1 -0
- data/lib/scout/helpers.rb +21 -0
- data/lib/scout/plugin.rb +4 -4
- data/lib/scout/version.rb +1 -1
- metadata +17 -28
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 140399efe8eee3eba1aec08b48196a4f87140e31
|
4
|
+
data.tar.gz: 3ba82c2aadc04ddace97c6d33ef1a63b728df903
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: c57acbf53039f8e08e19583939f1c29ba9759ae6d7f25f8f380b65284da397763710d845dc35857571f84969fc9445c550dd6cf1880aec6846629e5929d9dc40
|
7
|
+
data.tar.gz: 6508b1e69bf1b2a6f1aee09950fe114b634abe1955b576fae2fdc4e97f6b59797dd88d4bb6ab69e2311ce321bb6ca3e30ac76224d89344ead1149ce9d5ac7b38
|
data/CHANGELOG.markdown
CHANGED
data/lib/scout.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
class Hash
|
2
|
+
def convert_to_utf8
|
3
|
+
result_hash = {}
|
4
|
+
self.each do |k,v|
|
5
|
+
new_key = k.respond_to?(:convert_to_utf8) ? k.convert_to_utf8 : k
|
6
|
+
new_value = v.respond_to?(:convert_to_utf8) ? v.convert_to_utf8 : v
|
7
|
+
result_hash[new_key] = new_value
|
8
|
+
end
|
9
|
+
return result_hash
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
class String
|
14
|
+
def convert_to_utf8
|
15
|
+
if self.respond_to?('encode') # We can convert natively using Ruby >1.9 encode()
|
16
|
+
return self.encode('UTF-8', {:invalid => :replace, :undef => :replace, :replace => '?'})
|
17
|
+
else # We can't convert natively, do nothing.
|
18
|
+
return self
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/scout/plugin.rb
CHANGED
@@ -116,17 +116,17 @@ module Scout
|
|
116
116
|
|
117
117
|
if "#{kind}" == "report"
|
118
118
|
def report(new_entry)
|
119
|
-
reports << new_entry
|
119
|
+
reports << new_entry.convert_to_utf8
|
120
120
|
end
|
121
121
|
elsif "#{kind}" == "summary"
|
122
122
|
def summary(new_entry)
|
123
|
-
summaries << new_entry
|
123
|
+
summaries << new_entry.convert_to_utf8
|
124
124
|
end
|
125
125
|
else
|
126
126
|
def #{kind}(*fields)
|
127
127
|
#{kind}s << ( fields.first.is_a?(Hash) ?
|
128
|
-
fields.first :
|
129
|
-
{:subject => fields.first, :body => fields.last} )
|
128
|
+
fields.first.convert_to_utf8 :
|
129
|
+
{:subject => fields.first.convert_to_utf8, :body => fields.last.convert_to_utf8} )
|
130
130
|
end
|
131
131
|
end
|
132
132
|
alias_method :add_#{kind}, :#{kind}
|
data/lib/scout/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.9.7.
|
5
|
-
prerelease:
|
4
|
+
version: 5.9.7.2.pre
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Andre Lewis
|
@@ -11,51 +10,45 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2014-10-
|
13
|
+
date: 2014-10-17 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: elif
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - ">="
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: '0'
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
|
-
- -
|
26
|
+
- - ">="
|
30
27
|
- !ruby/object:Gem::Version
|
31
28
|
version: '0'
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: server_metrics
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
|
-
- -
|
33
|
+
- - ">="
|
38
34
|
- !ruby/object:Gem::Version
|
39
35
|
version: 1.2.5
|
40
36
|
type: :runtime
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
|
-
- -
|
40
|
+
- - ">="
|
46
41
|
- !ruby/object:Gem::Version
|
47
42
|
version: 1.2.5
|
48
|
-
description:
|
49
|
-
server monitoring service.
|
50
|
-
|
51
|
-
'
|
43
|
+
description: |
|
44
|
+
The scout gem reports metrics to scoutapp.com, an easy-to-use hosted server monitoring service.
|
52
45
|
email: support@scoutapp.com
|
53
46
|
executables:
|
54
47
|
- scout
|
55
48
|
extensions: []
|
56
49
|
extra_rdoc_files: []
|
57
50
|
files:
|
58
|
-
- .gitignore
|
51
|
+
- ".gitignore"
|
59
52
|
- CHANGELOG.markdown
|
60
53
|
- Gemfile
|
61
54
|
- LICENSE
|
@@ -77,6 +70,7 @@ files:
|
|
77
70
|
- lib/scout/daemon_spawn.rb
|
78
71
|
- lib/scout/data_file.rb
|
79
72
|
- lib/scout/environment.rb
|
73
|
+
- lib/scout/helpers.rb
|
80
74
|
- lib/scout/http.rb
|
81
75
|
- lib/scout/plugin.rb
|
82
76
|
- lib/scout/plugin_options.rb
|
@@ -321,32 +315,27 @@ files:
|
|
321
315
|
- vendor/util/lib/core_extensions.rb
|
322
316
|
homepage: http://scoutapp.com
|
323
317
|
licenses: []
|
318
|
+
metadata: {}
|
324
319
|
post_install_message:
|
325
320
|
rdoc_options: []
|
326
321
|
require_paths:
|
327
322
|
- lib
|
328
323
|
required_ruby_version: !ruby/object:Gem::Requirement
|
329
|
-
none: false
|
330
324
|
requirements:
|
331
|
-
- -
|
325
|
+
- - ">="
|
332
326
|
- !ruby/object:Gem::Version
|
333
327
|
version: '0'
|
334
328
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
335
|
-
none: false
|
336
329
|
requirements:
|
337
|
-
- -
|
330
|
+
- - ">"
|
338
331
|
- !ruby/object:Gem::Version
|
339
|
-
version:
|
332
|
+
version: 1.3.1
|
340
333
|
requirements: []
|
341
334
|
rubyforge_project: scout
|
342
|
-
rubygems_version:
|
335
|
+
rubygems_version: 2.2.2
|
343
336
|
signing_key:
|
344
|
-
specification_version:
|
337
|
+
specification_version: 4
|
345
338
|
summary: Scout is an easy-to-use hosted server monitoring service. The scout Ruby
|
346
339
|
gem reports metrics to our service. The agent runs plugins, configured via the Scout
|
347
340
|
web interface, to monitor a server.
|
348
|
-
test_files:
|
349
|
-
- test/plugins/disk_usage.rb
|
350
|
-
- test/scout_test.rb
|
351
|
-
- test/streamer_test.rb
|
352
|
-
has_rdoc:
|
341
|
+
test_files: []
|