jsonrpc 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ rvm:
2
+ - 1.8.7 # (current default)
3
+ - 1.9.2
4
+ - rbx
5
+ - rbx-2.0
6
+ - ree
7
+ - jruby
8
+ - ruby-head
9
+ - 1.8.6
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source :rubygems
2
+
3
+ gem 'json'
4
+ gem 'addressable', '~> 2.1'
5
+ gem 'rspec', '~> 2.0'
6
+ gem 'rake'
data/Rakefile CHANGED
@@ -11,6 +11,8 @@ RSpec::Core::RakeTask.new do |t|
11
11
  t.rspec_opts = %w(-fs --color)
12
12
  end
13
13
 
14
+ task :default => [:spec]
15
+
14
16
  desc "Build the gem"
15
17
  task :build do
16
18
  system "gem build jsonrpc.gemspec"
@@ -16,7 +16,7 @@ module JsonRPC
16
16
  def request(method, params)
17
17
  result = {}
18
18
  params ||= {}
19
- h = {"Content-Type", "application/json"}
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
@@ -1,5 +1,5 @@
1
1
  module JsonRPC
2
2
  if !defined?(::JsonRPC::VERSION)
3
- VERSION = "0.9.3"
3
+ VERSION = "0.9.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 3
9
- version: 0.9.3
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-25 00:00:00 +02:00
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