peatio-litecoin 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +7 -4
- data/lib/peatio/litecoin/blockchain.rb +2 -0
- data/lib/peatio/litecoin/hooks.rb +13 -6
- data/lib/peatio/litecoin/version.rb +1 -1
- data/lib/peatio/litecoin/wallet.rb +3 -0
- data/peatio-litecoin.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93ba1727ce6721ca73e21c077b8164aa76ce4368e09e2beee29b475a06e37bf0
|
4
|
+
data.tar.gz: c8d3060399341d365d63e1182e9627a946e4d5e8d9a573cbfba9c59232cf4adf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d61a3dafc8bdd5833546693f0389f6b12dd8b18d94e7be8d8b5e67b45e091b5618cf7a3f89136c58d83eef599dd0b87e12d756dfb5d917a6b6d3c7e9413420a7
|
7
|
+
data.tar.gz: d97b176b7775f4dd47e91e93fe687150a0f3431f47ed7ab43beddd52e947b6adc1bb2c3e12c94b773d88269efe680691115f2524caf904a5f6aee35538f772b8
|
data/Gemfile.lock
CHANGED
@@ -6,7 +6,7 @@ PATH
|
|
6
6
|
better-faraday (~> 1.0.5)
|
7
7
|
faraday (~> 0.15.4)
|
8
8
|
memoist (~> 0.16.0)
|
9
|
-
peatio (~> 0.
|
9
|
+
peatio (~> 0.6.1)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
@@ -46,16 +46,16 @@ GEM
|
|
46
46
|
http_parser.rb (0.6.0)
|
47
47
|
i18n (1.6.0)
|
48
48
|
concurrent-ruby (~> 1.0)
|
49
|
-
jwt (2.1
|
49
|
+
jwt (2.2.1)
|
50
50
|
memoist (0.16.0)
|
51
51
|
metaclass (0.0.4)
|
52
52
|
method_source (0.9.2)
|
53
53
|
minitest (5.11.3)
|
54
54
|
mocha (1.8.0)
|
55
55
|
metaclass (~> 0.0.1)
|
56
|
-
multipart-post (2.1.
|
56
|
+
multipart-post (2.1.1)
|
57
57
|
mysql2 (0.5.2)
|
58
|
-
peatio (0.
|
58
|
+
peatio (0.6.1)
|
59
59
|
activemodel (~> 5.2.3)
|
60
60
|
amqp
|
61
61
|
bunny
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Peatio::Litecoin
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Peatio litecoin plugin for Rubykube stack
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -28,7 +26,7 @@ For Peatio Litecoin plugin integration you need to do the following steps:
|
|
28
26
|
|
29
27
|
1. Add peatio-litecoin gem into your Gemfile.plugin
|
30
28
|
```ruby
|
31
|
-
gem 'peatio-litecoin', '~> 0.
|
29
|
+
gem 'peatio-litecoin', '~> 0.2.0'
|
32
30
|
```
|
33
31
|
|
34
32
|
2. Run `bundle install` for updating Gemfile.lock
|
@@ -62,3 +60,8 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/rubyku
|
|
62
60
|
## License
|
63
61
|
|
64
62
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
63
|
+
|
64
|
+
## Consulting
|
65
|
+
|
66
|
+
You can contact Openware for finding certified vendors:
|
67
|
+
[Openware.com](https://www.openware.com)
|
@@ -1,19 +1,26 @@
|
|
1
1
|
module Peatio
|
2
2
|
module Litecoin
|
3
3
|
module Hooks
|
4
|
+
BLOCKCHAIN_VERSION_REQUIREMENT = "~> 1.0.0"
|
5
|
+
WALLET_VERSION_REQUIREMENT = "~> 1.0.0"
|
6
|
+
|
4
7
|
class << self
|
5
8
|
def check_compatibility
|
6
|
-
|
9
|
+
unless Gem::Requirement.new(BLOCKCHAIN_VERSION_REQUIREMENT)
|
10
|
+
.satisfied_by?(Gem::Version.new(Peatio::Blockchain::VERSION))
|
7
11
|
[
|
8
|
-
"Litecoin
|
9
|
-
"
|
12
|
+
"Litecoin blockchain version requiremnt was not suttisfied by Peatio::Blockchain.",
|
13
|
+
"Litecoin blockchain requires #{BLOCKCHAIN_VERSION_REQUIREMENT}.",
|
14
|
+
"Peatio::Blockchain version is #{Peatio::Blockchain::VERSION}"
|
10
15
|
].join('\n').tap { |s| Kernel.abort s }
|
11
16
|
end
|
12
17
|
|
13
|
-
|
18
|
+
unless Gem::Requirement.new(WALLET_VERSION_REQUIREMENT)
|
19
|
+
.satisfied_by?(Gem::Version.new(Peatio::Wallet::VERSION))
|
14
20
|
[
|
15
|
-
"Litecoin
|
16
|
-
"
|
21
|
+
"Litecoin wallet version requiremnt was not suttisfied by Peatio::Wallet.",
|
22
|
+
"Litecoin wallet requires #{WALLET_VERSION_REQUIREMENT}.",
|
23
|
+
"Peatio::Wallet version is #{Peatio::Wallet::VERSION}"
|
17
24
|
].join('\n').tap { |s| Kernel.abort s }
|
18
25
|
end
|
19
26
|
end
|
data/peatio-litecoin.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency "better-faraday", "~> 1.0.5"
|
28
28
|
spec.add_dependency "faraday", "~> 0.15.4"
|
29
29
|
spec.add_dependency "memoist", "~> 0.16.0"
|
30
|
-
spec.add_dependency "peatio", "~> 0.
|
30
|
+
spec.add_dependency "peatio", "~> 0.6.1"
|
31
31
|
|
32
32
|
spec.add_development_dependency "bundler", "~> 1.16"
|
33
33
|
spec.add_development_dependency "mocha", "~> 1.8"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peatio-litecoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yaroslav S.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.6.1
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.6.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: bundler
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -214,7 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
214
214
|
- !ruby/object:Gem::Version
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
|
-
|
217
|
+
rubyforge_project:
|
218
|
+
rubygems_version: 2.7.8
|
218
219
|
signing_key:
|
219
220
|
specification_version: 4
|
220
221
|
summary: Gem for extending Peatio plugable system with Litecoin implementation.
|