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 +4 -4
- data/README.md +1 -1
- data/bitget.gemspec +1 -1
- data/lib/Bitget/VERSION.rb +1 -1
- data/test/gemspec_test.rb +41 -10
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d605f410903cdd4c48dab9d5f19e828a070ffd95e10dc986f47080cbd754fce3
|
|
4
|
+
data.tar.gz: 52f68a9b14b940fc321c0da473e4a1baa49873767cd6e5be80f71330a92d9941
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
14
|
+
spec.homepage = 'http://github.com/thoran/bitget'
|
|
15
15
|
spec.license = 'Ruby'
|
|
16
16
|
|
|
17
17
|
spec.required_ruby_version = '>= 2.7'
|
data/lib/Bitget/VERSION.rb
CHANGED
data/test/gemspec_test.rb
CHANGED
|
@@ -1,21 +1,52 @@
|
|
|
1
1
|
require_relative './helper'
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
7
|
-
|
|
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 "
|
|
11
|
-
_(
|
|
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 "
|
|
15
|
-
|
|
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 "
|
|
19
|
-
_(
|
|
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.
|
|
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
|
|
50
|
+
homepage: http://github.com/thoran/bitget
|
|
51
51
|
licenses:
|
|
52
52
|
- Ruby
|
|
53
53
|
metadata: {}
|