bitget 0.7.0 → 0.8.1

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: 352f95f68c7fbcc52056d0601fafe86e63e489fa939433345bc0a45b370ceb3c
4
- data.tar.gz: '00380403957fc882a500006e8aaee0e3f533777b19d390447d8211a415d6d3d5'
3
+ metadata.gz: 3e5e99d42fb51118343a4ed7a3293d8549c46490a52ff53bec2bbbef339f8d06
4
+ data.tar.gz: 5a4c9299f77045029541d68b62feadeefaebd91be3bf65ec799ba29a043079b4
5
5
  SHA512:
6
- metadata.gz: 824e2125bf8bad0e0a77253a07cfd52725e395c04d2850c4d432903dfe6d8a1a3c8924a66de0de10cb91da3fb8e14f7dde19f859924aec39b4fe9bfc0ef93a3c
7
- data.tar.gz: f139cfe864aea0295c739e2340174310f351c8d9ce9d7014fd5e449bb5ad6b78a37ac310834ad44824bd8ff5b0be8eab8a309685de967151fbddde0549810095
6
+ metadata.gz: 9036b93b33246495cbadf656d115f7ee0315c4777821664b60ce4ac4f9c985f96fc4ea17f5adadaab34581beb379c3b097f097c411c4b6052f32b7232c446eb3
7
+ data.tar.gz: 8469a1e97f25ca4b0ad58b0438a71c3a1cdfd13c4a423239045ae60e1c255c60f8b0c6a75b9657628bc9f43477247e1d8842e2b98ef259b0717e7bc62faa13d3
data/CHANGELOG CHANGED
@@ -1,7 +1,20 @@
1
1
  # bitget/CHANGELOG
2
2
 
3
+ ## 20261115
4
+
5
+ 0.8.1: Fix the tests failing to load WebMock.
6
+
7
+ 1. ~ test/helper.rb: + skip_webmocks_http_rb_adapter, so as to disambiguate the http gem from the http.rb gem.
8
+ 2. ~ Bitget::VERSION: /0.8.0/0.8.1/
9
+
10
+
3
11
  ## 20260925
4
12
 
13
+ 0.8.0: /lib/Bitget.rb/lib/bitget.rb/, a lowercase load file.
14
+
15
+ 1. /lib/Bitget.rb/lib/bitget.rb/: require 'bitget' and require 'bitget.rb' resolve on a case-sensitive filesystem, where only require 'Bitget' did.
16
+ 2. ~ Bitget::VERSION: /0.7.0/0.8.0/
17
+
5
18
  0.7.0: + Bitget::ERROR_CODES, generated from Bitget's published lists; + Bitget::Error#documented_message, #market_unavailable?.
6
19
 
7
20
  1. + bin/generate_error_codes: Writes lib/Bitget/ERROR_CODES.rb from the V2 REST, V2 WebSocket, and UTA REST lists, noting where they disagree and decoding HTML entities.
@@ -2,5 +2,5 @@
2
2
  # Bitget::VERSION
3
3
 
4
4
  module Bitget
5
- VERSION = '0.7.0'
5
+ VERSION = '0.8.1'
6
6
  end
data/test/helper.rb CHANGED
@@ -1,3 +1,17 @@
1
+ # webmock's http_rb adapter's require 'http' finds http.rb's lib/http.rb,
2
+ # takes HTTP::VERSION for the http gem's, and crashes trying to
3
+ # monkey-patch an HTTP::Client which isn't there.
4
+ def skip_webmocks_http_rb_adapter
5
+ gem 'webmock'
6
+
7
+ $LOADED_FEATURES << File.join(
8
+ Gem.loaded_specs['webmock'].full_gem_path,
9
+ 'lib/webmock/http_lib_adapters/http_rb_adapter.rb'
10
+ )
11
+ end
12
+
13
+ skip_webmocks_http_rb_adapter
14
+
1
15
  require 'minitest/autorun'
2
16
  require 'minitest/mock'
3
17
  require 'minitest/spec'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -35,7 +35,6 @@ files:
35
35
  - README.md
36
36
  - Rakefile
37
37
  - bitget.gemspec
38
- - lib/Bitget.rb
39
38
  - lib/Bitget/Client.rb
40
39
  - lib/Bitget/Configuration.rb
41
40
  - lib/Bitget/ERROR_CODES.rb
@@ -44,6 +43,7 @@ files:
44
43
  - lib/Bitget/VERSION.rb
45
44
  - lib/String/url_encode.rb
46
45
  - lib/Thoran/String/UrlEncode/url_encode.rb
46
+ - lib/bitget.rb
47
47
  - test/Configuration_test.rb
48
48
  - test/ERROR_CODES_test.rb
49
49
  - test/Error_test.rb
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 4.0.21
72
+ rubygems_version: 4.0.23
73
73
  specification_version: 4
74
74
  summary: Access the Bitget API with Ruby.
75
75
  test_files: []
File without changes