bitget 0.6.8 → 0.6.9
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/lib/Bitget/VERSION.rb +1 -1
- data/test/gemspec_test.rb +41 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce32fedf4c12c2611b44a6d2ad83a68adf35dfa1617fe91b89295bab1ea81f8b
|
|
4
|
+
data.tar.gz: 7474a5120284e83d08d19cfb5368c8864af9293e6c7c6dc73e8564e4d83d93fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bc72d671a4559202a1791fb101926c5f98211f68e1d4b76f9dae3ac8de748e9b7f28afeb2cb73147babbe8ef5debc0faf94bfa99126818e2c32ced8b28384d6
|
|
7
|
+
data.tar.gz: 267217b4b612a787258945c9ec40dca53ed5433537004c2e3e3939340c82b55b64e20d0aa7883047cfcd6171befbd759712e994ed910e2d591edae4955f71f9e
|
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
|