viabtc 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f05110edb45d3b8f373d712d0537caee80c5ab4b0a9a0635338c377b72c0452
4
- data.tar.gz: ee8853ae0fab153a83358c8082d83c9c4a6ad2d9e891320386c6b52081d5a7bb
3
+ metadata.gz: 4a32617f0a14be083e1fd11fc0fd5184c3006dce1affa50bad41b7123f1ec415
4
+ data.tar.gz: e7c8785a619f9aeb6919dd5542a8e538563346c3029ab68f74ee8c23643db7a3
5
5
  SHA512:
6
- metadata.gz: ea9a94479d803461d7a12c929ad0d896cf76c245c1dd42e76083a115e7a13d7879027b1dc8256b791ba180a7b81d153d6bbba625219dbbaf87880f83a8c989c6
7
- data.tar.gz: 6225491f5cde3c67d638f0c3868cf0d3adb58ef015ac772856477b12e27f004a73681392212ebd6d6332886b9c4f0ff3a06cd095177b02fde800e0da94a69d73
6
+ metadata.gz: 78548687590624c0a1abccc7266ed8d776692bc6779e0f6092736ed3ae2c54ba2ab5cf310ea323d324bf4b9305084ab8e5708d3617a0b4ba24a5a635f77df5a8
7
+ data.tar.gz: 546c8d6f5e280948fa8708cce52f366bf0212266b690e61ffcfb9149eb3c8d3dfade43bb7e87f2fc4608e1bef00c67cc357d47d3ed450a3380a2212bd13df20c
@@ -19,10 +19,10 @@ jobs:
19
19
  strategy:
20
20
  fail-fast: false
21
21
  matrix:
22
- ruby: [ '2.6.9', '2.7.5', '3.0.3', '3.1.1' ]
22
+ ruby: ["3.4.1", "3.3.6", "3.2.6", "3.1.6"]
23
23
 
24
24
  steps:
25
- - uses: actions/checkout@v2
25
+ - uses: actions/checkout@v4
26
26
  - uses: ruby/setup-ruby@v1
27
27
  with:
28
28
  ruby-version: ${{ matrix.ruby }}
@@ -39,10 +39,10 @@ jobs:
39
39
  strategy:
40
40
  fail-fast: false
41
41
  matrix:
42
- ruby: [ '2.6.9', '2.7.5', '3.0.3', '3.1.1' ]
42
+ ruby: ["3.4.1", "3.3.6", "3.2.6", "3.1.6"]
43
43
 
44
44
  steps:
45
- - uses: actions/checkout@v2
45
+ - uses: actions/checkout@v4
46
46
  - uses: ruby/setup-ruby@v1
47
47
  with:
48
48
  ruby-version: ${{ matrix.ruby }}
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.1.1
1
+ ruby 3.4.1
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 Kerem Bozdas
3
+ Copyright (c) 2018-2025 Kerem Bozdas
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ViaBTC 📈
2
2
 
3
- [![Build Status](https://img.shields.io/github/workflow/status/krmbzds/viabtc/Test/develop)](https://github.com/krmbzds/viabtc/actions/workflows/test.yml) [![Downloaded](https://img.shields.io/gem/dt/viabtc.svg)](https://rubygems.org/gems/viabtc) [![Coveralls](https://img.shields.io/coveralls/github/krmbzds/viabtc/develop)](https://coveralls.io/github/krmbzds/viabtc?branch=develop) [![Gem Version](https://img.shields.io/gem/v/viabtc.svg)](https://rubygems.org/gems/viabtc) [![RubyDoc](https://img.shields.io/badge/rubydoc-info-blue.svg)](https://www.rubydoc.info/gems/viabtc/)
3
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/krmbzds/viabtc/test.yml?branch=develop)](https://github.com/krmbzds/viabtc/actions/workflows/test.yml) [![Downloaded](https://img.shields.io/gem/dt/viabtc.svg)](https://rubygems.org/gems/viabtc) [![Coveralls](https://img.shields.io/coveralls/github/krmbzds/viabtc/develop)](https://coveralls.io/github/krmbzds/viabtc?branch=develop) [![Gem Version](https://img.shields.io/gem/v/viabtc.svg)](https://rubygems.org/gems/viabtc) [![RubyDoc](https://img.shields.io/badge/rubydoc-info-blue.svg)](https://www.rubydoc.info/gems/viabtc/)
4
4
 
5
5
  An HTTP client to interface with the open-source [ViaBTC Exchange Server][ViaBTC Exchange Server Repo].
6
6
 
@@ -40,15 +40,42 @@ viabtc_http_client.market_status(market: 'ETHBTC')
40
40
 
41
41
  #### Ruby Versions Tested Against
42
42
 
43
- - ✅ `3.1.1` (stable)
44
- - ✅ `3.0.3` (stable)
45
- - ✅ `2.7.5` (stable)
46
- - âģ `2.6.9` (security maintenance)
43
+ - ✅ `3.4.1` (stable)
44
+ - ✅ `3.3.6` (stable)
45
+ - ✅ `3.2.6` (stable)
46
+ - âģ `3.1.6` (security maintenance)
47
+ - ðŸŠĶ `3.0.7` (end of life)
47
48
 
48
49
  #### ViaBTC Exchange Server API Support
49
50
 
50
51
  - 📖 [HTTP Protocol](https://github.com/krmbzds/viabtc/wiki/API-Support#http-protocol)
51
52
 
53
+ | API Method | Corresponding Methods |
54
+ |---|---|
55
+ | `balance.query` | `#balance` |
56
+ | `balance.update` | `#withdraw` `#deposit` |
57
+ | `balance.history` | `#balance_history` |
58
+ | `asset.list` | `#asset_list` |
59
+ | `asset.summary` | `#asset_summary` |
60
+ | `order.put_limit` | `#limit_sell` `#limit_buy` |
61
+ | `order.put_market` | `#market_sell` `#market_buy` |
62
+ | `order.cancel` | `#cancel_order` |
63
+ | `order.deals` | `#order_deals` |
64
+ | `order.book` | `#sell_orders` `#buy_orders` |
65
+ | `order.depth` | `#order_depth` |
66
+ | `order.pending` | `#pending_orders` |
67
+ | `order.pending_detail` | `#pending_order_details` |
68
+ | `order.finished` | `#finished_orders` `#finished_sell_orders` `#finished_buy_orders` |
69
+ | `order.finished_detail` | `#finished_order_detail` |
70
+ | `market.last` | `#market_last` |
71
+ | `market.deals` | `#market_deals` |
72
+ | `market.user_deals` | `#user_executed_orders` |
73
+ | `market.kline` | `#market_kline` |
74
+ | `market.status` | `#market_status` |
75
+ | `market.status_today` | `#market_status_today` |
76
+ | `market.list` | `#market_list` |
77
+ | `market.summary` | `#market_summary` |
78
+
52
79
  ## Development
53
80
 
54
81
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -74,7 +101,7 @@ Yes.
74
101
 
75
102
  ## License
76
103
 
77
- Copyright ÂĐ 2019-2022 [Kerem Bozdas][Personal Webpage]
104
+ Copyright ÂĐ 2018-2025 [Kerem Bozdas][Personal Webpage]
78
105
 
79
106
  This gem is available under the terms of the [MIT License][License].
80
107
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ViaBTC
4
- VERSION = "1.4.0"
4
+ VERSION = "1.5.0"
5
5
  end
data/viabtc.gemspec CHANGED
@@ -26,10 +26,10 @@ Gem::Specification.new do |spec|
26
26
  spec.require_paths = ["lib"]
27
27
 
28
28
  # Ruby required keyword arguments
29
- spec.required_ruby_version = ">= 2.5.8"
29
+ spec.required_ruby_version = ">= 3.1.6"
30
30
 
31
31
  # Runtime dependencies
32
- spec.add_dependency "faraday", "~> 2.2"
32
+ spec.add_dependency "faraday", "~> 2.12", ">= 2.12.2"
33
33
 
34
34
  # Development dependencies
35
35
  spec.add_development_dependency "bundler"
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viabtc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kerem Bozdas
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2022-03-15 00:00:00.000000000 Z
10
+ date: 2025-01-01 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -16,14 +15,20 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '2.2'
18
+ version: '2.12'
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: 2.12.2
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
26
  - - "~>"
25
27
  - !ruby/object:Gem::Version
26
- version: '2.2'
28
+ version: '2.12'
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 2.12.2
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: bundler
29
34
  requirement: !ruby/object:Gem::Requirement
@@ -102,13 +107,11 @@ extensions: []
102
107
  extra_rdoc_files: []
103
108
  files:
104
109
  - ".editorconfig"
105
- - ".github/workflows/publish.yml"
106
110
  - ".github/workflows/test.yml"
107
111
  - ".gitignore"
108
112
  - ".rspec"
109
113
  - ".tool-versions"
110
114
  - Gemfile
111
- - Gemfile.lock
112
115
  - LICENSE.txt
113
116
  - README.md
114
117
  - Rakefile
@@ -125,7 +128,6 @@ homepage: https://github.com/krmbzds/viabtc/
125
128
  licenses:
126
129
  - MIT
127
130
  metadata: {}
128
- post_install_message:
129
131
  rdoc_options: []
130
132
  require_paths:
131
133
  - lib
@@ -133,15 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
135
  requirements:
134
136
  - - ">="
135
137
  - !ruby/object:Gem::Version
136
- version: 2.5.8
138
+ version: 3.1.6
137
139
  required_rubygems_version: !ruby/object:Gem::Requirement
138
140
  requirements:
139
141
  - - ">="
140
142
  - !ruby/object:Gem::Version
141
143
  version: '0'
142
144
  requirements: []
143
- rubygems_version: 3.3.7
144
- signing_key:
145
+ rubygems_version: 3.6.2
145
146
  specification_version: 4
146
147
  summary: ViaBTC Exchange Server API Wrapper
147
148
  test_files: []
@@ -1,24 +0,0 @@
1
- name: Publish
2
-
3
- on:
4
- release:
5
- types: [published]
6
-
7
- jobs:
8
- build:
9
- name: Publish Packages
10
- runs-on: ubuntu-latest
11
-
12
- steps:
13
- - uses: actions/checkout@v2
14
-
15
- - name: Set up Ruby
16
- uses: ruby/setup-ruby@v1
17
- with:
18
- bundler-cache: true
19
-
20
- - name: Publish to RubyGems
21
- uses: dawidd6/action-publish-gem@v1
22
- with:
23
- api_key: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
24
- github_token: ${{secrets.VIABTC_GITHUB_AUTH_TOKEN}}
data/Gemfile.lock DELETED
@@ -1,87 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- viabtc (1.4.0)
5
- faraday (~> 2.2)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- ast (2.4.2)
11
- coveralls_reborn (0.24.0)
12
- simplecov (>= 0.18.1, < 0.22.0)
13
- term-ansicolor (~> 1.6)
14
- thor (>= 0.20.3, < 2.0)
15
- tins (~> 1.16)
16
- diff-lcs (1.5.0)
17
- docile (1.4.0)
18
- faraday (2.2.0)
19
- faraday-net_http (~> 2.0)
20
- ruby2_keywords (>= 0.0.4)
21
- faraday-net_http (2.0.1)
22
- parallel (1.21.0)
23
- parser (3.1.1.0)
24
- ast (~> 2.4.1)
25
- rainbow (3.1.1)
26
- rake (13.0.6)
27
- regexp_parser (2.2.1)
28
- rexml (3.2.5)
29
- rspec (3.11.0)
30
- rspec-core (~> 3.11.0)
31
- rspec-expectations (~> 3.11.0)
32
- rspec-mocks (~> 3.11.0)
33
- rspec-core (3.11.0)
34
- rspec-support (~> 3.11.0)
35
- rspec-expectations (3.11.0)
36
- diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.11.0)
38
- rspec-mocks (3.11.0)
39
- diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.11.0)
41
- rspec-support (3.11.0)
42
- rubocop (1.25.1)
43
- parallel (~> 1.10)
44
- parser (>= 3.1.0.0)
45
- rainbow (>= 2.2.2, < 4.0)
46
- regexp_parser (>= 1.8, < 3.0)
47
- rexml
48
- rubocop-ast (>= 1.15.1, < 2.0)
49
- ruby-progressbar (~> 1.7)
50
- unicode-display_width (>= 1.4.0, < 3.0)
51
- rubocop-ast (1.16.0)
52
- parser (>= 3.1.1.0)
53
- rubocop-performance (1.13.3)
54
- rubocop (>= 1.7.0, < 2.0)
55
- rubocop-ast (>= 0.4.0)
56
- ruby-progressbar (1.11.0)
57
- ruby2_keywords (0.0.5)
58
- simplecov (0.21.2)
59
- docile (~> 1.1)
60
- simplecov-html (~> 0.11)
61
- simplecov_json_formatter (~> 0.1)
62
- simplecov-html (0.12.3)
63
- simplecov_json_formatter (0.1.4)
64
- standard (1.7.3)
65
- rubocop (= 1.25.1)
66
- rubocop-performance (= 1.13.3)
67
- sync (0.5.0)
68
- term-ansicolor (1.7.1)
69
- tins (~> 1.0)
70
- thor (1.2.1)
71
- tins (1.31.0)
72
- sync
73
- unicode-display_width (2.1.0)
74
-
75
- PLATFORMS
76
- x86_64-linux
77
-
78
- DEPENDENCIES
79
- bundler
80
- coveralls_reborn
81
- rake
82
- rspec
83
- standard
84
- viabtc!
85
-
86
- BUNDLED WITH
87
- 2.3.7