rodzilla 0.3.1 → 0.3.2
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.
- checksums.yaml +8 -8
- checksums.yaml.gz.sig +2 -2
- data.tar.gz.sig +0 -0
- data/.gitignore +1 -0
- data/Rakefile +28 -1
- data/lib/rodzilla/json_rpc/service.rb +5 -3
- data/lib/rodzilla/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTkyNTM0NGU5ODY5ODVhNzY2NzUxYWRhNWRjNTIwZjUxODM5Y2FjOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWI4OGZiMjIxMDVhNTY2NzM1NzVjYjQ5MmQyNjlhYjhjOWZiNjJlNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MDdhMzM2NTAzYWFhMDY1NGM4ODkzNjI4YWE0NGIwMmIzNzVkZTk5NTVhMmRi
|
10
|
+
OTYzMjg4NTVlMTUwZGIyYTc1MWQ4ODQwMzU2MjMwYzM3NjkyYTY0ODcyNGUx
|
11
|
+
MzNhZmFhZDc4NTUzNjVmYWU4MDMwMGFiZTVkMjNhNmZlODYxZDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDM3Y2VhN2YzZmEwNmQ5NWU2OTgwMTIwZDE3MmFmMDI3NzBjYzEwNDBjYmE5
|
14
|
+
MzAzMDFiYmE4Y2M2YWE1MWJmY2RiODhmOTg2ZmZjMzQ3NTU3ZjMyNjA5NmRi
|
15
|
+
OThhMjJiYTllMzFlMTc0MDMwYTFmMmI4OGVjZDQ4OWI2Y2Q2YzQ=
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
d���9v���n�t
|
2
|
+
�;(�U�A%XɎ�}-ϋi.�$<�rs�{���tÛM����l�G\��v[c��/9��N~V�@�T�Gg��3��1`f�h�q�2ej#�9�;���S�&��=���gR{:���_�UST�S�E�ˍ�E�i(F�L�9
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -1,5 +1,32 @@
|
|
1
|
+
$LOAD_PATH << File.expand_path("../lib/", __FILE__)
|
1
2
|
require "bundler/gem_tasks"
|
2
3
|
require 'rake/testtask'
|
4
|
+
require 'rodzilla'
|
5
|
+
|
6
|
+
namespace :gem do
|
7
|
+
|
8
|
+
desc "Build the rodzilla gem"
|
9
|
+
task :build do
|
10
|
+
%(gem build rodzilla.gemspec )
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "Install the rodzilla gem"
|
14
|
+
task :install => :build do
|
15
|
+
%(gem install rodzilla-#{Rodzilla::VERSION::STRING}.gem)
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Release the rodzilla gem"
|
19
|
+
task :release => :build do
|
20
|
+
%(gem push rodzilla-#{Rodzilla::VERSION::STRING}.gem)
|
21
|
+
end
|
22
|
+
|
23
|
+
desc "Clean-up the rodzilla directory"
|
24
|
+
task :cleanup do
|
25
|
+
gems = Dir["*.gem"]
|
26
|
+
gems.map { |g| File.unlink(g) } unless gems.empty?
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
3
30
|
|
4
31
|
desc 'Default: run unit tests.'
|
5
32
|
task default: :test
|
@@ -9,4 +36,4 @@ Rake::TestTask.new(:test) do |t|
|
|
9
36
|
t.libs << 'lib' << 'test'
|
10
37
|
t.test_files = FileList['test/**/*_test.rb']
|
11
38
|
t.verbose = true
|
12
|
-
end
|
39
|
+
end
|
@@ -6,10 +6,11 @@ module Rodzilla
|
|
6
6
|
include HTTParty
|
7
7
|
|
8
8
|
attr_accessor :rpc_request, :rpc_response,
|
9
|
-
:username, :password, :credentials, :url
|
9
|
+
:username, :password, :credentials, :url, :options
|
10
10
|
|
11
11
|
def initialize(url, username, password)
|
12
12
|
@url = url
|
13
|
+
@options = {}
|
13
14
|
@username = username
|
14
15
|
@password = password
|
15
16
|
@credentials = {
|
@@ -18,7 +19,7 @@ module Rodzilla
|
|
18
19
|
}
|
19
20
|
setup_request
|
20
21
|
end
|
21
|
-
|
22
|
+
|
22
23
|
def send_raw_request(http_method, url, options={})
|
23
24
|
http_response = self.class.send(http_method, url, options )
|
24
25
|
end
|
@@ -46,7 +47,8 @@ module Rodzilla
|
|
46
47
|
|
47
48
|
def raw_request(http_method)
|
48
49
|
begin
|
49
|
-
|
50
|
+
request_fields = @options.merge( body: rpc_request.serialize, headers: rpc_request.headers )
|
51
|
+
@http_response = self.class.send(http_method, @url, request_fields )
|
50
52
|
rescue => ex
|
51
53
|
raise Rodzilla::JsonRpc::Error::HttpError, ex.message
|
52
54
|
end
|
data/lib/rodzilla/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rodzilla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Faucett
|
@@ -38,7 +38,7 @@ cert_chain:
|
|
38
38
|
alZXVFhBWFBFN1FUSWp1NlcrRU12enNqbVNICndEZDdGSlE4bkdEaFlxaUtI
|
39
39
|
L01DYXE3SEQ3L0ptZ0ZZalpOUENzeTBsVGtCdXIrVkMxbnN1ZFE9Ci0tLS0t
|
40
40
|
RU5EIENFUlRJRklDQVRFLS0tLS0K
|
41
|
-
date: 2013-11-
|
41
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
42
42
|
dependencies:
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: httparty
|
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
x&)����kE�L�[�qp5GF�
|