bitex_bot 0.3.5 → 0.3.6

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: f61ffdc172a354a4a43f496fa3b15dda41ee7301
4
- data.tar.gz: b221dfe2eb3fb15b0760a331ed99c94661776e09
3
+ metadata.gz: 4361404809a875ed432da4a24e3d7730bb405864
4
+ data.tar.gz: 8799ebd00c18ccfd4e4066e81fc5f182ff4e93da
5
5
  SHA512:
6
- metadata.gz: 940e6fa5525f49fd67d9423408436b087cbb80555d0184669fd94f56c12d40aa3c634b457f11b6de35e0098c0cd1395832405378a5c3e66cee3e45edca8ec568
7
- data.tar.gz: c70e361eb6a8667f16cfff6e3026697a8ff5efca6e5aa3f83db875b68205d76fecc1b3da37d6631c06c4ba3d16bbedfbb8b5324a510316d0a86aaa292eba527a
6
+ metadata.gz: 1131f6f01e2b216854bbac7981b1ab6219732809047e544694dbac065b171c2cb2648c2db58f6a45c63356a604d945ebda582176de92a131e310af6def71ba09
7
+ data.tar.gz: 132ad4b745e70eb8bbb2d1179aae3e5cc4310909b766e4112c825cebe6f09723813d6b25fff50176de581f9a70b3b10c2fcee12e22fc2f7347e01ffb2de6a599
data/bitex_bot.gemspec CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "itbit", "0.0.6"
29
29
  spec.add_dependency "bitfinex-rb", "0.0.6"
30
30
  spec.add_dependency "mail"
31
- spec.add_dependency "hashie"
31
+ spec.add_dependency "hashie", "~> 3.5.4"
32
32
 
33
33
  spec.add_development_dependency "bundler"
34
34
  spec.add_development_dependency "byebug"
@@ -9,7 +9,7 @@ module BitexBot
9
9
  end
10
10
 
11
11
  class SettingsClass < ::Hashie::Mash
12
- include ::Hashie::Extensions::SymbolizeKeys
12
+ include ::Hashie::Extensions::Mash::SymbolizeKeys
13
13
 
14
14
  def load_default
15
15
  path = ARGV[0] || 'bitex_bot_settings.rb'
@@ -1,3 +1,3 @@
1
1
  module BitexBot
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe BitexBot::Settings do
4
+ describe '#to_hash' do
5
+ it 'returns a symbolized hash' do
6
+ expect(BitexBot::Settings.to_hash).to eq({
7
+ :bitex => "your_bitex_api_key_which_should_be_kept_safe",
8
+ :bitfinex => {:api_key=>"your_api_key", :api_secret=>"your_api_secret"},
9
+ :bitstamp => {:api_key=>"YOUR_API_KEY", :secret=>"YOUR_API_SECRET", :client_id=>"YOUR_BITSTAMP_USERNAME"},
10
+ :buying => {:amount_to_spend_per_order=>10.0, :profit=>0.5},
11
+ :database => {:adapter=>:sqlite3, :database=>"bitex_bot.db"},
12
+ :itbit => {:client_key=>"the-client-key", :secret=>"the-secret", :user_id=>"the-user-id", :default_wallet_id=>"wallet-000"},
13
+ :log => {:file=>"bitex_bot.log", :level=>:info},
14
+ :mailer => {:from=>"robot@example.com", :to=>"you@example.com", :delivery_method=>:smtp, :options=>{:address=>"your_smtp_server_address.com", :port=>587, :authentication=>"plain", :enable_starttls_auto=>true, :user_name=>"your_user_name", :password=>"your_smtp_password"}},
15
+ :sandbox => false,
16
+ :selling => {:quantity_to_sell_per_order=>0.1, :profit=>0.5},
17
+ :taker => "bitstamp",
18
+ :time_to_live => 20
19
+ })
20
+ end
21
+ end
22
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitex_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nubis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-22 00:00:00.000000000 Z
12
+ date: 2017-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -113,16 +113,16 @@ dependencies:
113
113
  name: hashie
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ">="
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: '0'
118
+ version: 3.5.4
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ">="
123
+ - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: '0'
125
+ version: 3.5.4
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: bundler
128
128
  requirement: !ruby/object:Gem::Requirement
@@ -304,6 +304,7 @@ files:
304
304
  - lib/bitex_bot/settings.rb
305
305
  - lib/bitex_bot/version.rb
306
306
  - settings.rb.sample
307
+ - spec/bitex_bot/settings_spec.rb
307
308
  - spec/factories/bitex_buy.rb
308
309
  - spec/factories/bitex_sell.rb
309
310
  - spec/factories/buy_opening_flow.rb
@@ -348,6 +349,7 @@ signing_key:
348
349
  specification_version: 4
349
350
  summary: A trading robot to do arbitrage between bitex.la and other exchanges!
350
351
  test_files:
352
+ - spec/bitex_bot/settings_spec.rb
351
353
  - spec/factories/bitex_buy.rb
352
354
  - spec/factories/bitex_sell.rb
353
355
  - spec/factories/buy_opening_flow.rb