luno 0.2.10 → 0.2.12

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: f00f1f9e35506b4fa82dc15967f212fce73ea7e93cdae4e0547266bd68fae42d
4
- data.tar.gz: ae6d80c7d75420f0e1449e6cf3c993272d8c4d9bdcee00f641ee18f184cf0794
3
+ metadata.gz: 3a20fccfb8af50551c8264c78561116bb8b80c1413965b7471601ec3a929cb54
4
+ data.tar.gz: 6f55ba2a7282633a4153465b7be18ca1845120f4dd6684f0362664232cade559
5
5
  SHA512:
6
- metadata.gz: d3a3f2b9b84599d48cb751b3afd50a0c8e0587b6951e8a22a5d00f5b791f66d889279a80e4b929bf767974b58e06b7c635fdd57dc6d5674baae9a8cbe24b6f1c
7
- data.tar.gz: 1cc1646d212753de58ee615ab43c33b70785217fae74d517596ee10272981c3be646f4e0df901a8cb74896629b41c08a1fd3a5a1ed876e24514cfcd6be878956
6
+ metadata.gz: 42ecc656b6c72d2f636b2112d47211f1d39ea966caf8ba023191c2e8c047c380b29be4e7a765f209166ba9d802a9df6827f1e858ed7a62ad9770daef581beb1a
7
+ data.tar.gz: e1c19e3bd1284478df4443692369c4a197f4f5e55365e22c3d6de89a2a745b7b05ba042ce2164d139e897fc6541470eab3e18a8dd420d6f85ae38c655a6ddb3e
data/.gitignore CHANGED
@@ -67,3 +67,4 @@ yarn-debug.log*
67
67
  !/storage/.keep
68
68
 
69
69
  *.gem
70
+ .DS_Store
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.0
1
+ 3.2.2
data/Gemfile.lock CHANGED
@@ -1,111 +1,111 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- luno (0.2.10)
5
- active_attr (~> 0.15.4)
6
- httparty (~> 0.20.0)
7
- nokogiri (~> 1.13.1)
4
+ luno (0.2.12)
5
+ active_attr (~> 0.16.0)
6
+ httparty (~> 0.21.0)
7
+ nokogiri (~> 1.15.4)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- actionpack (7.0.1)
13
- actionview (= 7.0.1)
14
- activesupport (= 7.0.1)
12
+ actionpack (7.0.4)
13
+ actionview (= 7.0.4)
14
+ activesupport (= 7.0.4)
15
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 (7.0.1)
20
- activesupport (= 7.0.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.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.1)
30
- activesupport (= 7.0.1)
31
- activesupport (7.0.1)
25
+ active_attr (0.16.0)
26
+ actionpack (>= 3.0.2, < 7.2)
27
+ activemodel (>= 3.0.2, < 7.2)
28
+ activesupport (>= 3.0.2, < 7.2)
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
- addressable (2.8.0)
37
- public_suffix (>= 2.0.2, < 5.0)
36
+ addressable (2.8.5)
37
+ public_suffix (>= 2.0.2, < 6.0)
38
38
  ansi (1.5.0)
39
39
  builder (3.2.4)
40
40
  coderay (1.1.3)
41
- concurrent-ruby (1.1.9)
41
+ concurrent-ruby (1.1.10)
42
42
  crack (0.4.5)
43
43
  rexml
44
44
  crass (1.0.6)
45
- erubi (1.10.0)
45
+ erubi (1.12.0)
46
46
  hashdiff (1.0.1)
47
- httparty (0.20.0)
48
- mime-types (~> 3.0)
47
+ httparty (0.21.0)
48
+ mini_mime (>= 1.0.0)
49
49
  multi_xml (>= 0.5.2)
50
- i18n (1.8.11)
50
+ i18n (1.12.0)
51
51
  concurrent-ruby (~> 1.0)
52
- loofah (2.13.0)
52
+ loofah (2.19.1)
53
53
  crass (~> 1.0.2)
54
54
  nokogiri (>= 1.5.9)
55
55
  method_source (1.0.0)
56
- mime-types (3.4.1)
57
- mime-types-data (~> 3.2015)
58
- mime-types-data (3.2022.0105)
59
- minitest (5.15.0)
60
- minitest-focus (1.3.1)
56
+ mini_mime (1.1.2)
57
+ minitest (5.20.0)
58
+ minitest-focus (1.4.0)
61
59
  minitest (>= 4, < 6)
62
- minitest-reporters (1.5.0)
60
+ minitest-reporters (1.6.1)
63
61
  ansi
64
62
  builder
65
63
  minitest (>= 5.0)
66
64
  ruby-progressbar
67
- mocha (1.13.0)
65
+ mocha (2.1.0)
66
+ ruby2_keywords (>= 0.0.5)
68
67
  multi_xml (0.6.0)
69
- nokogiri (1.13.1-x86_64-linux)
68
+ nokogiri (1.15.4-arm64-darwin)
70
69
  racc (~> 1.4)
71
- pry (0.14.1)
70
+ pry (0.14.2)
72
71
  coderay (~> 1.1)
73
72
  method_source (~> 1.0)
74
- public_suffix (4.0.6)
75
- racc (1.6.0)
76
- rack (2.2.3)
77
- rack-test (1.1.0)
78
- rack (>= 1.0, < 3)
73
+ public_suffix (5.0.3)
74
+ racc (1.6.2)
75
+ rack (2.2.5)
76
+ rack-test (2.0.2)
77
+ rack (>= 1.3)
79
78
  rails-dom-testing (2.0.3)
80
79
  activesupport (>= 4.2.0)
81
80
  nokogiri (>= 1.6)
82
- rails-html-sanitizer (1.4.2)
83
- loofah (~> 2.3)
84
- rake (13.0.6)
85
- rexml (3.2.5)
86
- ruby-progressbar (1.11.0)
87
- timecop (0.9.4)
88
- tzinfo (2.0.4)
81
+ rails-html-sanitizer (1.4.4)
82
+ loofah (~> 2.19, >= 2.19.1)
83
+ rake (13.1.0)
84
+ rexml (3.2.6)
85
+ ruby-progressbar (1.13.0)
86
+ ruby2_keywords (0.0.5)
87
+ timecop (0.9.8)
88
+ tzinfo (2.0.5)
89
89
  concurrent-ruby (~> 1.0)
90
- webmock (3.14.0)
90
+ webmock (3.19.1)
91
91
  addressable (>= 2.8.0)
92
92
  crack (>= 0.3.2)
93
93
  hashdiff (>= 0.4.0, < 2.0.0)
94
94
 
95
95
  PLATFORMS
96
- x86_64-linux
96
+ arm64-darwin-22
97
+ arm64-darwin-23
97
98
 
98
99
  DEPENDENCIES
99
- bundler (~> 2.3.5)
100
100
  luno!
101
- minitest (~> 5.15.0)
102
- minitest-focus (~> 1.3.1)
103
- minitest-reporters (~> 1.5.0)
104
- mocha (~> 1.13.0)
105
- pry (~> 0.14.1)
106
- rake (~> 13.0.6)
107
- timecop (~> 0.9.1)
108
- webmock (~> 3.14.0)
101
+ minitest (~> 5.20.0)
102
+ minitest-focus (~> 1.4.0)
103
+ minitest-reporters (~> 1.6.1)
104
+ mocha (~> 2.1.0)
105
+ pry (~> 0.14.2)
106
+ rake (~> 13.1.0)
107
+ timecop (~> 0.9.8)
108
+ webmock (~> 3.19.1)
109
109
 
110
110
  BUNDLED WITH
111
- 2.3.5
111
+ 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.10"
2
+ VERSION = "0.2.12"
3
3
  end
data/luno.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ["contact@jasonchalom.com"]
10
10
 
11
11
  spec.summary = "A client for using the Luno API in Ruby."
12
- spec.description = "A client for using the Luno API in Ruby. Built form their api documentation. https://www.luno.com/en/developers/api. This is an unofficial project."
12
+ spec.description = "A client for using the Luno API in Ruby. Built from their api documentation. https://www.luno.com/en/developers/api. This is an unofficial project."
13
13
  spec.homepage = "https://github.com/TRex22/luno"
14
14
  spec.license = "MIT"
15
15
 
@@ -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.4"
27
- spec.add_dependency "nokogiri", "~> 1.13.1"
25
+ spec.add_dependency "httparty", "~> 0.21.0"
26
+ spec.add_dependency "active_attr", "~> 0.16.0"
27
+ spec.add_dependency "nokogiri", "~> 1.15.4"
28
28
 
29
29
  # Development dependancies
30
- spec.add_development_dependency "bundler", "~> 2.3.5"
31
- spec.add_development_dependency "rake", "~> 13.0.6"
32
- spec.add_development_dependency "minitest", "~> 5.15.0"
33
- spec.add_development_dependency "minitest-focus", "~> 1.3.1"
34
- spec.add_development_dependency "minitest-reporters", "~> 1.5.0"
35
- spec.add_development_dependency "timecop", "~> 0.9.1"
36
- spec.add_development_dependency "mocha", "~> 1.13.0"
37
- spec.add_development_dependency "pry", "~> 0.14.1"
38
- spec.add_development_dependency "webmock", "~> 3.14.0"
30
+ spec.add_development_dependency "rake", "~> 13.1.0"
31
+ spec.add_development_dependency "minitest", "~> 5.20.0"
32
+ spec.add_development_dependency "minitest-focus", "~> 1.4.0"
33
+ spec.add_development_dependency "minitest-reporters", "~> 1.6.1"
34
+ spec.add_development_dependency "timecop", "~> 0.9.8"
35
+ spec.add_development_dependency "mocha", "~> 2.1.0"
36
+ spec.add_development_dependency "pry", "~> 0.14.2"
37
+ spec.add_development_dependency "webmock", "~> 3.19.1"
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.10
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - trex22
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-16 00:00:00.000000000 Z
11
+ date: 2023-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -16,169 +16,155 @@ 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.4
33
+ version: 0.16.0
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.4
40
+ version: 0.16.0
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.13.1
47
+ version: 1.15.4
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.13.1
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.3.5
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 2.3.5
54
+ version: 1.15.4
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.6
61
+ version: 13.1.0
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.6
68
+ version: 13.1.0
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.15.0
75
+ version: 5.20.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.15.0
82
+ version: 5.20.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.3.1
89
+ version: 1.4.0
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.3.1
96
+ version: 1.4.0
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.5.0
103
+ version: 1.6.1
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.5.0
110
+ version: 1.6.1
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: timecop
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - "~>"
130
116
  - !ruby/object:Gem::Version
131
- version: 0.9.1
117
+ version: 0.9.8
132
118
  type: :development
133
119
  prerelease: false
134
120
  version_requirements: !ruby/object:Gem::Requirement
135
121
  requirements:
136
122
  - - "~>"
137
123
  - !ruby/object:Gem::Version
138
- version: 0.9.1
124
+ version: 0.9.8
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: mocha
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
129
  - - "~>"
144
130
  - !ruby/object:Gem::Version
145
- version: 1.13.0
131
+ version: 2.1.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.13.0
138
+ version: 2.1.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.14.1
145
+ version: 0.14.2
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.14.1
152
+ version: 0.14.2
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.14.0
159
+ version: 3.19.1
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.14.0
181
- description: A client for using the Luno API in Ruby. Built form their api documentation.
166
+ version: 3.19.1
167
+ description: A client for using the Luno API in Ruby. Built from their api documentation.
182
168
  https://www.luno.com/en/developers/api. This is an unofficial project.
183
169
  email:
184
170
  - contact@jasonchalom.com
@@ -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.3.3
223
+ rubygems_version: 3.4.10
238
224
  signing_key:
239
225
  specification_version: 4
240
226
  summary: A client for using the Luno API in Ruby.