bummer 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/bummer.rb +2 -4
  2. data/lib/bummer/version.rb +1 -1
  3. 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), event )
23
+ res = Net::HTTP.post_form( URI.parse(server), information )
26
24
 
27
25
  case res
28
26
  when Net::HTTPCreated
@@ -1,3 +1,3 @@
1
1
  module Bummer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thierry Joyal