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 CHANGED
@@ -2,3 +2,4 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in bitex_bot.gemspec
4
4
  gemspec
5
+ gem 'bitstamp', git: 'https://github.com/nubis/bitstamp.git'
@@ -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")
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module BitexBot
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  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.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: