ultrahook 0.1.2 → 0.1.3

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.
@@ -4,6 +4,8 @@ require 'json'
4
4
  require 'base64'
5
5
  require 'optparse'
6
6
 
7
+ $stdout.sync = true
8
+
7
9
  module UltraHook
8
10
  class Client
9
11
 
@@ -115,7 +117,7 @@ module UltraHook
115
117
  puts "[#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}] POST http://#{uri.host}:#{uri.port}#{full_path(uri)} - #{response.code}"
116
118
  end
117
119
 
118
- def http_post(uri, data, headers=nil)
120
+ def http_post(uri, data="", headers={})
119
121
  Net::HTTP.new(uri.host, uri.port).post(full_path(uri), data, headers)
120
122
  end
121
123
 
@@ -1,3 +1,3 @@
1
1
  module UltraHook
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultrahook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.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: 2013-07-21 00:00:00.000000000 Z
12
+ date: 2014-07-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  version: '0'
63
63
  requirements: []
64
64
  rubyforge_project:
65
- rubygems_version: 1.8.25
65
+ rubygems_version: 1.8.23
66
66
  signing_key:
67
67
  specification_version: 3
68
68
  summary: Receive webhooks on localhost