bitex_bot 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -0
- data/lib/bitex_bot/robot.rb +1 -1
- data/lib/bitex_bot/settings.rb +1 -1
- data/lib/bitex_bot/version.rb +1 -1
- metadata +1 -1
data/Gemfile
CHANGED
data/lib/bitex_bot/robot.rb
CHANGED
@@ -14,7 +14,7 @@ module BitexBot
|
|
14
14
|
cattr_accessor :cooldown_until
|
15
15
|
cattr_accessor :test_mode
|
16
16
|
cattr_accessor :logger do
|
17
|
-
Logger.new(Settings.log.file || STDOUT, 10, 10240000).tap do |l|
|
17
|
+
Logger.new(Settings.log.try(:file) || STDOUT, 10, 10240000).tap do |l|
|
18
18
|
l.level = Logger.const_get(Settings.log.level.upcase)
|
19
19
|
l.formatter = proc do |severity, datetime, progname, msg|
|
20
20
|
date = datetime.strftime("%m/%d %H:%M:%S.%L")
|
data/lib/bitex_bot/settings.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'settingslogic'
|
2
2
|
require 'debugger'
|
3
3
|
class BitexBot::Settings < Settingslogic
|
4
|
-
path = File.expand_path('bitex_bot_settings.yml', Dir.pwd)
|
4
|
+
path = ARGV[0] || File.expand_path('bitex_bot_settings.yml', Dir.pwd)
|
5
5
|
unless FileTest.exists?(path)
|
6
6
|
sample_path = File.expand_path('../../../settings.yml.sample', __FILE__)
|
7
7
|
FileUtils.cp(sample_path, path)
|
data/lib/bitex_bot/version.rb
CHANGED