coinmarketcap_free 0.2.0 → 0.4.0

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: 0c559f0f1d6dea4119d9c1c6fd6fb9d44b03559c80c694c9c18e4a452a285ed5
4
- data.tar.gz: c1927861d0070f84d8c4aabaf6045de7b2da4d0a1230349bf19e257995d51d84
3
+ metadata.gz: f99259c2770c1da474bbe12a544a7f58456937344edc89c8f0ff99c50b266610
4
+ data.tar.gz: 70bb17060a85b994ec966d869eb6c64a621c504ab9ec70cd0957b6a43d875144
5
5
  SHA512:
6
- metadata.gz: 94665066f532975bcfd68ed72feb3b9905e9372d9b01562ea6d5a0929a3f8604358feb578f0ffcf42e86464e103877d5549e22d4fc1e7e31565df40be64d8c13
7
- data.tar.gz: 4f43a77dd4718c0be2760aabda58338741ee29e38318a5f3eb3d0b0cc06009bf4ea852f34260c0eb4b2aa50fbefa6c1157d331ae4b019b4533281f61574ff93c
6
+ metadata.gz: c5b48661bb1c59169e47210369320616695ea577faee4fb6b0a3bf3bcb8f413ed46cdaaea0d419fa6cceb74c9ae0e1e1a654175bd1224bcfc903cc6e3be27795
7
+ data.tar.gz: ea3166026893e67d2d802dd16837ff47edde03d1a4bdee6cb8744c3fe6fc6bb43b714e4a8fda5e36eb8e67eba9815cd17ef21cf632e3825e0820c81ed198a300
data/.rubocop.yml CHANGED
@@ -107,7 +107,7 @@ Style/DataInheritance: # new in 1.49
107
107
  Style/DirEmpty: # new in 1.48
108
108
  Enabled: true
109
109
  Style/DocumentDynamicEvalDefinition: # new in 1.1
110
- Enabled: true
110
+ Enabled: false
111
111
  Style/EmptyHeredoc: # new in 1.32
112
112
  Enabled: true
113
113
  Style/EndlessMethod: # new in 1.8
data/Gemfile.lock CHANGED
@@ -1,20 +1,21 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coinmarketcap_free (0.2.0)
4
+ coinmarketcap_free (0.4.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- json (2.6.2)
10
- minitest (5.16.3)
11
- net-http (0.3.0)
9
+ json (2.6.3)
10
+ minitest (5.20.0)
11
+ net-http (0.3.2)
12
12
  uri
13
- openssl (3.0.1)
13
+ openssl (3.2.0)
14
14
  rake (13.0.6)
15
- uri (0.12.1)
15
+ uri (0.12.2)
16
16
 
17
17
  PLATFORMS
18
+ x86_64-darwin-22
18
19
  x86_64-linux
19
20
 
20
21
  DEPENDENCIES
@@ -27,4 +28,4 @@ DEPENDENCIES
27
28
  uri (~> 0.12.1)
28
29
 
29
30
  BUNDLED WITH
30
- 2.4.10
31
+ 2.5.3
@@ -5,8 +5,7 @@ require_relative 'helper'
5
5
  module CoinmarketcapFree
6
6
  # All about cryptocurrencies and their prices.
7
7
  module Coin
8
- URL_API = 'https://api.coinmarketcap.com/data-api/v3/cryptocurrency/listing'
9
- private_constant :URL_API
8
+ URI_API = "#{BASE_URI}#{VERSION_API}/cryptocurrency/listing"
10
9
 
11
10
  class << self
12
11
  # Get a list of cryptocurrencies
@@ -120,21 +119,21 @@ module CoinmarketcapFree
120
119
  #
121
120
  #
122
121
  # @return [String]
123
- # @param [Integer] start Optionally offset the start (1-based index) of the paginated list of items to return.
124
- # @param [Integer] limit Optionally specify the number of results to return. Use this parameter and the 'start' parameter to determine your own pagination size.
125
- # @param [String] sort_by What field to sort the list of cryptocurrencies by. ('rank', 'name', 'symbol', 'date_added', 'market_cap', 'market_cap_strict', 'price', 'circulating_supply', 'total_supply', 'max_supply', 'num_market_pairs', 'volume_24h', 'percent_change_1h', 'percent_change_24h', 'percent_change_7d', 'market_cap_by_total_supply_strict', 'volume_7d', 'volume_30d")
126
- # @param [String] sort_type The direction in which to order cryptocurrencies against the specified sort. ('asc', 'desc')
127
- # @param [String] convert Select cryptocurrencies to exchange ('AUD', 'BRL', 'CAD', 'CHF', 'CLP', 'CNY', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'IDR', 'ILS', 'INR', 'JPY', 'KRW', 'MXN', 'MYR', 'NOK', 'NZD', 'PHP', 'PKR', 'PLN', 'RUB', 'SEK', 'SGD', 'THB', 'TRY', 'TWD', 'ZAR'). For example, many 'USD,BTC,ETH' to convert or only one 'USD'
128
- # @param [String] crypto_type The type of cryptocurrency to include. ('all', 'coins', 'tokens')
129
- # @param [String] tag_type The tag of cryptocurrency to include. ('all', 'defi', 'filesharing')
130
- # @param [TrueClass, FalseClass] audited Show audited 'true' or not 'false'
131
- # @param [String] aux Optionally specify a comma-separated list of supplemental data fields to return. Pass 'ath, atl, high24h, low24h, num_market_pairs, cmc_rank, date_added, max_supply, circulating_supply, total_supply, volume_7d, volume_30d, self_reported_circulating_supply, self_reported_market_cap' to include all auxiliary fields.
132
- # @param [String] tags If you want to see cryptocurrencies that can be mined, just type 'mineable'.
133
- # @param [String] volume24h_range Optionally specify a threshold 24 hour USD volume to filter results by. For example, '0~100000000000000000'
134
- # @param [String] percent_change24h_range Optionally specify a threshold 24 hour percent change to filter results by. For example, '0~100' or '-10~100'
135
- # @param [String] circulating_supply_range Optionally specify a threshold circulating supply to filter results by. For example, '0~100000000000000000'
136
- # @param [String] price_range Optionally specify a threshold USD price to filter results by. For example, '0~100000000000000000'
137
- # @param [String] market_cap_range Optionally specify a threshold market cap to filter results by. For example, '0~100000000000000000'
122
+ # @param start [Integer] Optionally offset the start (1-based index) of the paginated list of items to return.
123
+ # @param limit [Integer] Optionally specify the number of results to return. Use this parameter and the 'start' parameter to determine your own pagination size.
124
+ # @param sort_by [String] What field to sort the list of cryptocurrencies by. ('rank', 'name', 'symbol', 'date_added', 'market_cap', 'market_cap_strict', 'price', 'circulating_supply', 'total_supply', 'max_supply', 'num_market_pairs', 'volume_24h', 'percent_change_1h', 'percent_change_24h', 'percent_change_7d', 'market_cap_by_total_supply_strict', 'volume_7d', 'volume_30d")
125
+ # @param sort_type [String] The direction in which to order cryptocurrencies against the specified sort. ('asc', 'desc')
126
+ # @param convert [String] Select cryptocurrencies to exchange ('AUD', 'BRL', 'CAD', 'CHF', 'CLP', 'CNY', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'IDR', 'ILS', 'INR', 'JPY', 'KRW', 'MXN', 'MYR', 'NOK', 'NZD', 'PHP', 'PKR', 'PLN', 'RUB', 'SEK', 'SGD', 'THB', 'TRY', 'TWD', 'ZAR'). For example, many 'USD,BTC,ETH' to convert or only one 'USD'
127
+ # @param crypto_type [String] The type of cryptocurrency to include. ('all', 'coins', 'tokens')
128
+ # @param tag_type [String] The tag of cryptocurrency to include. ('all', 'defi', 'filesharing')
129
+ # @param audited [TrueClass, FalseClass] Show audited 'true' or not 'false'
130
+ # @param aux [String] Optionally specify a comma-separated list of supplemental data fields to return. Pass 'ath, atl, high24h, low24h, num_market_pairs, cmc_rank, date_added, max_supply, circulating_supply, total_supply, volume_7d, volume_30d, self_reported_circulating_supply, self_reported_market_cap' to include all auxiliary fields.
131
+ # @param tags [String] If you want to see cryptocurrencies that can be mined, just type 'mineable'.
132
+ # @param volume24h_range [String] Optionally specify a threshold 24 hour USD volume to filter results by. For example, '0~100000000000000000'
133
+ # @param percent_change24h_range [String] Optionally specify a threshold 24 hour percent change to filter results by. For example, '0~100' or '-10~100'
134
+ # @param circulating_supply_range [String] Optionally specify a threshold circulating supply to filter results by. For example, '0~100000000000000000'
135
+ # @param price_range [String] Optionally specify a threshold USD price to filter results by. For example, '0~100000000000000000'
136
+ # @param market_cap_range [String] Optionally specify a threshold market cap to filter results by. For example, '0~100000000000000000'
138
137
  def list(**params)
139
138
  options = {}
140
139
 
@@ -154,7 +153,7 @@ module CoinmarketcapFree
154
153
  options[:priceRange] = params[:price_range] # String
155
154
  options[:marketCapRange] = params[:market_cap_range] # String
156
155
 
157
- Helper.http_get(URL_API, options)
156
+ Helper.http_get(URI_API, options)
158
157
  end
159
158
  end
160
159
  end
@@ -5,14 +5,31 @@ require_relative 'helper'
5
5
  module CoinmarketcapFree
6
6
  # All history cryptocurrency and their prices.
7
7
  module CoinHistory
8
- URL_API = 'https://api.coinmarketcap.com/data-api/v3/cryptocurrency/detail/chart'
9
- private_constant :URL_API
8
+ URI_API = "#{BASE_URI}#{VERSION_API}/cryptocurrency/detail/chart"
9
+
10
+ INTERVAL_TIME = {
11
+ one_day: '1D',
12
+ seven_days: '7D',
13
+ one_month: '1M',
14
+ three_months: '3M',
15
+ one_year: '1Y',
16
+ current_year: 'YTD',
17
+ all: 'ALL'
18
+ }.freeze
10
19
 
11
20
  class << self
12
21
  # Returns an interval of historic market quotes for any cryptocurrency based on time and interval parameters.
13
22
  #
23
+ # You can use one of the following intervals: 1D, 7D, 1M, 3M, 1Y, YTD, ALL
24
+ #
14
25
  # history = CoinmarketcapFree::CoinHistory.custom_time(1, '1D')
15
26
  #
27
+ # Also you can use this method like this:
28
+ #
29
+ # history = CoinmarketcapFree::CoinHistory.interval_one_day(1)
30
+ #
31
+ # Just add a prefix to the method: interval_(one_day, seven_days, one_month, three_months, one_year, current_year, all)
32
+ #
16
33
  # Result json:
17
34
  #
18
35
  # {
@@ -44,6 +61,7 @@ module CoinmarketcapFree
44
61
  # }
45
62
  # }
46
63
  #
64
+ #
47
65
  # 'data' - Results of your query returned as an object map.
48
66
  # 'points' - Price range history
49
67
  # 'status' - Standardized status object for API calls.
@@ -52,56 +70,16 @@ module CoinmarketcapFree
52
70
  # @param range_time [String] Range time. For example, '1D', '7D', '1M', '3M', '1Y', 'YTD', 'ALL' or custom range '1668981600~1671659999'
53
71
  # @return [String]
54
72
  def custom_time(id, range_time)
55
- Helper.http_get(URL_API, { id: id, range: range_time })
73
+ Helper.http_get(URI_API, { id: id, range: range_time })
56
74
  end
57
75
 
58
- # Returns an interval of historic for the day
59
- #
60
- # @param [Integer] id Cryptocurrency identifier
61
- def interval_day(id)
62
- custom_time(id, '1D')
63
- end
64
-
65
- # Returns an interval of historic for the seven days
66
- #
67
- # @param [Integer] id Cryptocurrency identifier
68
- def interval_seven_days(id)
69
- custom_time(id, '7D')
70
- end
71
-
72
- # Returns an interval of historic for the one month
73
- #
74
- # @param [Integer] id Cryptocurrency identifier
75
- def interval_one_month(id)
76
- custom_time(id, '1M')
77
- end
78
-
79
- # Returns an interval of historic for the three months
80
- #
81
- # @param [Integer] id Cryptocurrency identifier
82
- def interval_three_months(id)
83
- custom_time(id, '3M')
84
- end
85
-
86
- # Returns an interval of historic for the one year
87
- #
88
- # @param [Integer] id Cryptocurrency identifier
89
- def interval_one_year(id)
90
- custom_time(id, '1Y')
91
- end
92
-
93
- # Returns an interval of historic for the current year
94
- #
95
- # @param [Integer] id Cryptocurrency identifier
96
- def interval_current_year(id)
97
- custom_time(id, 'YTD')
98
- end
99
-
100
- # Returns an interval of historic for the current year
101
- #
102
- # @param [Integer] id Cryptocurrency identifier
103
- def interval_all_time(id)
104
- custom_time(id, 'ALL')
76
+ # Creating interval methods
77
+ INTERVAL_TIME.each do |key, value|
78
+ class_eval <<-RUBY, __FILE__, __LINE__ + 1
79
+ def interval_#{key}
80
+ custom_time(id, '#{value}')
81
+ end
82
+ RUBY
105
83
  end
106
84
  end
107
85
  end
@@ -6,6 +6,9 @@ require 'openssl'
6
6
  require 'json'
7
7
 
8
8
  module CoinmarketcapFree
9
+ BASE_URI = 'https://api.coinmarketcap.com/data-api/'
10
+ VERSION_API = 'v3'
11
+
9
12
  # Helper module for CoinmarketcapFree
10
13
  module Helper
11
14
  class << self
@@ -4,9 +4,9 @@ module CoinmarketcapFree
4
4
  # Get static image of a coin from coinmarketcap.com
5
5
  module Icon
6
6
  class << self
7
- # Get coin logo URI
7
+ # Generate URI image of a coin
8
8
  #
9
- # logo = CoinmarketcapFree::Icon.img_coin(1, 64)
9
+ # logo = CoinmarketcapFree::Icon.generate_url(1, 64)
10
10
  #
11
11
  # Result:
12
12
  # "https://s2.coinmarketcap.com/static/img/coins/64x64/1.png"
@@ -1,5 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # Get data from Coinmarketcap API without requiring an API key.
3
4
  module CoinmarketcapFree
4
- VERSION = '0.2.0'
5
+ MAJOR = 0
6
+ MINOR = 4
7
+ PATCH = 0
8
+
9
+ private_constant :MAJOR, :MINOR, :PATCH
10
+
11
+ VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
5
12
  end
@@ -7,4 +7,97 @@ require_relative 'coinmarketcap_free/version'
7
7
 
8
8
  # Get data from Coinmarketcap API without requiring an API key.
9
9
  module CoinmarketcapFree
10
- end
10
+ class << self
11
+ # Get a list of cryptocurrencies
12
+ #
13
+ # list = CoinmarketcapFree.coins(limit: 100, start: 1)
14
+ #
15
+ # If you want to sort in ascending, just write parameter:
16
+ #
17
+ # list = CoinmarketcapFree.coins(limit: 100, start: 1, sort_type:'asc')
18
+ #
19
+ # or
20
+ #
21
+ # list = CoinmarketcapFree.coins(limit: 100, start: 1, sort_type:'desc')
22
+ #
23
+ # You can also adding sort by:
24
+ #
25
+ # list = CoinmarketcapFree.coins(limit: 100, start: 1, sort_type:'asc', sort_by: 'name')
26
+ #
27
+ # Convert cryptocurrency to::
28
+ #
29
+ # list = CoinmarketcapFree.coins(limit: 100, start: 1, convert: 'USD,BTC,ETH')
30
+ #
31
+ # Also you can use this method like this:
32
+ #
33
+ # list = CoinmarketcapFree.coins(limit: 100, start: 1, convert: 'USD,BTC,ETH') do |data|
34
+ # JSON.parse(data)
35
+ # end
36
+ #
37
+ #
38
+ # @param start [Integer] Optionally offset the start (1-based index) of the paginated list of items to return.
39
+ # @param limit [Integer] Optionally specify the number of results to return. Use this parameter and the 'start' parameter to determine your own pagination size.
40
+ # @param sort_by [String] What field to sort the list of cryptocurrencies by. ('rank', 'name', 'symbol', 'date_added', 'market_cap', 'market_cap_strict', 'price', 'circulating_supply', 'total_supply', 'max_supply', 'num_market_pairs', 'volume_24h', 'percent_change_1h', 'percent_change_24h', 'percent_change_7d', 'market_cap_by_total_supply_strict', 'volume_7d', 'volume_30d")
41
+ # @param sort_type [String] The direction in which to order cryptocurrencies against the specified sort. ('asc', 'desc')
42
+ # @param convert [String] Select cryptocurrencies to exchange ('AUD', 'BRL', 'CAD', 'CHF', 'CLP', 'CNY', 'CZK', 'DKK', 'EUR', 'GBP', 'HKD', 'HUF', 'IDR', 'ILS', 'INR', 'JPY', 'KRW', 'MXN', 'MYR', 'NOK', 'NZD', 'PHP', 'PKR', 'PLN', 'RUB', 'SEK', 'SGD', 'THB', 'TRY', 'TWD', 'ZAR'). For example, many 'USD,BTC,ETH' to convert or only one 'USD'
43
+ # @param crypto_type [String] The type of cryptocurrency to include. ('all', 'coins', 'tokens')
44
+ # @param tag_type [String] The tag of cryptocurrency to include. ('all', 'defi', 'filesharing')
45
+ # @param audited [TrueClass, FalseClass] Show audited 'true' or not 'false'
46
+ # @param aux [String] Optionally specify a comma-separated list of supplemental data fields to return. Pass 'ath, atl, high24h, low24h, num_market_pairs, cmc_rank, date_added, max_supply, circulating_supply, total_supply, volume_7d, volume_30d, self_reported_circulating_supply, self_reported_market_cap' to include all auxiliary fields.
47
+ # @param tags [String] If you want to see cryptocurrencies that can be mined, just type 'mineable'.
48
+ # @param volume24h_range [String] Optionally specify a threshold 24 hour USD volume to filter results by. For example, '0~100000000000000000'
49
+ # @param percent_change24h_range [String] Optionally specify a threshold 24 hour percent change to filter results by. For example, '0~100' or '-10~100'
50
+ # @param circulating_supply_range [String] Optionally specify a threshold circulating supply to filter results by. For example, '0~100000000000000000'
51
+ # @param price_range [String] Optionally specify a threshold USD price to filter results by. For example, '0~100000000000000000'
52
+ # @param market_cap_range [String] Optionally specify a threshold market cap to filter results by. For example, '0~100000000000000000'
53
+ # @return [Hash]
54
+ def coins(**params)
55
+ data = Coin.list(params)
56
+
57
+ return yield data if block_given?
58
+
59
+ JSON.parse(data)
60
+ end
61
+
62
+ # Returns an interval of historic market quotes for any cryptocurrency based on time and interval parameters.
63
+ #
64
+ # You can use one of the following intervals: 1D, 7D, 1M, 3M, 1Y, YTD, ALL
65
+ #
66
+ # history = CoinmarketcapFree.coin_history(1, '1D')
67
+ #
68
+ # Also you can use this method like this:
69
+ #
70
+ # history = CoinmarketcapFree.coin_history(1, '1668981600~1671659999') do |data|
71
+ # JSON.parse(data)
72
+ # end
73
+ #
74
+ # 'data' - Results of your query returned as an object map.
75
+ # 'points' - Price range history
76
+ # 'status' - Standardized status object for API calls.
77
+ #
78
+ # @param id [Integer] Cryptocurrency identifier from coinmarketcap. For example, Bitcoin has the number 1
79
+ # @param range_time [String] Range time. For example, '1D', '7D', '1M', '3M', '1Y', 'YTD', 'ALL' or custom range '1668981600~1671659999'
80
+ # @return [Hash]
81
+ def coin_history(id, range_time)
82
+ data = CoinHistory.custom_time(id, range_time)
83
+
84
+ return yield data if block_given?
85
+
86
+ JSON.parse(data)
87
+ end
88
+
89
+ # Generate URI image of a coin
90
+ #
91
+ # logo = CoinmarketcapFree.coin_icon(1, 64)
92
+ #
93
+ # Result:
94
+ # "https://s2.coinmarketcap.com/static/img/coins/64x64/1.png"
95
+ #
96
+ # @param [Integer] id_coin Identify coin. For example, bitcoin has 1
97
+ # @param [Integer] size Choose one size: 64, 128, 200
98
+ # @return [String] Return URI from coinmarketcap
99
+ def coin_icon(id_coin, size)
100
+ Icon.generate_url(id_coin, size)
101
+ end
102
+ end
103
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coinmarketcap_free
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
- - cosmic-1
8
- autorequire:
7
+ - Vitalii Bakun
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-18 00:00:00.000000000 Z
11
+ date: 2024-02-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Cryptocurrency information from the Coinmarketcap site without a key.
14
14
  email:
@@ -23,21 +23,20 @@ files:
23
23
  - LICENSE.txt
24
24
  - README.md
25
25
  - Rakefile
26
- - coinmarketcap_free.gemspec
27
26
  - lib/coinmarketcap_free.rb
28
27
  - lib/coinmarketcap_free/coin.rb
29
28
  - lib/coinmarketcap_free/coin_history.rb
30
29
  - lib/coinmarketcap_free/helper.rb
31
30
  - lib/coinmarketcap_free/icon.rb
32
31
  - lib/coinmarketcap_free/version.rb
33
- homepage:
32
+ homepage:
34
33
  licenses:
35
34
  - MIT
36
35
  metadata:
37
36
  allowed_push_host: https://rubygems.org
38
- source_code_uri: https://github.com/Cosmic-1/coinmarketcap_free
39
- rubygems_mfa_required: 'false'
40
- post_install_message:
37
+ source_code_uri: https://github.com/vitalii-bakun/coinmarketcap_free
38
+ rubygems_mfa_required: 'true'
39
+ post_install_message:
41
40
  rdoc_options: []
42
41
  require_paths:
43
42
  - lib
@@ -45,15 +44,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
45
44
  requirements:
46
45
  - - ">="
47
46
  - !ruby/object:Gem::Version
48
- version: 2.6.0
47
+ version: 2.7.0
49
48
  required_rubygems_version: !ruby/object:Gem::Requirement
50
49
  requirements:
51
50
  - - ">="
52
51
  - !ruby/object:Gem::Version
53
52
  version: '0'
54
53
  requirements: []
55
- rubygems_version: 3.4.10
56
- signing_key:
54
+ rubygems_version: 3.5.3
55
+ signing_key:
57
56
  specification_version: 4
58
57
  summary: Cryptocurrency information from the Coinmarketcap site without a key.
59
58
  test_files: []
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/coinmarketcap_free/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "coinmarketcap_free"
7
- spec.version = CoinmarketcapFree::VERSION
8
- spec.authors = ["cosmic-1"]
9
- spec.email = ["crossdoh@gmail.com"]
10
-
11
- spec.summary = "Cryptocurrency information from the Coinmarketcap site without a key."
12
- spec.description = "Cryptocurrency information from the Coinmarketcap site without a key."
13
- spec.license = "MIT"
14
- spec.required_ruby_version = ">= 2.6.0"
15
-
16
- spec.metadata["allowed_push_host"] = "https://rubygems.org"
17
-
18
- spec.metadata["source_code_uri"] = 'https://github.com/Cosmic-1/coinmarketcap_free'
19
-
20
- # Specify which files should be added to the gem when it is released.
21
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
- spec.files = Dir.chdir(__dir__) do
23
- `git ls-files -z`.split("\x0").reject do |f|
24
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
25
- end
26
- end
27
- spec.bindir = "exe"
28
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
- spec.require_paths = ["lib"]
30
-
31
- # Uncomment to register a new dependency of your gem
32
- # spec.add_dependency "example-gem", "~> 1.0"
33
-
34
- # For more information and examples about making a new gem, check out our
35
- # guide at: https://bundler.io/guides/creating_gem.html
36
- spec.metadata['rubygems_mfa_required'] = 'false'
37
- end