Applied rubocop Style/TrailingBlankLines.

This commit is contained in:
Martin Edenhofer 2015-04-27 16:15:29 +02:00
parent 70e48aab13
commit bd1db72b9b
221 changed files with 212 additions and 223 deletions

View file

@ -933,4 +933,4 @@ curl http://localhost/api/v1/getting_started -v -u #{login}:#{password}
true
end
end
end

View file

@ -125,4 +125,4 @@ class ImportOtrsController < ApplicationController
true
end
end
end

View file

@ -27,4 +27,4 @@ class JobsController < ApplicationController
return if deny_if_not_role(Z_ROLENAME_ADMIN)
model_destory_render(Job, params)
end
end
end

View file

@ -114,4 +114,4 @@ curl http://localhost/api/v1/online_notifications/mark_all_as_read -v -u #{login
render json: {}, status: :ok
end
end
end

View file

@ -193,4 +193,4 @@ Test:
render json: history
end
end
end

View file

@ -52,4 +52,4 @@ curl http://localhost/api/v1/recent_view -v -u #{login}:#{password} -H "Content-
render json: { message: 'ok' }
end
end
end

View file

@ -42,4 +42,4 @@ module ExtraCollection
[collections, assets]
end
module_function :session
end
end

View file

@ -11,4 +11,4 @@ module ExtraCollection
end
module_function :session
end
end

View file

@ -41,4 +41,4 @@ module ExtraCollection
[collections, assets]
end
module_function :session
end
end

View file

@ -279,4 +279,4 @@ class SessionsController < ApplicationController
render json: {}
end
end
end

View file

@ -9,4 +9,4 @@ class TestsController < ApplicationController
render json: result
end
end
end

View file

@ -41,4 +41,4 @@ class TranslationsController < ApplicationController
return if deny_if_not_role(Z_ROLENAME_ADMIN)
model_destory_render(Translation, params)
end
end
end

View file

@ -733,4 +733,4 @@ curl http://localhost/api/v1/users/avatar -v -u #{login}:#{password} -H "Content
return false
end
end
end

View file

@ -118,4 +118,4 @@ return all activity entries of an user
list
end
end
end

View file

@ -1105,4 +1105,4 @@ destory object dependencies, will be executed automatically
def destroy_dependencies
end
end
end

View file

@ -97,4 +97,4 @@ returns
}
end
end
end

View file

@ -91,4 +91,4 @@ class Authorization < ApplicationModel
self.user.cache_delete
end
end
end

View file

@ -371,4 +371,4 @@ returns:
created_by_id: 1,
)
end
end
end

View file

@ -157,4 +157,4 @@ HERE
html
end
end
end

View file

@ -607,4 +607,4 @@ module Mail
end.join('')
end
end
end
end

View file

@ -95,4 +95,4 @@ class Channel::IMAP < Channel::EmailParser
@imap.disconnect()
end
end
end
end

View file

@ -77,4 +77,4 @@ class Channel::POP3 < Channel::EmailParser
end
end
end
end

View file

@ -18,4 +18,4 @@ class Channel::SMTP
}
mail.deliver
end
end
end

View file

@ -7,4 +7,4 @@ class EmailAddress < ApplicationModel
latest_change_support
end
end

View file

@ -9,4 +9,4 @@ class Group < ApplicationModel
activity_stream_support role: Z_ROLENAME_ADMIN
history_support
latest_change_support
end
end

View file

@ -83,4 +83,4 @@ class Job < ApplicationModel
minutes.gsub!(/(\d)\d/, '\\1')
minutes.to_s + '0'
end
end
end

View file

@ -27,4 +27,4 @@ class Locale < ApplicationModel
true
end
end
end

View file

@ -35,4 +35,4 @@ class ObjectLookup < ApplicationModel
lookup.id
end
end
end

View file

@ -232,4 +232,4 @@ returns:
hash
end
end
end

View file

@ -28,4 +28,4 @@ class Observer::Organization::RefObjectTouch < ActiveRecord::Observer
User.find(user_id).touch
}
end
end
end

View file

@ -20,4 +20,4 @@ class Observer::Ticket::Article::CommunicateEmail < ActiveRecord::Observer
# send background job
Delayed::Job.enqueue( Observer::Ticket::Article::CommunicateEmail::BackgroundJob.new( record.id ) )
end
end
end

View file

@ -57,4 +57,4 @@ class Observer::Ticket::Article::CommunicateEmail::BackgroundJob
)
end
end
end
end

View file

@ -170,4 +170,4 @@ class Observer::Ticket::Notification < ActiveRecord::Observer
# puts @a.inspect
# AuditTrail.new(record, "UPDATED")
end
end
end

View file

@ -395,4 +395,4 @@ Changes:<br>
</div>
'
end
end
end

View file

@ -23,4 +23,4 @@ class Observer::Ticket::OnlineNotificationSeen < ActiveRecord::Observer
# set all online notifications to seen
OnlineNotification.seen_by_object( 'Ticket', record.id )
end
end
end

View file

@ -44,4 +44,4 @@ class Observer::Ticket::RefObjectTouch < ActiveRecord::Observer
record.organization.touch
end
end
end
end

View file

@ -48,4 +48,3 @@ class Observer::Ticket::UserTicketCounter < ActiveRecord::Observer
end
end

View file

@ -42,4 +42,4 @@ class Observer::User::RefObjectTouch < ActiveRecord::Observer
end
}
end
end
end

View file

@ -26,4 +26,4 @@ class Observer::User::TicketOrganization < ActiveRecord::Observer
}
end
end
end

View file

@ -187,4 +187,4 @@ returns:
)
end
end
end

View file

@ -16,4 +16,4 @@ class Organization < ApplicationModel
search_index_support
notify_clients_support
latest_change_support
end
end

View file

@ -50,4 +50,4 @@ returns
data
end
end
end

View file

@ -35,4 +35,4 @@ returns
return false
end
end
end

View file

@ -7,4 +7,4 @@ class Overview < ApplicationModel
validates :name, presence: true
validates :prio, presence: true
validates :link, presence: true
end
end

View file

@ -501,4 +501,4 @@ class Package < ApplicationModel
}
end
end
end
end

View file

@ -100,4 +100,4 @@ class RecentView < ApplicationModel
return if !record.respond_to?(:permission)
record.permission( current_user: user )
end
end
end

View file

@ -6,4 +6,4 @@ class Role < ApplicationModel
validates :name, presence: true
activity_stream_support role: Z_ROLENAME_ADMIN
latest_change_support
end
end

View file

@ -4,4 +4,4 @@ class Signature < ApplicationModel
has_many :groups, after_add: :cache_update, after_remove: :cache_update
validates :name, presence: true
latest_change_support
end
end

View file

@ -154,4 +154,4 @@ returns
end
file.provider
end
end
end

View file

@ -87,4 +87,4 @@ class Store::File < ApplicationModel
adapter = self.class.load_adapter("Store::Provider::#{ self.provider }")
adapter.delete( self.sha )
end
end
end

View file

@ -2,4 +2,4 @@
class Store::Object < ApplicationModel
validates :name, presence: true
end
end

View file

@ -22,4 +22,4 @@ class Store::Provider::DB < ApplicationModel
true
end
end
end

View file

@ -81,4 +81,4 @@ class Store::Provider::File
true
end
end
end

View file

@ -4,4 +4,4 @@ class Template < ApplicationModel
store :options
validates :name, presence: true
notify_clients_support
end
end

View file

@ -4,4 +4,4 @@ class TextModule < ApplicationModel
validates :name, presence: true
validates :content, presence: true
notify_clients_support
end
end

View file

@ -242,4 +242,4 @@ returns
OnlineNotification.remove( self.class.to_s, self.id )
end
end
end

View file

@ -47,4 +47,4 @@ class Ticket::Article < ApplicationModel
validates :name, presence: true
latest_change_support
end
end
end

View file

@ -78,4 +78,4 @@ returns
}
end
end
end

View file

@ -56,4 +56,3 @@ returns
adapter
end
end

View file

@ -44,4 +44,4 @@ returns
return false
end
end
end

View file

@ -175,4 +175,4 @@ returns
}
end
end
end

View file

@ -106,4 +106,4 @@ returns
SearchIndexBackend.add(self.class.to_s, attributes)
end
end
end

View file

@ -4,4 +4,4 @@ class Ticket::StateType < ApplicationModel
has_many :states, class_name: 'Ticket::State'
validates :name, presence: true
latest_change_support
end
end

View file

@ -35,4 +35,4 @@ class TypeLookup < ApplicationModel
lookup.id
end
end
end

View file

@ -529,4 +529,4 @@ returns
self.password = "{sha2}#{crypted}"
end
end
end
end

View file

@ -33,4 +33,4 @@ returns
return false
end
end
end

View file

@ -74,4 +74,4 @@ module Zammad
config.api_path = '/api/v1'
end
end
end

View file

@ -41,4 +41,4 @@ Zammad::Application.configure do
# define cache store
config.cache_store = :file_store, 'tmp/cache_file_store_development'
end
end

View file

@ -15,7 +15,7 @@ Zammad::Application.configure do
config.action_controller.perform_caching = true
# Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false
config.serve_static_assets = true
# Compress JavaScripts and CSS
config.assets.compress = true

View file

@ -49,4 +49,4 @@ Zammad::Application.configure do
# define cache store
config.cache_store = :file_store, 'tmp/cache_file_store_test'
end
end

View file

@ -1,4 +1,4 @@
# sync logo to fs / only if settings already exists
if ActiveRecord::Base.connection.tables.include?('settings')
StaticAssets.sync
end
end

View file

@ -3,4 +3,4 @@ Dir["#{Rails.root}/vendor/lib/*"].each {|file|
if File.file?(file)
require file
end
}
}

View file

@ -6,4 +6,3 @@
Z_ROLENAME_ADMIN = 'Admin'
Z_ROLENAME_AGENT = 'Agent'
Z_ROLENAME_CUSTOMER = 'Customer'

View file

@ -19,4 +19,4 @@ Zammad::Application.routes.draw do
end
end
end
end

View file

@ -3,4 +3,4 @@ Zammad::Application.routes.draw do
match api_path + '/activity_stream', to: 'activity_stream#show', via: :get
end
end

View file

@ -17,4 +17,4 @@ Zammad::Application.routes.draw do
match api_path + '/sessions', to: 'sessions#list', via: :get
match api_path + '/sessions/:id', to: 'sessions#delete', via: :delete
end
end

View file

@ -8,4 +8,4 @@ Zammad::Application.routes.draw do
match api_path + '/channels/:id', to: 'channels#update', via: :put
match api_path + '/channels/:id', to: 'channels#destroy', via: :delete
end
end

View file

@ -7,4 +7,4 @@ Zammad::Application.routes.draw do
match api_path + '/email_addresses', to: 'email_addresses#create', via: :post
match api_path + '/email_addresses/:id', to: 'email_addresses#update', via: :put
end
end

View file

@ -9,4 +9,4 @@ Zammad::Application.routes.draw do
match api_path + '/getting_started/email_inbound', to: 'getting_started#email_inbound', via: :post
match api_path + '/getting_started/email_verify', to: 'getting_started#email_verify', via: :post
end
end

View file

@ -7,4 +7,4 @@ Zammad::Application.routes.draw do
match api_path + '/groups', to: 'groups#create', via: :post
match api_path + '/groups/:id', to: 'groups#update', via: :put
end
end

View file

@ -6,4 +6,4 @@ Zammad::Application.routes.draw do
match api_path + '/ical/tickets_new_open/:action_token', to: 'ical_tickets#new_open', via: :get
match api_path + '/ical/tickets_pending/:action_token', to: 'ical_tickets#pending', via: :get
match api_path + '/ical/tickets_escalation/:action_token', to: 'ical_tickets#escalation', via: :get
end
end

View file

@ -6,4 +6,4 @@ Zammad::Application.routes.draw do
match api_path + '/import/otrs/import_start', to: 'import_otrs#import_start', via: :post
match api_path + '/import/otrs/import_status', to: 'import_otrs#import_status', via: :get
end
end

View file

@ -8,4 +8,4 @@ Zammad::Application.routes.draw do
match api_path + '/jobs/:id', to: 'jobs#update', via: :put
match api_path + '/jobs/:id', to: 'jobs#destroy', via: :delete
end
end

View file

@ -6,4 +6,4 @@ Zammad::Application.routes.draw do
match api_path + '/links/add', to: 'links#add', via: :get
match api_path + '/links/remove', to: 'links#remove', via: :get
end
end

View file

@ -5,4 +5,4 @@ Zammad::Application.routes.draw do
match api_path + '/message_send', to: 'long_polling#message_send', via: [ :get, :post ]
match api_path + '/message_receive', to: 'long_polling#message_receive', via: [ :get, :post ]
end
end

View file

@ -8,4 +8,4 @@ Zammad::Application.routes.draw do
match api_path + '/networks/:id', to: 'networks#update', via: :put
match api_path + '/networks/:id', to: 'networks#destroy',via: :delete
end
end

View file

@ -9,4 +9,4 @@ Zammad::Application.routes.draw do
match api_path + '/object_manager_attributes/:id', to: 'object_manager_attributes#update', via: :put
match api_path + '/object_manager_attributes/:id', to: 'object_manager_attributes#destroy', via: :delete
end
end

View file

@ -6,4 +6,4 @@ Zammad::Application.routes.draw do
match api_path + '/online_notifications/:id', to: 'online_notifications#update', via: :put
match api_path + '/online_notifications/mark_all_as_read', to: 'online_notifications#mark_all_as_read', via: :post
end
end

View file

@ -8,4 +8,4 @@ Zammad::Application.routes.draw do
match api_path + '/organizations/:id', to: 'organizations#update', via: :put
match api_path + '/organizations/history/:id',to: 'organizations#history',via: :get
end
end

View file

@ -8,4 +8,4 @@ Zammad::Application.routes.draw do
match api_path + '/overviews/:id', to: 'overviews#update', via: :put
match api_path + '/overviews/:id', to: 'overviews#destroy', via: :delete
end
end

View file

@ -6,4 +6,4 @@ Zammad::Application.routes.draw do
match api_path + '/packages', to: 'packages#install', via: :post
match api_path + '/packages', to: 'packages#uninstall', via: :delete
end
end

View file

@ -8,4 +8,4 @@ Zammad::Application.routes.draw do
match api_path + '/postmaster_filters/:id', to: 'postmaster_filters#update', via: :put
match api_path + '/postmaster_filters/:id', to: 'postmaster_filters#destroy', via: :delete
end
end

View file

@ -3,4 +3,4 @@ Zammad::Application.routes.draw do
match api_path + '/recent_view', to: 'recent_view#index', via: :get
match api_path + '/recent_view', to: 'recent_view#create', via: :post
end
end

View file

@ -7,4 +7,4 @@ Zammad::Application.routes.draw do
match api_path + '/roles', to: 'roles#create', via: :post
match api_path + '/roles/:id', to: 'roles#update', via: :put
end
end

View file

@ -4,4 +4,4 @@ Zammad::Application.routes.draw do
# rss
match api_path + '/rss_fetch', to: 'rss#fetch', via: :get
end
end

View file

@ -7,4 +7,4 @@ Zammad::Application.routes.draw do
# search_user_org
match api_path + '/search_user_org', to: 'search#search_user_org', via: [:get, :post]
end
end

View file

@ -8,4 +8,4 @@ Zammad::Application.routes.draw do
match api_path + '/settings/:id', to: 'settings#update', via: :put
match api_path + '/settings/:id', to: 'settings#destroy', via: :delete
end
end

View file

@ -8,4 +8,4 @@ Zammad::Application.routes.draw do
match api_path + '/signatures/:id', to: 'signatures#update', via: :put
match api_path + '/signatures/:id', to: 'signatures#destroy', via: :delete
end
end

View file

@ -8,4 +8,4 @@ Zammad::Application.routes.draw do
match api_path + '/slas/:id', to: 'slas#update', via: :put
match api_path + '/slas/:id', to: 'slas#destroy', via: :delete
end
end

View file

@ -6,4 +6,4 @@ Zammad::Application.routes.draw do
match api_path + '/tags/add', to: 'tags#add', via: :get
match api_path + '/tags/remove', to: 'tags#remove', via: :get
end
end

Some files were not shown because too many files have changed in this diff Show more