Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to rails 4 and cleanup #3

Open
wants to merge 40 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
2983330
Fix link in reservation mail
toupeira Mar 31, 2015
245d568
Change default host for URLs in mails
toupeira Mar 31, 2015
35993a0
Simplify mailer settings
toupeira Mar 31, 2015
6bd5e6a
Tweak link in reservation mail
toupeira Mar 31, 2015
841a1ab
Fix links in error pages
toupeira Mar 31, 2015
9792052
Use Reply-To: header in mails
toupeira Mar 31, 2015
e29874f
Add rails 4 files.
kitsane Nov 26, 2014
65aff61
Move navigation to standard path and remove initializer.
kitsane Nov 26, 2014
68e1ecb
Remove unnessecary initializers.
kitsane Dec 1, 2014
5b70bc7
Add neccesary paths to application.rb.
kitsane Dec 1, 2014
951839e
Bring dossiers and topics back to work, except for nested container a…
kitsane Dec 1, 2014
2bc61e0
Fix show/hide keyword links.
kitsane Dec 1, 2014
c1efe39
Fix mostly simple controllers and models.
kitsane Dec 1, 2014
816dfc9
Fix report stuff, except for preview action.
kitsane Dec 1, 2014
30f89c4
Fix versioning.
kitsane Dec 1, 2014
38bae94
Remove utf-8 comments.
kitsane Dec 1, 2014
f5b4dc6
Remove empty helper files.
kitsane Dec 1, 2014
4d14d51
Remove capone_recipes gem.
kitsane Dec 1, 2014
77cb698
Let rubocop autofix some stuff.
kitsane Dec 1, 2014
5cc9d7e
Update forgotten schema.rb file.
kitsane Dec 2, 2014
34b3ccf
run bundle update.
kitsane Dec 2, 2014
e8ca37b
Use renamed topic_group scope.
kitsane Dec 2, 2014
3db0202
Fix report preview by only rendering _show partial.
kitsane Dec 2, 2014
bf04c9b
Fix dossiers form with ajax add remove.
kitsane Dec 2, 2014
6bed3be
Remove unneeded tests from test unit.
kitsane Dec 3, 2014
e4747d6
Install rspec.
kitsane Dec 3, 2014
2d0fd50
Move factories to spec folder
kitsane Dec 3, 2014
652d1d5
Update specs, so they can be run with rspec, specs failing.
kitsane Dec 3, 2014
120003c
Fix most of rspec specs.
kitsane Dec 3, 2014
514eeda
Use bin/rake in INSTALL docs.
huerlisi Dec 3, 2014
336350b
Update INSTALL regarding sphinx version.
huerlisi Dec 3, 2014
78d7307
Rename .keep to .gitkeep.
huerlisi Dec 3, 2014
7abb056
tmp and log now have a .gitkeep, no neek to mkdir.
huerlisi Dec 3, 2014
b707cbe
Adapt relation autocompletion to new JSON convention in Rails.
huerlisi Dec 3, 2014
7839813
Fix report issues due to gem updates.
kitsane Dec 3, 2014
1b34c33
Remove containers_controller and views/containers/_new.
kitsane Dec 3, 2014
8faaf42
Fix sign_out link.
kitsane Dec 3, 2014
1250e67
Fix rebase error
toupeira Mar 31, 2015
8920acf
Remove socket option for MySQL
toupeira Mar 31, 2015
c9b5eed
Fix rake task in Travis configuration
toupeira Mar 31, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 22 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
# Rails
# =====
.bundle
db/*.sqlite3
log/*.log
tmp/**/*
# See https://help.github.com/articles/ignoring-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'

# Passenger
tmp/restart.txt
# Ignore bundler config.
/.bundle

# Vendor
vendor/cache
vendor/bundle
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal

# Volatile
doc/api
doc/app
public/stylesheets/all.css
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp/**/*

# Local
config/database.yml
config/application.yml
config/deploy/production.rb
config/deploy/staging.rb
Expand All @@ -32,7 +29,15 @@ public/stylesheets/compiled
db/sphinx
config/*.sphinx.conf
config/sphinx/
config/initializers/mail.rb

# Aspell
db/aspell/aspell.de_CH.pws

# Ignore mac ds_store files
.DS_Store

# Sensitive data.
.env*

# Ignore coverage report
/doc/coverage
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
--color
--require spec_helper
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ before_script:
- mysql -e 'create database katalog_test'
- DB=mysql bundle exec rake katalog:setup
- DB=mysql bundle exec rake db:create db:schema:load
- bundle exec rake katalog:ts:export_lists ts:rebuild katalog:raspell:update
- bundle exec rake katalog:ts:export_lists ts:rebuild katalog:aspell:update

script: "bundle exec rake spec"

Expand Down
17 changes: 12 additions & 5 deletions Capfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
require 'bundler/setup'
# Load DSL and Setup Up Stages
require 'capistrano/setup'

load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
Dir['lib/recipes/*.rb'].each { |plugin| load(plugin) }
# Includes default deployment tasks
require 'capistrano/deploy'

load 'config/deploy' # remove this line to skip loading any of the default tasks
# Includes tasks from other gems included in your Gemfile
require 'capistrano/rbenv'
require 'capistrano/bundler'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'

# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
196 changes: 106 additions & 90 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,128 +1,144 @@
# Settings
# ========
source 'http://rubygems.org'
source 'https://rubygems.org'

# Rails
# =====
gem 'rails'

# Unicorn
# =======
gem 'unicorn'

# Database
# ========
gem 'mysql2'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
gem 'therubyracer'
gem 'uglifier'
gem 'compass-rails'
end
# Journaling
# ==========
gem 'paper_trail'

# Asset Pipeline
# ==============
# Issue https://github.com/sstephenson/sprockets/issues/540
gem 'sprockets', '~> 2.11.0'
gem 'sass-rails'
gem 'uglifier'
gem 'coffee-rails'
gem 'therubyracer', platforms: :ruby
gem 'quiet_assets'
gem 'compass-rails'

# CRUD
# ====
gem 'inherited_resources', '~> 1.5.0' # Dependency on has_scope release candidate
gem 'jbuilder'
gem 'has_scope'
gem 'show_for'
gem 'will_paginate'
gem 'nokogiri'
gem 'holidays'

# I18n
# ====
gem 'i18n_rails_helpers', github: 'huerlisi/i18n_rails_helpers'

# UI
# ==
gem 'simple-navigation'
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'formtastic'
gem 'cocoon'

# Test
# ===
group :test do
# Matchers/Helpers
gem 'shoulda'
end
# WYSIWYG Editor
# ==============
gem 'ckeditor'

group :test, :development do
# Framework
gem 'rspec-rails'
# Model extensions
# =============
gem 'acts-as-taggable-on'

# Fixtures
gem 'factory_girl_rails'
gem 'database_cleaner'
# Search
# ======
gem 'thinking-sphinx'

# Debugger
gem 'pry-rails'
gem 'pry-byebug'
end
# Spellchecking
# =============
gem 'ffi-aspell'

# Development
# PDF reports
# ===========
group :development do
# RDoc
gem 'rdoc'
gem 'prawn_rails'
gem 'prawn'
gem 'prawn-table'

# Deployment
gem 'capistrano', '~> 2.15.5'
gem 'capistrano-rbenv', '~> 1.0'
gem 'capones_recipes'
# Generate excel files
# ====================
gem 'spreadsheet'

gem 'quiet_assets'
# Page fetcher
# ============
gem 'mechanize'

# Code quality
gem 'rubocop', require: false
# Docs
# ====
group :doc do
# Docs
gem 'sdoc', require: false
end

# Standard helpers
# ================
gem 'haml-rails'

gem 'formtastic'
gem 'will_paginate', git: 'https://github.com/huerlisi/will_paginate.git', branch: 'show_always'
gem 'inherited_resources'
gem 'has_scope'
gem 'i18n_rails_helpers', github: 'huerlisi/i18n_rails_helpers'
gem 'simple-navigation'
gem 'nokogiri'
# Katalog
# =======
# Authentication
# Access Control
# ==============
gem 'devise'
gem 'cancancan'

# Authorization
gem 'cancan'
# Deployment
# ==========
gem 'unicorn-rails'

# Tagging
gem 'acts-as-taggable-on'
# Exception Notifier
# ==================
gem 'airbrake'

# Search
gem 'thinking-sphinx'
# Profiling
# =========
gem 'rack-google-analytics'

# Spellchecking
gem 'ffi-aspell'
# Application settings
# ====================
gem 'settingslogic'

# Reports
gem 'prawn_rails'
gem 'prawn'
gem 'prawn-table'
group :development do
# Generators
gem 'haml-rails'

# CRUD helpers
gem 'show_for'
# Debugging
gem 'better_errors'
gem 'binding_of_caller' # Needed by binding_of_caller to enable html console

# WYSIWYG Editor
gem 'ckeditor'

# Change log for model data
gem 'paper_trail'
# Deployment
gem 'capistrano', '~> 3.2.0'
gem 'capistrano-rails'
gem 'capistrano-bundler'
gem 'capistrano-rbenv'
end

gem 'revertible_paper_trail'
group :development, :test do
# (Pre-)loading
gem 'spring'
gem 'spring-commands-rspec'

# Generate excel files
gem 'spreadsheet'
# Testing Framework
gem 'rspec-rails'

# Load html content
gem 'mechanize'
# Matchers/Helpers
gem 'shoulda'

# Date handling
gem 'holidays'
# QA
gem 'simplecov', require: false
gem 'rubocop', require: false

# Monitoring
# ==========
gem 'settingslogic'
group :staging, :production do
# Traffic
gem 'rack-google-analytics'
# Debugger
gem 'pry-rails'
gem 'pry-byebug'

# Exceptions
gem 'airbrake'
# Fixtures
gem 'factory_girl_rails'
gem 'database_cleaner'
end
Loading