Skip to content

Commit

Permalink
bootstrap rails
Browse files Browse the repository at this point in the history
  • Loading branch information
yannlugrin committed Mar 2, 2012
1 parent 7390c3b commit 7ad79ca
Show file tree
Hide file tree
Showing 47 changed files with 968 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .gitignore
@@ -0,0 +1,37 @@
# 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
/vendor/ruby

# Ignore yard doc config
/.yardoc

# Ignore Documentation & SimpleCov repport
/doc
/coverage

# Ignore local config file
/.rspec
/.rvmrc
/.powder

# Ignore the default SQLite database.
/config/database.yml
/db/*.sqlite3

# Ignore other config files
/config/global.yml

# Ignore VCR files
/spec/vcr

# Ignore all logfiles and tempfiles.
/log/*.log
/tmp
.DS_Store

1 change: 1 addition & 0 deletions .powder-sample
@@ -0,0 +1 @@
stopwatch
1 change: 1 addition & 0 deletions .rspec-sample
@@ -0,0 +1 @@
--colour
1 change: 1 addition & 0 deletions .rvmrc-sample
@@ -0,0 +1 @@
rvm use 1.9.2
58 changes: 58 additions & 0 deletions Gemfile
@@ -0,0 +1,58 @@
source 'https://rubygems.org'

# Globals dependencies
gem 'rails', '3.2.2'

# Assets dependencies
group :assets do
gem 'jquery-rails'
gem 'sass-rails', '~> 3.2'
gem 'uglifier', '~> 1.0'
gem 'compass', '~> 0.12.rc'
gem 'bourbon', '~> 1.4'
gem 'bootstrap-sass', '~> 2.0.1'
end

# Production environment dependencies
group :production, :staging do
end

# Development environment dependencies (also needed by test environement)
group :development, :test do
gem 'sqlite3'

gem 'rspec-rails'
gem 'spork', '~> 0.9.0'

gem 'ruby-debug19', require: 'ruby-debug'
gem 'pry-rails'
gem 'pry-remote'
gem 'hirb-unicode'

gem 'simplecov', require: false

gem 'redcarpet'
gem 'yard', '~> 0.7.5'
end

# Dependencies should be load only in development environment
group :development do
end

# Guard dependencies
group :guard do
gem 'guard'

gem 'guard-bundler'
gem 'guard-rspec'
gem 'guard-spork'
# gem 'guard-jasmine'
gem 'guard-pow'
gem 'guard-livereload'

gem 'rb-readline'

gem 'rb-fsevent', require: false
gem 'ruby_gntp', require: false
end

211 changes: 211 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,211 @@
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.2)
actionpack (= 3.2.2)
mail (~> 2.4.0)
actionpack (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.1)
rack-test (~> 0.6.1)
sprockets (~> 2.1.2)
activemodel (3.2.2)
activesupport (= 3.2.2)
builder (~> 3.0.0)
activerecord (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
activesupport (3.2.2)
i18n (~> 0.6)
multi_json (~> 1.0)
addressable (2.2.7)
archive-tar-minitar (0.5.2)
arel (3.0.2)
bootstrap-sass (2.0.1)
bourbon (1.4.0)
sass (>= 3.1)
builder (3.0.0)
chunky_png (1.2.5)
coderay (1.0.5)
columnize (0.3.6)
compass (0.12.rc.1)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
diff-lcs (1.1.3)
em-websocket (0.3.6)
addressable (>= 2.1.1)
eventmachine (>= 0.12.9)
erubis (2.7.0)
eventmachine (0.12.10)
execjs (1.3.0)
multi_json (~> 1.0)
ffi (1.0.11)
fssm (0.2.8.1)
guard (1.0.0)
ffi (>= 0.5.0)
thor (~> 0.14.6)
guard-bundler (0.1.3)
bundler (>= 1.0.0)
guard (>= 0.2.2)
guard-livereload (0.4.2)
em-websocket (>= 0.2.0)
guard (>= 0.10.0)
multi_json (~> 1.0)
guard-pow (0.2.1)
guard (>= 0.3.0)
guard-rspec (0.6.0)
guard (>= 0.10.0)
guard-spork (0.5.2)
guard (>= 0.10.0)
spork (>= 0.8.4)
hike (1.2.1)
hirb (0.6.0)
hirb-unicode (0.0.5)
hirb (~> 0.5)
unicode-display_width (~> 0.1.1)
i18n (0.6.0)
journey (1.0.3)
jquery-rails (2.0.1)
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
json (1.6.5)
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
mail (2.4.1)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
method_source (0.7.1)
mime-types (1.17.2)
multi_json (1.1.0)
polyglot (0.3.3)
pry (0.9.8.3)
coderay (~> 1.0.5)
method_source (~> 0.7.1)
slop (>= 2.4.4, < 3)
pry-rails (0.1.6)
pry
pry-remote (0.1.1)
pry (~> 0.9.8)
slop (~> 2.1)
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.2)
actionmailer (= 3.2.2)
actionpack (= 3.2.2)
activerecord (= 3.2.2)
activeresource (= 3.2.2)
activesupport (= 3.2.2)
bundler (~> 1.0)
railties (= 3.2.2)
railties (3.2.2)
actionpack (= 3.2.2)
activesupport (= 3.2.2)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2.2)
rb-fsevent (0.9.0)
rb-readline (0.4.2)
rdoc (3.12)
json (~> 1.4)
redcarpet (2.1.0)
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)
ruby-debug-base19 (0.11.25)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby_core_source (>= 0.1.4)
ruby-debug19 (0.11.6)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
ruby-debug-base19 (>= 0.11.19)
ruby_core_source (0.1.5)
archive-tar-minitar (>= 0.5.2)
ruby_gntp (0.3.4)
sass (3.1.15)
sass-rails (3.2.4)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
simplecov (0.6.1)
multi_json (~> 1.0)
simplecov-html (~> 0.5.3)
simplecov-html (0.5.3)
slop (2.4.4)
spork (0.9.0)
sprockets (2.1.2)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.5)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.31)
uglifier (1.2.3)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
unicode-display_width (0.1.1)
yard (0.7.5)

PLATFORMS
ruby

DEPENDENCIES
bootstrap-sass (~> 2.0.1)
bourbon (~> 1.4)
compass (~> 0.12.rc)
guard
guard-bundler
guard-livereload
guard-pow
guard-rspec
guard-spork
hirb-unicode
jquery-rails
pry-rails
pry-remote
rails (= 3.2.2)
rb-fsevent
rb-readline
redcarpet
rspec-rails
ruby-debug19
ruby_gntp
sass-rails (~> 3.2)
simplecov
spork (~> 0.9.0)
sqlite3
uglifier (~> 1.0)
yard (~> 0.7.5)
68 changes: 68 additions & 0 deletions Guardfile
@@ -0,0 +1,68 @@
notification :gntp, sticky: false

guard 'bundler' do
watch('Gemfile')
end

group :backend do

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(%r{^config/.+\.yml$})
watch('Gemfile')
watch('Gemfile.lock')
watch('spec/spec_helper.rb')
watch('test/test_helper.rb')
end

guard 'rspec', all_on_start: true, all_after_pass: true, keep_failed: true, cli: '--colour --fail-fast --drb --tag focus' do
watch(%r{^spec/.+_spec\.rb$})
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{^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' }
watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" } # Capybara request specs
end

end


group :fronted do

# guard 'jasmine', console: :failure, timeout: 20000 do
# watch(%r{app/assets/javascripts/(.+)\.(js\.coffee|js|coffee)$}) { |m| "spec/javascripts/#{m[1]}_spec.#{m[2]}" }
# watch(%r{spec/javascripts/(.+)_spec\.(js\.coffee|js|coffee)$}) { |m| "spec/javascripts/#{m[1]}_spec.#{m[2]}" }
# watch(%r{spec/javascripts/spec\.(js\.coffee|js|coffee)$}) { 'spec/javascripts' }
# end

guard 'livereload' do
watch(%r{app/.+\.(erb|haml)})
watch(%r{app/helpers/.+\.rb})

watch(%r{app/assets/stylesheets/(.+\.css).*$}) { |m| "assets/#{m[1]}" }
watch(%r{app/assets/javascripts/(.+\.js).*$}) { |m| "assets/#{m[1]}" }

watch(%r{config/locales/.+\.yml})
end

end

guard 'pow', restart_on_start: true, restart_on_reload: true do
watch('.powrc')
watch('.powenv')
watch('.rvmrc')
watch('Gemfile')
watch('Gemfile.lock')
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.*\.rb$})
watch(%r{^config/initializers/.*\.rb$})
end

File renamed without changes.
7 changes: 7 additions & 0 deletions Rakefile
@@ -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__)

Stopwatch::Application.load_tasks
Empty file added app/assets/images/.gitkeep
Empty file.

0 comments on commit 7ad79ca

Please sign in to comment.