-
-
Save rmoriz/0024283f21e8d943d0c8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PiratenLogin::Application.configure do | |
# Settings specified here will take precedence over those in config/application.rb | |
# Code is not reloaded between requests | |
config.cache_classes = true | |
# Full error reports are disabled and caching is turned on | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true | |
# Disable Rails's static asset server (Apache or nginx will already do this) | |
config.serve_static_assets = false | |
# Compress JavaScripts and CSS | |
config.assets.compress = true | |
# Don't fallback to assets pipeline if a precompiled asset is missed | |
config.assets.compile = false | |
# Generate digests for assets URLs | |
config.assets.digest = true | |
# Defaults to nil and saved in location specified by config.assets.prefix | |
# config.assets.manifest = YOUR_PATH | |
# Specifies the header that your server uses for sending files | |
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache | |
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx | |
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. | |
# config.force_ssl = true | |
# See everything in the log (default is :info) | |
# config.log_level = :debug | |
# Prepend all log lines with the following tags | |
# config.log_tags = [ :subdomain, :uuid ] | |
# Use a different logger for distributed setups | |
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) | |
# Use a different cache store in production | |
# config.cache_store = :mem_cache_store | |
# Enable serving of images, stylesheets, and JavaScripts from an asset server | |
# config.action_controller.asset_host = "http://assets.example.com" | |
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) | |
# config.assets.precompile += %w( search.js ) | |
# Disable delivery errors, bad email addresses will be ignored | |
# config.action_mailer.raise_delivery_errors = false | |
# Enable threaded mode | |
# config.threadsafe! | |
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to | |
# the I18n.default_locale when a translation can not be found) | |
config.i18n.fallbacks = true | |
# Send deprecation notices to registered listeners | |
config.active_support.deprecation = :notify | |
# Log the query plan for queries taking more than this (works | |
# with SQLite, MySQL, and PostgreSQL) | |
# config.active_record.auto_explain_threshold_in_seconds = 0.5 | |
# | |
# Production = SSL only! | |
config.force_ssl = true | |
config.action_mailer.delivery_method = :sendmail | |
# config.action_mailer.smtp_settings = { | |
# user_name: ENV['piratenlogin_sendgrid_user'], | |
# password: ENV['piratenlogin_sendgrid_pass'], | |
# domain: 'piratenlogin.de', | |
# address: 'smtp.sendgrid.net', | |
# port: 587, | |
# authentication: :plain, | |
# enable_starttls_auto: true | |
# } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PiratenLogin::Application.routes.draw do | |
# curl -k https://piratenlogin.dev/api/users/me.json -H 'Accept: application/vnd.piratenlogin.de; version=1,application/json' | |
scope '/api' do | |
# WARNING! | |
# don't specify this a default version! It will crash in production ENV on boot. | |
# api_version(module: 'Api::V1', header: 'Accept', value: 'application/vnd.piratenlogin.de; version=1', default: true) do | |
api_version(module: 'Api::V1', header: 'Accept', value: 'application/vnd.piratenlogin.de; version=1', default: true) do | |
match '/users/me.(:format)' => 'users#me', via: :get | |
end | |
end | |
use_doorkeeper do | |
controllers applications: 'consumer_applications' | |
end | |
get '/oauth/applications/:id/confirm_deletion' => 'consumer_applications#confirm_deletion', as: :confirm_deletion_oauth_application | |
put '/oauth/applications/:id/reset_secret' => 'consumer_applications#reset_secret', as: :reset_secret_oauth_application | |
devise_for :users | |
match 'tutorial' => 'pages#tutorial' | |
match 'developer' => 'pages#developer' | |
match 'help' => 'pages#help' | |
match 'contact' => 'pages#contact' | |
root :to => 'pages#index' | |
# The priority is based upon order of creation: | |
# first created -> highest priority. | |
# Sample of regular route: | |
# match 'products/:id' => 'catalog#view' | |
# Keep in mind you can assign values other than :controller and :action | |
# Sample of named route: | |
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase | |
# This route can be invoked with purchase_url(:id => product.id) | |
# Sample resource route (maps HTTP verbs to controller actions automatically): | |
# resources :products | |
# Sample resource route with options: | |
# resources :products do | |
# member do | |
# get 'short' | |
# post 'toggle' | |
# end | |
# | |
# collection do | |
# get 'sold' | |
# end | |
# end | |
# Sample resource route with sub-resources: | |
# resources :products do | |
# resources :comments, :sales | |
# resource :seller | |
# end | |
# Sample resource route with more complex sub-resources | |
# resources :products do | |
# resources :comments | |
# resources :sales do | |
# get 'recent', :on => :collection | |
# end | |
# end | |
# Sample resource route within a namespace: | |
# namespace :admin do | |
# # Directs /admin/products/* to Admin::ProductsController | |
# # (app/controllers/admin/products_controller.rb) | |
# resources :products | |
# end | |
# You can have the root of your site routed with "root" | |
# just remember to delete public/index.html. | |
# root :to => 'welcome#index' | |
# See how all your routes lay out with "rake routes" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HOST_OS = RbConfig::CONFIG['host_os'] | |
source 'https://rubygems.org' | |
gem 'rails', '3.2.6' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'rails-i18n' | |
gem 'rack-ssl' | |
gem 'sqlite3' | |
gem 'haml-rails' | |
gem 'devise' | |
# gem 'doorkeeper', github: 'applicake/doorkeeper' | |
gem 'doorkeeper', github: 'rmoriz/doorkeeper', branch: 'production' | |
gem 'simple_form' | |
gem 'jquery-rails' | |
gem 'oauth2' | |
gem 'cancan' | |
gem 'versionist' | |
# until we have real content/data | |
gem 'lorem_ipsum' | |
gem 'debugger' | |
group :assets do | |
gem 'sass-rails', '~> 3.2.3' | |
gem 'coffee-rails', '~> 3.2.1' | |
gem 'uglifier', '>= 1.0.3' | |
end | |
group :development, :test do | |
gem 'factory_girl_rails' # in :development for generator-support | |
gem 'rspec-rails' # in :development for generator-support | |
gem 'capybara' | |
end | |
guard_notifications = true | |
group :development do | |
# case HOST_OS | |
# when /darwin/i | |
gem 'growl' | |
# end | |
end | |
group :development do | |
gem 'guard-livereload' | |
gem 'yajl-ruby' | |
gem 'rack-livereload' | |
gem 'guard-bundler' | |
gem 'guard-cucumber' | |
gem 'guard-rspec' | |
gem 'guard-spork' | |
gem 'guard-pow' | |
gem 'thin' | |
gem 'quiet_assets' | |
gem 'annotate', github: 'ctran/annotate_models' | |
gem 'thin' | |
gem 'rails_mail_preview' # see http://nufex.com/ | |
gem 'capistrano' | |
gem 'capistrano-unicorn' | |
gem 'capistrano-file_db' | |
end | |
group :test do | |
gem 'cucumber-rails', :require => false | |
gem 'capybara' | |
gem 'capybara-webkit' | |
# gem 'poltergeist', github: 'jonleighton/poltergeist' | |
# gem 'poltergeist', path: '/Users/rmoriz/Dropbox/Projekte/forks/poltergeist' | |
# gem 'launchy' # needed for capybara's "save_and_open_page" (which is broken with the asset pipeline anyway...) | |
gem 'database_cleaner' | |
gem 'email_spec' | |
gem 'shoulda-matchers' | |
gem 'factory_girl_rails' | |
gem 'simplecov', :require => false | |
gem 'spork', '~> 1.0rc' | |
gem 'shoulda-matchers' | |
gem 'timecop' | |
end | |
group :assets do | |
gem 'twitter-bootstrap-rails' #, github: 'seyhunak/twitter-bootstrap-rails' | |
gem 'therubyracer' | |
end | |
group :production do | |
gem 'unicorn' | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT | |
remote: git://github.com/ctran/annotate_models.git | |
revision: bef0c494956e516540b7a9e72fa03be6576031dd | |
specs: | |
annotate (2.5.0.pre1) | |
rake | |
GIT | |
remote: git://github.com/rmoriz/doorkeeper.git | |
revision: efa6a29a63b02c5a5fa9c7271d12b7d9f2fbc518 | |
branch: production | |
specs: | |
doorkeeper (0.5.0.dev) | |
railties (~> 3.1) | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
FBDistributedNotification (0.0.1) | |
actionmailer (3.2.6) | |
actionpack (= 3.2.6) | |
mail (~> 2.4.4) | |
actionpack (3.2.6) | |
activemodel (= 3.2.6) | |
activesupport (= 3.2.6) | |
builder (~> 3.0.0) | |
erubis (~> 2.7.0) | |
journey (~> 1.0.1) | |
rack (~> 1.4.0) | |
rack-cache (~> 1.2) | |
rack-test (~> 0.6.1) | |
sprockets (~> 2.1.3) | |
activemodel (3.2.6) | |
activesupport (= 3.2.6) | |
builder (~> 3.0.0) | |
activerecord (3.2.6) | |
activemodel (= 3.2.6) | |
activesupport (= 3.2.6) | |
arel (~> 3.0.2) | |
tzinfo (~> 0.3.29) | |
activeresource (3.2.6) | |
activemodel (= 3.2.6) | |
activesupport (= 3.2.6) | |
activesupport (3.2.6) | |
i18n (~> 0.6) | |
multi_json (~> 1.0) | |
addressable (2.2.8) | |
arel (3.0.2) | |
bcrypt-ruby (3.0.1) | |
builder (3.0.0) | |
cancan (1.6.7) | |
capistrano (2.12.0) | |
highline | |
net-scp (>= 1.0.0) | |
net-sftp (>= 2.0.0) | |
net-ssh (>= 2.0.14) | |
net-ssh-gateway (>= 1.1.0) | |
capistrano-file_db (0.1.0) | |
capistrano | |
capistrano-unicorn (0.1.6) | |
capistrano | |
capybara (1.1.2) | |
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) | |
capybara-webkit (0.12.1) | |
capybara (>= 1.0.0, < 1.2) | |
json | |
childprocess (0.3.2) | |
ffi (~> 1.0.6) | |
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) | |
columnize (0.3.6) | |
commonjs (0.2.6) | |
cucumber (1.2.0) | |
builder (>= 2.1.2) | |
diff-lcs (>= 1.1.3) | |
gherkin (~> 2.10.0) | |
json (>= 1.4.6) | |
cucumber-rails (1.3.0) | |
capybara (>= 1.1.2) | |
cucumber (>= 1.1.8) | |
nokogiri (>= 1.5.0) | |
daemons (1.1.8) | |
database_cleaner (0.8.0) | |
debugger (1.1.4) | |
columnize (>= 0.3.1) | |
debugger-linecache (~> 1.1.1) | |
debugger-ruby_core_source (~> 1.1.3) | |
debugger-linecache (1.1.1) | |
debugger-ruby_core_source (>= 1.1.1) | |
debugger-ruby_core_source (1.1.3) | |
devise (2.0.4) | |
bcrypt-ruby (~> 3.0) | |
orm_adapter (~> 0.0.3) | |
railties (~> 3.1) | |
warden (~> 1.1.1) | |
diff-lcs (1.1.3) | |
em-websocket (0.3.6) | |
addressable (>= 2.1.1) | |
eventmachine (>= 0.12.9) | |
email_spec (1.2.1) | |
mail (~> 2.2) | |
rspec (~> 2.0) | |
erubis (2.7.0) | |
eventmachine (0.12.10) | |
execjs (1.4.0) | |
multi_json (~> 1.0) | |
factory_girl (3.3.0) | |
activesupport (>= 3.0.0) | |
factory_girl_rails (3.3.0) | |
factory_girl (~> 3.3.0) | |
railties (>= 3.0.0) | |
faraday (0.8.1) | |
multipart-post (~> 1.1) | |
ffi (1.0.11) | |
gherkin (2.10.0) | |
json (>= 1.4.6) | |
growl (1.0.3) | |
guard (1.2.3) | |
listen (>= 0.4.2) | |
thor (>= 0.14.6) | |
guard-bundler (1.0.0) | |
bundler (~> 1.0) | |
guard (~> 1.1) | |
guard-cucumber (1.1.0) | |
cucumber (>= 1.2.0) | |
guard (>= 1.1.0) | |
guard-livereload (1.0.0) | |
em-websocket (>= 0.2.0) | |
guard (>= 1.1.0) | |
multi_json (~> 1.0) | |
guard-pow (1.0.0) | |
guard (>= 1.1) | |
guard-rspec (1.0.0) | |
guard (>= 1.1) | |
guard-spork (1.0.0) | |
guard (>= 1.0.0) | |
spork (>= 0.8.4) | |
haml (3.1.6) | |
haml-rails (0.3.4) | |
actionpack (~> 3.0) | |
activesupport (~> 3.0) | |
haml (~> 3.0) | |
railties (~> 3.0) | |
highline (1.6.12) | |
hike (1.2.1) | |
httpauth (0.1) | |
i18n (0.6.0) | |
journey (1.0.4) | |
jquery-rails (2.0.2) | |
railties (>= 3.2.0, < 5.0) | |
thor (~> 0.14) | |
json (1.7.3) | |
kgio (2.7.4) | |
less (2.2.1) | |
commonjs (~> 0.2.6) | |
less-rails (2.2.3) | |
actionpack (>= 3.1) | |
less (~> 2.2.0) | |
libv8 (3.3.10.4) | |
libwebsocket (0.1.3) | |
addressable | |
listen (0.4.7) | |
rb-fchange (~> 0.0.5) | |
rb-fsevent (~> 0.9.1) | |
rb-inotify (~> 0.8.8) | |
lorem_ipsum (0.0.2) | |
mail (2.4.4) | |
i18n (>= 0.4.0) | |
mime-types (~> 1.16) | |
treetop (~> 1.4.8) | |
mime-types (1.18) | |
multi_json (1.3.6) | |
multipart-post (1.1.5) | |
net-scp (1.0.4) | |
net-ssh (>= 1.99.1) | |
net-sftp (2.0.5) | |
net-ssh (>= 2.0.9) | |
net-ssh (2.5.2) | |
net-ssh-gateway (1.1.0) | |
net-ssh (>= 1.99.1) | |
nokogiri (1.5.3) | |
oauth2 (0.7.1) | |
faraday (~> 0.8) | |
httpauth (~> 0.1) | |
multi_json (~> 1.0) | |
rack (~> 1.4) | |
orm_adapter (0.0.7) | |
polyglot (0.3.3) | |
quiet_assets (1.0.1) | |
railties (~> 3.1) | |
rack (1.4.1) | |
rack-cache (1.2) | |
rack (>= 0.4) | |
rack-livereload (0.3.6) | |
rack | |
rack-ssl (1.3.2) | |
rack | |
rack-test (0.6.1) | |
rack (>= 1.0) | |
rails (3.2.6) | |
actionmailer (= 3.2.6) | |
actionpack (= 3.2.6) | |
activerecord (= 3.2.6) | |
activeresource (= 3.2.6) | |
activesupport (= 3.2.6) | |
bundler (~> 1.0) | |
railties (= 3.2.6) | |
rails-i18n (0.6.4) | |
i18n (~> 0.5) | |
rails_mail_preview (0.0.4) | |
FBDistributedNotification (= 0.0.1) | |
rails (>= 3.0.0) | |
railties (3.2.6) | |
actionpack (= 3.2.6) | |
activesupport (= 3.2.6) | |
rack-ssl (~> 1.3.2) | |
rake (>= 0.8.7) | |
rdoc (~> 3.4) | |
thor (>= 0.14.6, < 2.0) | |
raindrops (0.9.0) | |
rake (0.9.2.2) | |
rb-fchange (0.0.5) | |
ffi | |
rb-fsevent (0.9.1) | |
rb-inotify (0.8.8) | |
ffi (>= 0.5.0) | |
rdoc (3.12) | |
json (~> 1.4) | |
rspec (2.10.0) | |
rspec-core (~> 2.10.0) | |
rspec-expectations (~> 2.10.0) | |
rspec-mocks (~> 2.10.0) | |
rspec-core (2.10.1) | |
rspec-expectations (2.10.0) | |
diff-lcs (~> 1.1.3) | |
rspec-mocks (2.10.1) | |
rspec-rails (2.10.1) | |
actionpack (>= 3.0) | |
activesupport (>= 3.0) | |
railties (>= 3.0) | |
rspec (~> 2.10.0) | |
rubyzip (0.9.8) | |
sass (3.1.19) | |
sass-rails (3.2.5) | |
railties (~> 3.2.0) | |
sass (>= 3.1.10) | |
tilt (~> 1.3) | |
selenium-webdriver (2.22.2) | |
childprocess (>= 0.2.5) | |
ffi (~> 1.0) | |
libwebsocket (~> 0.1.3) | |
multi_json (~> 1.0) | |
rubyzip | |
shoulda-matchers (1.1.0) | |
activesupport (>= 3.0.0) | |
simple_form (2.0.2) | |
actionpack (~> 3.0) | |
activemodel (~> 3.0) | |
simplecov (0.6.4) | |
multi_json (~> 1.0) | |
simplecov-html (~> 0.5.3) | |
simplecov-html (0.5.3) | |
spork (1.0.0rc3) | |
sprockets (2.1.3) | |
hike (~> 1.2) | |
rack (~> 1.0) | |
tilt (~> 1.1, != 1.3.0) | |
sqlite3 (1.3.6) | |
therubyracer (0.10.1) | |
libv8 (~> 3.3.10) | |
thin (1.3.1) | |
daemons (>= 1.0.9) | |
eventmachine (>= 0.12.6) | |
rack (>= 1.0.0) | |
thor (0.15.4) | |
tilt (1.3.3) | |
timecop (0.3.5) | |
treetop (1.4.10) | |
polyglot | |
polyglot (>= 0.3.1) | |
twitter-bootstrap-rails (2.1.0) | |
actionpack (>= 3.1) | |
less-rails (~> 2.2.2) | |
railties (>= 3.1) | |
therubyracer (~> 0.10.1) | |
tzinfo (0.3.33) | |
uglifier (1.2.4) | |
execjs (>= 0.3.0) | |
multi_json (>= 1.0.2) | |
unicorn (4.3.1) | |
kgio (~> 2.6) | |
rack | |
raindrops (~> 0.7) | |
versionist (0.2.1) | |
rails (~> 3.0) | |
yard (~> 0.7) | |
warden (1.1.1) | |
rack (>= 1.0) | |
xpath (0.1.4) | |
nokogiri (~> 1.3) | |
yajl-ruby (1.1.0) | |
yard (0.8.2.1) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
annotate! | |
cancan | |
capistrano | |
capistrano-file_db | |
capistrano-unicorn | |
capybara | |
capybara-webkit | |
coffee-rails (~> 3.2.1) | |
cucumber-rails | |
database_cleaner | |
debugger | |
devise | |
doorkeeper! | |
email_spec | |
factory_girl_rails | |
growl | |
guard-bundler | |
guard-cucumber | |
guard-livereload | |
guard-pow | |
guard-rspec | |
guard-spork | |
haml-rails | |
jquery-rails | |
lorem_ipsum | |
oauth2 | |
quiet_assets | |
rack-livereload | |
rack-ssl | |
rails (= 3.2.6) | |
rails-i18n | |
rails_mail_preview | |
rspec-rails | |
sass-rails (~> 3.2.3) | |
shoulda-matchers | |
simple_form | |
simplecov | |
spork (~> 1.0rc) | |
sqlite3 | |
therubyracer | |
thin | |
timecop | |
twitter-bootstrap-rails | |
uglifier (>= 1.0.3) | |
unicorn | |
versionist | |
yajl-ruby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment