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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e0d654613fdc8a82b59fba0720d2ab0b5537d753674aa9272526d0adf066345
4
- data.tar.gz: 373b01b2e9c8687c0a34c205d0140a764cd673b78729f9a73fe0978ee7673d98
3
+ metadata.gz: ce32fedf4c12c2611b44a6d2ad83a68adf35dfa1617fe91b89295bab1ea81f8b
4
+ data.tar.gz: 7474a5120284e83d08d19cfb5368c8864af9293e6c7c6dc73e8564e4d83d93fa
5
5
  SHA512:
6
- metadata.gz: 7d46832f9acb0ff24e2604f561b63b58cac07cad9aa0d9a7ee37a46176da0a8228882ae2162f796ee44d7dd4c775d1f2a89611198bccb1d146bd68c99974ac8b
7
- data.tar.gz: 7bf05bb597bd6bc24207025828bf0a86dd63a539479d137c04132ab22f555de69fda4b20ee43847086c00b0a70a3ab17f527d326f59999f0fda7b2518ff28813
6
+ metadata.gz: 0bc72d671a4559202a1791fb101926c5f98211f68e1d4b76f9dae3ac8de748e9b7f28afeb2cb73147babbe8ef5debc0faf94bfa99126818e2c32ced8b28384d6
7
+ data.tar.gz: 267217b4b612a787258945c9ec40dca53ed5433537004c2e3e3939340c82b55b64e20d0aa7883047cfcd6171befbd759712e994ed910e2d591edae4955f71f9e
@@ -2,5 +2,5 @@
2
2
  # Bitget::VERSION
3
3
 
4
4
  module Bitget
5
- VERSION = '0.6.8'
5
+ VERSION = '0.6.9'
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.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran