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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43690d61186d54a9d0760fbe70e239984fe5d155ef99fe8cc67673930170fe03
4
- data.tar.gz: 8da33908188a71d2d4364132b9cace4f594faa720c2e8a9cc3f48f5a3c23bdd9
3
+ metadata.gz: 93ba1727ce6721ca73e21c077b8164aa76ce4368e09e2beee29b475a06e37bf0
4
+ data.tar.gz: c8d3060399341d365d63e1182e9627a946e4d5e8d9a573cbfba9c59232cf4adf
5
5
  SHA512:
6
- metadata.gz: 375ef8eb4b1eebf1ac25777bd95f3fd20810e1be3555ab8a383254f1185ada979c79e8d3d1324f163c26cc5cd54e7d839b96400a152f0843ea826932c7a658b9
7
- data.tar.gz: 68cef8fa7c943464fe3921b588d66de955c2d83b5556275b40b824e9ae67397de65026bb5ceb33edc8b45bde84aafc726243b0b8447a003d567df6e27f7a8f68
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.5.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.0)
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.0)
56
+ multipart-post (2.1.1)
57
57
  mysql2 (0.5.2)
58
- peatio (0.5.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
- 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/peatio/litecoin`. To experiment with that code, run `bin/console` for an interactive prompt.
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.1.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)
@@ -12,6 +12,8 @@ module Peatio
12
12
  end
13
13
 
14
14
  def configure(settings = {})
15
+ # Clean client state during configure.
16
+ @client = nil
15
17
  @settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
16
18
  end
17
19
 
@@ -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
- if Peatio::Blockchain::VERSION >= '2.0'
9
+ unless Gem::Requirement.new(BLOCKCHAIN_VERSION_REQUIREMENT)
10
+ .satisfied_by?(Gem::Version.new(Peatio::Blockchain::VERSION))
7
11
  [
8
- "Litecoin plugin was designed for work with 1.x. Blockchain.",
9
- "You use #{Peatio::Blockchain::VERSION}."
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
- if Peatio::Wallet::VERSION >= '2.0'
18
+ unless Gem::Requirement.new(WALLET_VERSION_REQUIREMENT)
19
+ .satisfied_by?(Gem::Version.new(Peatio::Wallet::VERSION))
14
20
  [
15
- "Litecoin plugin was designed for work with 1.x. Wallet.",
16
- "You use #{Peatio::Wallet::VERSION}."
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
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Litecoin
3
- VERSION = "0.1.0".freeze
3
+ VERSION = "0.2.0".freeze
4
4
  end
5
5
  end
@@ -7,6 +7,9 @@ module Peatio
7
7
  end
8
8
 
9
9
  def configure(settings = {})
10
+ # Clean client state during configure.
11
+ @client = nil
12
+
10
13
  @settings.merge!(settings.slice(*SUPPORTED_SETTINGS))
11
14
 
12
15
  @wallet = @settings.fetch(:wallet) do
@@ -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.5.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.1.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-15 00:00:00.000000000 Z
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.5.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.5.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
- rubygems_version: 3.0.3
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.