Merge pull request #90 from openSUSE/review_140430_style_cleanup
[Review] Request from 'KalabiYau' @ 'openSUSE/osem/review_140430_style_cleanup'
This commit is contained in:
commit
adfa9cc871
5 changed files with 21 additions and 15 deletions
22
Gemfile
22
Gemfile
|
|
@ -19,16 +19,16 @@ gem 'devise'
|
||||||
gem 'cancan'
|
gem 'cancan'
|
||||||
|
|
||||||
# Use transitions as state machine
|
# Use transitions as state machine
|
||||||
gem 'transitions', :require => ["transitions", "active_record/transitions"]
|
gem 'transitions', :require => %w( transitions active_record/transitions )
|
||||||
|
|
||||||
# Use acts_as_commentable_with_threading for comments
|
# Use acts_as_commentable_with_threading for comments
|
||||||
gem 'acts_as_commentable_with_threading'
|
gem 'acts_as_commentable_with_threading'
|
||||||
|
|
||||||
# Use haml as templating language
|
# Use haml as templating language
|
||||||
gem "haml-rails"
|
gem 'haml-rails'
|
||||||
|
|
||||||
# Use SCSS for stylesheets
|
# Use SCSS for stylesheets
|
||||||
gem "sass-rails", ">= 4.0.2"
|
gem 'sass-rails', '>= 4.0.2'
|
||||||
|
|
||||||
# Use Uglifier as compressor for JavaScript assets
|
# Use Uglifier as compressor for JavaScript assets
|
||||||
gem 'uglifier', '>= 1.3.0'
|
gem 'uglifier', '>= 1.3.0'
|
||||||
|
|
@ -52,7 +52,6 @@ gem 'gravtastic'
|
||||||
gem 'paperclip'
|
gem 'paperclip'
|
||||||
|
|
||||||
# Use prawn as PDF generator
|
# Use prawn as PDF generator
|
||||||
gem 'prawn'
|
|
||||||
gem 'prawn_rails'
|
gem 'prawn_rails'
|
||||||
|
|
||||||
# Use axlsx_rails to render XLS spreadsheets
|
# Use axlsx_rails to render XLS spreadsheets
|
||||||
|
|
@ -64,7 +63,7 @@ gem 'd3_rails'
|
||||||
# We use coveralls for measuring test coverage
|
# We use coveralls for measuring test coverage
|
||||||
gem 'coveralls', require: false
|
gem 'coveralls', require: false
|
||||||
# Use a self-hosted errbit with the old notifier
|
# Use a self-hosted errbit with the old notifier
|
||||||
gem 'hoptoad_notifier', "~> 2.3"
|
gem 'hoptoad_notifier', '~> 2.3'
|
||||||
|
|
||||||
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
||||||
gem 'turbolinks'
|
gem 'turbolinks'
|
||||||
|
|
@ -72,12 +71,6 @@ gem 'turbolinks'
|
||||||
# Use active_model_serializers for JSON serializatioin our API
|
# Use active_model_serializers for JSON serializatioin our API
|
||||||
gem 'active_model_serializers'
|
gem 'active_model_serializers'
|
||||||
|
|
||||||
# Use sqlite3 as the database in development
|
|
||||||
gem 'sqlite3', group: [:development]
|
|
||||||
|
|
||||||
# Use letter_opener to open mails in development
|
|
||||||
gem 'letter_opener', group: [:development]
|
|
||||||
|
|
||||||
# Use rspec and capybara as testing framework
|
# Use rspec and capybara as testing framework
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'rspec', '>= 3.0.0.beta'
|
gem 'rspec', '>= 3.0.0.beta'
|
||||||
|
|
@ -96,6 +89,13 @@ gem 'factory_girl_rails'
|
||||||
|
|
||||||
# Use guard and spring for testing in development
|
# Use guard and spring for testing in development
|
||||||
group :development do
|
group :development do
|
||||||
|
# rspec Guard rules
|
||||||
gem 'guard-rspec', '~> 4.2.8'
|
gem 'guard-rspec', '~> 4.2.8'
|
||||||
gem 'spring-commands-rspec'
|
gem 'spring-commands-rspec'
|
||||||
|
# Silence rack assests messages
|
||||||
|
gem 'quiet_assets'
|
||||||
|
# Use sqlite3 as the database in development
|
||||||
|
gem 'sqlite3'
|
||||||
|
# Use letter_opener to open mails in development
|
||||||
|
gem 'letter_opener'
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -182,6 +182,8 @@ GEM
|
||||||
coderay (~> 1.0)
|
coderay (~> 1.0)
|
||||||
method_source (~> 0.8)
|
method_source (~> 0.8)
|
||||||
slop (~> 3.4)
|
slop (~> 3.4)
|
||||||
|
quiet_assets (1.0.2)
|
||||||
|
railties (>= 3.1, < 5.0)
|
||||||
rack (1.5.2)
|
rack (1.5.2)
|
||||||
rack-test (0.6.2)
|
rack-test (0.6.2)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
|
|
@ -318,9 +320,9 @@ DEPENDENCIES
|
||||||
mysql2
|
mysql2
|
||||||
paper_trail
|
paper_trail
|
||||||
paperclip
|
paperclip
|
||||||
prawn
|
|
||||||
prawn_rails
|
prawn_rails
|
||||||
protected_attributes
|
protected_attributes
|
||||||
|
quiet_assets
|
||||||
rails (~> 4.1)
|
rails (~> 4.1)
|
||||||
rails-observers
|
rails-observers
|
||||||
rdoc-generator-fivefish
|
rdoc-generator-fivefish
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,6 @@ class Admin::EventtypesController < ApplicationController
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
redirect_to(admin_conference_eventtypes_path(
|
redirect_to(admin_conference_eventtypes_path(
|
||||||
conference_id: @conference.short_title),
|
conference_id: @conference.short_title),
|
||||||
alert: 'Event types update failed: #{e.message}')
|
alert: "Event types update failed: #{e.message}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,6 @@
|
||||||
.col-md-3
|
.col-md-3
|
||||||
= render 'admin/conference/sidebar'
|
= render 'admin/conference/sidebar'
|
||||||
.col-md-9
|
.col-md-9
|
||||||
= semantic_form_for(@conference, :url => admin_conference_eventtype_path(@conference.short_title, @conference.event_types)) do |f|
|
= semantic_form_for(@conference, url: admin_conference_eventtypes_path) do |f|
|
||||||
= dynamic_association :event_types, "Event Types", f
|
= dynamic_association :event_types, "Event Types", f
|
||||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,11 @@ Osem::Application.routes.draw do
|
||||||
resources :difficulty_levels, only: [:show, :update, :index]
|
resources :difficulty_levels, only: [:show, :update, :index]
|
||||||
resources :rooms, only: [:show, :update, :index]
|
resources :rooms, only: [:show, :update, :index]
|
||||||
resources :tracks, only: [:show, :update, :index]
|
resources :tracks, only: [:show, :update, :index]
|
||||||
resources :eventtypes, only: [:show, :update, :index]
|
resources :eventtypes, only: [:show, :index] do
|
||||||
|
collection do
|
||||||
|
patch :update
|
||||||
|
end
|
||||||
|
end
|
||||||
resources :social_events, only: [:show, :update, :index]
|
resources :social_events, only: [:show, :update, :index]
|
||||||
resources :supporter_levels, only: [:show, :update, :index]
|
resources :supporter_levels, only: [:show, :update, :index]
|
||||||
resources :emails, only: [:show, :update, :index]
|
resources :emails, only: [:show, :update, :index]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue