jsonrpctcp 0.2.0 → 1.0.0
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 +4 -4
- data/README.md +1 -1
- data/Rakefile +17 -0
- data/jsonrpctcp.gemspec +17 -0
- data/lib/jsonrpctcp/client.rb +17 -0
- data/lib/jsonrpctcp/errors.rb +17 -0
- data/lib/jsonrpctcp/version.rb +18 -1
- data/lib/jsonrpctcp.rb +17 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7b6cf5768cb6eafcf131e7cb0a460cf883f74c7
|
4
|
+
data.tar.gz: 3b674a265d4e9212726aae5031f98a339242e4f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebf7cc56fce4e7687e88089edd8fcffaafa30d4188bb82d4df01a1ba2be05eab81c6e5e3cca66ae0ebb5f9af6b9cc819ac519163807ffcb227da495cd6e2fbd6
|
7
|
+
data.tar.gz: d0faf4b8ef1bb0bc901322a5553be69bace4f639a56c044dc892a81f4b9c24acde183061843bbd7aa744748827c118a4dd0885e25d27e69fa4b67b2d10271cb5
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Jsonrpctcp
|
2
2
|
|
3
|
-
[](https://travis-ci.org/hsanjuan/jsonrpctcp) [](https://coveralls.io/r/hsanjuan/jsonrpctcp)
|
3
|
+
[](http://badge.fury.io/rb/jsonrpctcp) [](https://travis-ci.org/hsanjuan/jsonrpctcp) [](https://coveralls.io/r/hsanjuan/jsonrpctcp)
|
4
4
|
|
5
5
|
A very simple JSON-RPC 2.0 client library using plain old TCP (`TCPSocket`) for the communication (no HTTP).
|
6
6
|
|
data/Rakefile
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
# Copyright (C) 2015 Hector Sanjuan
|
2
|
+
|
3
|
+
# This file is part of Jsonrpctcp.
|
4
|
+
|
5
|
+
# Jsonrpctcp is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
|
10
|
+
# Jsonrpctcp is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Jsonrpctcp. If not, see <http://www.gnu.org/licenses/>
|
17
|
+
|
1
18
|
require "bundler/gem_tasks"
|
2
19
|
require "rspec/core/rake_task"
|
3
20
|
require "yard"
|
data/jsonrpctcp.gemspec
CHANGED
@@ -1,4 +1,21 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
# Copyright (C) 2015 Hector Sanjuan
|
3
|
+
|
4
|
+
# This file is part of Jsonrpctcp.
|
5
|
+
|
6
|
+
# Jsonrpctcp is free software: you can redistribute it and/or modify
|
7
|
+
# it under the terms of the GNU General Public License as published by
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
9
|
+
# (at your option) any later version.
|
10
|
+
|
11
|
+
# Jsonrpctcp is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU General Public License for more details.
|
15
|
+
|
16
|
+
# You should have received a copy of the GNU General Public License
|
17
|
+
# along with Jsonrpctcp. If not, see <http://www.gnu.org/licenses/>
|
18
|
+
|
2
19
|
lib = File.expand_path('../lib', __FILE__)
|
3
20
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
21
|
require 'jsonrpctcp/version'
|
data/lib/jsonrpctcp/client.rb
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
# Copyright (C) 2015 Hector Sanjuan
|
2
|
+
|
3
|
+
# This file is part of Jsonrpctcp.
|
4
|
+
|
5
|
+
# Jsonrpctcp is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
|
10
|
+
# Jsonrpctcp is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Jsonrpctcp. If not, see <http://www.gnu.org/licenses/>
|
17
|
+
|
1
18
|
require 'socket'
|
2
19
|
require 'json'
|
3
20
|
require 'jsonrpctcp/errors'
|
data/lib/jsonrpctcp/errors.rb
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
# Copyright (C) 2015 Hector Sanjuan
|
2
|
+
|
3
|
+
# This file is part of Jsonrpctcp.
|
4
|
+
|
5
|
+
# Jsonrpctcp is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
|
10
|
+
# Jsonrpctcp is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Jsonrpctcp. If not, see <http://www.gnu.org/licenses/>
|
17
|
+
|
1
18
|
module Jsonrpctcp
|
2
19
|
|
3
20
|
# A custom exception for the library
|
data/lib/jsonrpctcp/version.rb
CHANGED
@@ -1,4 +1,21 @@
|
|
1
|
+
# Copyright (C) 2015 Hector Sanjuan
|
2
|
+
|
3
|
+
# This file is part of Jsonrpctcp.
|
4
|
+
|
5
|
+
# Jsonrpctcp is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
|
10
|
+
# Jsonrpctcp is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Jsonrpctcp. If not, see <http://www.gnu.org/licenses/>
|
17
|
+
|
1
18
|
module Jsonrpctcp
|
2
19
|
# Current gem version
|
3
|
-
VERSION = "0.
|
20
|
+
VERSION = "1.0.0"
|
4
21
|
end
|
data/lib/jsonrpctcp.rb
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
# Copyright (C) 2015 Hector Sanjuan
|
2
|
+
|
3
|
+
# This file is part of Jsonrpctcp.
|
4
|
+
|
5
|
+
# Jsonrpctcp is free software: you can redistribute it and/or modify
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
7
|
+
# the Free Software Foundation, either version 3 of the License, or
|
8
|
+
# (at your option) any later version.
|
9
|
+
|
10
|
+
# Jsonrpctcp is distributed in the hope that it will be useful,
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
# GNU General Public License for more details.
|
14
|
+
|
15
|
+
# You should have received a copy of the GNU General Public License
|
16
|
+
# along with Jsonrpctcp. If not, see <http://www.gnu.org/licenses/>
|
17
|
+
|
1
18
|
require "jsonrpctcp/version"
|
2
19
|
require "jsonrpctcp/client"
|
3
20
|
|