rpc4json 0.0.1.alpha
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.
- data/.gitignore +24 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +11 -0
- data/certs/jsonrpc.pem +22 -0
- data/lib/jsonrpc/client.rb +10 -0
- data/lib/jsonrpc/version.rb +20 -0
- data/lib/jsonrpc.rb +9 -0
- data/lib/rpc4json.rb +1 -0
- data/rpc4json.gemspec +34 -0
- data.tar.gz.sig +0 -0
- metadata +152 -0
- metadata.gz.sig +3 -0
data/.gitignore
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
# Gem files
|
8
|
+
*.gem
|
9
|
+
Gemfile.lock
|
10
|
+
|
11
|
+
# Ignore bundler config.
|
12
|
+
/.bundle
|
13
|
+
|
14
|
+
# Ignore all logfiles and tempfiles.
|
15
|
+
/log/*.log
|
16
|
+
/tmp
|
17
|
+
|
18
|
+
# Ignore all RBenv files.
|
19
|
+
/.rbenv-*
|
20
|
+
/.ruby-version
|
21
|
+
|
22
|
+
# Ignore all generated documentation files.
|
23
|
+
/doc
|
24
|
+
/.yardoc
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Geoffrey Roguelon
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# JSONRPC
|
2
|
+
|
3
|
+
An Ruby implementation of the JSON-RPC 2.0 specification.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'rpc4json'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install rpc4json
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it ( http://github.com/GRoguelon/JSONRPC/fork )
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/gem_tasks'
|
3
|
+
require 'yard'
|
4
|
+
rescue LoadError
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
+
end
|
7
|
+
|
8
|
+
YARD::Rake::YardocTask.new do |t|
|
9
|
+
t.files = %w{lib/**/*.rb}
|
10
|
+
t.options = %w{-o doc --files README.md}
|
11
|
+
end
|
data/certs/jsonrpc.pem
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRowGAYDVQQDDBFnZW9m
|
3
|
+
ZnJleS5yb2d1ZWxvbjEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
|
4
|
+
LGQBGRYDY29tMB4XDTEzMTIzMDA5NTkwNFoXDTE0MTIzMDA5NTkwNFowSDEaMBgG
|
5
|
+
A1UEAwwRZ2VvZmZyZXkucm9ndWVsb24xFTATBgoJkiaJk/IsZAEZFgVnbWFpbDET
|
6
|
+
MBEGCgmSJomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
7
|
+
ggEBAK0QVh/CMYfyrZYsUVXu6exazFQSAb7vRFVZ8UKRCpvPxqS1b1BmL+2sivGw
|
8
|
+
IifcPOQ3OPgV24TWyb/c1b6aNJb3YDcy3VJ2Q+mAO/ZVNbku4+Qt+WgOkYsXM/q4
|
9
|
+
dCbQhsi5b2DZnJ2hO1pB5dKzB/8qmH5/7AY+m+HeOJfDCVbdyU9+uDwFROQzyzzh
|
10
|
+
+nkgW3/9VAotyGUK5qgbAZItQx/xo+gn2RW5oJ/VA9Uu6DT2qmHQxdeG7Dzf1ebg
|
11
|
+
o8kOYllGz64q8NqrZ7IwsqjO4LNOJbSxghWD9kNRzljg/4UL4Lau8fedKIRMuNzH
|
12
|
+
u81clg7riAlh7Wnp3Ax74noEw7cCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
13
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUuoK2d1nNp0AodWxp/5pNq61/RLIwJgYDVR0RBB8w
|
14
|
+
HYEbZ2VvZmZyZXkucm9ndWVsb25AZ21haWwuY29tMCYGA1UdEgQfMB2BG2dlb2Zm
|
15
|
+
cmV5LnJvZ3VlbG9uQGdtYWlsLmNvbTANBgkqhkiG9w0BAQUFAAOCAQEAkHb5bDOR
|
16
|
+
JSWI6Zf8+JFAEtaTNcyMbZa+MC1oLX5ghUitMXWF6ZEteMxfsjxzV5ZqBnHEGRUy
|
17
|
+
A7epSKa+RcotfqSPAsx0vkxmYt4z42mh+9EQzG+2yphDfR5d7oiM4P4cV3yeSOTO
|
18
|
+
4iUpjrkbc5dUVUruYSMAATRvZA7aZvBm3pbDSMsc5oNGVuNQLKPStGyDjid1duVK
|
19
|
+
DvaEck6SQdcadyVuVnlMVhzO/I6ivB+92JmuaMixdmNq53ZSs5/Gn+aXy/jFAqxN
|
20
|
+
7rG3f+cyUw1x80IvYqd3G+FElDhTYOD1wU3356NW3RmmplQCRB5xIK7Gti6ROwlm
|
21
|
+
m1Vp6BHTtZqSSw==
|
22
|
+
-----END CERTIFICATE-----
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
module JSONRPC
|
4
|
+
# This module defines the version of the gem.
|
5
|
+
#
|
6
|
+
# @author {mailto:geoffrey.roguelon@gmail.com Geoffrey Roguelon}
|
7
|
+
module Version
|
8
|
+
# The major number version.
|
9
|
+
MAJOR = 0
|
10
|
+
# The minor number version.
|
11
|
+
MINOR = 0
|
12
|
+
# The tiny number version.
|
13
|
+
TINY = 1
|
14
|
+
# The pre realese number version.
|
15
|
+
PRE = :alpha
|
16
|
+
|
17
|
+
# The complete number version.
|
18
|
+
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
|
19
|
+
end
|
20
|
+
end
|
data/lib/jsonrpc.rb
ADDED
data/lib/rpc4json.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'jsonrpc'
|
data/rpc4json.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
|
6
|
+
require 'jsonrpc/version'
|
7
|
+
|
8
|
+
Gem::Specification.new do |gem|
|
9
|
+
gem.required_ruby_version = '>= 1.9.3'
|
10
|
+
|
11
|
+
gem.name = 'rpc4json'
|
12
|
+
gem.version = JSONRPC::Version::STRING
|
13
|
+
gem.authors = 'Geoffrey Roguelon'
|
14
|
+
gem.email = 'geoffrey.roguelon@gmail.com'
|
15
|
+
gem.summary = %{An Ruby implementation of the JSON-RPC 2.0 specification.}
|
16
|
+
gem.description = %{An Ruby implementation of the JSON-RPC 2.0 specification.}
|
17
|
+
gem.homepage = 'https://github.com/GRoguelon/JSONRPC'
|
18
|
+
gem.license = 'MIT'
|
19
|
+
|
20
|
+
gem.files = `git ls-files`.split($/)
|
21
|
+
gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
23
|
+
gem.require_paths = %w{lib}
|
24
|
+
|
25
|
+
gem.cert_chain = %w{certs/jsonrpc.pem}
|
26
|
+
gem.signing_key = File.expand_path('~/.ssh/gem-private_key.pem') if $0 =~/gem\z/
|
27
|
+
|
28
|
+
gem.add_development_dependency 'bundler', '~> 1.5'
|
29
|
+
gem.add_development_dependency 'rake'
|
30
|
+
|
31
|
+
# Documentation
|
32
|
+
gem.add_development_dependency 'yard', '~> 0.8.7.3'
|
33
|
+
gem.add_development_dependency 'redcarpet', '~> 3.0.0'
|
34
|
+
end
|
data.tar.gz.sig
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,152 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rpc4json
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1.alpha
|
5
|
+
prerelease: 6
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Geoffrey Roguelon
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain:
|
12
|
+
- !binary |-
|
13
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURsakNDQW42Z0F3SUJB
|
14
|
+
Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJJTVJvd0dBWURWUVFEREJGblpX
|
15
|
+
OW0KWm5KbGVTNXliMmQxWld4dmJqRVZNQk1HQ2dtU0pvbVQ4aXhrQVJrV0JX
|
16
|
+
ZHRZV2xzTVJNd0VRWUtDWkltaVpQeQpMR1FCR1JZRFkyOXRNQjRYRFRFek1U
|
17
|
+
SXpNREE1TlRrd05Gb1hEVEUwTVRJek1EQTVOVGt3TkZvd1NERWFNQmdHCkEx
|
18
|
+
VUVBd3dSWjJWdlptWnlaWGt1Y205bmRXVnNiMjR4RlRBVEJnb0praWFKay9J
|
19
|
+
c1pBRVpGZ1ZuYldGcGJERVQKTUJFR0NnbVNKb21UOGl4a0FSa1dBMk52YlRD
|
20
|
+
Q0FTSXdEUVlKS29aSWh2Y05BUUVCQlFBRGdnRVBBRENDQVFvQwpnZ0VCQUsw
|
21
|
+
UVZoL0NNWWZ5clpZc1VWWHU2ZXhhekZRU0FiN3ZSRlZaOFVLUkNwdlB4cVMx
|
22
|
+
YjFCbUwrMnNpdkd3CklpZmNQT1EzT1BnVjI0VFd5Yi9jMWI2YU5KYjNZRGN5
|
23
|
+
M1ZKMlErbUFPL1pWTmJrdTQrUXQrV2dPa1lzWE0vcTQKZENiUWhzaTViMkRa
|
24
|
+
bkoyaE8xcEI1ZEt6Qi84cW1INS83QVkrbStIZU9KZkRDVmJkeVU5K3VEd0ZS
|
25
|
+
T1F6eXp6aAorbmtnVzMvO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RZT0Qxd1UzMzU2TlczUm1tcGxRQ1JCNXhJSzdHdGk2Uk93
|
41
|
+
bG0KbTFWcDZCSFR0WnFTU3c9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0t
|
42
|
+
Cg==
|
43
|
+
date: 2013-12-30 00:00:00.000000000 Z
|
44
|
+
dependencies:
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: bundler
|
47
|
+
requirement: !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
49
|
+
requirements:
|
50
|
+
- - ~>
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '1.5'
|
53
|
+
type: :development
|
54
|
+
prerelease: false
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.5'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
none: false
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
type: :development
|
70
|
+
prerelease: false
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: yard
|
79
|
+
requirement: !ruby/object:Gem::Requirement
|
80
|
+
none: false
|
81
|
+
requirements:
|
82
|
+
- - ~>
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 0.8.7.3
|
85
|
+
type: :development
|
86
|
+
prerelease: false
|
87
|
+
version_requirements: !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ~>
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 0.8.7.3
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: redcarpet
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
none: false
|
97
|
+
requirements:
|
98
|
+
- - ~>
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 3.0.0
|
101
|
+
type: :development
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: !ruby/object:Gem::Requirement
|
104
|
+
none: false
|
105
|
+
requirements:
|
106
|
+
- - ~>
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 3.0.0
|
109
|
+
description: An Ruby implementation of the JSON-RPC 2.0 specification.
|
110
|
+
email: geoffrey.roguelon@gmail.com
|
111
|
+
executables: []
|
112
|
+
extensions: []
|
113
|
+
extra_rdoc_files: []
|
114
|
+
files:
|
115
|
+
- .gitignore
|
116
|
+
- Gemfile
|
117
|
+
- LICENSE.txt
|
118
|
+
- README.md
|
119
|
+
- Rakefile
|
120
|
+
- certs/jsonrpc.pem
|
121
|
+
- lib/jsonrpc.rb
|
122
|
+
- lib/jsonrpc/client.rb
|
123
|
+
- lib/jsonrpc/version.rb
|
124
|
+
- lib/rpc4json.rb
|
125
|
+
- rpc4json.gemspec
|
126
|
+
homepage: https://github.com/GRoguelon/JSONRPC
|
127
|
+
licenses:
|
128
|
+
- MIT
|
129
|
+
post_install_message:
|
130
|
+
rdoc_options: []
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
none: false
|
135
|
+
requirements:
|
136
|
+
- - ! '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.9.3
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
none: false
|
141
|
+
requirements:
|
142
|
+
- - ! '>'
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 1.3.1
|
145
|
+
requirements: []
|
146
|
+
rubyforge_project:
|
147
|
+
rubygems_version: 1.8.23
|
148
|
+
signing_key:
|
149
|
+
specification_version: 3
|
150
|
+
summary: An Ruby implementation of the JSON-RPC 2.0 specification.
|
151
|
+
test_files: []
|
152
|
+
has_rdoc:
|
metadata.gz.sig
ADDED