Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Make rubocop happy and mee too. :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmeyer committed Mar 26, 2014
1 parent 10117d6 commit 43465e1
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions config/rubocop-enabled.yml
Expand Up @@ -100,8 +100,8 @@ SpaceAfterControlKeyword:
SpaceAfterNot:
Enabled: true

SpaceAroundBlockBraces:
Enabled: true
#SpaceAroundBlockBraces:
# Enabled: true

SpaceAroundEqualsInParameterDefault:
Enabled: true
Expand Down
2 changes: 1 addition & 1 deletion features/step_definitions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
Then /then environment contains the following variables/ do
Then(/then environment contains the following variables/) do
$stderr.printf("%20s | %-20s\n", 'key', 'value')
$stderr.printf("%20s+%-20s\n", '-' * 21 , '-' * 21)

Expand Down
2 changes: 1 addition & 1 deletion lib/filegen/data_sources/environment.rb
@@ -1,9 +1,9 @@
# encoding: utf-8
module Filegen
# Data Sources
module DataSources
# Data source which makes environment variables available
class Environment

private

attr_reader :source
Expand Down
2 changes: 1 addition & 1 deletion lib/filegen/data_sources/yaml.rb
@@ -1,9 +1,9 @@
# encoding: utf-8
module Filegen
# Data Sources
module DataSources
# Data source which makes yaml files available
class Yaml

private

attr_reader :source
Expand Down
2 changes: 1 addition & 1 deletion lib/filegen/options.rb
Expand Up @@ -102,7 +102,7 @@ def empty?
end

def exists?
File.exists?(params.template)
File.exist?(params.template)
end

def erb_template?
Expand Down
10 changes: 9 additions & 1 deletion lib/filegen/rubygen.rb
@@ -1,7 +1,15 @@
# encoding: utf-8
module Filegen
# Generator for ruby code
class Rubygen

# Generate text
#
# @param [String] source
# The template used
# @param [Hash] data
# The data used within template evaluation
# @return [String]
# The evaluated template
def run(source, data)
result = StringIO.new
source = StringIO.new(source)
Expand Down
2 changes: 1 addition & 1 deletion lib/filegen/ui.rb
Expand Up @@ -9,7 +9,7 @@ class << self

def formated_logger
logger.formatter = proc { |severity, datetime, _, msg|
sprintf("%s %s: %s\n", datetime, severity, msg)
format("%s %s: %s\n", datetime, severity, msg)
}

logger
Expand Down

0 comments on commit 43465e1

Please sign in to comment.