Permalink
Browse files

Fix whitespace

  • Loading branch information...
1 parent d06bcf6 commit 12fae03e38104e7d1d64f36ee32d99e295f785a3 @dkubb dkubb committed Mar 18, 2013
View
@@ -3,8 +3,8 @@ AbcMetricMethodCheck: { score: 70 }
AssignmentInConditionalCheck: { }
CaseMissingElseCheck: { }
ClassLineCountCheck: { line_count: 325 }
-ClassNameCheck:
- pattern: !ruby/regexp /\A(?:[A-Z]+|[A-Z][a-z](?:[A-Z]?[a-z])+)\z/
+ClassNameCheck:
+ pattern: !ruby/regexp /\A(?:[A-Z]+|[A-Z][a-z](?:[A-Z]?[a-z])+)\z/
ClassVariableCheck: { }
CyclomaticComplexityBlockCheck: { complexity: 4 }
CyclomaticComplexityMethodCheck: { complexity: 4 }
@@ -14,7 +14,7 @@ MethodLineCountCheck: { line_count: 16 }
MethodNameCheck:
pattern: !ruby/regexp /\A(?:[a-z\d](?:_?[a-z\d])+[?!=]?|\[\]=?|==|<=>|<<|[+*&|-])\z/
ModuleLineCountCheck: { line_count: 331 }
-ModuleNameCheck:
+ModuleNameCheck:
pattern: !ruby/regexp /\A(?:[A-Z]+|[A-Z][a-z](?:[A-Z]?[a-z])+)\z/
# TODO: decrease parameter_count to 2 or less
ParameterNumberCheck: { parameter_count: 3 }
View
@@ -26,7 +26,7 @@ LongParameterList:
enabled: true
overrides: {}
FeatureEnvy:
- exclude:
+ exclude:
- Inflecto::Inflections#irregular
enabled: true
ClassVariable:
@@ -52,12 +52,12 @@ NestedIterators:
max_allowed_nesting: 2
LongMethod:
max_statements: 8
- exclude:
+ exclude:
- Inflecto::Inflections#irregular
enabled: true
Duplication:
allow_calls: []
- exclude:
+ exclude:
- Inflecto::Inflections#irregular
enabled: true
max_calls: 2
@@ -81,7 +81,7 @@ SimulatedPolymorphism:
enabled: true
max_ifs: 2
DataClump:
- exclude:
+ exclude:
- [replacement, rule]
enabled: true
max_copies: 2
View
@@ -7,7 +7,7 @@ Gem::Specification.new do |gem|
gem.email = ['mbj@seonic.net']
gem.description = 'Inflector for strings'
gem.summary = gem.description
- gem.homepage = 'https://github.com/mbj/inflecto'
+ gem.homepage = 'https://github.com/mbj/inflecto'
gem.require_paths = %w[lib]
gem.files = `git ls-files`.split($/)
View
@@ -19,14 +19,14 @@ module Inflecto
# Inflecto.camelize("data_mapper/errors") # => "DataMApper::Errors"
#
# @return [String]
- #
+ #
# @api public
#
def self.camelize(input)
input.to_s.gsub(/\/(.?)/) { "::#{$1.upcase}" }.gsub(/(?:^|_)(.)/) { $1.upcase }
end
- # Convert input to underscored, lowercase string
+ # Convert input to underscored, lowercase string
#
# Changes '::' to '/' to convert namespaces to paths.
#
@@ -50,7 +50,7 @@ def self.underscore(input)
word
end
- # Convert input underscores to dashes
+ # Convert input underscores to dashes
#
# @param [String] input
#
@@ -82,7 +82,7 @@ def self.demodulize(input)
input.to_s.gsub(/^.*::/, '')
end
- # Creates a foreign key name
+ # Creates a foreign key name
#
# @param [String] input
#
@@ -98,7 +98,7 @@ def self.foreign_key(input)
"#{underscore(demodulize(input))}_id"
end
- EXTRA_CONST_ARGS = (RUBY_VERSION < '1.9' ? [] : [ false ]).freeze
+ EXTRA_CONST_ARGS = (RUBY_VERSION < '1.9' ? [] : [ false ]).freeze
# Find a constant with the name specified in the argument string
#
@@ -128,7 +128,7 @@ def self.constantize(input)
end
end
- # Convert a number into an ordinal string
+ # Convert a number into an ordinal string
#
# @param [Fixnum] number
#
@@ -156,7 +156,7 @@ def self.ordinalize(number)
end
end
- # Yields a singleton instance of Inflecto::Inflections
+ # Yields a singleton instance of Inflecto::Inflections
#
# @example
#
@@ -176,7 +176,7 @@ def self.inflections
end
end
- # Convert input word string to plural
+ # Convert input word string to plural
#
# @param [String] word
#
@@ -234,7 +234,7 @@ def self.singularize(word)
#
# @param [String] input
#
- # capitalizes the first word and turns underscores into spaces and strips a # trailing "_id", if any.
+ # capitalizes the first word and turns underscores into spaces and strips a # trailing "_id", if any.
# Like +titleize+, this is meant for creating pretty output.
#
# @example
@@ -254,11 +254,11 @@ def self.humanize(input)
end
- # Tabelize input string
+ # Tabelize input string
#
# @param [String] input
#
- # Create the name of a table like Rails does for models to table names.
+ # Create the name of a table like Rails does for models to table names.
# This method # uses the +pluralize+ method on the last word in the string.
#
# @example
@@ -275,10 +275,10 @@ def self.tableize(input)
pluralize(underscore(input).gsub('/','_'))
end
- # Classify input
+ # Classify input
#
# Create a class name from a plural table name like Rails does for table names to models.
- # Note that this returns a string and not a Class.
+ # Note that this returns a string and not a Class.
#
# To convert to an actual class # follow +classify+ with +constantize+.
#
@@ -34,23 +34,23 @@ def self.instance
# @api private
#
attr_reader :plurals
-
+
# Return singulars
#
# @return [Array]
#
# @api private
#
attr_reader :singulars
-
+
# Return uncountables
#
# @return [Array]
#
# @api private
#
attr_reader :uncountables
-
+
# Return humans
#
# @return [Array]
@@ -162,7 +162,7 @@ def add_irregular(rule, replacement, target)
private :add_irregular
- # Add uncountable words
+ # Add uncountable words
#
# Uncountable will not be inflected
#
@@ -11,4 +11,3 @@
end
end
end
-
@@ -156,7 +156,7 @@
'shoe' => 'shoes',
'horse' => 'horses',
'edge' => 'edges',
-
+
}
# Missing rule or exception?
@@ -138,7 +138,7 @@
'pluses' => 'plus',
'thieves' => 'thief',
'criteria' => 'criterion',
- 'postgres' => 'postgres'
+ 'postgres' => 'postgres'
}
PENDING.each do |plural, singular|

0 comments on commit 12fae03

Please sign in to comment.