trades 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/trades +7 -1
  2. data/lib/trades.rb +1 -1
  3. metadata +1 -1
data/bin/trades CHANGED
@@ -1,4 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'trades'
4
- Trades.new ARGV
4
+
5
+
6
+ begin
7
+ Trades.new ARGV
8
+ rescue SystemExit, Interrupt
9
+ puts "\nQuitting..."
10
+ end
data/lib/trades.rb CHANGED
@@ -13,7 +13,7 @@ class Trades
13
13
 
14
14
  # thUSD | 2011-06-27 23:00:55 | USD | 17.05 | 0.5 |
15
15
  puts "Exchange | Date and time | Currency | Price | Volume |"
16
-
16
+
17
17
  while data = @socket.gets do
18
18
  if data.length > 0
19
19
  begin
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: trades
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Waxjar