crypto_quote 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +49 -0
- data/LICENSE.txt +21 -0
- data/NOTES.md +28 -0
- data/README.md +43 -0
- data/Rakefile +16 -0
- data/bin/console +19 -0
- data/bin/crypto-quote +5 -0
- data/bin/setup +8 -0
- data/config/environment.rb +8 -0
- data/crypto_quote.gemspec +31 -0
- data/lib/crypto_quote/cli.rb +108 -0
- data/lib/crypto_quote/version.rb +3 -0
- data/lib/crypto_quote.rb +6 -0
- data/lib/ticker.rb +19 -0
- metadata +161 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8fe28c9eaedb288bf04d3222be46bdefe729a5f5f4fb82916e01b56859e9985f
|
4
|
+
data.tar.gz: 5a701fe86a025a4be7b57fa0ed7f026b99424262477b67d012fb43c5a35fc6ca
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1c91ab4121ca4ae29d6c2d43d9a7fcec24551e6de9ef4ca5dbaaa481859336af32a9a610fa62df6d5798e1b1b678e958546f246de96e1b840cf12bef3a1baf45
|
7
|
+
data.tar.gz: adc5a2d15f70fe67f85013baa944b6c0599ffadf1a7941bb170eeb9c0b5f2e91d324d417b33cd57b4eb44c9bde8d62c8d07686c857ba2cfcda19943497229a8c
|
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 anthony@anthonygharvey.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/Gemfile.lock
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
crypto_quote (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
coderay (1.1.2)
|
10
|
+
colorize (0.8.1)
|
11
|
+
diff-lcs (1.3)
|
12
|
+
json (1.8.3)
|
13
|
+
method_source (0.9.0)
|
14
|
+
pry (0.11.3)
|
15
|
+
coderay (~> 1.1.0)
|
16
|
+
method_source (~> 0.9.0)
|
17
|
+
rake (10.5.0)
|
18
|
+
rspec (3.7.0)
|
19
|
+
rspec-core (~> 3.7.0)
|
20
|
+
rspec-expectations (~> 3.7.0)
|
21
|
+
rspec-mocks (~> 3.7.0)
|
22
|
+
rspec-core (3.7.1)
|
23
|
+
rspec-support (~> 3.7.0)
|
24
|
+
rspec-expectations (3.7.0)
|
25
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
26
|
+
rspec-support (~> 3.7.0)
|
27
|
+
rspec-mocks (3.7.0)
|
28
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
29
|
+
rspec-support (~> 3.7.0)
|
30
|
+
rspec-support (3.7.0)
|
31
|
+
terminal-table (1.8.0)
|
32
|
+
unicode-display_width (~> 1.1, >= 1.1.1)
|
33
|
+
unicode-display_width (1.3.0)
|
34
|
+
|
35
|
+
PLATFORMS
|
36
|
+
ruby
|
37
|
+
|
38
|
+
DEPENDENCIES
|
39
|
+
bundler (~> 1.16)
|
40
|
+
colorize
|
41
|
+
crypto_quote!
|
42
|
+
json
|
43
|
+
pry
|
44
|
+
rake (~> 10.0)
|
45
|
+
rspec (~> 3.0)
|
46
|
+
terminal-table
|
47
|
+
|
48
|
+
BUNDLED WITH
|
49
|
+
1.16.0
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Anthony
|
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/NOTES.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
## Crypto Quote
|
2
|
+
|
3
|
+
$ crypto-quote
|
4
|
+
|
5
|
+
puts "Welcome to the Cryto Quote App."
|
6
|
+
puts "The quotes are from http://coinmarketcap.com and are delayed by 15 minutes."
|
7
|
+
|
8
|
+
display a table of summary data
|
9
|
+
|
10
|
+
| Rank | Ticker | Name | Price | % 1 Hour | % 24 Hours |
|
11
|
+
| --------| --------| -------- | -----------|----------| -----------|
|
12
|
+
| 1 | BTC | Bitcoin | $10,730.7 | 1.1% | -6.73% |
|
13
|
+
| 2 | ETH | Ethereum | $987.32 | 1.6% | -5.32% |
|
14
|
+
|
15
|
+
type the number of the crypto currency to see more information
|
16
|
+
Type exit to exit
|
17
|
+
|
18
|
+
$ 1
|
19
|
+
|
20
|
+
Bitcoin Details
|
21
|
+
Ticker, Name, Price, % 1 Hour, % 24 Hours, % 7 Days,
|
22
|
+
Market Cap
|
23
|
+
24 Volume
|
24
|
+
Available Supply (% of max)
|
25
|
+
Max Supply
|
26
|
+
|
27
|
+
type l or list to go back
|
28
|
+
type exit to exit
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# CryptoQuote
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/crypto_quote`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'crypto_quote'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install crypto_quote
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
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).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/crypto_quote. 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.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the CryptoQuote project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/crypto_quote/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
require_relative "config/environment"
|
4
|
+
|
5
|
+
RSpec::Core::RakeTask.new(:spec)
|
6
|
+
|
7
|
+
task :default => :spec
|
8
|
+
|
9
|
+
task :console do
|
10
|
+
def reload!
|
11
|
+
load './lib/crypto_quote.rb'
|
12
|
+
load './lib/ticker.rb'
|
13
|
+
load './lib/crypto_quote/cli.rb'
|
14
|
+
end
|
15
|
+
Pry.start
|
16
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "crypto_quote"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
def reload!
|
14
|
+
load './lib/crypto_quote.rb'
|
15
|
+
load './lib/ticker.rb'
|
16
|
+
end
|
17
|
+
|
18
|
+
require "irb"
|
19
|
+
IRB.start(__FILE__)
|
data/bin/crypto-quote
ADDED
data/bin/setup
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "crypto_quote/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "crypto_quote"
|
8
|
+
spec.version = CryptoQuote::VERSION
|
9
|
+
spec.authors = ["Anthony"]
|
10
|
+
spec.email = ["anthony@anthonygharvey.com"]
|
11
|
+
|
12
|
+
spec.summary = "A gem to display quote information for popular cryptocurrencies"
|
13
|
+
spec.description = "This gem will display quote information for the top 15 crytocurrencies"
|
14
|
+
spec.homepage = "https://anthonygharvey.com"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
19
|
+
end
|
20
|
+
spec.bindir = "exe"
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
+
spec.require_paths = ["lib"]
|
23
|
+
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
26
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
27
|
+
spec.add_development_dependency "pry"
|
28
|
+
spec.add_development_dependency "json"
|
29
|
+
spec.add_development_dependency "terminal-table"
|
30
|
+
spec.add_development_dependency "colorize"
|
31
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
class CryptoQuote::CLI
|
2
|
+
@@ticker = CryptoQuote::Ticker.new.data
|
3
|
+
|
4
|
+
def call
|
5
|
+
welcome
|
6
|
+
list_crypto_currencies
|
7
|
+
get_selection_input
|
8
|
+
end
|
9
|
+
|
10
|
+
def welcome
|
11
|
+
puts "Welcome to the Cryto Quote App."
|
12
|
+
puts "The quotes are from http://coinmarketcap.com and are delayed by 5 minutes."
|
13
|
+
end
|
14
|
+
|
15
|
+
def list_crypto_currencies
|
16
|
+
rows = []
|
17
|
+
puts ""
|
18
|
+
self.ticker.each do |c|
|
19
|
+
one_hour = (c['percent_change_1h'][0] == '-' ? c['percent_change_1h'].red : c['percent_change_1h'].green)
|
20
|
+
twenty_four_hour = (c['percent_change_24h'][0] == '-' ? c['percent_change_24h'].red : c['percent_change_24h'].green)
|
21
|
+
rows << [c['rank'], c["symbol"], c["name"], currency_format(c['price_usd']), one_hour+"%", twenty_four_hour+"%"]
|
22
|
+
end
|
23
|
+
table = Terminal::Table.new :title => "Crypto Quotes", :headings => ['Rank', 'Ticker', 'Name', 'Price', '1 Hr %', '24 Hr %'], :rows => rows
|
24
|
+
puts table
|
25
|
+
puts ""
|
26
|
+
selection_instructions
|
27
|
+
end
|
28
|
+
|
29
|
+
def selection_instructions
|
30
|
+
puts "Type the number of a crypto currency to see its details."
|
31
|
+
puts "Type exit to exit."
|
32
|
+
get_selection_input
|
33
|
+
end
|
34
|
+
|
35
|
+
def get_selection_input
|
36
|
+
input = gets.strip
|
37
|
+
if input == "exit"
|
38
|
+
goodbye
|
39
|
+
exit
|
40
|
+
elsif input == "l" || input == "list"
|
41
|
+
list_crypto_currencies
|
42
|
+
get_selection_input
|
43
|
+
elsif valid_input?(input)
|
44
|
+
crypto_detail(input)
|
45
|
+
end
|
46
|
+
detailed_instructions
|
47
|
+
end
|
48
|
+
|
49
|
+
def detailed_instructions
|
50
|
+
puts "Type l or list to go back to the main list."
|
51
|
+
puts "Type exit to exit."
|
52
|
+
get_detailed_input
|
53
|
+
end
|
54
|
+
|
55
|
+
def get_detailed_input
|
56
|
+
input = gets.strip
|
57
|
+
if input == "exit"
|
58
|
+
goodbye
|
59
|
+
exit
|
60
|
+
elsif input == "l" || input == "list"
|
61
|
+
list_crypto_currencies
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def ticker
|
66
|
+
@@ticker
|
67
|
+
end
|
68
|
+
|
69
|
+
def ticker_count
|
70
|
+
@@ticker.count
|
71
|
+
end
|
72
|
+
|
73
|
+
def valid_input?(input)
|
74
|
+
input == "exit" || input == "l" || input == "list" || (input.to_i > 0 && input.to_i <= ticker_count) ? true : false
|
75
|
+
end
|
76
|
+
|
77
|
+
def crypto_detail(input)
|
78
|
+
c = ticker[input.to_i - 1]
|
79
|
+
|
80
|
+
price = currency_format(c['price_usd'])
|
81
|
+
market_cap = currency_format(c['market_cap_usd']).gsub(".0", "")
|
82
|
+
daily_vol = currency_format(c['24h_volume_usd']).gsub(".0", "")
|
83
|
+
available_supply = currency_format(c['available_supply']).gsub(".0", "").gsub("$", "")
|
84
|
+
max_supply = c['max_supply']!=nil ? currency_format(c['max_supply']).gsub(".0", "").gsub("$", "") : "N/A"
|
85
|
+
available_percent = max_supply=="N/A" ? "N/A" : ((c['available_supply'].to_f / c['max_supply'].to_f)*100).round(2)
|
86
|
+
one_hour = (c['percent_change_1h'][0] == '-' ? c['percent_change_1h'].red : c['percent_change_1h'].green)
|
87
|
+
twenty_four_hour = (c['percent_change_24h'][0] == '-' ? c['percent_change_24h'].red : c['percent_change_24h'].green)
|
88
|
+
seven_days = (c['percent_change_7d'][0] == '-' ? c['percent_change_7d'].red : c['percent_change_7d'].green)
|
89
|
+
|
90
|
+
row1 = []
|
91
|
+
row1 << [ c['symbol'], price, one_hour+'%', twenty_four_hour+'%', seven_days+'%' ]
|
92
|
+
table1 = Terminal::Table.new :title => "#{c['name']} Details", :headings => ['Symbol', 'Price', '1 Hr %', '24 Hr %', '7 Day %'], :rows => row1
|
93
|
+
|
94
|
+
row2 = []
|
95
|
+
row2 << [ market_cap, daily_vol, available_supply, max_supply, "#{available_percent}%"]
|
96
|
+
table2 = Terminal::Table.new :title => "#{c['name']} Market Information", :headings => ['Market Cap', '24 Hr Volume', 'Avaiable Supply', 'Total Supply', 'Available %'], :rows => row2
|
97
|
+
|
98
|
+
puts table1, table2
|
99
|
+
end
|
100
|
+
|
101
|
+
def currency_format(number)
|
102
|
+
number != nil ? number.gsub('.00','').reverse.scan(/(\d*\.\d{1,3}|\d{1,3})/).join(',').reverse.insert(0, "$") : 0
|
103
|
+
end
|
104
|
+
|
105
|
+
def goodbye
|
106
|
+
puts "Thank you for using Crypto Quote!"
|
107
|
+
end
|
108
|
+
end
|
data/lib/crypto_quote.rb
ADDED
data/lib/ticker.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
class CryptoQuote::Ticker
|
2
|
+
@@data = nil
|
3
|
+
|
4
|
+
def initialize
|
5
|
+
get_ticker
|
6
|
+
end
|
7
|
+
|
8
|
+
def get_ticker
|
9
|
+
data = 'https://api.coinmarketcap.com/v1/ticker/?limit=15'
|
10
|
+
uri = URI(data)
|
11
|
+
response = Net::HTTP.get(uri)
|
12
|
+
@@data = JSON.parse(response)
|
13
|
+
end
|
14
|
+
|
15
|
+
def data
|
16
|
+
@@data
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: crypto_quote
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Anthony
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-05-19 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.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
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: json
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
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: terminal-table
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
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: colorize
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: This gem will display quote information for the top 15 crytocurrencies
|
112
|
+
email:
|
113
|
+
- anthony@anthonygharvey.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".travis.yml"
|
121
|
+
- CODE_OF_CONDUCT.md
|
122
|
+
- Gemfile
|
123
|
+
- Gemfile.lock
|
124
|
+
- LICENSE.txt
|
125
|
+
- NOTES.md
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- bin/console
|
129
|
+
- bin/crypto-quote
|
130
|
+
- bin/setup
|
131
|
+
- config/environment.rb
|
132
|
+
- crypto_quote.gemspec
|
133
|
+
- lib/crypto_quote.rb
|
134
|
+
- lib/crypto_quote/cli.rb
|
135
|
+
- lib/crypto_quote/version.rb
|
136
|
+
- lib/ticker.rb
|
137
|
+
homepage: https://anthonygharvey.com
|
138
|
+
licenses:
|
139
|
+
- MIT
|
140
|
+
metadata: {}
|
141
|
+
post_install_message:
|
142
|
+
rdoc_options: []
|
143
|
+
require_paths:
|
144
|
+
- lib
|
145
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
requirements: []
|
156
|
+
rubyforge_project:
|
157
|
+
rubygems_version: 2.7.6
|
158
|
+
signing_key:
|
159
|
+
specification_version: 4
|
160
|
+
summary: A gem to display quote information for popular cryptocurrencies
|
161
|
+
test_files: []
|