basicjrpc 0.1.4 → 0.1.5
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/Gemfile.lock +24 -0
- data/README.md +4 -4
- data/lib/basicjrpc/version.rb +1 -1
- data/lib/basicjrpc.rb +2 -2
- metadata +2 -2
- data/.gitignore +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b533ebb3c51db3ecd64f248fcaf2b4d9485b701
|
|
4
|
+
data.tar.gz: f7262e30c8ebbc523f61866619cc3248d210074f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f834a596de9506b6d46724ff73f8425fb0aef2dc4e181dced1cf29444b4e2b55386d4b95e377139ceaffd14f41b57e01b0dad0ae28b80219a14f41c878ef6ff
|
|
7
|
+
data.tar.gz: 3d1d6a3667faf395166acb4fd9a2327353faa7247144bf76fe8c633da0a5166419057f8f019358b26865dae37b186117f450fe60c85280d6d441f528bf01b0fe
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
basicjrpc (0.1.0)
|
|
5
|
+
oj
|
|
6
|
+
redis
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
oj (2.15.0)
|
|
12
|
+
rake (10.5.0)
|
|
13
|
+
redis (3.3.0)
|
|
14
|
+
|
|
15
|
+
PLATFORMS
|
|
16
|
+
ruby
|
|
17
|
+
|
|
18
|
+
DEPENDENCIES
|
|
19
|
+
basicjrpc!
|
|
20
|
+
bundler (~> 1.11)
|
|
21
|
+
rake (~> 10.0)
|
|
22
|
+
|
|
23
|
+
BUNDLED WITH
|
|
24
|
+
1.11.2
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Basic JRPC
|
|
2
2
|
|
|
3
3
|
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jrpc`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
|
|
|
9
9
|
Add this line to your application's Gemfile:
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
gem '
|
|
12
|
+
gem 'basicjrpc'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
And then execute:
|
|
@@ -18,7 +18,7 @@ And then execute:
|
|
|
18
18
|
|
|
19
19
|
Or install it yourself as:
|
|
20
20
|
|
|
21
|
-
$ gem install
|
|
21
|
+
$ gem install basicjrpc
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
32
|
|
|
33
33
|
## Contributing
|
|
34
34
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/sunseriescoltd/basicjrpc.
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
## License
|
data/lib/basicjrpc/version.rb
CHANGED
data/lib/basicjrpc.rb
CHANGED
|
@@ -17,7 +17,7 @@ module BasicJRPC
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def initialize(queue)
|
|
20
|
-
@redis = Redis.new
|
|
20
|
+
@redis = Redis.new(host: "redis")
|
|
21
21
|
@queue = queue
|
|
22
22
|
@payload = nil
|
|
23
23
|
end
|
|
@@ -37,7 +37,7 @@ module BasicJRPC
|
|
|
37
37
|
def initialize queue, injected_class
|
|
38
38
|
@injected_class = injected_class
|
|
39
39
|
@queue = queue
|
|
40
|
-
@redis = Redis.new
|
|
40
|
+
@redis = Redis.new(host: "redis")
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def listen
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: basicjrpc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Martin Simpson
|
|
@@ -73,8 +73,8 @@ executables: []
|
|
|
73
73
|
extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
|
75
75
|
files:
|
|
76
|
-
- ".gitignore"
|
|
77
76
|
- Gemfile
|
|
77
|
+
- Gemfile.lock
|
|
78
78
|
- LICENSE.txt
|
|
79
79
|
- README.md
|
|
80
80
|
- Rakefile
|