Browse Source

Applied rubocop cop 'Style/EmptyLines'.

Thorsten Eckel 9 years ago
parent
commit
78aacafe54
2 changed files with 5 additions and 5 deletions
  1. 1 1
      app/helpers/application_helper.rb
  2. 4 4
      lib/tweet.rb

+ 1 - 1
app/helpers/application_helper.rb

@@ -2,7 +2,7 @@
 
 module ApplicationHelper
   def inline_svg(path)
-    File.open("public/assets/images/#{path}", "rb") do |file|
+    File.open("public/assets/images/#{path}", 'rb') do |file|
       raw file.read
     end
   end

+ 4 - 4
lib/tweet.rb

@@ -45,7 +45,7 @@ class Tweet
 
   def to_user(tweet)
 
-    Rails.logger.debug "Create user from tweet..."
+    Rails.logger.debug 'Create user from tweet...'
     Rails.logger.debug tweet.inspect
 
     # do tweet_user lookup
@@ -92,7 +92,7 @@ class Tweet
 
   def to_ticket(tweet, user, group_id)
 
-    Rails.logger.debug "Create ticket from tweet..."
+    Rails.logger.debug 'Create ticket from tweet...'
     Rails.logger.debug tweet.inspect
     Rails.logger.debug user.inspect
     Rails.logger.debug group_id.inspect
@@ -120,7 +120,7 @@ class Tweet
 
   def to_article(tweet, user, ticket)
 
-    Rails.logger.debug "Create article from tweet..."
+    Rails.logger.debug 'Create article from tweet...'
     Rails.logger.debug tweet.inspect
     Rails.logger.debug user.inspect
     Rails.logger.debug ticket.inspect
@@ -207,7 +207,7 @@ class Tweet
       )
     elsif article[:type] == 'twitter status'
 
-      Rails.logger.debug "Create tweet from article..."
+      Rails.logger.debug 'Create tweet from article...'
 
       tweet = @client.update(
         article[:body],