price 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 87ef39933707bf5ac9c00300063772357827df54
4
- data.tar.gz: 07a274835db759b705a616e3d817d939dc60cc2f
3
+ metadata.gz: a415bd063dd5465fbada3617c658f712dccd0f68
4
+ data.tar.gz: ea2998289f2a39b6afd2718e7678e981ea01a125
5
5
  SHA512:
6
- metadata.gz: b21111304a34a42ce7d8980c3bb7964664239d1686ef50d9ae73d17e027d22c0cf7db4f123c0f1e8248a63ceef0e63ba92cf2f19512c13cd68f61b8edf320285
7
- data.tar.gz: 4368f1c3adb31b866bb400aa2a582499a4e17d00fac7da5130aaf1517e48e346c48c934a443b1e730bd430b31bfa1c046d0507c5350376e5932c655394955b45
6
+ metadata.gz: 0076f73cf2c57bd9329a87980965fbf66532fbe6ec771deee973601ce33eb45190190e85a0ea02db9452a2b307a7fcccf4831c22c778a87ace7e22c8234b8cc2
7
+ data.tar.gz: de65856103eeb48011e1e344678f25ebea9cd485e41a34928c381958428be121f61354d70502176a44cfb335d61ab98eade053b5ea71d347976809de4fdfb143
@@ -6,7 +6,6 @@ PATH
6
6
  http
7
7
  paint
8
8
  terminal-table
9
- tty-cursor
10
9
 
11
10
  GEM
12
11
  remote: https://rubygems.org/
@@ -32,13 +31,12 @@ GEM
32
31
  http_parser.rb (0.6.0)
33
32
  i18n (0.9.1)
34
33
  concurrent-ruby (~> 1.0)
35
- minitest (5.10.1)
34
+ minitest (5.10.3)
36
35
  paint (2.0.1)
37
36
  public_suffix (3.0.1)
38
37
  terminal-table (1.8.0)
39
38
  unicode-display_width (~> 1.1, >= 1.1.1)
40
39
  thread_safe (0.3.6)
41
- tty-cursor (0.5.0)
42
40
  tzinfo (1.2.4)
43
41
  thread_safe (~> 0.1)
44
42
  unf (0.1.4)
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # Price
2
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/price`. 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
3
+ Welcome to price! Price allows you to check cryptocurrency prices
4
+ right from your terminal.
6
5
 
7
6
  ## Installation
8
7
 
@@ -22,17 +21,36 @@ Or install it yourself as:
22
21
 
23
22
  ## Usage
24
23
 
25
- TODO: Write usage instructions here
24
+ __Basic usage:__
25
+
26
+ ```
27
+ $ price
28
+ ```
29
+
30
+ __Additional usage:__
31
+
32
+ This will show a live version of prices
33
+
34
+ ```
35
+ $ price --live
36
+ ```
37
+
38
+
39
+ and this will show the top 20 most popular coins
40
+
41
+ ```
42
+ $ price -l 20
43
+ ```
26
44
 
27
45
  ## Development
28
46
 
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.
47
+ After checking out the repo, run `bundle` 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
48
 
31
49
  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
50
 
33
51
  ## Contributing
34
52
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/price.
53
+ Bug reports and pull requests are welcome on GitHub at https://github.com/cbrnrd/price.
36
54
 
37
55
  ## License
38
56
 
data/bin/price CHANGED
@@ -33,7 +33,6 @@ end.parse!
33
33
  trap("INT") { puts; exit 0 }
34
34
 
35
35
  if live
36
- cursor = TTY::Cursor
37
36
  loop do
38
37
  system 'clear' or system 'cls'
39
38
  prices = Price.prices(limit)
@@ -1,5 +1,4 @@
1
1
  require_relative 'price/version'
2
2
  require_relative 'price/net'
3
3
 
4
- require 'tty-cursor'
5
4
  require 'optparse'
@@ -1,3 +1,3 @@
1
1
  module Price
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -26,6 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_runtime_dependency 'terminal-table'
27
27
  spec.add_runtime_dependency 'http'
28
28
  spec.add_runtime_dependency 'activesupport'
29
- spec.add_runtime_dependency 'tty-cursor'
30
29
 
31
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: price
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cbrnrd
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: tty-cursor
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
69
  description:
84
70
  email:
85
71
  - cbawsome77@gmail.com