Skip to content

Commit

Permalink
Fix rubocop LineLength offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
jhx committed Feb 19, 2014
1 parent 0341ab0 commit 6b63bcb
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 33 deletions.
6 changes: 4 additions & 2 deletions qtip2-jquery-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ Gem::Specification.new do |spec|
spec.version = Qtip2Jquery::Rails::VERSION
spec.authors = ['Doc Walker']
spec.email = ['doc.walker@jameshardie.com']
spec.description = %q{Provides the `qTip2` jQuery plugin packaged for the Rails 3.1+ asset pipeline.}
spec.summary = %q{Provides the `qTip2` jQuery plugin packaged for the Rails 3.1+ asset pipeline.}
spec.description = 'Provides the `qTip2` jQuery plugin packaged for ' \
'the Rails 3.1+ asset pipeline.'
spec.summary = 'Provides the `qTip2` jQuery plugin packaged for ' \
'the Rails 3.1+ asset pipeline.'
spec.homepage = 'https://github.com/jhx/gem-qtip2-jquery-rails'
spec.license = 'MIT'

Expand Down
6 changes: 4 additions & 2 deletions script/rails
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/env ruby
# encoding: utf-8
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
# This command will automatically be run when you run "rails" with Rails 3
# gems installed from the root of your application.

ENGINE_ROOT = File.expand_path('../..', __FILE__)
ENGINE_PATH = File.expand_path('../../lib/qtip2-jquery-rails/engine', __FILE__)
ENGINE_PATH = File.expand_path(
'../../lib/qtip2-jquery-rails/engine', __FILE__)

require 'rails/all'
require 'rails/engine/commands'
3 changes: 2 additions & 1 deletion spec/test_app/Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/usr/bin/env rake
# encoding: utf-8
# 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.
# for example lib/tasks/capistrano.rake, and they will automatically be
# available to Rake.

require File.expand_path('../config/application', __FILE__)

Expand Down
41 changes: 25 additions & 16 deletions spec/test_app/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,32 @@

module TestApp
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Settings in config/environments/* take precedence over those specified
# here. Application configuration should go into files in
# config/initializers -- all .rb files in that directory are
# automatically loaded.

# Custom directories with classes and modules you want to be autoloadable.
# config.autoload_paths += %W(#{config.root}/extras)

# Only load the plugins named here, in the order given (default is alphabetical).
# Only load the plugins named here, in the order given (default is
# alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named.
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]

# Activate observers that should always be running.
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# config.active_record.observers = :cacher, :garbage_collector,
# :forum_observer

# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# Set Time.zone default to the specified zone and make Active Record
# auto-convert to this zone. Run "rake -D time" for a list of tasks for
# finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'

# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# The default locale is :en and all translations from
# config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales',
# '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de

# Configure the default encoding used in templates for Ruby 1.9.
Expand All @@ -45,21 +51,24 @@ class Application < Rails::Application
# Enable escaping HTML in JSON.
config.active_support.escape_html_entities_in_json = true

# Use SQL instead of Active Record's schema dumper when creating the database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
# like if you have constraints or database-specific column types
# Use SQL instead of Active Record's schema dumper when creating the
# database. This is necessary if your schema can't be completely dumped
# by the schema dumper, like if you have constraints or database-specific
# column types
# config.active_record.schema_format = :sql

# Enforce whitelist mode for mass assignment.
# This will create an empty whitelist of attributes available for mass-assignment for all models
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
# parameters by using an attr_accessible or attr_protected declaration.
# This will create an empty whitelist of attributes available for
# mass-assignment for all models in your app. As such, your models will
# need to explicitly whitelist or blacklist accessible parameters by
# using an attr_accessible or attr_protected declaration.
config.active_record.whitelist_attributes = true

# Enable the asset pipeline
config.assets.enabled = true

# Version of your assets, change this if you want to expire all your assets
# Version of your assets, change this if you want to expire all your
# assets
config.assets.version = '1.0'
end
end
8 changes: 5 additions & 3 deletions spec/test_app/config/environments/development.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# encoding: utf-8
TestApp::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Settings specified here will take precedence over those in
# config/application.rb

# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
# every request. This slows down response time but is perfect for
# development since you don't have to restart the web server when you make
# code changes.
config.cache_classes = false

# Log error messages when you accidentally call methods on nil.
Expand Down
3 changes: 2 additions & 1 deletion spec/test_app/config/environments/test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# encoding: utf-8
TestApp::Application.configure do
# Settings specified here will take precedence over those in config/application.rb
# Settings specified here will take precedence over those in
# config/application.rb

# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
Expand Down
4 changes: 3 additions & 1 deletion spec/test_app/config/initializers/secret_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
TestApp::Application.config.secret_token = '413ea75e7437f3cdcc7df55af98226e2b598813d81baf12ce5c2c6054801dc5c106a0a93540f00968898b2f560176f806a9167689c399f639489be4addad53be'
TestApp::Application.config.secret_token = '413ea75e7437f3cdcc7df55af98226e' \
'2b598813d81baf12ce5c2c6054801dc5c106a0a93540f00968898b2f560176f806a91676' \
'89c399f639489be4addad53be'
3 changes: 2 additions & 1 deletion spec/test_app/config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# encoding: utf-8
# Be sure to restart your server when you modify this file.

TestApp::Application.config.session_store :cookie_store, :key => '_test_app_session'
TestApp::Application.config.session_store \
:cookie_store, :key => '_test_app_session'

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
Expand Down
3 changes: 2 additions & 1 deletion spec/test_app/config/initializers/wrap_parameters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# This file contains settings for ActionController::ParamsWrapper which
# is enabled by default.

# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
# Enable parameter wrapping for JSON. You can disable this by setting :format
# to an empty array.
ActiveSupport.on_load(:action_controller) do
wrap_parameters :format => [:json]
end
Expand Down
11 changes: 7 additions & 4 deletions spec/test_app/db/schema.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
# incrementally modify your database, and then regenerate this schema
# definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
# from scratch. The latter is a flawed and unsustainable approach (the more
# migrations you'll amass, the slower it'll run and the greater likelihood
# for issues).
#
# It's strongly recommended to check this file into your version control system.
# It's strongly recommended to check this file into your version control
# system.

ActiveRecord::Schema.define(:version => 0) do

Expand Down
3 changes: 2 additions & 1 deletion spec/test_app/script/rails
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
# encoding: utf-8
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
# This command will automatically be run when you run "rails" with Rails 3
# gems installed from the root of your application.

APP_PATH = File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/boot', __FILE__)
Expand Down

0 comments on commit 6b63bcb

Please sign in to comment.