coinmarketcap.rb 0.6.2 → 0.6.3

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: ab3d042696a9e077079899528a5d3ff60dce12c03b9497e05dcdfa1971efedea
4
- data.tar.gz: f94173227e3a59e8c59e5f2e3e473e64ddce2cfefa91530bf555976f0f3b2704
3
+ metadata.gz: b1031fd6aa2958e1a8aee6955ad0e176835bf0080ba0ddc7de27ab1f085a074f
4
+ data.tar.gz: 846b136d65e883430ae4d2b4f1de47b2da110d51f46f33e12f45e9f2071436af
5
5
  SHA512:
6
- metadata.gz: db17fa2b0bfce99db445d4bb22a85f410a8218a311e59ac8bbf9b1489d2d6af0b082647fed300318fac4cf3826e64b91d693b4d80c3badb8cfce2393c56b0de5
7
- data.tar.gz: 1eae43388b3cbfa096459809cb4c1ae5bcfee0fd0984fa9fcf04ea8a0419efc0bd0756baf06a616f9c53cac1f4280fc834e3cc74a7dd48fc8a51b080acaef6a4
6
+ metadata.gz: 956d7053efc1c6a514dc0ad587b7e0e7abe24470c1dbd87258516b0dc23fc659ede88eab896eb651bf8583f842554a957a91feb7ea7d58be0d3d95c4961c9a4d
7
+ data.tar.gz: 226d87faeb29d3a7d307d400872e19490cf5a0308cf0fddd0e0c6e7c2d2d1deaa1667659bdd213acef1e9cbda0f04f5b27b8cb459bbabd5238e3c9e981228bd7
@@ -2,5 +2,5 @@
2
2
  # CoinMarketCap::VERSION
3
3
 
4
4
  module CoinMarketCap
5
- VERSION = '0.6.2'
5
+ VERSION = '0.6.3'
6
6
  end
data/lib/CoinMarketCap.rb CHANGED
@@ -2,3 +2,4 @@
2
2
  # CoinMarketCap
3
3
 
4
4
  require_relative './CoinMarketCap/Client'
5
+ require_relative './CoinMarketCap/VERSION'
@@ -0,0 +1,21 @@
1
+ # test/VERSION_test.rb
2
+
3
+ require_relative './helper'
4
+ require_relative '../lib/CoinMarketCap'
5
+
6
+ describe CoinMarketCap do
7
+ describe "VERSION" do
8
+ it "is a string" do
9
+ _(CoinMarketCap::VERSION).must_be_instance_of String
10
+ end
11
+
12
+ it "is three numbers separated by dots" do
13
+ _(CoinMarketCap::VERSION).must_match(/\A\d+\.\d+\.\d+\z/)
14
+ end
15
+
16
+ it "matches the newest entry in the CHANGELOG" do
17
+ changelog = File.read(File.expand_path('../CHANGELOG.txt', __dir__))
18
+ _(changelog[/^(\d+\.\d+\.\d+):/, 1]).must_equal CoinMarketCap::VERSION
19
+ end
20
+ end
21
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coinmarketcap.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -41,6 +41,7 @@ files:
41
41
  - lib/CoinMarketCap/VERSION.rb
42
42
  - test/V1/client_test.rb
43
43
  - test/V2/client_test.rb
44
+ - test/VERSION_test.rb
44
45
  - test/client_test.rb
45
46
  - test/helper.rb
46
47
  - test/test_all.rb