bitget 0.6.8

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.
@@ -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/helper.rb ADDED
@@ -0,0 +1,27 @@
1
+ require 'minitest/autorun'
2
+ require 'minitest/mock'
3
+ require 'minitest/spec'
4
+ require 'minitest-spec-context'
5
+ require 'vcr'
6
+ require 'webmock' # Necessary? Was working without.
7
+
8
+ $LOAD_PATH.unshift(File.expand_path('../lib', __dir__))
9
+ require 'bitget'
10
+
11
+ VCR.configure do |config|
12
+ # config.cassette_library_dir = File.expand_path('../fixtures/vcr_cassettes', __FILE__)
13
+ config.cassette_library_dir = 'test/fixtures/vcr_cassettes'
14
+
15
+ config.hook_into :webmock
16
+
17
+ config.filter_sensitive_data('<API_KEY>'){ENV['BITGET_API_KEY']}
18
+ config.filter_sensitive_data('<API_SECRET>'){ENV['BITGET_API_SECRET'] }
19
+ config.filter_sensitive_data('<API_PASSPHRASE>'){ENV['BITGET_API_PASSPHRASE']}
20
+ end
21
+
22
+ class Minitest::Test
23
+ def before_setup
24
+ super
25
+ Bitget.reset_configuration!
26
+ end
27
+ end
data/test/test_all.rb ADDED
@@ -0,0 +1,6 @@
1
+ # test/test_all.rb
2
+
3
+ require_relative './V2/Client_test'
4
+ require_relative './Configuration_test'
5
+ require_relative './VERSION_test'
6
+ require_relative './gemspec_test'
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bitget
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.8
5
+ platform: ruby
6
+ authors:
7
+ - thoran
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: http.rb
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '0'
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '0'
26
+ description: Access the Bitget API with Ruby.
27
+ email: code@thoran.com
28
+ executables: []
29
+ extensions: []
30
+ extra_rdoc_files: []
31
+ files:
32
+ - Gemfile
33
+ - LICENSE
34
+ - README.md
35
+ - bitget.gemspec
36
+ - lib/Bitget.rb
37
+ - lib/Bitget/Client.rb
38
+ - lib/Bitget/Configuration.rb
39
+ - lib/Bitget/Error.rb
40
+ - lib/Bitget/V2/Client.rb
41
+ - lib/Bitget/VERSION.rb
42
+ - lib/String/url_encode.rb
43
+ - lib/Thoran/String/UrlEncode/url_encode.rb
44
+ - test/Configuration_test.rb
45
+ - test/V2/Client_test.rb
46
+ - test/VERSION_test.rb
47
+ - test/gemspec_test.rb
48
+ - test/helper.rb
49
+ - test/test_all.rb
50
+ homepage: http://github.com/thoran/bitget.rb
51
+ licenses:
52
+ - Ruby
53
+ metadata: {}
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '2.7'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubygems_version: 4.0.20
69
+ specification_version: 4
70
+ summary: Access the Bitget API with Ruby.
71
+ test_files: []