jsonrpc 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +9 -0
- data/Gemfile +6 -0
- data/Rakefile +2 -0
- data/lib/jsonrpc.rb +1 -1
- data/lib/jsonrpc/version.rb +1 -1
- metadata +5 -3
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Rakefile
CHANGED
data/lib/jsonrpc.rb
CHANGED
@@ -16,7 +16,7 @@ module JsonRPC
|
|
16
16
|
def request(method, params)
|
17
17
|
result = {}
|
18
18
|
params ||= {}
|
19
|
-
h = {"Content-Type"
|
19
|
+
h = {"Content-Type" => "application/json"}
|
20
20
|
Net::HTTP.start(@address.host, @address.port) do |connection|
|
21
21
|
result = JSON.parse(connection.post(@address.path, {:method => method.to_s, :params => params}.to_json, h).body)
|
22
22
|
end
|
data/lib/jsonrpc/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 4
|
9
|
+
version: 0.9.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Dirkjan Bussink
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-07-
|
17
|
+
date: 2011-07-27 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -65,7 +65,9 @@ extra_rdoc_files: []
|
|
65
65
|
|
66
66
|
files:
|
67
67
|
- .gitignore
|
68
|
+
- .travis.yml
|
68
69
|
- CHANGELOG
|
70
|
+
- Gemfile
|
69
71
|
- LICENSE
|
70
72
|
- README
|
71
73
|
- Rakefile
|