Permalink
Browse files

Initial commit

0 parents commit 7537399a2e73cadcc09a7d89ff95231d89ca42d5 David FRANCOIS committed Dec 31, 2010
Showing with 14,049 additions and 0 deletions.
  1. +9 −0 .gitignore
  2. +4 −0 Capfile
  3. +21 −0 Gemfile
  4. +115 −0 Gemfile.lock
  5. +256 −0 README
  6. +7 −0 Rakefile
  7. +2 −0 app/controllers/accounts_controller.rb
  8. +5 −0 app/controllers/addresses_controller.rb
  9. +5 −0 app/controllers/admin/servers_controller.rb
  10. +43 −0 app/controllers/application_controller.rb
  11. +23 −0 app/controllers/bitcoin_transfers_controller.rb
  12. +48 −0 app/controllers/charts_controller.rb
  13. +7 −0 app/controllers/informations_controller.rb
  14. +50 −0 app/controllers/liberty_reserve_transfers_controller.rb
  15. +24 −0 app/controllers/sessions_controller.rb
  16. +37 −0 app/controllers/trade_orders_controller.rb
  17. +11 −0 app/controllers/trades_controller.rb
  18. +5 −0 app/controllers/transfers_controller.rb
  19. +40 −0 app/controllers/users_controller.rb
  20. +2 −0 app/helpers/accounts_helper.rb
  21. +2 −0 app/helpers/addresses_helper.rb
  22. +2 −0 app/helpers/admin/server_helper.rb
  23. +31 −0 app/helpers/application_helper.rb
  24. +2 −0 app/helpers/bitcoin_transfers_helper.rb
  25. +5 −0 app/helpers/charts_helper.rb
  26. +2 −0 app/helpers/informations_helper.rb
  27. +2 −0 app/helpers/liberty_reserve_transfer_helper.rb
  28. +2 −0 app/helpers/sessions_helper.rb
  29. +2 −0 app/helpers/trade_orders_helper.rb
  30. +2 −0 app/helpers/trades_helper.rb
  31. +2 −0 app/helpers/transfers_helper.rb
  32. +2 −0 app/helpers/users_helper.rb
  33. +12 −0 app/mailers/user_mailer.rb
  34. +88 −0 app/models/bitcoin_transfer.rb
  35. +58 −0 app/models/liberty_reserve_transfer.rb
  36. +76 −0 app/models/trade.rb
  37. +164 −0 app/models/trade_order.rb
  38. +80 −0 app/models/transfer.rb
  39. +115 −0 app/models/user.rb
  40. +86 −0 app/views/accounts/show.html.erb
  41. +2 −0 app/views/addresses/create.js.rjs
  42. +10 −0 app/views/admin/servers/infos.html.erb
  43. +41 −0 app/views/bitcoin_transfers/new.html.erb
  44. +39 −0 app/views/charts/price.svg.builder
  45. +3 −0 app/views/informations/economy.html.erb
  46. +82 −0 app/views/informations/faq.html.erb
  47. +4 −0 app/views/informations/support.html.erb
  48. +13 −0 app/views/layouts/_errors.html.erb
  49. +17 −0 app/views/layouts/_flash.html.erb
  50. +6 −0 app/views/layouts/_footer.html.erb
  51. +31 −0 app/views/layouts/_navigation.html.erb
  52. +20 −0 app/views/layouts/_user_informations.html.erb
  53. +33 −0 app/views/layouts/application.html.erb
  54. +20 −0 app/views/liberty_reserve_transfers/_lr_sci_form.html.erb
  55. +49 −0 app/views/liberty_reserve_transfers/new.html.erb
  56. +11 −0 app/views/sessions/forbidden.html.erb
  57. +28 −0 app/views/sessions/new.html.erb
  58. +49 −0 app/views/trade_orders/book.html.erb
  59. +35 −0 app/views/trade_orders/index.html.erb
  60. +47 −0 app/views/trade_orders/new.html.erb
  61. +3 −0 app/views/trades/all_trades.json.erb
  62. +10 −0 app/views/trades/all_trades.xml.builder
  63. +33 −0 app/views/trades/index.html.erb
  64. +24 −0 app/views/transfers/index.html.erb
  65. +21 −0 app/views/user_mailer/registration_confirmation.html.erb
  66. +2 −0 app/views/user_mailer/registration_confirmation.text.erb
  67. +72 −0 app/views/users/_form.html.erb
  68. +2 −0 app/views/users/edit.html.erb
  69. +27 −0 app/views/users/index.html.erb
  70. +7 −0 app/views/users/new.html.erb
  71. +4 −0 config.ru
  72. +26 −0 config/application.rb
  73. +11 −0 config/bitcoin.yml
  74. +13 −0 config/boot.rb
  75. +19 −0 config/database.yml
  76. +54 −0 config/deploy.rb
  77. +5 −0 config/environment.rb
  78. +26 −0 config/environments/development.rb
  79. +10 −0 config/environments/production.rb
  80. +38 −0 config/environments/test.rb
  81. +7 −0 config/initializers/backtrace_silencers.rb
  82. +3 −0 config/initializers/donations.rb
  83. +10 −0 config/initializers/inflections.rb
  84. +3 −0 config/initializers/liberty_reserve.rb
  85. +7 −0 config/initializers/mime_types.rb
  86. +4 −0 config/initializers/recaptcha_keys.rb
  87. +7 −0 config/initializers/secret_token.rb
  88. +8 −0 config/initializers/session_store.rb
  89. +20 −0 config/liberty_reserve.yml
  90. +265 −0 config/locales/en.yml
  91. +181 −0 config/locales/fr.yml
  92. +7 −0 config/recaptcha.yml
  93. +58 −0 config/routes.rb
  94. +3 −0 config/schedule.rb
  95. +16 −0 db/migrate/20101017190414_add_sessions_table.rb
  96. +19 −0 db/migrate/20101017194104_create_users.rb
  97. +22 −0 db/migrate/20101017230001_create_transfers.rb
  98. +9 −0 db/migrate/20101022090523_add_last_address_column.rb
  99. +9 −0 db/migrate/20101123114028_add_currency_to_transfers.rb
  100. +13 −0 db/migrate/20101124101527_add_lr_metadata.rb
  101. +9 −0 db/migrate/20101125091027_add_salt_to_users.rb
  102. +13 −0 db/migrate/20101125140724_add_btc_meta_data.rb
  103. +34 −0 db/migrate/20101130120618_create_trade_orders.rb
  104. +9 −0 db/migrate/20101220214804_add_lr_fields.rb
  105. +9 −0 db/migrate/20101222002654_add_time_zone_to_users.rb
  106. +32 −0 db/migrate/20101222014309_create_trades.rb
  107. +9 −0 db/migrate/20101222020005_add_payee_id_to_transfers.rb
  108. +9 −0 db/migrate/20101223013915_add_cancelled_at_to_trade_orders.rb
  109. +10 −0 db/migrate/20101229231455_add_active_to_trade_order.rb
  110. +11 −0 db/migrate/20101229232404_add_ids_to_trades.rb
  111. +9 −0 db/migrate/20101230150344_remove_status_from_trade_orders.rb
  112. +79 −0 db/schema.rb
  113. +8 −0 db/seeds.rb
  114. +2 −0 doc/README_FOR_APP
  115. +21 −0 lib/bitcoin/client.rb
  116. +39 −0 lib/bitcoin/json_wrapper.rb
  117. +16 −0 lib/bitcoin/util.rb
  118. +92 −0 lib/liberty_reserve/client.rb
  119. 0 lib/tasks/.gitkeep
  120. +6 −0 lib/tasks/bitcoin.rake
  121. +7 −0 lib/validators/bitcoin_address_validator.rb
  122. +7 −0 lib/validators/minimal_amount_validator.rb
  123. +7 −0 lib/validators/minimal_order_amount_validator.rb
  124. +7 −0 lib/validators/minimal_order_ppc_validator.rb
  125. +13 −0 lib/validators/not_mine_validator.rb
  126. +7 −0 lib/validators/user_balance_validator.rb
  127. +26 −0 public/404.html
  128. +26 −0 public/422.html
  129. +26 −0 public/500.html
  130. BIN public/favicon.ico
  131. +24 −0 public/graphs/sample.svg
  132. BIN public/images/bitcoin-logo.jpg
  133. BIN public/images/bitcoin.png
  134. BIN public/images/delete.png
  135. BIN public/images/liberty_reserve.gif
  136. BIN public/images/liqpay.gif
  137. BIN public/images/refresh.png
  138. +22 −0 public/javascripts/application.js
  139. +965 −0 public/javascripts/controls.js
  140. +974 −0 public/javascripts/dragdrop.js
  141. +1,123 −0 public/javascripts/effects.js
  142. +6,001 −0 public/javascripts/prototype.js
  143. +175 −0 public/javascripts/rails.js
  144. +5 −0 public/robots.txt
  145. 0 public/stylesheets/.gitkeep
  146. +430 −0 public/stylesheets/application.css
  147. +7 −0 public/stylesheets/reset.css
  148. +6 −0 script/rails
  149. 0 test/fixtures/transfers.yml
  150. +13 −0 test/fixtures/users.yml
  151. +4 −0 test/functional/accounts_controller_test.rb
  152. +8 −0 test/functional/addresses_controller_test.rb
  153. +8 −0 test/functional/admin/server_controller_test.rb
  154. +8 −0 test/functional/bitcoin_withdrawals_controller_test.rb
  155. +8 −0 test/functional/charts_controller_test.rb
  156. +8 −0 test/functional/informations_controller_test.rb
  157. +8 −0 test/functional/liberty_reserve_transfer_controller_test.rb
  158. +8 −0 test/functional/liberty_reserve_withdrawals_controller_test.rb
  159. +29 −0 test/functional/sessions_controller_test.rb
  160. +54 −0 test/functional/trade_orders_controller_test.rb
  161. +8 −0 test/functional/trades_controller_test.rb
  162. +4 −0 test/functional/transfers_controller_test.rb
  163. +8 −0 test/functional/user_mailer_test.rb
  164. +4 −0 test/functional/users_controller_test.rb
  165. +5 −0 test/performance/browsing_test.rb
  166. +21 −0 test/test_helper.rb
  167. +37 −0 test/unit/bitcoin_address_validator_test.rb
  168. +4 −0 test/unit/helpers/accounts_helper_test.rb
  169. +4 −0 test/unit/helpers/addresses_helper_test.rb
  170. +4 −0 test/unit/helpers/admin/server_helper_test.rb
  171. +4 −0 test/unit/helpers/bitcoin_transfers_helper_test.rb
  172. +4 −0 test/unit/helpers/bitcoin_withdrawals_helper_test.rb
  173. +4 −0 test/unit/helpers/charts_helper_test.rb
  174. +4 −0 test/unit/helpers/informations_helper_test.rb
  175. +4 −0 test/unit/helpers/liberty_reserve_transfer_helper_test.rb
  176. +4 −0 test/unit/helpers/liberty_reserve_withdrawals_helper_test.rb
  177. +4 −0 test/unit/helpers/sessions_helper_test.rb
  178. +4 −0 test/unit/helpers/trade_orders_helper_test.rb
  179. +4 −0 test/unit/helpers/trades_helper_test.rb
  180. +4 −0 test/unit/helpers/transfers_helper_test.rb
  181. +4 −0 test/unit/helpers/users_helper_test.rb
  182. +376 −0 test/unit/trade_order_test.rb
  183. +8 −0 test/unit/trade_test.rb
  184. +20 −0 test/unit/transfer_test.rb
  185. +4 −0 test/unit/user_test.rb
@@ -0,0 +1,9 @@
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/**/*
+nbproject
+nbproject/*
+nbproject/**/*
+Thumbs.db
+**/Thumbs.db
@@ -0,0 +1,4 @@
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+
+load 'config/deploy' # remove this line to skip loading any of the default tasks
21 Gemfile
@@ -0,0 +1,21 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.0.0'
+
+gem 'mysql', '2.8.1'
+
+gem 'json'
+
+gem 'addressable'
+
+gem 'recaptcha',
+ :git => 'git://github.com/davout/recaptcha.git',
+ :require => 'recaptcha/rails'
+
+gem "exception_notification",
+ :git => "git://github.com/rails/exception_notification",
+ :require => 'exception_notifier'
+
+gem 'whenever'
+
+gem 'capistrano'
@@ -0,0 +1,115 @@
+GIT
+ remote: git://github.com/davout/recaptcha.git
+ revision: 2e3bfac0a0e29dcbd0e77262d54264949df1d8d6
+ specs:
+ recaptcha (0.2.3)
+
+GIT
+ remote: git://github.com/rails/exception_notification
+ revision: 192a49a02d63d28b23ed41cebadfedd490929cf1
+ specs:
+ exception_notification (1.0.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ aaronh-chronic (0.3.9)
+ abstract (1.0.0)
+ actionmailer (3.0.0)
+ actionpack (= 3.0.0)
+ mail (~> 2.2.5)
+ actionpack (3.0.0)
+ activemodel (= 3.0.0)
+ activesupport (= 3.0.0)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.4.1)
+ rack (~> 1.2.1)
+ rack-mount (~> 0.6.12)
+ rack-test (~> 0.5.4)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.0)
+ activesupport (= 3.0.0)
+ builder (~> 2.1.2)
+ i18n (~> 0.4.1)
+ activerecord (3.0.0)
+ activemodel (= 3.0.0)
+ activesupport (= 3.0.0)
+ arel (~> 1.0.0)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.0)
+ activemodel (= 3.0.0)
+ activesupport (= 3.0.0)
+ activesupport (3.0.0)
+ addressable (2.2.2)
+ arel (1.0.1)
+ activesupport (~> 3.0.0)
+ builder (2.1.2)
+ capistrano (2.5.19)
+ highline
+ net-scp (>= 1.0.0)
+ net-sftp (>= 2.0.0)
+ net-ssh (>= 2.0.14)
+ net-ssh-gateway (>= 1.0.0)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ highline (1.6.1)
+ i18n (0.4.2)
+ json (1.4.6)
+ json (1.4.6-x86-mingw32)
+ mail (2.2.12)
+ activesupport (>= 2.3.6)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ mysql (2.8.1)
+ mysql (2.8.1-x86-mingw32)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-sftp (2.0.5)
+ net-ssh (>= 2.0.9)
+ net-ssh (2.0.23)
+ net-ssh-gateway (1.0.1)
+ net-ssh (>= 1.99.1)
+ polyglot (0.3.1)
+ rack (1.2.1)
+ rack-mount (0.6.13)
+ rack (>= 1.0.0)
+ rack-test (0.5.6)
+ rack (>= 1.0)
+ rails (3.0.0)
+ actionmailer (= 3.0.0)
+ actionpack (= 3.0.0)
+ activerecord (= 3.0.0)
+ activeresource (= 3.0.0)
+ activesupport (= 3.0.0)
+ bundler (~> 1.0.0)
+ railties (= 3.0.0)
+ railties (3.0.0)
+ actionpack (= 3.0.0)
+ activesupport (= 3.0.0)
+ rake (>= 0.8.4)
+ thor (~> 0.14.0)
+ rake (0.8.7)
+ thor (0.14.6)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.23)
+ whenever (0.6.2)
+ aaronh-chronic (>= 0.3.9)
+ activesupport (>= 2.3.4)
+
+PLATFORMS
+ ruby
+ x86-mingw32
+
+DEPENDENCIES
+ addressable
+ capistrano
+ exception_notification!
+ json
+ mysql (= 2.8.1)
+ rails (= 3.0.0)
+ recaptcha!
+ whenever
Oops, something went wrong.

0 comments on commit 7537399

Please sign in to comment.