coinmarketcap.rb 0.6.1 → 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: f7dbda1e44c95ff829eccee383406c3b46c138875973a50e0815fc3b02b6637d
4
- data.tar.gz: 9d20cb179391a63a92ff7db4bae83ecffe8ebe7c73711126846f1b833256c722
3
+ metadata.gz: b1031fd6aa2958e1a8aee6955ad0e176835bf0080ba0ddc7de27ab1f085a074f
4
+ data.tar.gz: 846b136d65e883430ae4d2b4f1de47b2da110d51f46f33e12f45e9f2071436af
5
5
  SHA512:
6
- metadata.gz: e6ab6d372d36edbe877184caa46ca3f1676c43e904cbb204d71711880210f46e618d6813fec5a82d41d0385d4724abf5b6d663302e4093907dccede183469488
7
- data.tar.gz: 626cf9a50ada60e0f076ba9ae22aa6cf7fe77aa42aa460bb5c1f14278318bdcdbdd97b69d74ab5350f7250b5fd6e71892054b0c5da2abe6795b34e61ece183d2
6
+ metadata.gz: 956d7053efc1c6a514dc0ad587b7e0e7abe24470c1dbd87258516b0dc23fc659ede88eab896eb651bf8583f842554a957a91feb7ea7d58be0d3d95c4961c9a4d
7
+ data.tar.gz: 226d87faeb29d3a7d307d400872e19490cf5a0308cf0fddd0e0c6e7c2d2d1deaa1667659bdd213acef1e9cbda0f04f5b27b8cb459bbabd5238e3c9e981228bd7
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-2026 thoran
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -102,3 +102,8 @@ coinmarketcap_client.trending
102
102
  3. Commit your changes (`git commit -am 'Add some feature'`)
103
103
  4. Push to the branch (`git push origin my-new-feature`)
104
104
  5. Create a new pull request
105
+
106
+
107
+ ## License
108
+
109
+ MIT
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.files = [
19
19
  'coinmarketcap.rb.gemspec',
20
20
  'Gemfile',
21
+ 'LICENSE',
21
22
  Dir['lib/**/*.rb'],
22
23
  'README.md',
23
24
  Dir['test/**/*.rb']
@@ -2,5 +2,5 @@
2
2
  # CoinMarketCap::VERSION
3
3
 
4
4
  module CoinMarketCap
5
- VERSION = '0.6.1'
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.1
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -30,6 +30,7 @@ extensions: []
30
30
  extra_rdoc_files: []
31
31
  files:
32
32
  - Gemfile
33
+ - LICENSE
33
34
  - README.md
34
35
  - coinmarketcap.rb.gemspec
35
36
  - lib/CoinMarketCap.rb
@@ -40,6 +41,7 @@ files:
40
41
  - lib/CoinMarketCap/VERSION.rb
41
42
  - test/V1/client_test.rb
42
43
  - test/V2/client_test.rb
44
+ - test/VERSION_test.rb
43
45
  - test/client_test.rb
44
46
  - test/helper.rb
45
47
  - test/test_all.rb
@@ -61,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
63
  - !ruby/object:Gem::Version
62
64
  version: '0'
63
65
  requirements: []
64
- rubygems_version: 4.0.6
66
+ rubygems_version: 4.0.20
65
67
  specification_version: 4
66
68
  summary: Access the coinmarketcap.com API with Ruby.
67
69
  test_files: []