Skip to content

Commit 961f19f

Browse files
committed
Fix rubocop LineLength offenses
1 parent 540e682 commit 961f19f

File tree

11 files changed

+58
-33
lines changed

11 files changed

+58
-33
lines changed

logger-jquery-rails.gemspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ Gem::Specification.new do |spec|
88
spec.version = LoggerJquery::Rails::VERSION
99
spec.authors = ['Doc Walker']
1010
spec.email = ['doc.walker@jameshardie.com']
11-
spec.description = %q{Provides the `logger` jQuery plugin packaged for the Rails 3.1+ asset pipeline.}
12-
spec.summary = %q{Provides the `logger` jQuery plugin packaged for the Rails 3.1+ asset pipeline.}
11+
spec.description = 'Provides the `logger` jQuery plugin packaged for ' \
12+
'the Rails 3.1+ asset pipeline.'
13+
spec.summary = 'Provides the `logger` jQuery plugin packaged for ' \
14+
'the Rails 3.1+ asset pipeline.'
1315
spec.homepage = 'https://github.com/jhx/gem-logger-jquery-rails'
1416
spec.license = 'MIT'
1517

script/rails

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

56
ENGINE_ROOT = File.expand_path('../..', __FILE__)
6-
ENGINE_PATH = File.expand_path('../../lib/logger-jquery-rails/engine', __FILE__)
7+
ENGINE_PATH = File.expand_path(
8+
'../../lib/logger-jquery-rails/engine', __FILE__)
79

810
require 'rails/all'
911
require 'rails/engine/commands'

spec/test_app/Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env rake
22
# encoding: utf-8
33
# Add your own tasks in files placed in lib/tasks ending in .rake,
4-
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4+
# for example lib/tasks/capistrano.rake, and they will automatically be
5+
# available to Rake.
56

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

spec/test_app/config/application.rb

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,32 @@
1414

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

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

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

2830
# Activate observers that should always be running.
29-
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
31+
# config.active_record.observers = :cacher, :garbage_collector,
32+
# :forum_observer
3033

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

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

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

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

5360
# Enforce whitelist mode for mass assignment.
54-
# This will create an empty whitelist of attributes available for mass-assignment for all models
55-
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
56-
# parameters by using an attr_accessible or attr_protected declaration.
61+
# This will create an empty whitelist of attributes available for
62+
# mass-assignment for all models in your app. As such, your models will
63+
# need to explicitly whitelist or blacklist accessible parameters by
64+
# using an attr_accessible or attr_protected declaration.
5765
config.active_record.whitelist_attributes = true
5866

5967
# Enable the asset pipeline
6068
config.assets.enabled = true
6169

62-
# Version of your assets, change this if you want to expire all your assets
70+
# Version of your assets, change this if you want to expire all your
71+
# assets
6372
config.assets.version = '1.0'
6473
end
6574
end

spec/test_app/config/environments/development.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# encoding: utf-8
22
TestApp::Application.configure do
3-
# Settings specified here will take precedence over those in config/application.rb
3+
# Settings specified here will take precedence over those in
4+
# config/application.rb
45

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

1012
# Log error messages when you accidentally call methods on nil.

spec/test_app/config/environments/test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# encoding: utf-8
22
TestApp::Application.configure do
3-
# Settings specified here will take precedence over those in config/application.rb
3+
# Settings specified here will take precedence over those in
4+
# config/application.rb
45

56
# The test environment is used exclusively to run your application's
67
# test suite. You never need to work with it otherwise. Remember that

spec/test_app/config/initializers/secret_token.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@
55
# If you change this key, all old signed cookies will become invalid!
66
# Make sure the secret is at least 30 characters and all random,
77
# no regular words or you'll be exposed to dictionary attacks.
8-
TestApp::Application.config.secret_token = 'a85465074b371cfc6789df48a7d6a8f36fd29dbc3c77739f6a9ae0364cf9ec936872a45be8eb2e9a70d66e0201da1b99d374a0a057c3569e76094cbed014759f'
8+
TestApp::Application.config.secret_token = 'a85465074b371cfc6789df48a7d6a8f' \
9+
'36fd29dbc3c77739f6a9ae0364cf9ec936872a45be8eb2e9a70d66e0201da1b99d374a0a' \
10+
'057c3569e76094cbed014759f'

spec/test_app/config/initializers/session_store.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# encoding: utf-8
22
# Be sure to restart your server when you modify this file.
33

4-
TestApp::Application.config.session_store :cookie_store, :key => '_test_app_session'
4+
TestApp::Application.config.session_store \
5+
:cookie_store, :key => '_test_app_session'
56

67
# Use the database for sessions instead of the cookie-based default,
78
# which shouldn't be used to store highly confidential information

spec/test_app/config/initializers/wrap_parameters.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# This file contains settings for ActionController::ParamsWrapper which
55
# is enabled by default.
66

7-
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7+
# Enable parameter wrapping for JSON. You can disable this by setting :format
8+
# to an empty array.
89
ActiveSupport.on_load(:action_controller) do
910
wrap_parameters :format => [:json]
1011
end

spec/test_app/db/schema.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# encoding: UTF-8
22
# This file is auto-generated from the current state of the database. Instead
33
# of editing this file, please use the migrations feature of Active Record to
4-
# incrementally modify your database, and then regenerate this schema definition.
4+
# incrementally modify your database, and then regenerate this schema
5+
# definition.
56
#
67
# Note that this schema.rb definition is the authoritative source for your
78
# database schema. If you need to create the application database on another
89
# system, you should be using db:schema:load, not running all the migrations
9-
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
10-
# you'll amass, the slower it'll run and the greater likelihood for issues).
10+
# from scratch. The latter is a flawed and unsustainable approach (the more
11+
# migrations you'll amass, the slower it'll run and the greater likelihood
12+
# for issues).
1113
#
12-
# It's strongly recommended to check this file into your version control system.
14+
# It's strongly recommended to check this file into your version control
15+
# system.
1316

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

spec/test_app/script/rails

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env ruby
22
# encoding: utf-8
3-
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3+
# This command will automatically be run when you run "rails" with Rails 3
4+
# gems installed from the root of your application.
45

56
APP_PATH = File.expand_path('../../config/application', __FILE__)
67
require File.expand_path('../../config/boot', __FILE__)

0 commit comments

Comments
 (0)