luno 0.2.9 → 0.2.11

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: 19c346b6ae99d5fde5d1753b1d1effb863ab408b29c8b6ec159d1faffff72ca4
4
- data.tar.gz: 6e5d1111e01966c12d68f539aa783a9264d02b7c75a6262d0aee065876e334e9
3
+ metadata.gz: d36df5d3b8db3586bfe5dd30a1bcc9547cd62cba17e722d72cb934464aeaa660
4
+ data.tar.gz: 29fec7809ccd490f01477b255664e7e6612f587dbada76cb63c20a03a7026fdc
5
5
  SHA512:
6
- metadata.gz: 683fcd08ec222b266680e9f878f035f39ac42097b8427b699596bf020171281b683351ce7d63d9ec58bc2a89153c20db1cbc7449bc9f5f03cb8305b9904d24f5
7
- data.tar.gz: 1a4a47b6e22620398335506bd275ad1e30b39972021a7cd1ce596242e2aa6c34e9eda86c0ee0d66bfabb95fa260a4a16c15fa132429ae8cf2ea81787d538d4ea
6
+ metadata.gz: '0862e720ead201dfd5dcf73dd41b719c85cb5257aa8e1776f04df01a22d81275ccc2d7a9d744b1a5b882792a8ddde78782f036e65498a34aab5031cad7f5bbbd'
7
+ data.tar.gz: 3009c550cf29ceddb96a520e750bbfcdcc36267713a56c421f9a91473dc34be39edfc695e29c2a817af97a9932b8e561e7758176be565bdb8602cd51d0291496
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.2
1
+ 3.2.0
data/Gemfile.lock CHANGED
@@ -1,113 +1,108 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- luno (0.2.7)
5
- active_attr (~> 0.15.3)
6
- httparty (~> 0.20.0)
7
- nokogiri (~> 1.12.5)
4
+ luno (0.2.11)
5
+ active_attr (~> 0.15.4)
6
+ httparty (~> 0.21.0)
7
+ nokogiri (~> 1.14.0.rc1)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (6.1.4.1)
13
- actionview (= 6.1.4.1)
14
- activesupport (= 6.1.4.1)
15
- rack (~> 2.0, >= 2.0.9)
12
+ actionpack (7.0.4)
13
+ actionview (= 7.0.4)
14
+ activesupport (= 7.0.4)
15
+ rack (~> 2.0, >= 2.2.0)
16
16
  rack-test (>= 0.6.3)
17
17
  rails-dom-testing (~> 2.0)
18
18
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
19
- actionview (6.1.4.1)
20
- activesupport (= 6.1.4.1)
19
+ actionview (7.0.4)
20
+ activesupport (= 7.0.4)
21
21
  builder (~> 3.1)
22
22
  erubi (~> 1.4)
23
23
  rails-dom-testing (~> 2.0)
24
24
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
25
- active_attr (0.15.3)
26
- actionpack (>= 3.0.2, < 7.0)
27
- activemodel (>= 3.0.2, < 7.0)
28
- activesupport (>= 3.0.2, < 7.0)
29
- activemodel (6.1.4.1)
30
- activesupport (= 6.1.4.1)
31
- activesupport (6.1.4.1)
25
+ active_attr (0.15.4)
26
+ actionpack (>= 3.0.2, < 7.1)
27
+ activemodel (>= 3.0.2, < 7.1)
28
+ activesupport (>= 3.0.2, < 7.1)
29
+ activemodel (7.0.4)
30
+ activesupport (= 7.0.4)
31
+ activesupport (7.0.4)
32
32
  concurrent-ruby (~> 1.0, >= 1.0.2)
33
33
  i18n (>= 1.6, < 2)
34
34
  minitest (>= 5.1)
35
35
  tzinfo (~> 2.0)
36
- zeitwerk (~> 2.3)
37
- addressable (2.8.0)
38
- public_suffix (>= 2.0.2, < 5.0)
36
+ addressable (2.8.1)
37
+ public_suffix (>= 2.0.2, < 6.0)
39
38
  ansi (1.5.0)
40
39
  builder (3.2.4)
41
40
  coderay (1.1.3)
42
- concurrent-ruby (1.1.9)
41
+ concurrent-ruby (1.1.10)
43
42
  crack (0.4.5)
44
43
  rexml
45
44
  crass (1.0.6)
46
- erubi (1.10.0)
45
+ erubi (1.12.0)
47
46
  hashdiff (1.0.1)
48
- httparty (0.20.0)
49
- mime-types (~> 3.0)
47
+ httparty (0.21.0)
48
+ mini_mime (>= 1.0.0)
50
49
  multi_xml (>= 0.5.2)
51
- i18n (1.8.10)
50
+ i18n (1.12.0)
52
51
  concurrent-ruby (~> 1.0)
53
- loofah (2.12.0)
52
+ loofah (2.19.1)
54
53
  crass (~> 1.0.2)
55
54
  nokogiri (>= 1.5.9)
56
55
  method_source (1.0.0)
57
- mime-types (3.3.1)
58
- mime-types-data (~> 3.2015)
59
- mime-types-data (3.2021.0901)
60
- minitest (5.14.4)
61
- minitest-focus (1.1.2)
56
+ mini_mime (1.1.2)
57
+ minitest (5.15.0)
58
+ minitest-focus (1.3.1)
62
59
  minitest (>= 4, < 6)
63
- minitest-reporters (1.4.3)
60
+ minitest-reporters (1.5.0)
64
61
  ansi
65
62
  builder
66
63
  minitest (>= 5.0)
67
64
  ruby-progressbar
68
- mocha (1.11.2)
65
+ mocha (1.13.0)
69
66
  multi_xml (0.6.0)
70
- nokogiri (1.12.5-arm64-darwin)
67
+ nokogiri (1.14.0.rc1-arm64-darwin)
71
68
  racc (~> 1.4)
72
69
  pry (0.14.1)
73
70
  coderay (~> 1.1)
74
71
  method_source (~> 1.0)
75
- public_suffix (4.0.6)
76
- racc (1.5.2)
77
- rack (2.2.3)
78
- rack-test (1.1.0)
79
- rack (>= 1.0, < 3)
72
+ public_suffix (5.0.1)
73
+ racc (1.6.2)
74
+ rack (2.2.5)
75
+ rack-test (2.0.2)
76
+ rack (>= 1.3)
80
77
  rails-dom-testing (2.0.3)
81
78
  activesupport (>= 4.2.0)
82
79
  nokogiri (>= 1.6)
83
- rails-html-sanitizer (1.4.2)
84
- loofah (~> 2.3)
80
+ rails-html-sanitizer (1.4.4)
81
+ loofah (~> 2.19, >= 2.19.1)
85
82
  rake (13.0.6)
86
83
  rexml (3.2.5)
87
84
  ruby-progressbar (1.11.0)
88
- timecop (0.9.4)
89
- tzinfo (2.0.4)
85
+ timecop (0.9.6)
86
+ tzinfo (2.0.5)
90
87
  concurrent-ruby (~> 1.0)
91
- webmock (3.8.3)
92
- addressable (>= 2.3.6)
88
+ webmock (3.14.0)
89
+ addressable (>= 2.8.0)
93
90
  crack (>= 0.3.2)
94
91
  hashdiff (>= 0.4.0, < 2.0.0)
95
- zeitwerk (2.4.2)
96
92
 
97
93
  PLATFORMS
98
- arm64-darwin-20
94
+ arm64-darwin-22
99
95
 
100
96
  DEPENDENCIES
101
- bundler (~> 2.2.22)
102
97
  luno!
103
- minitest (~> 5.0)
104
- minitest-focus (~> 1.1.2)
105
- minitest-reporters (~> 1.4.2)
106
- mocha (~> 1.11.2)
107
- pry (~> 0.13)
108
- rake (~> 13.0)
98
+ minitest (~> 5.15.0)
99
+ minitest-focus (~> 1.3.1)
100
+ minitest-reporters (~> 1.5.0)
101
+ mocha (~> 1.13.0)
102
+ pry (~> 0.14.1)
103
+ rake (~> 13.0.6)
109
104
  timecop (~> 0.9.1)
110
- webmock (~> 3.8.3)
105
+ webmock (~> 3.14.0)
111
106
 
112
107
  BUNDLED WITH
113
- 2.2.22
108
+ 2.4.2
data/lib/luno/accounts.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  module Luno
2
2
  module Accounts
3
- # GET paths
4
3
  def list_accounts
5
4
  path = 'accounts'
6
5
  authorise_and_send(http_method: :get, path: path)
@@ -29,4 +28,4 @@ module Luno
29
28
  # TODO:
30
29
  # Update Account name: /api/1/accounts/{id}/name body: { name: '' }
31
30
  end
32
- end
31
+ end
@@ -1,5 +1,7 @@
1
1
  module Luno
2
2
  module Constants
3
+ # TODO: Add in undocumented limits
4
+
3
5
  CURRENCIES = {
4
6
  XBT: 'Bitcoin',
5
7
  BCH: 'Bitcoin Cash',
data/lib/luno/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Luno
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.11"
3
3
  end
data/luno.gemspec CHANGED
@@ -22,18 +22,17 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_dependency "httparty", "~> 0.20.0"
26
- spec.add_dependency "active_attr", "~> 0.15.3"
27
- spec.add_dependency "nokogiri", "~> 1.12.5"
25
+ spec.add_dependency "httparty", "~> 0.21.0"
26
+ spec.add_dependency "active_attr", "~> 0.15.4"
27
+ spec.add_dependency "nokogiri", "~> 1.14.0.rc1"
28
28
 
29
29
  # Development dependancies
30
- spec.add_development_dependency "bundler", "~> 2.2.22"
31
- spec.add_development_dependency "rake", "~> 13.0"
32
- spec.add_development_dependency "minitest", "~> 5.0"
33
- spec.add_development_dependency "minitest-focus", "~> 1.1.2"
34
- spec.add_development_dependency "minitest-reporters", "~> 1.4.2"
30
+ spec.add_development_dependency "rake", "~> 13.0.6"
31
+ spec.add_development_dependency "minitest", "~> 5.15.0"
32
+ spec.add_development_dependency "minitest-focus", "~> 1.3.1"
33
+ spec.add_development_dependency "minitest-reporters", "~> 1.5.0"
35
34
  spec.add_development_dependency "timecop", "~> 0.9.1"
36
- spec.add_development_dependency "mocha", "~> 1.11.2"
37
- spec.add_development_dependency "pry", "~> 0.13"
38
- spec.add_development_dependency "webmock", "~> 3.8.3"
35
+ spec.add_development_dependency "mocha", "~> 1.13.0"
36
+ spec.add_development_dependency "pry", "~> 0.14.1"
37
+ spec.add_development_dependency "webmock", "~> 3.14.0"
39
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luno
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - trex22
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-16 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -16,112 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.20.0
19
+ version: 0.21.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.20.0
26
+ version: 0.21.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: active_attr
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.15.3
33
+ version: 0.15.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.15.3
40
+ version: 0.15.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: nokogiri
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.12.5
47
+ version: 1.14.0.rc1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.12.5
55
- - !ruby/object:Gem::Dependency
56
- name: bundler
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 2.2.22
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 2.2.22
54
+ version: 1.14.0.rc1
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rake
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: '13.0'
61
+ version: 13.0.6
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: '13.0'
68
+ version: 13.0.6
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: minitest
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: '5.0'
75
+ version: 5.15.0
90
76
  type: :development
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: '5.0'
82
+ version: 5.15.0
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: minitest-focus
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: 1.1.2
89
+ version: 1.3.1
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: 1.1.2
96
+ version: 1.3.1
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: minitest-reporters
113
99
  requirement: !ruby/object:Gem::Requirement
114
100
  requirements:
115
101
  - - "~>"
116
102
  - !ruby/object:Gem::Version
117
- version: 1.4.2
103
+ version: 1.5.0
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
107
  requirements:
122
108
  - - "~>"
123
109
  - !ruby/object:Gem::Version
124
- version: 1.4.2
110
+ version: 1.5.0
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: timecop
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -142,42 +128,42 @@ dependencies:
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: 1.11.2
131
+ version: 1.13.0
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - "~>"
151
137
  - !ruby/object:Gem::Version
152
- version: 1.11.2
138
+ version: 1.13.0
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: pry
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - "~>"
158
144
  - !ruby/object:Gem::Version
159
- version: '0.13'
145
+ version: 0.14.1
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
150
  - - "~>"
165
151
  - !ruby/object:Gem::Version
166
- version: '0.13'
152
+ version: 0.14.1
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: webmock
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
157
  - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: 3.8.3
159
+ version: 3.14.0
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
164
  - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: 3.8.3
166
+ version: 3.14.0
181
167
  description: A client for using the Luno API in Ruby. Built form their api documentation.
182
168
  https://www.luno.com/en/developers/api. This is an unofficial project.
183
169
  email:
@@ -234,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
220
  - !ruby/object:Gem::Version
235
221
  version: '0'
236
222
  requirements: []
237
- rubygems_version: 3.2.22
223
+ rubygems_version: 3.4.1
238
224
  signing_key:
239
225
  specification_version: 4
240
226
  summary: A client for using the Luno API in Ruby.