peatio-dash 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -10
- data/lib/peatio/dash/client.rb +3 -2
- data/lib/peatio/dash/version.rb +1 -1
- data/peatio-dash.gemspec +2 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f63ffa199814d3fbfeb83fde184494bcd6078224c287cd0a19fa122d6b78a1d
|
4
|
+
data.tar.gz: 8cfb247cadea77ea6f415a6ff3be85839a96c7cea6f6949c6e5cb7a45e789f6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96af661466273160394a0ec3ff205adb76b115a701555061dfadc75114cc6a7a0c05317acc854dc4f349dec5e565a22363ce40827994f9549f967ef72b8a2c85
|
7
|
+
data.tar.gz: 0a796943025236b1ab09c2073ffe03e27cb464c2efbc8eaa6ca84248fe52757a5b6724d0f1fd543eb6b96175d762b8b29c225596f02a7decccdcfdc18b0cd5e9
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
peatio-dash (0.1.
|
4
|
+
peatio-dash (0.1.2)
|
5
5
|
activesupport (~> 5.2.3)
|
6
6
|
better-faraday (~> 1.0.5)
|
7
7
|
faraday (~> 0.15.4)
|
8
8
|
memoist (~> 0.16.0)
|
9
|
-
|
9
|
+
net-http-persistent (~> 3.0.1)
|
10
|
+
peatio (~> 0.6.3)
|
10
11
|
|
11
12
|
GEM
|
12
13
|
remote: https://rubygems.org/
|
@@ -25,15 +26,16 @@ GEM
|
|
25
26
|
amq-protocol (>= 2.2.0)
|
26
27
|
eventmachine
|
27
28
|
ast (2.4.0)
|
28
|
-
better-faraday (1.0.
|
29
|
+
better-faraday (1.0.8)
|
29
30
|
activesupport (>= 4.0, < 6.0)
|
30
31
|
faraday (~> 0.12)
|
31
|
-
bunny (2.14.
|
32
|
+
bunny (2.14.3)
|
32
33
|
amq-protocol (~> 2.3, >= 2.3.0)
|
33
34
|
byebug (11.0.1)
|
34
|
-
clamp (1.3.
|
35
|
+
clamp (1.3.1)
|
35
36
|
coderay (1.1.2)
|
36
37
|
concurrent-ruby (1.1.5)
|
38
|
+
connection_pool (2.2.2)
|
37
39
|
crack (0.4.3)
|
38
40
|
safe_yaml (~> 1.0.0)
|
39
41
|
diff-lcs (1.3)
|
@@ -46,25 +48,27 @@ GEM
|
|
46
48
|
multipart-post (>= 1.2, < 3)
|
47
49
|
hashdiff (0.4.0)
|
48
50
|
http_parser.rb (0.6.0)
|
49
|
-
i18n (1.
|
51
|
+
i18n (1.7.0)
|
50
52
|
concurrent-ruby (~> 1.0)
|
51
53
|
irb (1.0.0)
|
52
54
|
jaro_winkler (1.5.2)
|
53
55
|
json (2.2.0)
|
54
56
|
jwt (2.2.1)
|
55
|
-
memoist (0.16.
|
57
|
+
memoist (0.16.1)
|
56
58
|
metaclass (0.0.4)
|
57
59
|
method_source (0.9.2)
|
58
|
-
minitest (5.
|
60
|
+
minitest (5.13.0)
|
59
61
|
mocha (1.8.0)
|
60
62
|
metaclass (~> 0.0.1)
|
61
63
|
multipart-post (2.1.1)
|
62
64
|
mysql2 (0.5.2)
|
65
|
+
net-http-persistent (3.0.1)
|
66
|
+
connection_pool (~> 2.2)
|
63
67
|
parallel (1.17.0)
|
64
68
|
parser (2.6.3.0)
|
65
69
|
ast (~> 2.4.0)
|
66
|
-
peatio (0.6.
|
67
|
-
activemodel (
|
70
|
+
peatio (0.6.3)
|
71
|
+
activemodel (> 5.2, <= 6.0.0)
|
68
72
|
amqp
|
69
73
|
bunny
|
70
74
|
clamp
|
data/lib/peatio/dash/client.rb
CHANGED
@@ -57,14 +57,15 @@ module Peatio
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def connection
|
60
|
-
Faraday.new(@json_rpc_endpoint)
|
60
|
+
@connection ||= Faraday.new(@json_rpc_endpoint) do |f|
|
61
|
+
f.adapter :net_http_persistent, pool_size: 5
|
62
|
+
end.tap do |connection|
|
61
63
|
unless @json_rpc_endpoint.user.blank?
|
62
64
|
connection.basic_auth(@json_rpc_endpoint.user,
|
63
65
|
@json_rpc_endpoint.password)
|
64
66
|
end
|
65
67
|
end
|
66
68
|
end
|
67
|
-
memoize :connection
|
68
69
|
end
|
69
70
|
end
|
70
71
|
end
|
data/lib/peatio/dash/version.rb
CHANGED
data/peatio-dash.gemspec
CHANGED
@@ -40,7 +40,8 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_dependency "better-faraday", "~> 1.0.5"
|
41
41
|
spec.add_dependency "faraday", "~> 0.15.4"
|
42
42
|
spec.add_dependency "memoist", "~> 0.16.0"
|
43
|
-
spec.add_dependency "peatio", "~> 0.6.
|
43
|
+
spec.add_dependency "peatio", "~> 0.6.3"
|
44
|
+
spec.add_dependency 'net-http-persistent', '~> 3.0.1'
|
44
45
|
|
45
46
|
spec.add_development_dependency "bundler", "~> 1.17"
|
46
47
|
spec.add_development_dependency "irb"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peatio-dash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MoD
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -72,14 +72,28 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.6.
|
75
|
+
version: 0.6.3
|
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.6.
|
82
|
+
version: 0.6.3
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: net-http-persistent
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 3.0.1
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 3.0.1
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: bundler
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|