Skip to content

Commit

Permalink
Auto corrected by following EmptyLine
Browse files Browse the repository at this point in the history
  • Loading branch information
Awesome Code committed Aug 20, 2017
1 parent 2674705 commit b4a9ff7
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion Rakefile
Expand Up @@ -34,7 +34,6 @@ RSpec::Core::RakeTask.new('spec:progress') do |spec|
spec.pattern = 'spec/**/*_spec.rb'
end


begin
require 'rdoc/task'

Expand Down
1 change: 1 addition & 0 deletions lib/bullet.rb
Expand Up @@ -211,6 +211,7 @@ def profile
end

private

def for_each_active_notifier_with_notification
UniformNotifier.active_notifiers.each do |notifier|
notification_collector.collection.each do |notification|
Expand Down
1 change: 1 addition & 0 deletions lib/bullet/detector/association.rb
Expand Up @@ -37,6 +37,7 @@ def impossible_objects
end

private

# object_associations keep the object relationships
# that the object has many associations.
# e.g. { "Post:1" => [:comments] }
Expand Down
1 change: 1 addition & 0 deletions lib/bullet/detector/counter_cache.rb
Expand Up @@ -45,6 +45,7 @@ def impossible_objects
end

private

def create_notification(klazz, associations)
notify_associations = Array(associations) - Bullet.get_whitelist_associations(:counter_cache, klazz)

Expand Down
1 change: 1 addition & 0 deletions lib/bullet/detector/n_plus_one_query.rb
Expand Up @@ -81,6 +81,7 @@ def association?(object, associations)
end

private

def create_notification(callers, klazz, associations)
notify_associations = Array(associations) - Bullet.get_whitelist_associations(:n_plus_one_query, klazz)

Expand Down
1 change: 1 addition & 0 deletions lib/bullet/detector/unused_eager_loading.rb
Expand Up @@ -56,6 +56,7 @@ def add_eager_loadings(objects, associations)
end

private

def create_notification(callers, klazz, associations)
notify_associations = Array(associations) - Bullet.get_whitelist_associations(:unused_eager_loading, klazz)

Expand Down
1 change: 1 addition & 0 deletions lib/bullet/notification/base.rb
Expand Up @@ -65,6 +65,7 @@ def hash
end

protected

def klazz_associations_str
" #{@base_class} => [#{@associations.map(&:inspect).join(', '.freeze)}]"
end
Expand Down
1 change: 1 addition & 0 deletions lib/bullet/notification/n_plus_one_query.rb
Expand Up @@ -22,6 +22,7 @@ def notification_data
end

protected

def call_stack_messages
(['Call stack'] + @callers).join( "\n " )
end
Expand Down
1 change: 1 addition & 0 deletions lib/bullet/notification/unused_eager_loading.rb
Expand Up @@ -22,6 +22,7 @@ def notification_data
end

protected

def call_stack_messages
(['Call stack'] + @callers).join( "\n " )
end
Expand Down
2 changes: 0 additions & 2 deletions perf/benchmark.rb
Expand Up @@ -76,7 +76,6 @@ class User < ActiveRecord::Base

puts 'Start benchmarking...'


Bullet.enable = true

Benchmark.bm(70) do |bm|
Expand All @@ -98,7 +97,6 @@ class User < ActiveRecord::Base

puts 'End benchmarking...'


# Run benchmark with bundler
#
# bundle exec ruby perf/benchmark.rb
Expand Down
1 change: 0 additions & 1 deletion spec/bullet/notification/base_spec.rb
Expand Up @@ -50,7 +50,6 @@ def temp_env_variable(name, value)
ensure
ENV[name] = old_value
end

end

context '#body_with_caller' do
Expand Down
1 change: 0 additions & 1 deletion spec/bullet_spec.rb
Expand Up @@ -4,7 +4,6 @@
subject { Bullet }

describe '#enable' do

context 'enable Bullet' do
before do
# Bullet.enable
Expand Down
1 change: 1 addition & 0 deletions spec/support/rack_double.rb
Expand Up @@ -23,6 +23,7 @@ def response= response
end

private

def status
@status || 200
end
Expand Down
1 change: 0 additions & 1 deletion spec/support/sqlite_seed.rb
Expand Up @@ -9,7 +9,6 @@ def seed_db
user1 = BaseUser.create(:name => 'third', :newspaper => newspaper1)
user2 = BaseUser.create(:name => 'fourth', :newspaper => newspaper2)


category1 = Category.create(:name => 'first')
category2 = Category.create(:name => 'second')

Expand Down

0 comments on commit b4a9ff7

Please sign in to comment.