Permalink
Browse files

initial

  • Loading branch information...
0 parents commit 96f9fedc5fb3074b221978cea4ff35646afc901a @releu releu committed Jan 25, 2012
Showing with 1,241 additions and 0 deletions.
  1. +15 −0 .gitignore
  2. +1 −0 .rspec
  3. +1 −0 .rvmrc
  4. +28 −0 Gemfile
  5. +185 −0 Gemfile.lock
  6. +19 −0 Guardfile
  7. +1 −0 README.md
  8. +7 −0 Rakefile
  9. BIN app/assets/images/rails.png
  10. +16 −0 app/assets/javascripts/application.js
  11. +19 −0 app/assets/javascripts/bootstrap.js.coffee
  12. +14 −0 app/assets/stylesheets/application.css
  13. +5 −0 app/assets/stylesheets/bootstrap.css.less
  14. +3 −0 app/controllers/application_controller.rb
  15. +2 −0 app/helpers/application_helper.rb
  16. 0 app/mailers/.gitkeep
  17. 0 app/models/.gitkeep
  18. +41 −0 app/views/layouts/application.html.erb
  19. +4 −0 config.ru
  20. +59 −0 config/application.rb
  21. +6 −0 config/boot.rb
  22. +25 −0 config/database.yml
  23. +5 −0 config/environment.rb
  24. +37 −0 config/environments/development.rb
  25. +67 −0 config/environments/production.rb
  26. +37 −0 config/environments/test.rb
  27. +7 −0 config/initializers/backtrace_silencers.rb
  28. +15 −0 config/initializers/inflections.rb
  29. +5 −0 config/initializers/mime_types.rb
  30. +7 −0 config/initializers/secret_token.rb
  31. +8 −0 config/initializers/session_store.rb
  32. +93 −0 config/initializers/simple_form.rb
  33. +14 −0 config/initializers/wrap_parameters.rb
  34. +5 −0 config/locales/en.yml
  35. +24 −0 config/locales/simple_form.en.yml
  36. +58 −0 config/routes.rb
  37. +7 −0 db/seeds.rb
  38. +2 −0 doc/README_FOR_APP
  39. 0 lib/assets/.gitkeep
  40. 0 lib/tasks/.gitkeep
  41. +13 −0 lib/templates/erb/scaffold/_form.html.erb
  42. 0 log/.gitkeep
  43. +26 −0 public/404.html
  44. +26 −0 public/422.html
  45. +25 −0 public/500.html
  46. 0 public/favicon.ico
  47. +241 −0 public/index.html
  48. +5 −0 public/robots.txt
  49. +6 −0 script/rails
  50. +32 −0 spec/spec_helper.rb
  51. 0 test/fixtures/.gitkeep
  52. 0 test/functional/.gitkeep
  53. 0 test/integration/.gitkeep
  54. +12 −0 test/performance/browsing_test.rb
  55. +13 −0 test/test_helper.rb
  56. 0 test/unit/.gitkeep
  57. 0 vendor/assets/javascripts/.gitkeep
  58. 0 vendor/assets/stylesheets/.gitkeep
  59. 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
1 .rspec
@@ -0,0 +1 @@
+--colour
1 .rvmrc
@@ -0,0 +1 @@
+rvm 1.9.3@gistflow --create
28 Gemfile
@@ -0,0 +1,28 @@
+source 'https://rubygems.org'
+
+gem 'rails', '3.2.0'
+
+gem 'state_machine'
+gem 'jquery-rails'
+gem 'simple_form'
+gem 'heroku'
+gem 'twitter-bootstrap-rails'
+gem 'thin'
+
+group :test, :development do
+ gem 'factory_girl_rails'
+ gem 'rspec-rails'
+ gem 'guard-rspec'
+ gem 'sqlite3'
+end
+
+group :production do
+ gem 'pg'
+end
+
+group :assets do
+ gem 'sass-rails', '~> 3.2.3'
+ gem 'coffee-rails', '~> 3.2.1'
+ gem 'therubyracer'
+ gem 'uglifier', '>= 1.0.3'
+end
@@ -0,0 +1,185 @@
+GEM
+ remote: https://rubygems.org/
+ 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)
+ addressable (2.2.6)
+ arel (3.0.0)
+ 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.2.0)
+ commonjs (0.2.0)
+ therubyracer (~> 0.9.9)
+ daemons (1.1.6)
+ diff-lcs (1.1.3)
+ erubis (2.7.0)
+ eventmachine (0.12.10)
+ execjs (1.3.0)
+ multi_json (~> 1.0)
+ factory_girl (2.5.0)
+ activesupport
+ factory_girl_rails (1.6.0)
+ factory_girl (~> 2.5.0)
+ railties (>= 3.0.0)
+ ffi (1.0.11)
+ guard (1.0.0)
+ ffi (>= 0.5.0)
+ thor (~> 0.14.6)
+ guard-rspec (0.6.0)
+ guard (>= 0.10.0)
+ heroku (2.18.1)
+ launchy (>= 0.3.2)
+ rest-client (~> 1.6.1)
+ rubyzip
+ term-ansicolor (~> 1.0.5)
+ hike (1.2.1)
+ i18n (0.6.0)
+ journey (1.0.0)
+ jquery-rails (2.0.0)
+ railties (>= 3.2.0.beta, < 5.0)
+ thor (~> 0.14)
+ json (1.6.5)
+ launchy (2.0.5)
+ addressable (~> 2.2.6)
+ less (2.0.9)
+ commonjs (~> 0.2.0)
+ therubyracer (~> 0.9.9)
+ less-rails (2.1.3)
+ actionpack (>= 3.1)
+ less (~> 2.0.7)
+ libv8 (3.3.10.4)
+ mail (2.4.1)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.17.2)
+ multi_json (1.0.4)
+ pg (0.12.2)
+ 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)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ rspec (2.8.0)
+ rspec-core (~> 2.8.0)
+ rspec-expectations (~> 2.8.0)
+ rspec-mocks (~> 2.8.0)
+ rspec-core (2.8.0)
+ rspec-expectations (2.8.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.8.0)
+ rspec-rails (2.8.1)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec (~> 2.8.0)
+ rubyzip (0.9.5)
+ sass (3.1.12)
+ sass-rails (3.2.3)
+ railties (~> 3.2.0.beta)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ simple_form (1.5.2)
+ actionpack (~> 3.0)
+ activemodel (~> 3.0)
+ sprockets (2.1.2)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.5)
+ state_machine (1.1.2)
+ term-ansicolor (1.0.7)
+ therubyracer (0.9.9)
+ libv8 (~> 3.3.10)
+ thin (1.3.1)
+ daemons (>= 1.0.9)
+ eventmachine (>= 0.12.6)
+ rack (>= 1.0.0)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ twitter-bootstrap-rails (1.4.3)
+ actionpack
+ jquery-rails (>= 1.0)
+ less-rails (~> 2.1.0)
+ railties
+ tzinfo (0.3.31)
+ uglifier (1.2.2)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-rails (~> 3.2.1)
+ factory_girl_rails
+ guard-rspec
+ heroku
+ jquery-rails
+ pg
+ rails (= 3.2.0)
+ rspec-rails
+ sass-rails (~> 3.2.3)
+ simple_form
+ sqlite3
+ state_machine
+ therubyracer
+ thin
+ twitter-bootstrap-rails
+ uglifier (>= 1.0.3)
@@ -0,0 +1,19 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+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{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_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('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 @@
+== Welcome to GistFlow
@@ -0,0 +1,7 @@
+#!/usr/bin/env rake
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+
+Gistflow::Application.load_tasks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,16 @@
+// This is a manifest file that'll be compiled into application.js, which will include all the files
+// listed below.
+//
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
+// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
+//
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// the compiled file.
+//
+// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
+// GO AFTER THE REQUIRES BELOW.
+//
+//= require jquery
+//= require jquery_ujs
+//= require twitter/bootstrap
+//= require_tree .
@@ -0,0 +1,19 @@
+$ ->
+ $("body > .topbar").scrollSpy()
+$ ->
+ $(".tabs").tabs()
+$ ->
+ $("a[rel=twipsy]").twipsy live: true
+$ ->
+ $("a[rel=popover]").popover offset: 10
+$ ->
+ $(".topbar-wrapper").dropdown()
+$ ->
+ $(".alert-message").alert()
+$ ->
+ domModal = $(".modal").modal(
+ backdrop: true
+ closeOnEscape: true
+ )
+ $(".open-modal").click ->
+ domModal.toggle()
@@ -0,0 +1,14 @@
+/*
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
+ * listed below.
+ *
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
+ *
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
+ * compiled file, but it's generally better to create a new file per style scope.
+ *
+ *= require_self
+ *= require twitter/bootstrap
+ *= require_tree .
+*/
@@ -0,0 +1,5 @@
+@import "twitter/bootstrap";
+
+// Baseline grid
+@basefont: 13px;
+@baseline: 18px;
@@ -0,0 +1,3 @@
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+end
@@ -0,0 +1,2 @@
+module ApplicationHelper
+end
No changes.
No changes.
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Gistflow</title>
+ <%= stylesheet_link_tag "application" %>
+ <%= javascript_include_tag "application" %>
+ <%= csrf_meta_tags %>
+</head>
+<body style="padding-top: 60px">
+ <div class="topbar">
+ <div class="topbar-inner">
+ <div class="container">
+ <h3><%= link_to "Gistflow", "/" %></h3>
+ <ul class="nav">
+ <li><%= link_to "Link1", "/path1" %></li>
+ <li><%= link_to "Link2", "/path2" %></li>
+ <li><%= link_to "Link3", "/path3" %></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <div class="container">
+ <div class="content">
+ <div class="row">
+ <div class="span11">
+ <%= yield %>
+ </div>
+ <div class="span1">&nbsp;</div>
+ <div class="span4">
+ <h3>Sidebar</h3>
+ <ul>
+ <li><%= link_to "Link1", "/path1" %></li>
+ <li><%= link_to "Link2", "/path2" %></li>
+ <li><%= link_to "Link3", "/path3" %></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </div>
+</body>
+</html>
@@ -0,0 +1,4 @@
+# This file is used by Rack-based servers to start the application.
+
+require ::File.expand_path('../config/environment', __FILE__)
+run Gistflow::Application
Oops, something went wrong.

0 comments on commit 96f9fed

Please sign in to comment.