ultrahook 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ultrahook/client.rb +3 -1
- data/lib/ultrahook/version.rb +1 -1
- metadata +3 -3
data/lib/ultrahook/client.rb
CHANGED
@@ -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=
|
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
|
|
data/lib/ultrahook/version.rb
CHANGED
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.
|
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:
|
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.
|
65
|
+
rubygems_version: 1.8.23
|
66
66
|
signing_key:
|
67
67
|
specification_version: 3
|
68
68
|
summary: Receive webhooks on localhost
|