bitex_bot 0.2.10 → 0.2.11

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: 35474d2f101991115a586599b78c27612986d0ab
4
- data.tar.gz: 0fb60688fb6fae55c284b979a9442b248d57a2dd
3
+ metadata.gz: 3fe8c4ca1e575cfcb75f4e76c2dec0a2614700c5
4
+ data.tar.gz: 29f7bf36c64e4a7af911d981011bcec674fba95d
5
5
  SHA512:
6
- metadata.gz: cd829d1a6733bc46e56ea2180820d697939675099ed3f99c31d3906663a107f08854f31ec181478fe36a9a52f99d62df848b74f11e3426fe927d106f1cf76fba
7
- data.tar.gz: df664077383986b6b43ba9d2d5c827904e3b7648d560dca8598cdab0c76b068acd51663daff31de13a82a7744135d33931a6aae98423dd9756b10170d1990755
6
+ metadata.gz: 2ce1896a0629882eb6c79be2f7c24049404446459f2ca8bcd1274869fcb66329b7880271e417c04e1c9b0d6b95e23cd05abca0326a060c7e76f3cd9a31d44661
7
+ data.tar.gz: 04c3f748c9ba1ef0adff10a81fdf612888db54e44d2bfe88b8d508433568ed105207b3a1e60f264eaa444e72fbdf8fe0b66e091c43f3ba2685f1384d5df663f3
data/bitex_bot.gemspec CHANGED
@@ -26,18 +26,18 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency "activesupport"
27
27
  spec.add_dependency "sqlite3"
28
28
  spec.add_dependency "bitstamp"
29
- spec.add_dependency "bitex", "0.2.2"
29
+ spec.add_dependency "bitex", "0.2.6"
30
30
  spec.add_dependency "itbit", "0.0.3"
31
31
  spec.add_dependency "mail"
32
32
  spec.add_dependency "hashie"
33
33
 
34
34
  spec.add_development_dependency "bundler", "~> 1.3"
35
+ spec.add_development_dependency "byebug"
35
36
  spec.add_development_dependency "rake"
36
37
  spec.add_development_dependency "rspec"
37
38
  spec.add_development_dependency "rspec-mocks"
38
39
  spec.add_development_dependency "database_cleaner"
39
40
  spec.add_development_dependency "factory_girl"
40
41
  spec.add_development_dependency "timecop"
41
- spec.add_development_dependency "debugger"
42
42
  spec.add_development_dependency "shoulda-matchers"
43
43
  end
@@ -1,3 +1,3 @@
1
1
  module BitexBot
2
- VERSION = "0.2.10"
2
+ VERSION = "0.2.11"
3
3
  end
@@ -140,10 +140,12 @@ describe BitexBot::Robot do
140
140
  bot.trade!
141
141
  end.to change{ Mail::TestMailer.deliveries.count }.by(1)
142
142
  Timecop.travel 1.minute.from_now
143
+ stub_bitstamp_order_book # Re-stub so orderbook does not get old
143
144
  expect do
144
145
  bot.trade!
145
146
  end.not_to change{ Mail::TestMailer.deliveries.count }
146
147
  Timecop.travel 31.minutes.from_now
148
+ stub_bitstamp_order_book # Re-stub so orderbook does not get old
147
149
  expect do
148
150
  bot.trade!
149
151
  end.to change{ Mail::TestMailer.deliveries.count }.by(1)
@@ -158,10 +160,12 @@ describe BitexBot::Robot do
158
160
  bot.trade!
159
161
  end.to change{ Mail::TestMailer.deliveries.count }.by(1)
160
162
  Timecop.travel 1.minute.from_now
163
+ stub_bitstamp_order_book # Re-stub so orderbook does not get old
161
164
  expect do
162
165
  bot.trade!
163
166
  end.not_to change{ Mail::TestMailer.deliveries.count }
164
167
  Timecop.travel 31.minutes.from_now
168
+ stub_bitstamp_order_book # Re-stub so orderbook does not get old
165
169
  expect do
166
170
  bot.trade!
167
171
  end.to change{ Mail::TestMailer.deliveries.count }.by(1)
@@ -14,7 +14,7 @@ module BitstampStubs
14
14
  end
15
15
 
16
16
  def bitstamp_order_book_stub
17
- { 'timestamp' => DateTime.now.to_i.to_s,
17
+ { 'timestamp' => Time.now.to_i.to_s,
18
18
  'bids' =>
19
19
  [['30', '3'], ['25', '2'], ['20', '1.5'], ['15', '4'], ['10', '5']],
20
20
  'asks' =>
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.2.10
4
+ version: 0.2.11
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: 2015-08-05 00:00:00.000000000 Z
12
+ date: 2016-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: settingslogic
@@ -87,14 +87,14 @@ dependencies:
87
87
  requirements:
88
88
  - - '='
89
89
  - !ruby/object:Gem::Version
90
- version: 0.2.2
90
+ version: 0.2.6
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - '='
96
96
  - !ruby/object:Gem::Version
97
- version: 0.2.2
97
+ version: 0.2.6
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: itbit
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -152,7 +152,7 @@ dependencies:
152
152
  - !ruby/object:Gem::Version
153
153
  version: '1.3'
154
154
  - !ruby/object:Gem::Dependency
155
- name: rake
155
+ name: byebug
156
156
  requirement: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - ">="
@@ -166,7 +166,7 @@ dependencies:
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  - !ruby/object:Gem::Dependency
169
- name: rspec
169
+ name: rake
170
170
  requirement: !ruby/object:Gem::Requirement
171
171
  requirements:
172
172
  - - ">="
@@ -180,7 +180,7 @@ dependencies:
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  - !ruby/object:Gem::Dependency
183
- name: rspec-mocks
183
+ name: rspec
184
184
  requirement: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - ">="
@@ -194,7 +194,7 @@ dependencies:
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  - !ruby/object:Gem::Dependency
197
- name: database_cleaner
197
+ name: rspec-mocks
198
198
  requirement: !ruby/object:Gem::Requirement
199
199
  requirements:
200
200
  - - ">="
@@ -208,7 +208,7 @@ dependencies:
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  - !ruby/object:Gem::Dependency
211
- name: factory_girl
211
+ name: database_cleaner
212
212
  requirement: !ruby/object:Gem::Requirement
213
213
  requirements:
214
214
  - - ">="
@@ -222,7 +222,7 @@ dependencies:
222
222
  - !ruby/object:Gem::Version
223
223
  version: '0'
224
224
  - !ruby/object:Gem::Dependency
225
- name: timecop
225
+ name: factory_girl
226
226
  requirement: !ruby/object:Gem::Requirement
227
227
  requirements:
228
228
  - - ">="
@@ -236,7 +236,7 @@ dependencies:
236
236
  - !ruby/object:Gem::Version
237
237
  version: '0'
238
238
  - !ruby/object:Gem::Dependency
239
- name: debugger
239
+ name: timecop
240
240
  requirement: !ruby/object:Gem::Requirement
241
241
  requirements:
242
242
  - - ">="