lib/ib-ruby.rb in ib-ruby-0.7.3 vs lib/ib-ruby.rb in ib-ruby-0.7.4
- old
+ new
@@ -1,12 +1,20 @@
module IB
-end # module IB
+
+ require 'ib-ruby/version'
+ require 'ib-ruby/extensions'
+ require 'ib-ruby/errors'
+ require 'ib-ruby/constants'
+ require 'ib-ruby/connection'
+
+ require 'ib-ruby/models'
+ Datatypes = Models # Flatten namespace (IB::Contract instead of IB::Models::Contract)
+ include Models # Legacy alias
+
+ require 'ib-ruby/messages'
+ IncomingMessages = Messages::Incoming # Legacy alias
+ OutgoingMessages = Messages::Outgoing # Legacy alias
+
+ require 'ib-ruby/symbols'
+end
IbRuby = IB
-require 'ib-ruby/version'
-require 'ib-ruby/extensions'
-require 'ib-ruby/errors'
-require 'ib-ruby/constants'
-require 'ib-ruby/connection'
-require 'ib-ruby/models'
-require 'ib-ruby/messages'
-require 'ib-ruby/symbols'