ib-ruby 0.5.17 → 0.5.18

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY CHANGED
@@ -113,3 +113,7 @@
113
113
  == 0.5.17 / 2012-02-12
114
114
 
115
115
  * Connection#send_message bugfix
116
+
117
+ == 0.5.18 / 2012-02-15
118
+
119
+ * Bugfix release
data/TODO CHANGED
@@ -12,3 +12,18 @@ http://finance.groups.yahoo.com/group/TWSAPI/message/25413
12
12
  pair into a single call - to simplify DSL.
13
13
 
14
14
  6. Compatibility check for new TWS v.966
15
+
16
+ 7. Fix iteration bug
17
+ (probably, caused by new IB message arriving while we're adding new subscriber):
18
+ RuntimeError: can't add a new key into hash during iteration
19
+ []= at org/jruby/RubyHash.java:899
20
+ subscribe at /Users/vb/.rvm/gems/jruby-head@option_mower/gems/ib-ruby-0.5.17/lib/ib-ruby/connection.rb:132
21
+ each at org/jruby/RubyArray.java:1609
22
+ subscribe at /Users/vb/.rvm/gems/jruby-head@option_mower/gems/ib-ruby-0.5.17/lib/ib-ruby/connection.rb:121
23
+ subscribe_orders at /Users/vb/Dev/ib/option_mower/lib/option_mower/connection.rb:153
24
+ start at /Users/vb/Dev/ib/option_mower/lib/option_mower/connection.rb:42
25
+ start at /Users/vb/Dev/ib/option_mower/lib/option_mower/connection.rb:17
26
+ start at /Users/vb/Dev/ib/option_mower/lib/option_mower/robot.rb:103
27
+ run at /Users/vb/Dev/ib/option_mower/lib/option_mower/robot.rb:121
28
+ (root) at bin/option_mower:46
29
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.17
1
+ 0.5.18
@@ -130,6 +130,7 @@ module IB
130
130
  end
131
131
 
132
132
  subscribers[message_class][subscriber_id] = subscriber
133
+ # TODO: Fix: RuntimeError: can't add a new key into hash during iteration
133
134
  end
134
135
  subscriber_id
135
136
  end
@@ -660,7 +660,7 @@ module IB
660
660
  end
661
661
 
662
662
  def to_human
663
- "<HistoricalData: req: #{id}, #{item_count} items, #{start_date} to #{end_date}>"
663
+ "<ExecutionData: #{contract.to_human}, #{execution}>"
664
664
  end
665
665
  end # ExecutionData
666
666
 
@@ -39,6 +39,12 @@ def should_log *patterns
39
39
  end
40
40
  end
41
41
 
42
+ def should_not_log *patterns
43
+ patterns.each do |pattern|
44
+ log_entries.any? { |entry| entry =~ pattern }.should be_false
45
+ end
46
+ end
47
+
42
48
  ## Connection helpers
43
49
 
44
50
  def connect_and_receive *message_types
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ib-ruby
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.17
5
+ version: 0.5.18
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul Legato
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2012-02-12 00:00:00 Z
14
+ date: 2012-02-15 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler