Permalink
Browse files

Added everything again after git corrupted

  • Loading branch information...
0 parents commit a367cd72558e4b999a7a8130b2f2e322043efdda @ruprict committed Dec 1, 2011
Showing with 16,939 additions and 0 deletions.
  1. +8 −0 .gitignore
  2. +1 −0 .rspec
  3. +41 −0 .rvmrc
  4. +51 −0 Gemfile
  5. +245 −0 Gemfile.lock
  6. +25 −0 Guardfile
  7. +4 −0 Procfile
  8. +7 −0 README.md
  9. +11 −0 Rakefile
  10. BIN app/assets/images/locassionsheader.png
  11. BIN app/assets/images/rails.png
  12. +6 −0 app/assets/javascripts/app.js.coffee
  13. +9 −0 app/assets/javascripts/appRouter.js.coffee
  14. +18 −0 app/assets/javascripts/application.js
  15. +4 −0 app/assets/javascripts/collections/eventsCollection.js.coffee
  16. +5 −0 app/assets/javascripts/events.js.coffee
  17. +3 −0 app/assets/javascripts/home.js.coffee
  18. +22 −0 app/assets/javascripts/lib/leafletMapProvider.js.coffee
  19. +12 −0 app/assets/javascripts/models/event.js.coffee
  20. +3 −0 app/assets/javascripts/occasions.js.coffee
  21. +42 −0 app/assets/javascripts/tabs.js
  22. +11 −0 app/assets/javascripts/templates/events/line_item.js.haml-coffee
  23. +40 −0 app/assets/javascripts/views/eventEditView.js.coffee
  24. +19 −0 app/assets/javascripts/views/eventListView.js.coffee
  25. +16 −0 app/assets/javascripts/views/eventView.js.coffee
  26. +18 −0 app/assets/javascripts/views/mapView.js.coffee
  27. +27 −0 app/assets/stylesheets/application.css
  28. +334 −0 app/assets/stylesheets/base.css
  29. +42 −0 app/assets/stylesheets/events.css.scss
  30. +4 −0 app/assets/stylesheets/home.css.scss
  31. +58 −0 app/assets/stylesheets/layout.css
  32. +21 −0 app/assets/stylesheets/occasions.css.scss
  33. +236 −0 app/assets/stylesheets/skeleton.css
  34. +5 −0 app/controllers/application_controller.rb
  35. +46 −0 app/controllers/events_controller.rb
  36. +6 −0 app/controllers/home_controller.rb
  37. +10 −0 app/controllers/occasions_controller.rb
  38. +5 −0 app/helpers/application_helper.rb
  39. +2 −0 app/helpers/events_helper.rb
  40. +2 −0 app/helpers/home_helper.rb
  41. +2 −0 app/helpers/occasions_helper.rb
  42. 0 app/mailers/.gitkeep
  43. 0 app/models/.gitkeep
  44. +10 −0 app/models/event.rb
  45. +11 −0 app/models/occasion.rb
  46. +11 −0 app/models/user.rb
  47. +9 −0 app/views/devise/confirmations/new.html.haml
  48. +4 −0 app/views/devise/mailer/confirmation_instructions.html.haml
  49. +6 −0 app/views/devise/mailer/reset_password_instructions.html.haml
  50. +5 −0 app/views/devise/mailer/unlock_instructions.html.haml
  51. +14 −0 app/views/devise/passwords/edit.html.haml
  52. +9 −0 app/views/devise/passwords/new.html.haml
  53. +27 −0 app/views/devise/registrations/edit.html.haml
  54. +17 −0 app/views/devise/registrations/new.html.haml
  55. +17 −0 app/views/devise/sessions/new.html.haml
  56. +19 −0 app/views/devise/shared/_links.haml
  57. +9 −0 app/views/devise/unlocks/new.html.haml
  58. +7 −0 app/views/events/_event.html.haml
  59. +19 −0 app/views/events/index.html.haml
  60. +24 −0 app/views/events/show.html.haml
  61. +26 −0 app/views/home/index.html.haml
  62. +40 −0 app/views/layouts/application.html.haml
  63. +6 −0 app/views/occasions/_occasion.html.haml
  64. +4 −0 config.ru
  65. +53 −0 config/application.rb
  66. +6 −0 config/boot.rb
  67. +5 −0 config/environment.rb
  68. +28 −0 config/environments/development.rb
  69. +51 −0 config/environments/production.rb
  70. +39 −0 config/environments/test.rb
  71. +7 −0 config/initializers/backtrace_silencers.rb
  72. +204 −0 config/initializers/devise.rb
  73. +10 −0 config/initializers/inflections.rb
  74. +7 −0 config/initializers/inherited_resources.rb
  75. +5 −0 config/initializers/mime_types.rb
  76. +7 −0 config/initializers/secret_token.rb
  77. +8 −0 config/initializers/session_store.rb
  78. +12 −0 config/initializers/wrap_parameters.rb
  79. +53 −0 config/locales/devise.en.yml
  80. +5 −0 config/locales/en.yml
  81. +20 −0 config/mongoid.yml
  82. +9 −0 config/routes.rb
  83. +7 −0 db/seeds.rb
  84. +2 −0 doc/README_FOR_APP
  85. 0 lib/assets/.gitkeep
  86. 0 lib/tasks/.gitkeep
  87. 0 log/.gitkeep
  88. +26 −0 public/404.html
  89. +26 −0 public/422.html
  90. +26 −0 public/500.html
  91. 0 public/favicon.ico
  92. +5 −0 public/robots.txt
  93. +6 −0 script/rails
  94. +20 −0 spec/acceptance/add_events_spec.rb
  95. +24 −0 spec/acceptance/add_occasions_spec.rb
  96. +28 −0 spec/acceptance/delete_events_spec.rb
  97. +28 −0 spec/acceptance/delete_occasions_spec.rb
  98. +41 −0 spec/acceptance/edit_events_spec.rb
  99. +18 −0 spec/acceptance/home_page_spec.rb
  100. +21 −0 spec/acceptance/show_event_spec.rb
  101. +30 −0 spec/acceptance/sign_in_spec.rb
  102. +31 −0 spec/acceptance/user_events_spec.rb
  103. +15 −0 spec/controllers/events_controller_spec.rb
  104. +22 −0 spec/factories.rb
  105. 0 spec/javascripts/collections/eventsCollection_spec.js
  106. +1 −0 spec/javascripts/fixtures/eventList.html
  107. +1 −0 spec/javascripts/fixtures/map.html
  108. 0 spec/javascripts/helpers/.gitkeep
  109. +288 −0 spec/javascripts/helpers/jasmine-jquery-1.3.1.js
  110. +41 −0 spec/javascripts/helpers/jasmine-sinon.js
  111. +8,982 −0 spec/javascripts/helpers/jquery.js
  112. +2,916 −0 spec/javascripts/helpers/sinon-1.2.0.js
  113. +38 −0 spec/javascripts/models/event_spec.js
  114. +95 −0 spec/javascripts/support/jasmine.yml
  115. +23 −0 spec/javascripts/support/jasmine_config.rb
  116. +20 −0 spec/javascripts/support/jasmine_runner.rb
  117. 0 spec/javascripts/views/eventFormView_spec.js
  118. +45 −0 spec/javascripts/views/eventListView_spec.js
  119. +2 −0 spec/javascripts/views/mainView_spec.js
  120. +8 −0 spec/javascripts/views/mapView_spec.js
  121. +18 −0 spec/models/event_spec.rb
  122. +38 −0 spec/models/occasion_spec.rb
  123. +38 −0 spec/models/user_spec.rb
  124. +62 −0 spec/spec_helper.rb
  125. +3 −0 spec/support/devise.rb
  126. +10 −0 spec/support/helpers.rb
  127. +4 −0 spec/support/mongoid.rb
  128. +21 −0 spec/support/request_helpers.rb
  129. +33 −0 vendor/assets/javascripts/backbone/backbone-min.js
  130. +1,158 −0 vendor/assets/javascripts/backbone/backbone.js
  131. +30 −0 vendor/assets/javascripts/backbone/underscore-min.js
  132. +114 −0 vendor/assets/javascripts/leaflet/leaflet.js
  133. +3 −0 vendor/assets/javascripts/vendor.js
  134. 0 vendor/assets/stylesheets/.gitkeep
  135. BIN vendor/assets/stylesheets/leaflet/images/marker-shadow.png
  136. BIN vendor/assets/stylesheets/leaflet/images/marker.png
  137. BIN vendor/assets/stylesheets/leaflet/images/popup-close.png
  138. BIN vendor/assets/stylesheets/leaflet/images/zoom-in.png
  139. BIN vendor/assets/stylesheets/leaflet/images/zoom-out.png
  140. +275 −0 vendor/assets/stylesheets/leaflet/leaflet.css
  141. +46 −0 vendor/assets/stylesheets/leaflet/leaflet.ie.css
  142. +6 −0 vendor/assets/stylesheets/vendor.css
  143. 0 vendor/plugins/.gitkeep
@@ -0,0 +1,8 @@
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/
+.sass-cache/
+*.swp
+*.swo
+.DS_Store
1 .rspec
@@ -0,0 +1 @@
+--colour --drb
41 .rvmrc
@@ -0,0 +1,41 @@
+#!/usr/bin/env bash
+
+# This is an RVM Project .rvmrc file, used to automatically load the ruby
+# development environment upon cd'ing into the directory
+
+# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
+environment_id="ruby-1.9.2-p290@loccasions"
+
+#
+# First we attempt to load the desired environment directly from the environment
+# file. This is very fast and efficient compared to running through the entire
+# CLI and selector. If you want feedback on which environment was used then
+# insert the word 'use' after --create as this triggers verbose mode.
+#
+if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
+ && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
+then
+ \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
+
+ if [[ -s ".rvm/hooks/after_use" ]]
+ then
+ . ".rvm/hooks/after_use"
+ fi
+else
+ # If the environment file has not yet been created, use the RVM CLI to select.
+ if ! rvm --create "$environment_id"
+ then
+ echo "Failed to create RVM environment ''."
+ fi
+fi
+
+#
+# If you use an RVM gemset file to install a list of gems (*.gems), you can have
+# it be automatically loaded. Uncomment the following and adjust the filename if
+# necessary.
+#
+# filename=".gems"
+# if [[ -s "$filename" ]] ; then
+# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
+# fi
+
51 Gemfile
@@ -0,0 +1,51 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.1.0'
+gem 'devise', "~> 1.4.6"
+gem 'mongoid', "~> 2.2.0"
+gem 'mongoid_spacial', "~> 0.2.13"
+gem 'haml', '~> 3.1.2'
+gem 'haml-rails', '~> 0.3.4'
+gem 'bson_ext', '~> 1.4.0'
+
+gem 'rails-backbone', "~> 0.5.3"
+gem "inherited_resources", "~> 1.3.0"
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', "~> 3.1.0"
+ gem 'coffee-rails', "~> 3.1.0"
+ gem 'uglifier'
+end
+
+gem 'jquery-rails'
+
+group :test, :development do
+ gem 'rspec-rails', '~> 2.6.1'
+ gem 'mongoid-rspec', '~> 1.4.4'
+ gem 'capybara', '~> 1.1.1'
+ gem 'factory_girl_rails', '~> 1.1.0'
+ gem 'database_cleaner', '~> 0.6.7'
+ gem 'jasmine', :git => 'git://github.com/pivotal/jasmine-gem.git', :branch => '1.2.rc1'
+ gem 'hpricot', '~> 0.8.4'
+ gem 'ruby_parser', '~> 2.3.1'
+ gem 'spork', '~> 0.9.0.rc9'
+ gem 'launchy', '~> 2.0.5'
+ gem 'guard-rspec', '~> 0.4.5'
+ gem 'guard-spork', '~> 0.2.1'
+ gem 'foreman', '~> 0.24.0'
+end
+
+group :assets do
+ gem 'haml-coffee'
+end
+
+# 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,245 @@
+GIT
+ remote: git://github.com/pivotal/jasmine-gem.git
+ revision: 5a7524ae9eaea4fe106a7aaa90ccfb1bc137abe7
+ branch: 1.2.rc1
+ specs:
+ jasmine (1.2.0.rc1)
+ jasmine-core (>= 1.2.0.rc1)
+ rack (>= 1.1)
+ rspec (>= 1.3.1)
+ selenium-webdriver (>= 0.1.3)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.1.0)
+ actionpack (= 3.1.0)
+ mail (~> 2.3.0)
+ actionpack (3.1.0)
+ activemodel (= 3.1.0)
+ activesupport (= 3.1.0)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6)
+ rack (~> 1.3.2)
+ rack-cache (~> 1.0.3)
+ rack-mount (~> 0.8.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.0.0)
+ activemodel (3.1.0)
+ activesupport (= 3.1.0)
+ bcrypt-ruby (~> 3.0.0)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activerecord (3.1.0)
+ activemodel (= 3.1.0)
+ activesupport (= 3.1.0)
+ arel (~> 2.2.1)
+ tzinfo (~> 0.3.29)
+ activeresource (3.1.0)
+ activemodel (= 3.1.0)
+ activesupport (= 3.1.0)
+ activesupport (3.1.0)
+ multi_json (~> 1.0)
+ addressable (2.2.6)
+ arel (2.2.1)
+ bcrypt-ruby (3.0.1)
+ bson (1.4.0)
+ bson_ext (1.4.0)
+ builder (3.0.0)
+ capybara (1.1.1)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 2.0)
+ xpath (~> 0.1.4)
+ childprocess (0.2.2)
+ ffi (~> 1.0.6)
+ coffee-rails (3.1.1)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.1.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.1.2)
+ database_cleaner (0.6.7)
+ devise (1.4.6)
+ bcrypt-ruby (~> 3.0)
+ orm_adapter (~> 0.0.3)
+ warden (~> 1.0.3)
+ diff-lcs (1.1.3)
+ ejs (1.0.0)
+ erubis (2.7.0)
+ execjs (1.2.4)
+ multi_json (~> 1.0)
+ factory_girl (2.0.4)
+ factory_girl_rails (1.1.0)
+ factory_girl (~> 2.0.0)
+ railties (>= 3.0.0)
+ ffi (1.0.9)
+ foreman (0.24.0)
+ term-ansicolor (~> 1.0.5)
+ thor (>= 0.13.6)
+ guard (0.7.0)
+ thor (~> 0.14.6)
+ guard-rspec (0.4.5)
+ guard (>= 0.4.0)
+ guard-spork (0.2.1)
+ guard (>= 0.2.2)
+ spork (>= 0.8.4)
+ haml (3.1.2)
+ haml-coffee (0.1.0)
+ coffee-script
+ execjs
+ haml-rails (0.3.4)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ haml (~> 3.0)
+ railties (~> 3.0)
+ has_scope (0.5.1)
+ hike (1.2.1)
+ hpricot (0.8.4)
+ i18n (0.6.0)
+ inherited_resources (1.3.0)
+ has_scope (~> 0.5.0)
+ responders (~> 0.6.0)
+ jasmine-core (1.2.0.rc1)
+ jquery-rails (1.0.13)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ json_pure (1.6.1)
+ launchy (2.0.5)
+ addressable (~> 2.2.6)
+ mail (2.3.0)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ mongo (1.4.0)
+ bson (= 1.4.0)
+ mongoid (2.2.0)
+ activemodel (~> 3.0)
+ mongo (~> 1.3)
+ tzinfo (~> 0.3.22)
+ mongoid-rspec (1.4.4)
+ mongoid (~> 2.0)
+ rspec (~> 2)
+ mongoid_spacial (0.2.13)
+ activesupport
+ mongoid
+ multi_json (1.0.3)
+ nokogiri (1.5.0)
+ orm_adapter (0.0.5)
+ polyglot (0.3.2)
+ rack (1.3.5)
+ rack-cache (1.0.3)
+ 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.0)
+ actionmailer (= 3.1.0)
+ actionpack (= 3.1.0)
+ activerecord (= 3.1.0)
+ activeresource (= 3.1.0)
+ activesupport (= 3.1.0)
+ bundler (~> 1.0)
+ railties (= 3.1.0)
+ rails-backbone (0.5.3)
+ coffee-script (~> 2.2.0)
+ ejs (~> 1.0.0)
+ rails (~> 3.1.0.rc5)
+ railties (3.1.0)
+ actionpack (= 3.1.0)
+ activesupport (= 3.1.0)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2)
+ rdoc (3.9.4)
+ responders (0.6.4)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+ rspec-rails (2.6.1)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.6.0)
+ ruby_parser (2.3.1)
+ sexp_processor (~> 3.0)
+ rubyzip (0.9.4)
+ sass (3.1.7)
+ sass-rails (3.1.2)
+ actionpack (~> 3.1.0)
+ railties (~> 3.1.0)
+ sass (>= 3.1.4)
+ sprockets (~> 2.0.0)
+ tilt (~> 1.3.2)
+ selenium-webdriver (2.10.0)
+ childprocess (>= 0.2.1)
+ ffi (= 1.0.9)
+ json_pure
+ rubyzip
+ sexp_processor (3.0.7)
+ spork (0.9.0.rc9)
+ sprockets (2.0.0)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ term-ansicolor (1.0.6)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.29)
+ uglifier (1.0.1)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ warden (1.0.5)
+ rack (>= 1.0)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ bson_ext (~> 1.4.0)
+ capybara (~> 1.1.1)
+ coffee-rails (~> 3.1.0)
+ database_cleaner (~> 0.6.7)
+ devise (~> 1.4.6)
+ factory_girl_rails (~> 1.1.0)
+ foreman (~> 0.24.0)
+ guard-rspec (~> 0.4.5)
+ guard-spork (~> 0.2.1)
+ haml (~> 3.1.2)
+ haml-coffee
+ haml-rails (~> 0.3.4)
+ hpricot (~> 0.8.4)
+ inherited_resources (~> 1.3.0)
+ jasmine!
+ jquery-rails
+ launchy (~> 2.0.5)
+ mongoid (~> 2.2.0)
+ mongoid-rspec (~> 1.4.4)
+ mongoid_spacial (~> 0.2.13)
+ rails (= 3.1.0)
+ rails-backbone (~> 0.5.3)
+ rspec-rails (~> 2.6.1)
+ ruby_parser (~> 2.3.1)
+ sass-rails (~> 3.1.0)
+ spork (~> 0.9.0.rc9)
+ uglifier
@@ -0,0 +1,25 @@
+guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
+ watch('config/application.rb')
+ watch('config/environment.rb')
+ watch(%r{^config/environments/.+\.rb$})
+ watch(%r{^config/initializers/.+\.rb$})
+ watch('spec/spec_helper.rb')
+end
+
+guard 'rspec', :version => 2 do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+
+ # Rails example
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
+ watch('spec/spec_helper.rb') { "spec" }
+ watch('config/routes.rb') { "spec/routing" }
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
+ # Capybara request specs
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
+end
@@ -0,0 +1,4 @@
+db: mongod --dbpath=/Users/ggoodrich/db/data
+test: guard
+jasmine: bundle exec rake jasmine
+web: rails s
@@ -0,0 +1,7 @@
+# Loccasions
+
+Loccasions is a Rails application built as a part of a series on [Rubysource.com](http://rubysource.com). You can find the related articles [here](http://rubysource.com/tag/locassions/)
+
+If you have any questions, you can comment on the articles. If you have improvements, you can fork and issue a pull request :)
+
+
Oops, something went wrong.

0 comments on commit a367cd7

Please sign in to comment.