Permalink
Browse files

migrated to new rails, reworked application,added more examples

  • Loading branch information...
1 parent 219cb1c commit 55c5b7a439598d6f64c8d236cbeffb324b394d99 @rkononov rkononov committed Sep 5, 2012
Showing with 870 additions and 10,041 deletions.
  1. +33 −20 Gemfile
  2. +84 −121 Gemfile.lock
  3. +0 −22 README.markdown
  4. +261 −0 README.rdoc
  5. +2 −3 Rakefile
  6. +15 −0 app/.gitignore
  7. BIN {public → app/assets}/images/rails.png
  8. +15 −0 app/assets/javascripts/application.js
  9. +3 −0 app/assets/javascripts/codes.js.coffee
  10. +3 −0 app/assets/javascripts/home.js.coffee
  11. +3 −0 app/assets/javascripts/schedules.js.coffee
  12. +3 −0 app/assets/javascripts/tasks.js.coffee
  13. +13 −0 app/assets/stylesheets/application.css
  14. +3 −0 app/assets/stylesheets/codes.css.scss
  15. +3 −0 app/assets/stylesheets/home.css.scss
  16. +3 −0 app/assets/stylesheets/schedules.css.scss
  17. +3 −0 app/assets/stylesheets/tasks.css.scss
  18. +4 −0 app/controllers/application_controller.rb
  19. +21 −0 app/controllers/codes_controller.rb
  20. +0 −6 app/controllers/home_controller.rb
  21. +0 −103 app/controllers/posts_controller.rb
  22. +4 −0 app/controllers/schedules_controller.rb
  23. +34 −0 app/controllers/tasks_controller.rb
  24. +0 −20 app/helpers/application_helper.rb
  25. +2 −0 app/helpers/codes_helper.rb
  26. +0 −2 app/helpers/posts_helper.rb
  27. +2 −0 app/helpers/schedules_helper.rb
  28. +2 −0 app/helpers/tasks_helper.rb
  29. 0 {public/stylesheets → app/mailers}/.gitkeep
  30. +0 −10 app/mailers/mailer.rb
  31. 0 app/models/.gitkeep
  32. +0 −3 app/models/post.rb
  33. +49 −0 app/views/codes/index.html.erb
  34. +23 −0 app/views/codes/revisions.html.erb
  35. +11 −2 app/views/home/index.html.erb
  36. +4 −6 app/views/layouts/application.html.erb
  37. +0 −3 app/views/mailer/send_post.text.erb
  38. +0 −24 app/views/posts/_form.html.erb
  39. +0 −6 app/views/posts/edit.html.erb
  40. +0 −26 app/views/posts/index.html.erb
  41. +0 −5 app/views/posts/new.html.erb
  42. +0 −18 app/views/posts/show.html.erb
  43. +19 −0 app/views/schedules/index.html.erb
  44. +41 −0 app/views/tasks/index.html.erb
  45. +4 −0 app/views/tasks/log.html.erb
  46. +0 −12 app/workers/mail_worker.rb
  47. +0 −20 app/workers/uber_worker.rb
  48. +1 −1 config.ru
  49. +27 −53 config/application.rb
  50. +19 −0 config/database.yml
  51. +0 −8 config/database.yml.sample
  52. +1 −1 config/environment.rb
  53. +17 −5 config/environments/development.rb
  54. +32 −14 config/environments/production.rb
  55. +10 −8 config/environments/test.rb
  56. +5 −0 config/initializers/inflections.rb
  57. +0 −9 config/initializers/iron_worker.rb
  58. +1 −1 config/initializers/secret_token.rb
  59. +2 −2 config/initializers/session_store.rb
  60. +14 −0 config/initializers/wrap_parameters.rb
  61. +1 −1 config/locales/en.yml
  62. +0 −7 config/private.yml.sample
  63. +23 −10 config/routes.rb
  64. +0 −15 db/migrate/20110504013623_create_posts.rb
  65. +0 −24 db/schema.rb
  66. +2 −2 db/seeds.rb
  67. 0 lib/assets/.gitkeep
  68. 0 log/.gitkeep
  69. +0 −1 public/500.html
  70. +0 −2 public/javascripts/application.js
  71. +0 −965 public/javascripts/controls.js
  72. +0 −974 public/javascripts/dragdrop.js
  73. +0 −1,123 public/javascripts/effects.js
  74. +0 −6,001 public/javascripts/prototype.js
  75. +0 −191 public/javascripts/rails.js
  76. +0 −56 public/stylesheets/scaffold.css
  77. +1 −1 script/rails
  78. 0 test/fixtures/.gitkeep
  79. +0 −11 test/fixtures/posts.yml
  80. 0 test/functional/.gitkeep
  81. +7 −0 test/functional/codes_controller_test.rb
  82. +3 −5 test/functional/home_controller_test.rb
  83. +0 −8 test/functional/mailer_test.rb
  84. +0 −49 test/functional/posts_controller_test.rb
  85. +7 −0 test/functional/schedules_controller_test.rb
  86. +7 −0 test/functional/tasks_controller_test.rb
  87. 0 test/integration/.gitkeep
  88. +4 −1 test/performance/browsing_test.rb
  89. 0 test/unit/.gitkeep
  90. +4 −0 test/unit/helpers/codes_helper_test.rb
  91. +0 −4 test/unit/helpers/posts_helper_test.rb
  92. +4 −0 test/unit/helpers/schedules_helper_test.rb
  93. +4 −0 test/unit/helpers/tasks_helper_test.rb
  94. +0 −8 test/unit/post_test.rb
  95. 0 vendor/assets/javascripts/.gitkeep
  96. 0 vendor/assets/stylesheets/.gitkeep
  97. +2 −0 workers/hello_worker.rb
  98. +5 −0 workers/hello_worker.worker
  99. +0 −48 yield_vs_block.rb
View
@@ -1,26 +1,39 @@
-source 'http://rubygems.org'
+source 'https://rubygems.org'
-gem 'rails', '~> 3.1.0'
+gem 'rails', '3.2.8'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
-gem 'mysql2', '>= 0.3'
+
+gem 'iron_worker_ng'
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', '~> 3.2.3'
+ 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
gem 'jquery-rails'
-gem 'iron_worker', '>= 2'
-gem 'mini_fb'
-gem 'eventmachine'
-
-gem 'backup'
-gem 'bson_ext', '~> 1.3'
-# todo: get this working: gem 'cancan'
-gem 'client_side_validations'
-gem 'compass'
-gem 'concerned_with'
-gem 'dalli'
-gem 'delayed_job'
-gem 'devise'
-#gem 'devise_invitable'
-gem 'haml'
-gem 'haml-rails'
-gem 'rest-client', :require=>'rest_client'
+# 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'
View
@@ -1,166 +1,129 @@
GEM
- remote: http://rubygems.org/
+ remote: https://rubygems.org/
specs:
- POpen4 (0.1.4)
- Platform (>= 0.4.0)
- open4
- Platform (0.4.0)
- actionmailer (3.1.3)
- actionpack (= 3.1.3)
- mail (~> 2.3.0)
- actionpack (3.1.3)
- activemodel (= 3.1.3)
- activesupport (= 3.1.3)
+ actionmailer (3.2.8)
+ actionpack (= 3.2.8)
+ mail (~> 2.4.4)
+ actionpack (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
builder (~> 3.0.0)
erubis (~> 2.7.0)
- i18n (~> 0.6)
- rack (~> 1.3.5)
- rack-cache (~> 1.1)
- rack-mount (~> 0.8.2)
+ journey (~> 1.0.4)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
rack-test (~> 0.6.1)
- sprockets (~> 2.0.3)
- activemodel (3.1.3)
- activesupport (= 3.1.3)
+ sprockets (~> 2.1.3)
+ activemodel (3.2.8)
+ activesupport (= 3.2.8)
builder (~> 3.0.0)
- i18n (~> 0.6)
- activerecord (3.1.3)
- activemodel (= 3.1.3)
- activesupport (= 3.1.3)
- arel (~> 2.2.1)
+ activerecord (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ arel (~> 3.0.2)
tzinfo (~> 0.3.29)
- activeresource (3.1.3)
- activemodel (= 3.1.3)
- activesupport (= 3.1.3)
- activesupport (3.1.3)
+ activeresource (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ activesupport (3.2.8)
+ i18n (~> 0.6)
multi_json (~> 1.0)
- arel (2.2.1)
- backup (3.0.20)
- POpen4 (~> 0.1.4)
- thor (~> 0.14.6)
- bcrypt-ruby (3.0.1)
- bson (1.5.2)
- bson_ext (1.5.2)
- bson (= 1.5.2)
+ arel (3.0.2)
builder (3.0.0)
- chunky_png (1.2.5)
- client_side_validations (3.1.4)
- compass (0.11.6)
- chunky_png (~> 1.2)
- fssm (>= 0.2.7)
- sass (~> 3.1)
- concerned_with (0.1.0)
- daemons (1.1.5)
- dalli (1.1.4)
- delayed_job (2.1.4)
- activesupport (~> 3.0)
- daemons
- devise (1.5.3)
- bcrypt-ruby (~> 3.0)
- orm_adapter (~> 0.0.3)
- warden (~> 1.1)
+ coffee-rails (3.2.2)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.3.3)
erubis (2.7.0)
- eventmachine (0.12.10)
- fssm (0.2.7)
- haml (3.1.4)
- haml-rails (0.3.4)
- actionpack (~> 3.0)
- activesupport (~> 3.0)
- haml (~> 3.0)
- railties (~> 3.0)
- hashie (1.2.0)
+ execjs (1.4.0)
+ multi_json (~> 1.0)
hike (1.2.1)
- i18n (0.6.0)
- iron_worker (2.2.0)
- rest
- rest
- rest-client
- rest-client
- zip
+ i18n (0.6.1)
+ iron_core (0.4.2)
+ rest (>= 2.0.2)
+ iron_worker_ng (0.10.2)
+ bundler (>= 1.0.0)
+ iron_core (>= 0.4.2)
zip
- jquery-rails (1.0.19)
- railties (~> 3.0)
+ journey (1.0.4)
+ jquery-rails (2.1.1)
+ railties (>= 3.1.0, < 5.0)
thor (~> 0.14)
- json (1.6.4)
- mail (2.3.0)
+ json (1.7.5)
+ libv8 (3.3.10.4)
+ mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
- mime-types (1.17.2)
- mini_fb (1.1.7)
- hashie
- rest-client
- multi_json (1.0.4)
- mysql2 (0.3.11)
- open4 (1.3.0)
- orm_adapter (0.0.5)
+ mime-types (1.19)
+ multi_json (1.3.6)
+ net-http-persistent (2.7)
polyglot (0.3.3)
- rack (1.3.6)
- rack-cache (1.1)
+ rack (1.4.1)
+ rack-cache (1.2)
rack (>= 0.4)
- rack-mount (0.8.3)
- rack (>= 1.0.0)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
- rails (3.1.3)
- actionmailer (= 3.1.3)
- actionpack (= 3.1.3)
- activerecord (= 3.1.3)
- activeresource (= 3.1.3)
- activesupport (= 3.1.3)
+ rails (3.2.8)
+ actionmailer (= 3.2.8)
+ actionpack (= 3.2.8)
+ activerecord (= 3.2.8)
+ activeresource (= 3.2.8)
+ activesupport (= 3.2.8)
bundler (~> 1.0)
- railties (= 3.1.3)
- railties (3.1.3)
- actionpack (= 3.1.3)
- activesupport (= 3.1.3)
+ railties (= 3.2.8)
+ railties (3.2.8)
+ actionpack (= 3.2.8)
+ activesupport (= 3.2.8)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
- thor (~> 0.14.6)
+ thor (>= 0.14.6, < 2.0)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
- rest (0.1.0)
- rest-client
- rest-client
+ rest (2.0.2)
+ net-http-persistent
+ rest-client (>= 0.3.0)
rest-client (1.6.7)
mime-types (>= 1.16)
- sass (3.1.12)
- sprockets (2.0.3)
+ sass (3.2.1)
+ sass-rails (3.2.5)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
- tilt (!= 1.3.0, ~> 1.1)
- sqlite3 (1.3.5)
- thor (0.14.6)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.6)
+ therubyracer (0.10.2)
+ libv8 (~> 3.3.10)
+ thor (0.16.0)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
- tzinfo (0.3.31)
- warden (1.1.0)
- rack (>= 1.0)
+ tzinfo (0.3.33)
+ uglifier (1.3.0)
+ execjs (>= 0.3.0)
+ multi_json (~> 1.0, >= 1.0.2)
zip (2.0.2)
PLATFORMS
ruby
DEPENDENCIES
- backup
- bson_ext (~> 1.3)
- client_side_validations
- compass
- concerned_with
- dalli
- delayed_job
- devise
- eventmachine
- haml
- haml-rails
- iron_worker (>= 2)
+ coffee-rails (~> 3.2.1)
+ iron_worker_ng
jquery-rails
- mini_fb
- mysql2 (>= 0.3)
- rails (~> 3.1.0)
- rest-client
+ rails (= 3.2.8)
+ sass-rails (~> 3.2.3)
sqlite3
+ therubyracer
+ uglifier (>= 1.0.3)
View
@@ -1,22 +0,0 @@
-This project is a sample project to show how to use IronWorker in Rails (it's very easy).
-
-# Getting Started
-
-## Configuration
-
-Get your IronWorker keys at http://www.iron.io . Then create a config/private.yml file with:
-
-```
-iron:
- token: MY_TOKEN
- project_id: MY PROJECT ID
-
-gmail:
- username: gmail_username@gmail.com
- password: gmail_password
-```
-
-### Database
-
-Create a config/database.yml file with your database credentials, typical Rails style. Database must be accessible from external hosts.
-
Oops, something went wrong.

0 comments on commit 55c5b7a

Please sign in to comment.