ruby-trade 0.1

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.
Files changed (144) hide show
  1. data/.gitignore +5 -0
  2. data/README.md +99 -0
  3. data/examples/market_maker.rb +42 -0
  4. data/lib/Gemfile +6 -0
  5. data/lib/Gemfile.lock +23 -0
  6. data/lib/client.rb +203 -0
  7. data/lib/order.rb +49 -0
  8. data/lib/ruby-trade.rb +1 -0
  9. data/rubytrade.gemspec +12 -0
  10. data/server/Gemfile +12 -0
  11. data/server/Gemfile.lock +57 -0
  12. data/server/account.rb +39 -0
  13. data/server/app.rb +20 -0
  14. data/server/exchange.rb +59 -0
  15. data/server/order-book.rb +113 -0
  16. data/server/order.rb +60 -0
  17. data/server/public/app.js +51 -0
  18. data/server/public/dist/css/bootstrap-theme.css +459 -0
  19. data/server/public/dist/css/bootstrap-theme.min.css +9 -0
  20. data/server/public/dist/css/bootstrap.css +7098 -0
  21. data/server/public/dist/css/bootstrap.min.css +9 -0
  22. data/server/public/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  23. data/server/public/dist/fonts/glyphicons-halflings-regular.svg +229 -0
  24. data/server/public/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  25. data/server/public/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  26. data/server/public/dist/js/bootstrap.js +2002 -0
  27. data/server/public/dist/js/bootstrap.min.js +9 -0
  28. data/server/public/flot/API.md +1464 -0
  29. data/server/public/flot/CONTRIBUTING.md +99 -0
  30. data/server/public/flot/FAQ.md +75 -0
  31. data/server/public/flot/LICENSE.txt +22 -0
  32. data/server/public/flot/Makefile +12 -0
  33. data/server/public/flot/NEWS.md +893 -0
  34. data/server/public/flot/PLUGINS.md +143 -0
  35. data/server/public/flot/README.md +110 -0
  36. data/server/public/flot/build.log +0 -0
  37. data/server/public/flot/examples/ajax/data-eu-gdp-growth-1.json +4 -0
  38. data/server/public/flot/examples/ajax/data-eu-gdp-growth-2.json +4 -0
  39. data/server/public/flot/examples/ajax/data-eu-gdp-growth-3.json +4 -0
  40. data/server/public/flot/examples/ajax/data-eu-gdp-growth-4.json +4 -0
  41. data/server/public/flot/examples/ajax/data-eu-gdp-growth-5.json +4 -0
  42. data/server/public/flot/examples/ajax/data-eu-gdp-growth.json +4 -0
  43. data/server/public/flot/examples/ajax/data-japan-gdp-growth.json +4 -0
  44. data/server/public/flot/examples/ajax/data-usa-gdp-growth.json +4 -0
  45. data/server/public/flot/examples/ajax/index.html +173 -0
  46. data/server/public/flot/examples/annotating/index.html +87 -0
  47. data/server/public/flot/examples/axes-interacting/index.html +97 -0
  48. data/server/public/flot/examples/axes-multiple/index.html +77 -0
  49. data/server/public/flot/examples/axes-time-zones/date.js +893 -0
  50. data/server/public/flot/examples/axes-time-zones/index.html +114 -0
  51. data/server/public/flot/examples/axes-time-zones/tz/africa +1181 -0
  52. data/server/public/flot/examples/axes-time-zones/tz/antarctica +413 -0
  53. data/server/public/flot/examples/axes-time-zones/tz/asia +2717 -0
  54. data/server/public/flot/examples/axes-time-zones/tz/australasia +1719 -0
  55. data/server/public/flot/examples/axes-time-zones/tz/backward +117 -0
  56. data/server/public/flot/examples/axes-time-zones/tz/etcetera +81 -0
  57. data/server/public/flot/examples/axes-time-zones/tz/europe +2856 -0
  58. data/server/public/flot/examples/axes-time-zones/tz/factory +10 -0
  59. data/server/public/flot/examples/axes-time-zones/tz/iso3166.tab +276 -0
  60. data/server/public/flot/examples/axes-time-zones/tz/leapseconds +100 -0
  61. data/server/public/flot/examples/axes-time-zones/tz/northamerica +3235 -0
  62. data/server/public/flot/examples/axes-time-zones/tz/pacificnew +28 -0
  63. data/server/public/flot/examples/axes-time-zones/tz/solar87 +390 -0
  64. data/server/public/flot/examples/axes-time-zones/tz/solar88 +390 -0
  65. data/server/public/flot/examples/axes-time-zones/tz/solar89 +395 -0
  66. data/server/public/flot/examples/axes-time-zones/tz/southamerica +1711 -0
  67. data/server/public/flot/examples/axes-time-zones/tz/systemv +38 -0
  68. data/server/public/flot/examples/axes-time-zones/tz/yearistype.sh +38 -0
  69. data/server/public/flot/examples/axes-time-zones/tz/zone.tab +441 -0
  70. data/server/public/flot/examples/axes-time/index.html +137 -0
  71. data/server/public/flot/examples/background.png +0 -0
  72. data/server/public/flot/examples/basic-options/index.html +91 -0
  73. data/server/public/flot/examples/basic-usage/index.html +57 -0
  74. data/server/public/flot/examples/canvas/index.html +75 -0
  75. data/server/public/flot/examples/categories/index.html +64 -0
  76. data/server/public/flot/examples/examples.css +97 -0
  77. data/server/public/flot/examples/image/hs-2004-27-a-large-web.jpg +0 -0
  78. data/server/public/flot/examples/image/index.html +69 -0
  79. data/server/public/flot/examples/index.html +80 -0
  80. data/server/public/flot/examples/interacting/index.html +130 -0
  81. data/server/public/flot/examples/navigate/arrow-down.gif +0 -0
  82. data/server/public/flot/examples/navigate/arrow-left.gif +0 -0
  83. data/server/public/flot/examples/navigate/arrow-right.gif +0 -0
  84. data/server/public/flot/examples/navigate/arrow-up.gif +0 -0
  85. data/server/public/flot/examples/navigate/index.html +153 -0
  86. data/server/public/flot/examples/percentiles/index.html +79 -0
  87. data/server/public/flot/examples/realtime/index.html +122 -0
  88. data/server/public/flot/examples/resize/index.html +76 -0
  89. data/server/public/flot/examples/selection/index.html +141 -0
  90. data/server/public/flot/examples/series-errorbars/index.html +150 -0
  91. data/server/public/flot/examples/series-pie/index.html +818 -0
  92. data/server/public/flot/examples/series-toggle/index.html +121 -0
  93. data/server/public/flot/examples/series-types/index.html +90 -0
  94. data/server/public/flot/examples/shared/jquery-ui/jquery-ui.min.css +6 -0
  95. data/server/public/flot/examples/shared/jquery-ui/jquery-ui.min.js +6 -0
  96. data/server/public/flot/examples/stacking/index.html +107 -0
  97. data/server/public/flot/examples/symbols/index.html +76 -0
  98. data/server/public/flot/examples/threshold/index.html +76 -0
  99. data/server/public/flot/examples/tracking/index.html +135 -0
  100. data/server/public/flot/examples/visitors/index.html +146 -0
  101. data/server/public/flot/examples/zooming/index.html +144 -0
  102. data/server/public/flot/excanvas.js +1428 -0
  103. data/server/public/flot/excanvas.min.js +1 -0
  104. data/server/public/flot/jquery.colorhelpers.js +179 -0
  105. data/server/public/flot/jquery.colorhelpers.min.js +21 -0
  106. data/server/public/flot/jquery.flot.canvas.js +345 -0
  107. data/server/public/flot/jquery.flot.canvas.min.js +28 -0
  108. data/server/public/flot/jquery.flot.categories.js +190 -0
  109. data/server/public/flot/jquery.flot.categories.min.js +44 -0
  110. data/server/public/flot/jquery.flot.crosshair.js +176 -0
  111. data/server/public/flot/jquery.flot.crosshair.min.js +59 -0
  112. data/server/public/flot/jquery.flot.errorbars.js +353 -0
  113. data/server/public/flot/jquery.flot.errorbars.min.js +63 -0
  114. data/server/public/flot/jquery.flot.fillbetween.js +226 -0
  115. data/server/public/flot/jquery.flot.fillbetween.min.js +30 -0
  116. data/server/public/flot/jquery.flot.image.js +241 -0
  117. data/server/public/flot/jquery.flot.image.min.js +53 -0
  118. data/server/public/flot/jquery.flot.js +3061 -0
  119. data/server/public/flot/jquery.flot.min.js +29 -0
  120. data/server/public/flot/jquery.flot.navigate.js +346 -0
  121. data/server/public/flot/jquery.flot.navigate.min.js +86 -0
  122. data/server/public/flot/jquery.flot.pie.js +817 -0
  123. data/server/public/flot/jquery.flot.pie.min.js +56 -0
  124. data/server/public/flot/jquery.flot.resize.js +60 -0
  125. data/server/public/flot/jquery.flot.resize.min.js +19 -0
  126. data/server/public/flot/jquery.flot.selection.js +360 -0
  127. data/server/public/flot/jquery.flot.selection.min.js +79 -0
  128. data/server/public/flot/jquery.flot.stack.js +188 -0
  129. data/server/public/flot/jquery.flot.stack.min.js +36 -0
  130. data/server/public/flot/jquery.flot.symbol.js +71 -0
  131. data/server/public/flot/jquery.flot.symbol.min.js +14 -0
  132. data/server/public/flot/jquery.flot.threshold.js +142 -0
  133. data/server/public/flot/jquery.flot.threshold.min.js +43 -0
  134. data/server/public/flot/jquery.flot.time.js +431 -0
  135. data/server/public/flot/jquery.flot.time.min.js +9 -0
  136. data/server/public/flot/jquery.js +9472 -0
  137. data/server/public/flot/jquery.min.js +2 -0
  138. data/server/public/index.html +53 -0
  139. data/server/public/jquery-2.0.3.min.js +6 -0
  140. data/server/public/sockjs-0.2.1.min.js +27 -0
  141. data/server/server.rb +156 -0
  142. data/server/test/test_order_book.rb +118 -0
  143. data/server/web_server.rb +110 -0
  144. metadata +188 -0
metadata ADDED
@@ -0,0 +1,188 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-trade
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Rob Britton
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-11-09 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: ''
15
+ email: rob@robbritton.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - .gitignore
21
+ - README.md
22
+ - examples/market_maker.rb
23
+ - lib/Gemfile
24
+ - lib/Gemfile.lock
25
+ - lib/client.rb
26
+ - lib/order.rb
27
+ - lib/ruby-trade.rb
28
+ - rubytrade.gemspec
29
+ - server/Gemfile
30
+ - server/Gemfile.lock
31
+ - server/account.rb
32
+ - server/app.rb
33
+ - server/exchange.rb
34
+ - server/order-book.rb
35
+ - server/order.rb
36
+ - server/public/app.js
37
+ - server/public/dist/css/bootstrap-theme.css
38
+ - server/public/dist/css/bootstrap-theme.min.css
39
+ - server/public/dist/css/bootstrap.css
40
+ - server/public/dist/css/bootstrap.min.css
41
+ - server/public/dist/fonts/glyphicons-halflings-regular.eot
42
+ - server/public/dist/fonts/glyphicons-halflings-regular.svg
43
+ - server/public/dist/fonts/glyphicons-halflings-regular.ttf
44
+ - server/public/dist/fonts/glyphicons-halflings-regular.woff
45
+ - server/public/dist/js/bootstrap.js
46
+ - server/public/dist/js/bootstrap.min.js
47
+ - server/public/flot/API.md
48
+ - server/public/flot/CONTRIBUTING.md
49
+ - server/public/flot/FAQ.md
50
+ - server/public/flot/LICENSE.txt
51
+ - server/public/flot/Makefile
52
+ - server/public/flot/NEWS.md
53
+ - server/public/flot/PLUGINS.md
54
+ - server/public/flot/README.md
55
+ - server/public/flot/build.log
56
+ - server/public/flot/examples/ajax/data-eu-gdp-growth-1.json
57
+ - server/public/flot/examples/ajax/data-eu-gdp-growth-2.json
58
+ - server/public/flot/examples/ajax/data-eu-gdp-growth-3.json
59
+ - server/public/flot/examples/ajax/data-eu-gdp-growth-4.json
60
+ - server/public/flot/examples/ajax/data-eu-gdp-growth-5.json
61
+ - server/public/flot/examples/ajax/data-eu-gdp-growth.json
62
+ - server/public/flot/examples/ajax/data-japan-gdp-growth.json
63
+ - server/public/flot/examples/ajax/data-usa-gdp-growth.json
64
+ - server/public/flot/examples/ajax/index.html
65
+ - server/public/flot/examples/annotating/index.html
66
+ - server/public/flot/examples/axes-interacting/index.html
67
+ - server/public/flot/examples/axes-multiple/index.html
68
+ - server/public/flot/examples/axes-time-zones/date.js
69
+ - server/public/flot/examples/axes-time-zones/index.html
70
+ - server/public/flot/examples/axes-time-zones/tz/africa
71
+ - server/public/flot/examples/axes-time-zones/tz/antarctica
72
+ - server/public/flot/examples/axes-time-zones/tz/asia
73
+ - server/public/flot/examples/axes-time-zones/tz/australasia
74
+ - server/public/flot/examples/axes-time-zones/tz/backward
75
+ - server/public/flot/examples/axes-time-zones/tz/etcetera
76
+ - server/public/flot/examples/axes-time-zones/tz/europe
77
+ - server/public/flot/examples/axes-time-zones/tz/factory
78
+ - server/public/flot/examples/axes-time-zones/tz/iso3166.tab
79
+ - server/public/flot/examples/axes-time-zones/tz/leapseconds
80
+ - server/public/flot/examples/axes-time-zones/tz/northamerica
81
+ - server/public/flot/examples/axes-time-zones/tz/pacificnew
82
+ - server/public/flot/examples/axes-time-zones/tz/solar87
83
+ - server/public/flot/examples/axes-time-zones/tz/solar88
84
+ - server/public/flot/examples/axes-time-zones/tz/solar89
85
+ - server/public/flot/examples/axes-time-zones/tz/southamerica
86
+ - server/public/flot/examples/axes-time-zones/tz/systemv
87
+ - server/public/flot/examples/axes-time-zones/tz/yearistype.sh
88
+ - server/public/flot/examples/axes-time-zones/tz/zone.tab
89
+ - server/public/flot/examples/axes-time/index.html
90
+ - server/public/flot/examples/background.png
91
+ - server/public/flot/examples/basic-options/index.html
92
+ - server/public/flot/examples/basic-usage/index.html
93
+ - server/public/flot/examples/canvas/index.html
94
+ - server/public/flot/examples/categories/index.html
95
+ - server/public/flot/examples/examples.css
96
+ - server/public/flot/examples/image/hs-2004-27-a-large-web.jpg
97
+ - server/public/flot/examples/image/index.html
98
+ - server/public/flot/examples/index.html
99
+ - server/public/flot/examples/interacting/index.html
100
+ - server/public/flot/examples/navigate/arrow-down.gif
101
+ - server/public/flot/examples/navigate/arrow-left.gif
102
+ - server/public/flot/examples/navigate/arrow-right.gif
103
+ - server/public/flot/examples/navigate/arrow-up.gif
104
+ - server/public/flot/examples/navigate/index.html
105
+ - server/public/flot/examples/percentiles/index.html
106
+ - server/public/flot/examples/realtime/index.html
107
+ - server/public/flot/examples/resize/index.html
108
+ - server/public/flot/examples/selection/index.html
109
+ - server/public/flot/examples/series-errorbars/index.html
110
+ - server/public/flot/examples/series-pie/index.html
111
+ - server/public/flot/examples/series-toggle/index.html
112
+ - server/public/flot/examples/series-types/index.html
113
+ - server/public/flot/examples/shared/jquery-ui/jquery-ui.min.css
114
+ - server/public/flot/examples/shared/jquery-ui/jquery-ui.min.js
115
+ - server/public/flot/examples/stacking/index.html
116
+ - server/public/flot/examples/symbols/index.html
117
+ - server/public/flot/examples/threshold/index.html
118
+ - server/public/flot/examples/tracking/index.html
119
+ - server/public/flot/examples/visitors/index.html
120
+ - server/public/flot/examples/zooming/index.html
121
+ - server/public/flot/excanvas.js
122
+ - server/public/flot/excanvas.min.js
123
+ - server/public/flot/jquery.colorhelpers.js
124
+ - server/public/flot/jquery.colorhelpers.min.js
125
+ - server/public/flot/jquery.flot.canvas.js
126
+ - server/public/flot/jquery.flot.canvas.min.js
127
+ - server/public/flot/jquery.flot.categories.js
128
+ - server/public/flot/jquery.flot.categories.min.js
129
+ - server/public/flot/jquery.flot.crosshair.js
130
+ - server/public/flot/jquery.flot.crosshair.min.js
131
+ - server/public/flot/jquery.flot.errorbars.js
132
+ - server/public/flot/jquery.flot.errorbars.min.js
133
+ - server/public/flot/jquery.flot.fillbetween.js
134
+ - server/public/flot/jquery.flot.fillbetween.min.js
135
+ - server/public/flot/jquery.flot.image.js
136
+ - server/public/flot/jquery.flot.image.min.js
137
+ - server/public/flot/jquery.flot.js
138
+ - server/public/flot/jquery.flot.min.js
139
+ - server/public/flot/jquery.flot.navigate.js
140
+ - server/public/flot/jquery.flot.navigate.min.js
141
+ - server/public/flot/jquery.flot.pie.js
142
+ - server/public/flot/jquery.flot.pie.min.js
143
+ - server/public/flot/jquery.flot.resize.js
144
+ - server/public/flot/jquery.flot.resize.min.js
145
+ - server/public/flot/jquery.flot.selection.js
146
+ - server/public/flot/jquery.flot.selection.min.js
147
+ - server/public/flot/jquery.flot.stack.js
148
+ - server/public/flot/jquery.flot.stack.min.js
149
+ - server/public/flot/jquery.flot.symbol.js
150
+ - server/public/flot/jquery.flot.symbol.min.js
151
+ - server/public/flot/jquery.flot.threshold.js
152
+ - server/public/flot/jquery.flot.threshold.min.js
153
+ - server/public/flot/jquery.flot.time.js
154
+ - server/public/flot/jquery.flot.time.min.js
155
+ - server/public/flot/jquery.js
156
+ - server/public/flot/jquery.min.js
157
+ - server/public/index.html
158
+ - server/public/jquery-2.0.3.min.js
159
+ - server/public/sockjs-0.2.1.min.js
160
+ - server/server.rb
161
+ - server/test/test_order_book.rb
162
+ - server/web_server.rb
163
+ homepage:
164
+ licenses:
165
+ - MIT
166
+ post_install_message:
167
+ rdoc_options: []
168
+ require_paths:
169
+ - lib
170
+ required_ruby_version: !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ! '>='
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ required_rubygems_version: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ requirements: []
183
+ rubyforge_project:
184
+ rubygems_version: 1.8.23
185
+ signing_key:
186
+ specification_version: 3
187
+ summary: A stock market simulation game.
188
+ test_files: []