Permalink
Browse files

Initial commit for Pusher

  • Loading branch information...
gautamrege committed Jan 28, 2012
0 parents commit d75f23463d40c239ecc1a8fa2045b4a15965682b
Showing with 1,402 additions and 0 deletions.
  1. +15 −0 .gitignore
  2. +40 −0 Gemfile
  3. +128 −0 Gemfile.lock
  4. +18 −0 README
  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. +3 −0 app/assets/javascripts/home.js.coffee
  10. +13 −0 app/assets/stylesheets/application.css
  11. +3 −0 app/assets/stylesheets/home.css.scss
  12. +3 −0 app/controllers/application_controller.rb
  13. +14 −0 app/controllers/home_controller.rb
  14. +2 −0 app/helpers/application_helper.rb
  15. +2 −0 app/helpers/home_helper.rb
  16. 0 app/mailers/.gitkeep
  17. 0 app/models/.gitkeep
  18. +9 −0 app/models/user.rb
  19. +26 −0 app/views/home/_notifications.html.erb
  20. +14 −0 app/views/home/index.html.erb
  21. +14 −0 app/views/layouts/application.html.erb
  22. +4 −0 config.ru
  23. +63 −0 config/application.rb
  24. +6 −0 config/boot.rb
  25. +5 −0 config/environment.rb
  26. +37 −0 config/environments/development.rb
  27. +67 −0 config/environments/production.rb
  28. +37 −0 config/environments/test.rb
  29. +7 −0 config/initializers/backtrace_silencers.rb
  30. +209 −0 config/initializers/devise.rb
  31. +15 −0 config/initializers/inflections.rb
  32. +5 −0 config/initializers/mime_types.rb
  33. +7 −0 config/initializers/secret_token.rb
  34. +8 −0 config/initializers/session_store.rb
  35. +14 −0 config/initializers/wrap_parameters.rb
  36. +58 −0 config/locales/devise.en.yml
  37. +5 −0 config/locales/en.yml
  38. +20 −0 config/mongoid.yml
  39. +63 −0 config/routes.rb
  40. +11 −0 db/seeds.rb
  41. +2 −0 doc/README_FOR_APP
  42. 0 lib/assets/.gitkeep
  43. +29 −0 lib/fx/messenger.rb
  44. 0 lib/tasks/.gitkeep
  45. 0 log/.gitkeep
  46. +1 −0 node
  47. +26 −0 public/404.html
  48. +26 −0 public/422.html
  49. +25 −0 public/500.html
  50. 0 public/favicon.ico
  51. +5 −0 public/robots.txt
  52. +6 −0 script/rails
  53. 0 test/fixtures/.gitkeep
  54. +11 −0 test/fixtures/users.yml
  55. 0 test/functional/.gitkeep
  56. +7 −0 test/functional/home_controller_test.rb
  57. 0 test/integration/.gitkeep
  58. +12 −0 test/performance/browsing_test.rb
  59. +13 −0 test/test_helper.rb
  60. 0 test/unit/.gitkeep
  61. +4 −0 test/unit/helpers/home_helper_test.rb
  62. +7 −0 test/unit/user_test.rb
  63. 0 vendor/assets/javascripts/.gitkeep
  64. 0 vendor/assets/stylesheets/.gitkeep
  65. 0 vendor/plugins/.gitkeep
@@ -0,0 +1,15 @@
+# See http://help.github.com/ignore-files/ for more about ignoring files.
+#
+# If you find yourself ignoring temporary files generated by your text editor
+# or operating system, you probably want to add a global ignore instead:
+# git config --global core.excludesfile ~/.gitignore_global
+
+# Ignore bundler config
+/.bundle
+
+# Ignore the default SQLite database.
+/db/*.sqlite3
+
+# Ignore all logfiles and tempfiles.
+/log/*.log
+/tmp
40 Gemfile
@@ -0,0 +1,40 @@
+#source 'https://rubygems.org'
+
+gem 'rails', '3.2.0'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'mongoid'
+gem 'bson_ext'
+gem 'devise'
+
+
+# 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'
+
+ gem 'uglifier', '>= 1.0.3'
+end
+
+gem 'jquery-rails'
+
+# To use ActiveModel has_secure_password
+# gem 'bcrypt-ruby', '~> 3.0.0'
+
+# To use Jbuilder templates for JSON
+# gem 'jbuilder'
+
+# Use unicorn as the web server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'ruby-debug19', :require => 'ruby-debug'
@@ -0,0 +1,128 @@
+GEM
+ specs:
+ actionmailer (3.2.0)
+ actionpack (= 3.2.0)
+ mail (~> 2.4.0)
+ actionpack (3.2.0)
+ activemodel (= 3.2.0)
+ activesupport (= 3.2.0)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.0)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.1)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.2)
+ activemodel (3.2.0)
+ activesupport (= 3.2.0)
+ builder (~> 3.0.0)
+ activerecord (3.2.0)
+ activemodel (= 3.2.0)
+ activesupport (= 3.2.0)
+ arel (~> 3.0.0)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.0)
+ activemodel (= 3.2.0)
+ activesupport (= 3.2.0)
+ activesupport (3.2.0)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ arel (3.0.0)
+ bcrypt-ruby (3.0.1)
+ bson (1.5.2)
+ bson_ext (1.5.2)
+ bson (= 1.5.2)
+ builder (3.0.0)
+ 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.2.0)
+ devise (1.5.3)
+ bcrypt-ruby (~> 3.0)
+ orm_adapter (~> 0.0.3)
+ warden (~> 1.1)
+ erubis (2.7.0)
+ execjs (1.3.0)
+ multi_json (~> 1.0)
+ hike (1.2.1)
+ i18n (0.6.0)
+ journey (1.0.1)
+ jquery-rails (2.0.0)
+ railties (>= 3.2.0.beta, < 5.0)
+ thor (~> 0.14)
+ json (1.6.5)
+ mail (2.4.1)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.17.2)
+ mongo (1.5.2)
+ bson (= 1.5.2)
+ mongoid (2.4.2)
+ activemodel (~> 3.1)
+ mongo (~> 1.3)
+ tzinfo (~> 0.3.22)
+ multi_json (1.0.4)
+ orm_adapter (0.0.6)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.1)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.0)
+ actionmailer (= 3.2.0)
+ actionpack (= 3.2.0)
+ activerecord (= 3.2.0)
+ activeresource (= 3.2.0)
+ activesupport (= 3.2.0)
+ bundler (~> 1.0)
+ railties (= 3.2.0)
+ railties (3.2.0)
+ actionpack (= 3.2.0)
+ activesupport (= 3.2.0)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ sass (3.1.12)
+ sass-rails (3.2.4)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ sprockets (2.1.2)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.31)
+ uglifier (1.2.2)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ warden (1.1.0)
+ rack (>= 1.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bson_ext
+ coffee-rails (~> 3.2.1)
+ devise
+ jquery-rails
+ mongoid
+ rails (= 3.2.0)
+ sass-rails (~> 3.2.3)
+ uglifier (>= 1.0.3)
18 README
@@ -0,0 +1,18 @@
+= Demonstration for socket.io, express.js and Rails notifications
+
+1. bundle install
+2. rake db:seed
+3. node node/notify.js
+4. rails s
+
+This is a demo repository for sending messages to users.
+Currently its just simple one message to another. We can enhance this
+to trigger notifications in the server itself
+
+There are 3 pre-registered users:
+gautam@example.com / abcd123
+sethu@example.com / abcd123
+admin@example.com / abcd123
+
+When you login via any of these, you can send messages to the other
+users from a simple form
Oops, something went wrong.

0 comments on commit d75f234

Please sign in to comment.