crypto_compare 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +21 -0
- data/README.md +49 -0
- data/Rakefile +6 -0
- data/bin/.DS_Store +0 -0
- data/bin/console +10 -0
- data/bin/crypto-compare +5 -0
- data/bin/setup +6 -0
- data/crypto_compare.gemspec +34 -0
- data/lib/crypto_compare.rb +14 -0
- data/lib/crypto_compare/.DS_Store +0 -0
- data/lib/crypto_compare/cli.rb +85 -0
- data/lib/crypto_compare/crypto_currency.rb +21 -0
- data/lib/crypto_compare/scraper.rb +24 -0
- data/lib/crypto_compare/version.rb +3 -0
- metadata +167 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 87936249af51358e1811cecb74d87c13ed3f5b63
|
4
|
+
data.tar.gz: 54797c16e8f753aba33bf24b041dda0831e641e0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 42ee66d1651b69bf86da33ecf833e52617680c942acb2d64c3e5c0d81c44b8d477e0d439aa78aa3ec5c047489624d5f4fed15a78a483a6f6359f85412f9ffc4d
|
7
|
+
data.tar.gz: 326b75d4f8536e02c4f638205bc080b4b7eea9eaf9b0fea4aeec1759dc0264d29fc25c5c0e0e04ffb81e6385d17166ad07e117f96c06f8d9cdef9608c814cfde
|
data/.DS_Store
ADDED
Binary file
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at michaelangelo.yambao@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Michaelangelo Yambao
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# CryptoCompare::CLI::Gem
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/crypto_compare.svg)](https://badge.fury.io/rb/crypto_compare)
|
4
|
+
|
5
|
+
CryptoCompare is a gem that allows you to quickly display information on the top 10 Crypto Currencies (by market cap) in your fiat currency of choice. It uses Nokogiri and OpenURI to scrape data from http://coinmarketcap.com/, which is a complete, up-to-date list of cryptocurrency valuations in USD, ordered from highest to lowest market cap. It also uses the Ruby Money and Google Currency (which extends Ruby Money) gems to instantiate Money objects for currency conversion using data from https://www.google.com/finance/converterWelcome.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'crypto_compare'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install crypto_compare
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
After gem installation, run the CLI by typing 'crypto-compare' in your terminal.
|
26
|
+
|
27
|
+
The CLI will greet the user, display the top 10 crypto currencies by market cap, and prompt the user for their crypto currency of interest. To choose, the user can either type the crypto currency of interest's name (e.g. bitcoin), or the number that appears with it in the top 10 list.
|
28
|
+
|
29
|
+
The user will then be prompted to enter their fiat currency of interest's [ISO Code](https://en.wikipedia.org/wiki/ISO_4217#Active_codes), the shorthand code for a country's national currency. The naming convention is the first two letters of the country (e.g. CA for Canada) followed by the first letter of it's currency (e.g. D for Dollars, put together: CAD).
|
30
|
+
|
31
|
+
The information on the user's crypto currency of choice is then displayed in denominations of their chosen fiat currency. The user can run the CLI again by choosing 'y' in the prompt above, or simply exit with 'n'.
|
32
|
+
|
33
|
+
## Development
|
34
|
+
|
35
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
36
|
+
|
37
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
38
|
+
|
39
|
+
## Contributing
|
40
|
+
|
41
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jelocodes/crypto-compare-gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
42
|
+
|
43
|
+
## License
|
44
|
+
|
45
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
46
|
+
|
47
|
+
## Code of Conduct
|
48
|
+
|
49
|
+
Everyone interacting in the CryptoCompare project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jelocodes/crypto-compare-gem/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/.DS_Store
ADDED
Binary file
|
data/bin/console
ADDED
data/bin/crypto-compare
ADDED
data/bin/setup
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "crypto_compare/version"
|
5
|
+
require "crypto_compare/cli"
|
6
|
+
require "crypto_compare/crypto_currency"
|
7
|
+
require "crypto_compare/scraper"
|
8
|
+
|
9
|
+
Gem::Specification.new do |spec|
|
10
|
+
spec.name = "crypto_compare"
|
11
|
+
spec.version = CryptoCompare::VERSION
|
12
|
+
spec.authors = ["Michaelangelo Yambao"]
|
13
|
+
spec.email = ["michaelangelo.yambao@gmail.com"]
|
14
|
+
|
15
|
+
spec.summary = "A Ruby CLI application to quickly get crypto currency information in various fiat currencies."
|
16
|
+
spec.description = "Get information on your crypto currency of interest (such as its market cap, price, and daily volume) in denominations of your chosen fiat currency, all within the command line."
|
17
|
+
spec.homepage = "https://github.com/jelocodes/crypto-compare-gem"
|
18
|
+
spec.license = "MIT"
|
19
|
+
|
20
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
21
|
+
f.match(%r{^(test|spec|features)/})
|
22
|
+
end
|
23
|
+
spec.executables = ["crypto-compare"]
|
24
|
+
spec.require_paths = ["lib", "lib/crypto_compare"]
|
25
|
+
|
26
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
27
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
28
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
29
|
+
spec.add_development_dependency "pry"
|
30
|
+
spec.add_dependency "nokogiri"
|
31
|
+
spec.add_dependency "money"
|
32
|
+
spec.add_dependency "google_currency"
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module CryptoCompare
|
2
|
+
end
|
3
|
+
|
4
|
+
require 'open-uri'
|
5
|
+
require 'nokogiri'
|
6
|
+
require 'money'
|
7
|
+
require 'money/bank/google_currency'
|
8
|
+
|
9
|
+
require_relative "crypto_compare/cli"
|
10
|
+
require_relative "crypto_compare/crypto_currency"
|
11
|
+
require_relative "crypto_compare/scraper"
|
12
|
+
|
13
|
+
Money.use_i18n = false
|
14
|
+
Money.infinite_precision = true
|
Binary file
|
@@ -0,0 +1,85 @@
|
|
1
|
+
require_relative '../crypto_compare.rb'
|
2
|
+
|
3
|
+
class CryptoCompare::CLI
|
4
|
+
|
5
|
+
puts "Welcome to CryptoCompare!"
|
6
|
+
|
7
|
+
def call
|
8
|
+
@s = CryptoCompare::Scraper.new
|
9
|
+
|
10
|
+
Money.default_bank = Money::Bank::GoogleCurrency.new
|
11
|
+
|
12
|
+
set_crypto_currency_and_data
|
13
|
+
set_variables
|
14
|
+
set_infinite_precision
|
15
|
+
set_base_currency
|
16
|
+
display_results
|
17
|
+
another_or_exit
|
18
|
+
end
|
19
|
+
|
20
|
+
def set_crypto_currency_and_data
|
21
|
+
puts "Please enter your crypto currency of interest (e.g. bitcoin, ethereum, dogecoin, etc.)"
|
22
|
+
puts "or enter the number (e.g. 1) or name (e.g. bitcoin) of a currency from the top 10 list below:"
|
23
|
+
CryptoCompare::CryptoCurrency.make_crypto_from_list(@s.get_list(@s.page), @s)
|
24
|
+
CryptoCompare::CryptoCurrency.all.each_with_index {|crypto, index| puts "#{index+1}. #{crypto.name}"}
|
25
|
+
@crypto_currency = gets.downcase.chomp
|
26
|
+
@crypto_currency = @s.get_list(@s.page)[@crypto_currency.to_i-1] if @crypto_currency.to_i >= 1
|
27
|
+
@data = @s.get_attributes(@crypto_currency, @s.page)
|
28
|
+
|
29
|
+
if @data["price"] == ""
|
30
|
+
puts "No such crypto currency found."
|
31
|
+
set_crypto_currency_and_data
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
def set_variables
|
36
|
+
@crypto_currency = CryptoCompare::CryptoCurrency.new(@data)
|
37
|
+
@price = Money.new("#{@crypto_currency.price}".delete("$").to_f*100, "USD")
|
38
|
+
@cap = Money.new("#{@crypto_currency.market_cap}".delete("$").to_f*100, "USD")
|
39
|
+
@cap_value = @crypto_currency.market_cap.delete("$,").length >= 10 ? "billion" : "million"
|
40
|
+
@volume = Money.new("#{@crypto_currency.volume}".delete("$").to_f*100, "USD")
|
41
|
+
@change_direction = @crypto_currency.percent_change[0] == "-" ? "v" : "^"
|
42
|
+
end
|
43
|
+
|
44
|
+
def set_infinite_precision
|
45
|
+
@crypto_currency.price.to_f < 1 ? Money.infinite_precision = true : Money.infinite_precision = false
|
46
|
+
end
|
47
|
+
|
48
|
+
def set_base_currency
|
49
|
+
puts "Please enter your fiat currency of interest's ISO code (e.g. USD, CAD, GBP, JPY, etc.):"
|
50
|
+
@base_currency = gets.upcase.chomp.to_sym
|
51
|
+
|
52
|
+
if Money::Currency.include?(@base_currency) == false
|
53
|
+
puts "No such fiat currency found."
|
54
|
+
set_base_currency
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def display_results
|
59
|
+
puts "-"*20
|
60
|
+
puts "Crypto Currency: #{@crypto_currency.name}"
|
61
|
+
puts "Current Price: #{@price.exchange_to(@base_currency).symbol}#{@price.exchange_to(@base_currency)} #{@price.exchange_to(@base_currency).currency.iso_code}"
|
62
|
+
puts "Market Cap: #{@cap.exchange_to(@base_currency).symbol}#{@cap.exchange_to(@base_currency)} #{@cap_value} #{@cap.exchange_to(@base_currency).currency.iso_code}"
|
63
|
+
puts "Circulating Supply: #{@crypto_currency.circulating_supply}"
|
64
|
+
puts "Percent Change (24 hrs): #{@crypto_currency.percent_change} #{@change_direction}"
|
65
|
+
puts "-"*20
|
66
|
+
end
|
67
|
+
|
68
|
+
def another_or_exit
|
69
|
+
puts "Convert another? y/n"
|
70
|
+
input = gets.downcase.chomp
|
71
|
+
|
72
|
+
case input
|
73
|
+
when "y", "yes"
|
74
|
+
call
|
75
|
+
when "n", "no"
|
76
|
+
puts "Thank you for using CryptoCompare!"
|
77
|
+
puts "Goodbye."
|
78
|
+
exit
|
79
|
+
else
|
80
|
+
puts "Incorrect input."
|
81
|
+
another_or_exit
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require_relative '../crypto_compare.rb'
|
2
|
+
|
3
|
+
class CryptoCompare::CryptoCurrency
|
4
|
+
attr_accessor :name, :price, :market_cap, :circulating_supply, :volume, :percent_change
|
5
|
+
@@all = []
|
6
|
+
|
7
|
+
def initialize(data)
|
8
|
+
data.each{|key,value| self.send("#{key}=",value)}
|
9
|
+
@@all << self if !@@all.detect {|crypto| crypto.name == self.name}
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.all
|
13
|
+
@@all
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.make_crypto_from_list(list, scraper)
|
17
|
+
list.each {|crypto| CryptoCompare::CryptoCurrency.new(scraper.get_attributes(crypto, scraper.page))}
|
18
|
+
self.all
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require_relative '../crypto_compare.rb'
|
2
|
+
|
3
|
+
class CryptoCompare::Scraper
|
4
|
+
attr_accessor :page
|
5
|
+
|
6
|
+
def initialize
|
7
|
+
@page = Nokogiri::HTML(open("https://coinmarketcap.com/"))
|
8
|
+
end
|
9
|
+
|
10
|
+
def get_list(source)
|
11
|
+
source.css("td.currency-name a" ).enum_for(:each_with_index).collect {|crypto, index| crypto.text.downcase.gsub(" ","-") if index <= 9 }.compact
|
12
|
+
end
|
13
|
+
|
14
|
+
def get_attributes(crypto_currency, source)
|
15
|
+
data = {}
|
16
|
+
data["name"] = crypto_currency
|
17
|
+
data["price"] = source.css("tr#id-#{crypto_currency} td.no-wrap a.price").text
|
18
|
+
data["market_cap"] = source.css("tr#id-#{crypto_currency} td.market-cap").text.gsub(/\s+/, "")
|
19
|
+
data["circulating_supply"] = source.css("tr#id-#{crypto_currency} td.no-wrap a[target='_blank']").text.gsub(/\s+/, " ")
|
20
|
+
data["percent_change"] = source.css("tr#id-#{crypto_currency} td.percent-24h").text
|
21
|
+
data
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: crypto_compare
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.13
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michaelangelo Yambao
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-07-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: nokogiri
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: money
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: google_currency
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Get information on your crypto currency of interest (such as its market
|
112
|
+
cap, price, and daily volume) in denominations of your chosen fiat currency, all
|
113
|
+
within the command line.
|
114
|
+
email:
|
115
|
+
- michaelangelo.yambao@gmail.com
|
116
|
+
executables:
|
117
|
+
- crypto-compare
|
118
|
+
extensions: []
|
119
|
+
extra_rdoc_files: []
|
120
|
+
files:
|
121
|
+
- ".DS_Store"
|
122
|
+
- ".gitignore"
|
123
|
+
- ".rspec"
|
124
|
+
- ".travis.yml"
|
125
|
+
- CODE_OF_CONDUCT.md
|
126
|
+
- Gemfile
|
127
|
+
- LICENSE.txt
|
128
|
+
- README.md
|
129
|
+
- Rakefile
|
130
|
+
- bin/.DS_Store
|
131
|
+
- bin/console
|
132
|
+
- bin/crypto-compare
|
133
|
+
- bin/setup
|
134
|
+
- crypto_compare.gemspec
|
135
|
+
- lib/crypto_compare.rb
|
136
|
+
- lib/crypto_compare/.DS_Store
|
137
|
+
- lib/crypto_compare/cli.rb
|
138
|
+
- lib/crypto_compare/crypto_currency.rb
|
139
|
+
- lib/crypto_compare/scraper.rb
|
140
|
+
- lib/crypto_compare/version.rb
|
141
|
+
homepage: https://github.com/jelocodes/crypto-compare-gem
|
142
|
+
licenses:
|
143
|
+
- MIT
|
144
|
+
metadata: {}
|
145
|
+
post_install_message:
|
146
|
+
rdoc_options: []
|
147
|
+
require_paths:
|
148
|
+
- lib
|
149
|
+
- lib/crypto_compare
|
150
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
requirements: []
|
161
|
+
rubyforge_project:
|
162
|
+
rubygems_version: 2.6.10
|
163
|
+
signing_key:
|
164
|
+
specification_version: 4
|
165
|
+
summary: A Ruby CLI application to quickly get crypto currency information in various
|
166
|
+
fiat currencies.
|
167
|
+
test_files: []
|