bitget 0.6.8 → 0.6.10

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: 3e0d654613fdc8a82b59fba0720d2ab0b5537d753674aa9272526d0adf066345
4
- data.tar.gz: 373b01b2e9c8687c0a34c205d0140a764cd673b78729f9a73fe0978ee7673d98
3
+ metadata.gz: d605f410903cdd4c48dab9d5f19e828a070ffd95e10dc986f47080cbd754fce3
4
+ data.tar.gz: 52f68a9b14b940fc321c0da473e4a1baa49873767cd6e5be80f71330a92d9941
5
5
  SHA512:
6
- metadata.gz: 7d46832f9acb0ff24e2604f561b63b58cac07cad9aa0d9a7ee37a46176da0a8228882ae2162f796ee44d7dd4c775d1f2a89611198bccb1d146bd68c99974ac8b
7
- data.tar.gz: 7bf05bb597bd6bc24207025828bf0a86dd63a539479d137c04132ab22f555de69fda4b20ee43847086c00b0a70a3ab17f527d326f59999f0fda7b2518ff28813
6
+ metadata.gz: a8617ed963e614f3b12a99cfa5e819380b7d245de88395dda59aaca6509e1aa4109f51257d08c9e8f5ac28868d6e8b6f923fd78f146fdaf12e602a44c2a426e1
7
+ data.tar.gz: 5e1f5437e16e3e839c471c9c57f4aea4469ccb6ca7bd5e0c022ff37a7eace1cf34f89cb213204a1b08b97d03be2d56b4156b3a68a540f3dafba850675ceda3f3
data/README.md CHANGED
@@ -184,7 +184,7 @@ See https://www.bitget.com/api-doc/spot/intro for further information on endpoin
184
184
 
185
185
  ## Contributing
186
186
 
187
- 1. Fork it (https://github.com/thoran/bitget.rb/fork)
187
+ 1. Fork it (https://github.com/thoran/bitget/fork)
188
188
  2. Create your feature branch (`git checkout -b my-new-feature`)
189
189
  3. Commit your changes (`git commit -am 'Add some feature'`)
190
190
  4. Push to the branch (`git push origin my-new-feature`)
data/bitget.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.author = 'thoran'
13
13
  spec.email = 'code@thoran.com'
14
- spec.homepage = 'http://github.com/thoran/bitget.rb'
14
+ spec.homepage = 'http://github.com/thoran/bitget'
15
15
  spec.license = 'Ruby'
16
16
 
17
17
  spec.required_ruby_version = '>= 2.7'
@@ -2,5 +2,5 @@
2
2
  # Bitget::VERSION
3
3
 
4
4
  module Bitget
5
- VERSION = '0.6.8'
5
+ VERSION = '0.6.10'
6
6
  end
data/test/gemspec_test.rb CHANGED
@@ -1,21 +1,52 @@
1
1
  require_relative './helper'
2
2
 
3
- describe 'bitget.rb.gemspec' do
4
- let(:spec){Gem::Specification.load(File.expand_path('../bitget.rb.gemspec', __dir__))}
3
+ %w{bitget.rb bitget}.each do |name|
4
+ describe "#{name}.gemspec" do
5
+ let(:spec){Gem::Specification.load(File.expand_path("../#{name}.gemspec", __dir__))}
5
6
 
6
- it "is a valid specification" do
7
- _(spec.validate).must_equal(true)
7
+ it "is a valid specification" do
8
+ _(spec.validate).must_equal(true)
9
+ end
10
+
11
+ it "is named #{name}" do
12
+ _(spec.name).must_equal(name)
13
+ end
14
+
15
+ it "does not pin a date" do
16
+ _(spec.date).must_equal(Gem::Specification.new.date)
17
+ end
18
+
19
+ it "takes its version from Bitget::VERSION" do
20
+ _(spec.version.to_s).must_equal(Bitget::VERSION)
21
+ end
22
+
23
+ it "declares its runtime dependencies" do
24
+ _(spec.runtime_dependencies.map(&:name).sort).must_equal(%w{http.rb})
25
+ end
26
+
27
+ it "ships the gemspec which names it" do
28
+ _(spec.files).must_include("#{name}.gemspec")
29
+ end
8
30
  end
31
+ end
32
+
33
+ # The second gemspec exists so that the gem resolves under both names, which is
34
+ # worth nothing if the two drift. Each is loaded rather than the files compared,
35
+ # so that a difference is reported as the field it is.
36
+ describe 'the two gemspecs' do
37
+ let(:bare){Gem::Specification.load(File.expand_path('../bitget.gemspec', __dir__))}
38
+ let(:dotted){Gem::Specification.load(File.expand_path('../bitget.rb.gemspec', __dir__))}
9
39
 
10
- it "does not pin a date" do
11
- _(spec.date).must_equal(Gem::Specification.new.date)
40
+ it "ship the same files but for the one naming each" do
41
+ _(bare.files - ['bitget.gemspec']).must_equal(dotted.files - ['bitget.rb.gemspec'])
12
42
  end
13
43
 
14
- it "takes its version from Bitget::VERSION" do
15
- _(spec.version.to_s).must_equal(Bitget::VERSION)
44
+ it "agree upon everything else declared" do
45
+ fields = %i{version summary description authors email homepage licenses required_ruby_version require_paths}
46
+ _(fields.collect{|field| bare.send(field).to_s}).must_equal(fields.collect{|field| dotted.send(field).to_s})
16
47
  end
17
48
 
18
- it "declares its runtime dependencies" do
19
- _(spec.runtime_dependencies.map(&:name).sort).must_equal(%w{http.rb})
49
+ it "agree upon their dependencies" do
50
+ _(bare.dependencies.collect(&:to_s).sort).must_equal(dotted.dependencies.collect(&:to_s).sort)
20
51
  end
21
52
  end
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.6.8
4
+ version: 0.6.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -47,7 +47,7 @@ files:
47
47
  - test/gemspec_test.rb
48
48
  - test/helper.rb
49
49
  - test/test_all.rb
50
- homepage: http://github.com/thoran/bitget.rb
50
+ homepage: http://github.com/thoran/bitget
51
51
  licenses:
52
52
  - Ruby
53
53
  metadata: {}