From 4ca036ecc9dc07006f13a6a3c5bc59879b86820a Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 30 Apr 2015 19:46:06 +0200 Subject: [PATCH] Corrected with rubocop cop 'Style/TrailingWhitespace'. --- config/initializers/omniauth.rb | 2 +- db/migrate/20120101000070_create_channel.rb | 2 +- db/migrate/20130815000002_update_ticket_number.rb | 4 ++-- db/seeds.rb | 2 +- lib/auth/ldap.rb | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index d4279d7b7..e14de3c8a 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -1,6 +1,6 @@ Rails.application.config.middleware.use OmniAuth::Builder do - # twitter database connect + # twitter database connect provider :twitter_database, 'not_change_will_be_set_by_databse', 'not_change_will_be_set_by_databse', client_options: { authorize_path: '/oauth/authorize', site: 'https://api.twitter.com' } diff --git a/db/migrate/20120101000070_create_channel.rb b/db/migrate/20120101000070_create_channel.rb index a5c080437..6ffb0bd94 100644 --- a/db/migrate/20120101000070_create_channel.rb +++ b/db/migrate/20120101000070_create_channel.rb @@ -1,6 +1,6 @@ class CreateChannel < ActiveRecord::Migration def up - + create_table :channels do |t| t.references :group, null: true t.column :adapter, :string, limit: 100, null: false diff --git a/db/migrate/20130815000002_update_ticket_number.rb b/db/migrate/20130815000002_update_ticket_number.rb index 43616ef4f..e2664adb8 100644 --- a/db/migrate/20130815000002_update_ticket_number.rb +++ b/db/migrate/20130815000002_update_ticket_number.rb @@ -8,14 +8,14 @@ class UpdateTicketNumber < ActiveRecord::Migration number, the SystemID and the counter are used with SystemID.Counter format (e.g. 1010138, 1010139). With "Date" the ticket numbers will be generated by the current date, the SystemID and the counter. The format looks like Year.Month.Day.SystemID.counter (e.g. 201206231010138, 201206231010139). - With param "Checksum => true" the counter will be appended as checksum to the string. The format + With param "Checksum => true" the counter will be appended as checksum to the string. The format looks like SystemID.Counter.CheckSum (e. g. 10101384, 10101392) or Year.Month.Day.SystemID.Counter.CheckSum (e.g. 2012070110101520, 2012070110101535).', options: { form: [ { display: '', null: true, - name: 'ticket_number', + name: 'ticket_number', tag: 'select', options: { 'Ticket::Number::Increment' => 'Increment (SystemID.Counter)', diff --git a/db/seeds.rb b/db/seeds.rb index 806e074ac..f2de5a4f2 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -768,7 +768,7 @@ Setting.create_if_not_exists( number, the SystemID and the counter are used with SystemID.Counter format (e.g. 1010138, 1010139). With "Date" the ticket numbers will be generated by the current date, the SystemID and the counter. The format looks like Year.Month.Day.SystemID.counter (e.g. 201206231010138, 201206231010139). - With param "Checksum => true" the counter will be appended as checksum to the string. The format + With param "Checksum => true" the counter will be appended as checksum to the string. The format looks like SystemID.Counter.CheckSum (e. g. 10101384, 10101392) or Year.Month.Day.SystemID.Counter.CheckSum (e.g. 2012070110101520, 2012070110101535).', options: { form: [ diff --git a/lib/auth/ldap.rb b/lib/auth/ldap.rb index 3e5ed005b..2994f65c8 100644 --- a/lib/auth/ldap.rb +++ b/lib/auth/ldap.rb @@ -76,7 +76,7 @@ module Auth::Ldap else user.update_attributes( user_attributes ) puts "NOTICE: user updated '#{user.login}'" - end + end end # return if it was not possible to create user