nugget 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nugget/backstop.rb +6 -6
- data/lib/nugget/version.rb +1 -1
- metadata +2 -2
data/lib/nugget/backstop.rb
CHANGED
@@ -29,16 +29,16 @@ module Nugget
|
|
29
29
|
Nugget::Log.debug("Sending the following to backstop: #{metric}: #{value}")
|
30
30
|
|
31
31
|
body = [{
|
32
|
-
metric
|
33
|
-
value
|
34
|
-
measure_time
|
32
|
+
:metric => metric,
|
33
|
+
:value => value,
|
34
|
+
:measure_time => Time.now.to_i
|
35
35
|
}].to_json
|
36
36
|
|
37
37
|
request = Typhoeus::Request.new(
|
38
38
|
Nugget::Config.backstop_url,
|
39
|
-
method
|
40
|
-
body
|
41
|
-
headers
|
39
|
+
:method => :post,
|
40
|
+
:body => body,
|
41
|
+
:headers => { 'Content-Type' => 'application/json' }
|
42
42
|
)
|
43
43
|
|
44
44
|
response = request.run
|
data/lib/nugget/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nugget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mixlib-config
|