Skip to content

Commit

Permalink
chore: remove coding
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarinEA committed Oct 1, 2019
1 parent d4c0e25 commit 40f04f7
Show file tree
Hide file tree
Showing 53 changed files with 0 additions and 90 deletions.
2 changes: 0 additions & 2 deletions app/jobs/treasury/delayed_increment_job.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
class DelayedIncrementJob
include Resque::Integration
Expand Down
1 change: 0 additions & 1 deletion app/mailers/treasury/bg_executor_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
module Treasury
class BgExecutorMailer < ActionMailer::Base
default from: DO_NOT_REPLY,
Expand Down
1 change: 0 additions & 1 deletion app/models/treasury/models/events_log.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
module Treasury
module Models
class EventsLog < ActiveRecord::Base
Expand Down
1 change: 0 additions & 1 deletion app/models/treasury/models/field.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
module Treasury
module Models
class Field < ActiveRecord::Base
Expand Down
1 change: 0 additions & 1 deletion app/models/treasury/models/processor.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
module Treasury
module Models
class Processor < ActiveRecord::Base
Expand Down
1 change: 0 additions & 1 deletion app/models/treasury/models/queue.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
module Treasury
module Models
class Queue < ActiveRecord::Base
Expand Down
1 change: 0 additions & 1 deletion app/models/treasury/models/supervisor_status.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
module Treasury
module Models
class SupervisorStatus < ActiveRecord::Base
Expand Down
1 change: 0 additions & 1 deletion app/models/treasury/models/worker.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
module Treasury
module Models
class Worker < ActiveRecord::Base
Expand Down
1 change: 0 additions & 1 deletion db/migrate/20120313104136_create_schema.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
class CreateSchema < ActiveRecord::Migration
def up
ActiveRecord::Base.connection.execute "DROP SCHEMA IF EXISTS DENORMALIZATION CASCADE;"
Expand Down
1 change: 0 additions & 1 deletion lib/tasks/events_logger.rake
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
namespace :denormalization do
namespace :events_logger do
desc 'Перенос накопленных, за сутки, данных из Redis в БД'
Expand Down
2 changes: 0 additions & 2 deletions lib/tasks/pgq.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

namespace :pgq do
desc "Перезалить схему pgq"
task recreate_schema: :environment do
Expand Down
2 changes: 0 additions & 2 deletions lib/tasks/treasury.rake
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

namespace :treasury do
task stop: :environment do
Treasury::Controller.stop
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

require 'active_support'

require 'treasury/version'
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/bg_executor/daemon.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module BgExecutor
class Daemon
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/bg_executor/errors.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module BgExecutor
class Error < StandardError; end
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/bg_executor/executor.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module BgExecutor
class Executor
Expand Down
1 change: 0 additions & 1 deletion lib/treasury/bg_executor/job.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
require 'digest/sha2'

module Treasury
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/bg_executor/redis.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module BgExecutor
# Redis backend
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
class Controller
SUPERVISOR_TERMINATE_TIMEOUT = 10 # seconds
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/engine.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

require 'rails'

module Treasury
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/fields/delayed.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Fields
module Delayed
Expand Down
1 change: 0 additions & 1 deletion lib/treasury/fields/errors.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
module Treasury
module Fields
module Errors
Expand Down
1 change: 0 additions & 1 deletion lib/treasury/fields/no_require_initialization.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
module Treasury
module Fields
# поле не требующее инициализации
Expand Down
1 change: 0 additions & 1 deletion lib/treasury/logging.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
require 'class_logger'

module Treasury
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/pgq/consumer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Pgq
class Consumer
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/pgq/errors.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Pgq
module Errors
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/pgq/event.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Pgq
class Event
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/pgq/snapshot.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Pgq
class Snapshot
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/processors/base.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Processors
class Base < Treasury::Pgq::Consumer
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/processors/company/base.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Processors
module Company
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/processors/delayed.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Processors
module Delayed
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/processors/errors.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Processors
module Errors
Expand Down
1 change: 0 additions & 1 deletion lib/treasury/processors/product.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
module Treasury
module Processors
module Product
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/processors/single.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Processors
module Single
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/processors/translator.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Processors
# процессор - транслятор данных
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/processors/user/base.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Processors
module User
Expand Down
1 change: 0 additions & 1 deletion lib/treasury/services/events_logger.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
require 'class_logger'

module Treasury
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/session.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Session
extend ActiveSupport::Concern
Expand Down
1 change: 0 additions & 1 deletion lib/treasury/storage/base.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
require 'callbacks_rb'

module Treasury
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/storage/postgre_sql/base.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Storage
module PostgreSQL
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/storage/postgre_sql/db.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Storage
module PostgreSQL
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/storage/postgre_sql/pgq_producer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Storage
module PostgreSQL
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/storage/redis/base.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Storage
module Redis
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/storage/redis/multi.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Storage
module Redis
Expand Down
2 changes: 0 additions & 2 deletions lib/treasury/utils.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module Treasury
module Utils
extend ActiveSupport::Concern
Expand Down
2 changes: 0 additions & 2 deletions spec/factories/field.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

FactoryGirl.define do
factory 'denormalization/field', class: 'Treasury::Models::Field' do
sequence(:title) { |n| "title#{n}" }
Expand Down
2 changes: 0 additions & 2 deletions spec/factories/processor.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

FactoryGirl.define do
factory 'denormalization/processor', class: 'Treasury::Models::Processor' do
association :queue, factory: 'denormalization/queue'
Expand Down
2 changes: 0 additions & 2 deletions spec/factories/queue.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

FactoryGirl.define do
factory 'denormalization/queue', class: 'Treasury::Models::Queue' do
sequence(:name) { |n| "name#{n}" }
Expand Down
2 changes: 0 additions & 2 deletions spec/lib/treasury/fields/base_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

module FieldCallback
extend ActiveSupport::Concern

Expand Down
2 changes: 0 additions & 2 deletions spec/lib/treasury/processors/hash_operations_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

describe ::Treasury::Processors::HashOperations do
let(:dummy_class) do
Class.new do
Expand Down
2 changes: 0 additions & 2 deletions spec/lib/treasury/storage/pgq_producer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

class ProcessorClass
end

Expand Down
2 changes: 0 additions & 2 deletions spec/models/field_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

describe Treasury::Models::Field, type: :model do
context 'when check db structure' do
it { is_expected.to have_db_column(:title).of_type(:string).with_options(limit: 128, null: false) }
Expand Down
2 changes: 0 additions & 2 deletions spec/models/queue_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# coding: utf-8

describe Treasury::Models::Queue, type: :model do
context 'when check db structure' do
it { is_expected.to have_db_column(:name).of_type(:string).with_options(limit: 128, null: false) }
Expand Down

0 comments on commit 40f04f7

Please sign in to comment.