bummer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bummer.rb +2 -4
- data/lib/bummer/version.rb +1 -1
- metadata +3 -3
data/lib/bummer.rb
CHANGED
@@ -6,6 +6,7 @@ module Bummer
|
|
6
6
|
Bummer::Config.configure!
|
7
7
|
|
8
8
|
information = {
|
9
|
+
:version => 1,
|
9
10
|
:application => Bummer::Config.application,
|
10
11
|
:installation => Bummer::Config.installation,
|
11
12
|
:group => exception.class.to_s,
|
@@ -18,11 +19,8 @@ module Bummer
|
|
18
19
|
|
19
20
|
res = nil
|
20
21
|
begin
|
21
|
-
event = information.each.with_object({}){|(k, v), o|
|
22
|
-
o["event[#{k}]"] = v
|
23
|
-
}
|
24
22
|
|
25
|
-
res = Net::HTTP.post_form( URI.parse(server),
|
23
|
+
res = Net::HTTP.post_form( URI.parse(server), information )
|
26
24
|
|
27
25
|
case res
|
28
26
|
when Net::HTTPCreated
|
data/lib/bummer/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bummer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thierry Joyal
|