CryptoPriceFinder 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 637e6eb337c16695571354274a59b1dfab940dcf6ee86dd882546be9e8d1b9f7
4
- data.tar.gz: ec57fb5feff88d415442c7ea4b41c03104a0f72071a86226f6efb6a0311232e2
3
+ metadata.gz: 91a3c892af5131c5e060814350322c32b822dc4fababe9fd5ae534c4627989f3
4
+ data.tar.gz: f3e423e3f4e63790dba90e7b868a54d2d6538f851ca89831a6e2610dd6881b97
5
5
  SHA512:
6
- metadata.gz: ff8e0f828e468b2af8a23d8735f91896a8bd3acde09596a7eb6d5c94fdb0aa59e46d2f4bc6effa1120ac3c9301aa39778c36c178ada1dfe2c492cafc7f67b8ae
7
- data.tar.gz: 95fb014ff90a36e453f118852dc4f9c90080e68f85f59aa4c2646e56a606b90258d9992f7c2f98fcd2b429c77c8aceaafefa16a288eaaba64f0f048b96cc6ad3
6
+ metadata.gz: 3ed2bc8cf80c90a054cea807221aa9e709f522453f94a74a94358c2a6981a43ab2593f5e8c7f368c1b11fd38688d334c464328c1c98f135723e8b6497a903dbc
7
+ data.tar.gz: 92f4e34e0121bb6bda08ac18995c06eb60c7944d95b73b2479de14ceb69de5746cc9b3ed98062f219db62be2707637509e9daba2011968a5b30200d9e19ae786
data/README.md CHANGED
@@ -1,30 +1,29 @@
1
1
  # CryptoPriceFinder
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- 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/CryptoPriceFinder`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Fetches cryptocurrency prices from DuckDuckGo. Converts crypto prices into USD prices.
6
4
 
7
5
  ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
-
15
- If bundler is not being used to manage dependencies, install the gem by executing:
16
-
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
6
+ ```ruby
7
+ gem install httparty
8
+ gem install CryptoPriceFinder
9
+ ```
18
10
 
19
11
  ## Usage
20
12
 
21
- TODO: Write usage instructions here
22
-
23
- ## Development
24
-
25
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
-
27
- 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
13
+ ```ruby
14
+ puts "Monero"
15
+ CryptoPriceFinder::monero(6.6)
16
+ puts "Bitcoin"
17
+ CryptoPriceFinder::bitcoin(3)
18
+ puts "Stellar"
19
+ CryptoPriceFinder::stellar(4)
20
+ puts "DogeCoin"
21
+ CryptoPriceFinder::dogecoin(4)
22
+ Puts "Ethereum"
23
+ CryptoPriceFinder::ethereum(4)
24
+ puts "Ripple"
25
+ CryptoPriceFinder::ripple(5)
26
+ ```
28
27
 
29
28
  ## Contributing
30
29
 
data/Rakefile CHANGED
@@ -2,3 +2,42 @@
2
2
 
3
3
  require "bundler/gem_tasks"
4
4
  task default: %i[]
5
+ namespace "gems" do
6
+ desc "Building gem, Push gem, Install Gem"
7
+ task :all do
8
+ begin
9
+ require "colorize"
10
+ gemfile = Dir.glob("*.gem").each { |f| f }.shift
11
+ if !gemfile.nil?
12
+ if File.exist?(gemfile)
13
+ puts "Deleting #{gemfile}...\n".red
14
+ File.delete(gemfile)
15
+ puts "Building gem...\n".red
16
+ %x(gem build CryptoPriceFinder.gemspec)
17
+ puts "Pushing Gem...\n".red
18
+ begin
19
+ sh "gem push #{Dir.glob("*.gem").each { |f| f }.shift}"
20
+ rescue
21
+ puts "ERROR in Pushing...\n".red
22
+ end
23
+ puts "[+] Installing gem...\n"
24
+ sh "gem install #{Dir.glob("*.gem").each { |f| f }.shift}"
25
+ end
26
+ else
27
+ puts "No gem file found..."
28
+ puts "Building gem...\n".red
29
+ %x(gem build CryptoPriceFinder.gemspec)
30
+ puts "Pushing Gem...\n".red
31
+ begin
32
+ sh "gem push #{Dir.glob("*.gem").each { |f| f }.shift}"
33
+ rescue
34
+ puts "ERROR in Pushing...\n".red
35
+ end
36
+ puts "[+] Installing gem...\n"
37
+ sh "gem install #{Dir.glob("*.gem").each { |f| f }.shift}"
38
+ end
39
+ rescue => e
40
+ puts e
41
+ end
42
+ end
43
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CryptoPriceFinder
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CryptoPriceFinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael-Meade