Permalink
Browse files

Upgrading to Rails 3.2

  • Loading branch information...
DominicHong committed Jul 2, 2012
0 parents commit 4c22a753abfc852028944026af68d34933c8a9da
Showing with 17,373 additions and 0 deletions.
  1. +12 −0 .gitignore
  2. +1 −0 .rspec
  3. +55 −0 Gemfile
  4. +166 −0 Gemfile.lock
  5. +261 −0 README.rdoc
  6. +7 −0 Rakefile
  7. BIN app/assets/images/rails.png
  8. +15 −0 app/assets/javascripts/application.js
  9. +965 −0 app/assets/javascripts/controls.js
  10. +974 −0 app/assets/javascripts/dragdrop.js
  11. +1,123 −0 app/assets/javascripts/effects.js
  12. +6,001 −0 app/assets/javascripts/prototype.js
  13. +191 −0 app/assets/javascripts/rails.js
  14. +13 −0 app/assets/stylesheets/application.css
  15. +36 −0 app/assets/stylesheets/blueprint/ie.css
  16. BIN app/assets/stylesheets/blueprint/plugins/buttons/icons/cross.png
  17. BIN app/assets/stylesheets/blueprint/plugins/buttons/icons/key.png
  18. BIN app/assets/stylesheets/blueprint/plugins/buttons/icons/tick.png
  19. +32 −0 app/assets/stylesheets/blueprint/plugins/buttons/readme.txt
  20. +97 −0 app/assets/stylesheets/blueprint/plugins/buttons/screen.css
  21. +14 −0 app/assets/stylesheets/blueprint/plugins/fancy-type/readme.txt
  22. +71 −0 app/assets/stylesheets/blueprint/plugins/fancy-type/screen.css
  23. BIN app/assets/stylesheets/blueprint/plugins/link-icons/icons/doc.png
  24. BIN app/assets/stylesheets/blueprint/plugins/link-icons/icons/email.png
  25. BIN app/assets/stylesheets/blueprint/plugins/link-icons/icons/external.png
  26. BIN app/assets/stylesheets/blueprint/plugins/link-icons/icons/feed.png
  27. BIN app/assets/stylesheets/blueprint/plugins/link-icons/icons/im.png
  28. BIN app/assets/stylesheets/blueprint/plugins/link-icons/icons/lock.png
  29. BIN app/assets/stylesheets/blueprint/plugins/link-icons/icons/pdf.png
  30. BIN app/assets/stylesheets/blueprint/plugins/link-icons/icons/visited.png
  31. BIN app/assets/stylesheets/blueprint/plugins/link-icons/icons/xls.png
  32. +18 −0 app/assets/stylesheets/blueprint/plugins/link-icons/readme.txt
  33. +42 −0 app/assets/stylesheets/blueprint/plugins/link-icons/screen.css
  34. +10 −0 app/assets/stylesheets/blueprint/plugins/rtl/readme.txt
  35. +110 −0 app/assets/stylesheets/blueprint/plugins/rtl/screen.css
  36. +29 −0 app/assets/stylesheets/blueprint/print.css
  37. +265 −0 app/assets/stylesheets/blueprint/screen.css
  38. +82 −0 app/assets/stylesheets/blueprint/src/forms.css
  39. +280 −0 app/assets/stylesheets/blueprint/src/grid.css
  40. BIN app/assets/stylesheets/blueprint/src/grid.png
  41. +79 −0 app/assets/stylesheets/blueprint/src/ie.css
  42. +92 −0 app/assets/stylesheets/blueprint/src/print.css
  43. +65 −0 app/assets/stylesheets/blueprint/src/reset.css
  44. +123 −0 app/assets/stylesheets/blueprint/src/typography.css
  45. +200 −0 app/assets/stylesheets/custom.css
  46. +9 −0 app/controllers/application_controller.rb
  47. +12 −0 app/controllers/pages_controller.rb
  48. +42 −0 app/controllers/portfolios_controller.rb
  49. +49 −0 app/controllers/trades_controller.rb
  50. +3 −0 app/helpers/application_helper.rb
  51. +2 −0 app/helpers/pages_helper.rb
  52. +2 −0 app/helpers/portfolios_helper.rb
  53. +8 −0 app/helpers/trades_helper.rb
  54. 0 app/mailers/.gitkeep
  55. 0 app/models/.gitkeep
  56. +18 −0 app/models/cash.rb
  57. +25 −0 app/models/fund.rb
  58. +15 −0 app/models/holding.rb
  59. +30 −0 app/models/portfolio.rb
  60. +45 −0 app/models/quote.rb
  61. +41 −0 app/models/security.rb
  62. +23 −0 app/models/stock.rb
  63. +54 −0 app/models/trade.rb
  64. +26 −0 app/models/user.rb
  65. +8 −0 app/views/layouts/_footer.html.erb
  66. +10 −0 app/views/layouts/_header.html.erb
  67. +7 −0 app/views/layouts/_stylesheets.html.erb
  68. +14 −0 app/views/layouts/application.html.erb
  69. +2 −0 app/views/pages/about.html.erb
  70. +2 −0 app/views/pages/contact.html.erb
  71. +2 −0 app/views/pages/home.html.erb
  72. +6 −0 app/views/portfolios/_portfolio.html.erb
  73. +2 −0 app/views/portfolios/destroy.html.erb
  74. +16 −0 app/views/portfolios/edit.html.erb
  75. +7 −0 app/views/portfolios/index.html.erb
  76. +18 −0 app/views/portfolios/new.html.erb
  77. +2 −0 app/views/portfolios/show.html.erb
  78. +12 −0 app/views/shared/_error_messages.html.erb
  79. +2 −0 app/views/trades/create.html.erb
  80. +2 −0 app/views/trades/destroy.html.erb
  81. +39 −0 app/views/trades/index.html.erb
  82. +41 −0 app/views/trades/new.html.erb
  83. +2 −0 app/views/trades/show.html.erb
  84. +2 −0 app/views/trades/update.html.erb
  85. +4 −0 config.ru
  86. +62 −0 config/application.rb
  87. +6 −0 config/boot.rb
  88. +29 −0 config/database.yml
  89. +5 −0 config/environment.rb
  90. +37 −0 config/environments/development.rb
  91. +67 −0 config/environments/production.rb
  92. +37 −0 config/environments/test.rb
  93. +7 −0 config/initializers/backtrace_silencers.rb
  94. +15 −0 config/initializers/inflections.rb
  95. +5 −0 config/initializers/mime_types.rb
  96. +7 −0 config/initializers/secret_token.rb
  97. +8 −0 config/initializers/session_store.rb
  98. +14 −0 config/initializers/wrap_parameters.rb
  99. +5 −0 config/locales/en.yml
  100. +68 −0 config/routes.rb
  101. BIN db/000300.xls
  102. +25 −0 db/migrate/001_create_quotes.rb
  103. +19 −0 db/migrate/002_create_securities.rb
  104. +14 −0 db/migrate/003_load_mystocks_data.rb
  105. +14 −0 db/migrate/004_create_holdings.rb
  106. +15 −0 db/migrate/20110628141741_create_users.rb
  107. +18 −0 db/migrate/20110630134759_create_portfolios.rb
  108. +23 −0 db/migrate/20110719133918_create_trades.rb
  109. +9 −0 db/migrate/20120218102453_add_security_id_to_quotes.rb
  110. +17 −0 db/my porfolio.txt
  111. +88 −0 db/schema.rb
  112. +26 −0 db/seeds.rb
  113. +346 −0 db/stock_csi300.sql
  114. 0 lib/assets/.gitkeep
  115. +96 −0 lib/data_processor.rb
  116. +129 −0 lib/net_data_source.rb
  117. 0 lib/tasks/.gitkeep
  118. +126 −0 lib/tasks/sample_data.rake
  119. +29 −0 lib/tasks/utils.rake
  120. +19 −0 lib/thread_test.rb
  121. 0 log/.gitkeep
  122. +26 −0 public/404.html
  123. +26 −0 public/422.html
  124. +25 −0 public/500.html
  125. 0 public/favicon.ico
  126. +241 −0 public/index.html
  127. +5 −0 public/robots.txt
  128. +6 −0 script/rails
  129. +26 −0 spec/controllers/pages_controller_spec.rb
  130. +127 −0 spec/controllers/portfolios_controller_spec.rb
  131. +76 −0 spec/controllers/trades_controller_spec.rb
  132. +44 −0 spec/factories.rb
  133. +15 −0 spec/helpers/pages_helper_spec.rb
  134. +15 −0 spec/helpers/portfolios_helper_spec.rb
  135. +15 −0 spec/helpers/trades_helper_spec.rb
  136. +45 −0 spec/libs/net_data_source_spec.rb
  137. +26 −0 spec/models/holding_spec.rb
  138. +177 −0 spec/models/portfolio_spec.rb
  139. +82 −0 spec/models/quote_spec.rb
  140. +47 −0 spec/models/security_spec.rb
  141. +136 −0 spec/models/trade_spec.rb
  142. +89 −0 spec/models/user_spec.rb
  143. +31 −0 spec/requests/layout_links_spec.rb
  144. +33 −0 spec/requests/portfolios_spec.rb
  145. +61 −0 spec/spec_helper.rb
  146. +5 −0 spec/views/portfolios/create.html.erb_spec.rb
  147. +5 −0 spec/views/portfolios/destroy.html.erb_spec.rb
  148. +5 −0 spec/views/portfolios/index.html.erb_spec.rb
  149. +5 −0 spec/views/portfolios/new.html.erb_spec.rb
  150. +5 −0 spec/views/portfolios/show.html.erb_spec.rb
  151. +5 −0 spec/views/portfolios/update.html.erb_spec.rb
  152. +5 −0 spec/views/trades/create.html.erb_spec.rb
  153. +5 −0 spec/views/trades/destroy.html.erb_spec.rb
  154. +5 −0 spec/views/trades/index.html.erb_spec.rb
  155. +5 −0 spec/views/trades/show.html.erb_spec.rb
  156. +5 −0 spec/views/trades/update.html.erb_spec.rb
  157. 0 test/fixtures/.gitkeep
  158. 0 test/functional/.gitkeep
  159. 0 test/integration/.gitkeep
  160. +12 −0 test/performance/browsing_test.rb
  161. +13 −0 test/test_helper.rb
  162. 0 test/unit/.gitkeep
  163. +1,901 −0 vendor/Readme - YahooFinance - Ruby Module.mht
  164. 0 vendor/assets/javascripts/.gitkeep
  165. 0 vendor/assets/stylesheets/.gitkeep
  166. 0 vendor/plugins/.gitkeep
  167. +600 −0 vendor/yahoofinance.rb
@@ -0,0 +1,12 @@
+.bundle
+db/*.sqlite3*
+log/*.log
+*.log
+/tmp/
+doc/
+stock_data/
+*.swp
+*~
+.project
+.DS_Store
+.sass-cache/
1 .rspec
@@ -0,0 +1 @@
+--color
55 Gemfile
@@ -0,0 +1,55 @@
+source 'http://ruby.taobao.org/'
+
+gem 'rails', '3.2.6'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'mysql2'
+gem 'kaminari'
+gem 'validates_existence'
+gem 'jquery-rails'
+gem 'faker'
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', '3.2.4'
+ gem 'coffee-rails', '3.2.1'
+
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
+ # gem 'therubyracer', :platforms => :ruby
+
+ gem 'uglifier', '1.0.3'
+end
+
+group :development do
+ gem 'annotate'
+ gem 'spork'
+ gem 'rspec-rails', '2.10.0'
+ gem 'guard-rspec', '0.5.5'
+end
+
+group :test do
+ gem 'factory_girl_rails', :require => false
+ gem 'guard-spork', '0.3.2'
+ gem 'spork'
+ gem 'rspec-rails', '2.10.0'
+ gem 'guard-rspec', '0.5.5'
+end
+
+
+# To use ActiveModel has_secure_password
+# gem 'bcrypt-ruby', '~> 3.0.0'
+
+# To use Jbuilder templates for JSON
+# gem 'jbuilder'
+
+# Use unicorn as the app server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'debugger'
@@ -0,0 +1,166 @@
+GEM
+ remote: http://ruby.taobao.org/
+ specs:
+ actionmailer (3.2.6)
+ actionpack (= 3.2.6)
+ mail (~> 2.4.4)
+ actionpack (3.2.6)
+ activemodel (= 3.2.6)
+ activesupport (= 3.2.6)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.1)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.3)
+ activemodel (3.2.6)
+ activesupport (= 3.2.6)
+ builder (~> 3.0.0)
+ activerecord (3.2.6)
+ activemodel (= 3.2.6)
+ activesupport (= 3.2.6)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.6)
+ activemodel (= 3.2.6)
+ activesupport (= 3.2.6)
+ activesupport (3.2.6)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ annotate (2.4.0)
+ arel (3.0.2)
+ builder (3.0.0)
+ coffee-rails (3.2.1)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0.beta)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.3.3)
+ diff-lcs (1.1.3)
+ erubis (2.7.0)
+ execjs (1.4.0)
+ multi_json (~> 1.0)
+ factory_girl (3.5.0)
+ activesupport (>= 3.0.0)
+ factory_girl_rails (3.5.0)
+ factory_girl (~> 3.5.0)
+ railties (>= 3.0.0)
+ faker (1.0.1)
+ i18n (~> 0.4)
+ ffi (1.0.11)
+ guard (1.2.1)
+ listen (>= 0.4.2)
+ thor (>= 0.14.6)
+ guard-rspec (0.5.5)
+ guard (>= 0.8.4)
+ guard-spork (0.3.2)
+ guard (>= 0.8.4)
+ spork (>= 0.8.4)
+ hike (1.2.1)
+ i18n (0.6.0)
+ journey (1.0.4)
+ jquery-rails (2.0.2)
+ railties (>= 3.2.0, < 5.0)
+ thor (~> 0.14)
+ json (1.7.3)
+ kaminari (0.13.0)
+ actionpack (>= 3.0.0)
+ activesupport (>= 3.0.0)
+ railties (>= 3.0.0)
+ listen (0.4.6)
+ rb-fchange (~> 0.0.5)
+ rb-fsevent (~> 0.9.1)
+ rb-inotify (~> 0.8.8)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ multi_json (1.3.6)
+ mysql2 (0.3.11)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.6)
+ actionmailer (= 3.2.6)
+ actionpack (= 3.2.6)
+ activerecord (= 3.2.6)
+ activeresource (= 3.2.6)
+ activesupport (= 3.2.6)
+ bundler (~> 1.0)
+ railties (= 3.2.6)
+ railties (3.2.6)
+ actionpack (= 3.2.6)
+ activesupport (= 3.2.6)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
+ rake (0.9.2.2)
+ rb-fchange (0.0.5)
+ ffi
+ rb-fsevent (0.9.1)
+ rb-inotify (0.8.8)
+ ffi (>= 0.5.0)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.10.0)
+ rspec-core (~> 2.10.0)
+ rspec-expectations (~> 2.10.0)
+ rspec-mocks (~> 2.10.0)
+ rspec-core (2.10.1)
+ rspec-expectations (2.10.0)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.10.1)
+ rspec-rails (2.10.0)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec (~> 2.10.0)
+ sass (3.1.19)
+ sass-rails (3.2.4)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ spork (0.9.2)
+ sprockets (2.1.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ thor (0.15.3)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.33)
+ uglifier (1.0.3)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ validates_existence (0.7.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ annotate
+ coffee-rails (= 3.2.1)
+ factory_girl_rails
+ faker
+ guard-rspec (= 0.5.5)
+ guard-spork (= 0.3.2)
+ jquery-rails
+ kaminari
+ mysql2
+ rails (= 3.2.6)
+ rspec-rails (= 2.10.0)
+ sass-rails (= 3.2.4)
+ spork
+ uglifier (= 1.0.3)
+ validates_existence
Oops, something went wrong.

0 comments on commit 4c22a75

Please sign in to comment.