bitget.rb 0.6.3 → 0.6.5

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: 7bbb2026a29cd85153418b65cb4cdddd9bc29b06873ceec95cc455894922cd2a
4
- data.tar.gz: ef489e8f1966705d4e3e10c7f8d558284c0847e9d5b2e5e5b42f06ac43b6dafe
3
+ metadata.gz: ff1d27259869ec716ea35190777a26b1f287561401ee8b7f6d14876988b960ff
4
+ data.tar.gz: a22f71e0e523a7ae7a60e551184d651c3840a1efd7cd8649b943862798d831d7
5
5
  SHA512:
6
- metadata.gz: 672c0fbd1f0f756fbba640997f340c009ca218bc008078988365c511c7f427a894068b8470cf14d147fa3827f453e3f2c5881be9df35edbb052370992d5e59a3
7
- data.tar.gz: e7b2c3e7253cf737b909542da4a5c1397164fe3770bd7b90490fb9ffb0a9275c7ab6204f00e1127646462279d6a4bff220a271bf073e8ea20b8a410691617a7a
6
+ metadata.gz: 9a0a273f8a605b66bf766ad2c170cf3d97bcc25f9ed567b71a6c649ef7f582aa03d1cc63d6b780f561cafd297f899318a7d4a0e29fd9bb4d2c2923d9f9b6089d
7
+ data.tar.gz: f8bfef1675733a03c4c4e3db70c70e7061c9c33650502b8c0b6536c79483d6187891f01f553a5c9acd6c4c00daa8bc480b06f830e7ffa833d637cfa3be2746a9
data/bitget.rb.gemspec CHANGED
@@ -4,7 +4,6 @@ Gem::Specification.new do |spec|
4
4
  spec.name = 'bitget.rb'
5
5
 
6
6
  spec.version = Bitget::VERSION
7
- spec.date = '2025-05-26'
8
7
 
9
8
  spec.summary = "Access the Bitget API with Ruby."
10
9
  spec.description = "Access the Bitget API with Ruby."
@@ -2,5 +2,5 @@
2
2
  # Bitget::VERSION
3
3
 
4
4
  module Bitget
5
- VERSION = '0.6.3'
5
+ VERSION = '0.6.5'
6
6
  end
data/lib/Bitget.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
4
4
  $LOAD_PATH.unshift(lib_dir) unless $LOAD_PATH.include?(lib_dir)
5
5
 
6
+ require_relative './Bitget/VERSION'
6
7
  require_relative './Bitget/Client'
7
8
 
8
9
  module Bitget; end
@@ -0,0 +1,18 @@
1
+ require_relative './helper'
2
+
3
+ describe Bitget do
4
+ describe "VERSION" do
5
+ it "is a string" do
6
+ _(Bitget::VERSION).must_be_instance_of String
7
+ end
8
+
9
+ it "is three numbers separated by dots" do
10
+ _(Bitget::VERSION).must_match(/\A\d+\.\d+\.\d+\z/)
11
+ end
12
+
13
+ it "matches the newest entry in the CHANGELOG" do
14
+ changelog = File.read(File.expand_path('../CHANGELOG', __dir__))
15
+ _(changelog[/^(\d+\.\d+\.\d+):/, 1]).must_equal(Bitget::VERSION)
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,21 @@
1
+ require_relative './helper'
2
+
3
+ describe 'bitget.rb.gemspec' do
4
+ let(:spec){Gem::Specification.load(File.expand_path('../bitget.rb.gemspec', __dir__))}
5
+
6
+ it "is a valid specification" do
7
+ _(spec.validate).must_equal(true)
8
+ end
9
+
10
+ it "does not pin a date" do
11
+ _(spec.date).must_equal(Gem::Specification.new.date)
12
+ end
13
+
14
+ it "takes its version from Bitget::VERSION" do
15
+ _(spec.version.to_s).must_equal(Bitget::VERSION)
16
+ end
17
+
18
+ it "declares its runtime dependencies" do
19
+ _(spec.runtime_dependencies.map(&:name).sort).must_equal(%w{http.rb})
20
+ end
21
+ end
data/test/test_all.rb CHANGED
@@ -2,3 +2,5 @@
2
2
 
3
3
  require_relative './V2/Client_test'
4
4
  require_relative './Configuration_test'
5
+ require_relative './VERSION_test'
6
+ require_relative './gemspec_test'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitget.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-05-26 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: http.rb
@@ -42,6 +42,8 @@ files:
42
42
  - lib/Thoran/String/UrlEncode/url_encode.rb
43
43
  - test/Configuration_test.rb
44
44
  - test/V2/Client_test.rb
45
+ - test/VERSION_test.rb
46
+ - test/gemspec_test.rb
45
47
  - test/helper.rb
46
48
  - test/test_all.rb
47
49
  homepage: http://github.com/thoran/bitget.rb