crypto_arbitrer 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,7 @@ module CryptoArbitrer
5
5
  .to_return(body: open(File.expand_path("../../../spec/mocks/#{mock_name}", __FILE__)).read)
6
6
  end
7
7
  def mock_crypto_arbitrer_requests!
8
+ stub_crypto_arbitrer_get("https://btc-e.com/exchange/btc_usd", "btce_btc_usd.html")
8
9
  stub_crypto_arbitrer_get("http://www.eldolarblue.net/getDolarBlue.php?as=json", 'dolarblue.json')
9
10
  stub_crypto_arbitrer_get('http://data.mtgox.com/api/2/BTCUSD/money/ticker_fast', 'mtgox.json')
10
11
  stub_crypto_arbitrer_get('http://www.dolarparalelo.org/', 'dolarparalelo.html')
@@ -1,3 +1,3 @@
1
1
  module CryptoArbitrer
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,7 +1,6 @@
1
1
  require_relative '../lib/crypto_arbitrer.rb'
2
2
  require 'webmock/rspec'
3
3
  require 'csv'
4
- require 'ruby-debug'
5
4
  RSpec.configure do |config|
6
5
  config.include CryptoArbitrer::SpecHelper
7
6
  end
@@ -60,6 +59,7 @@ describe CryptoArbitrer::Base do
60
59
  rate['buy'].should == 99.999
61
60
  rate['sell'].should == 99.502
62
61
  stub.should have_been_requested
62
+ CryptoArbitrer::Base.btc_usd_strategy = :mtgox
63
63
  end
64
64
 
65
65
  it 'hits dolarparalelo for venezuelan bolivar' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypto_arbitrer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: