crm_formatter 1.0.7.pre.rc.1 → 2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/.rspec_status +7 -0
- data/.rubocop.yml +10 -0
- data/.rubocop_todo.yml +188 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +21 -0
- data/README.md +202 -145
- data/Rakefile +75 -5
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/crm_formatter.gemspec +59 -13
- data/lib/crm_formatter.rb +46 -3
- data/lib/crm_formatter/address.rb +143 -122
- data/lib/crm_formatter/{extensions.csv → csv/extensions.csv} +0 -0
- data/lib/crm_formatter/csv/seed.csv +2 -0
- data/lib/crm_formatter/phone.rb +28 -20
- data/lib/crm_formatter/version.rb +4 -2
- data/lib/crm_formatter/web.rb +115 -248
- data/lib/crm_formatter/wrap.rb +54 -0
- data/menu.rb +3 -1
- data/non_utf8_examples.txt +40 -0
- data/result.txt +964 -0
- data/rubocop.json +1 -0
- metadata +211 -16
- data/bin/crm_formatter +0 -4
- data/gem_notes_crm_formatter.txt +0 -138
- data/lib/crm_formatter/helpers.rb +0 -23
data/rubocop.json
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"metadata":{"rubocop_version":"0.42.0","ruby_engine":"ruby","ruby_version":"2.5.1","ruby_patchlevel":"57","ruby_platform":"x86_64-darwin16"},"files":[{"path":"crm_formatter.gemspec","offenses":[{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":2,"column":24,"length":8}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":5,"column":9,"length":23}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":8,"column":24,"length":15}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":10,"column":25,"length":12}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":11,"column":25,"length":20}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":12,"column":24,"length":39}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":13,"column":24,"length":5}},{"severity":"convention","message":"`%q`-literals should be delimited by `(` and `)`.","cop_name":"Style/PercentLiteralDelimiters","corrected":false,"location":{"line":15,"column":24,"length":79}},{"severity":"convention","message":"Use `%q` only for strings that contain both single quotes and double quotes.","cop_name":"Style/UnneededPercentQ","corrected":false,"location":{"line":15,"column":24,"length":79}},{"severity":"convention","message":"Line is too long. [102/80]","cop_name":"Metrics/LineLength","corrected":null,"location":{"line":15,"column":81,"length":22}},{"severity":"convention","message":"`%q`-literals should be delimited by `(` and `)`.","cop_name":"Style/PercentLiteralDelimiters","corrected":false,"location":{"line":16,"column":24,"length":428}},{"severity":"convention","message":"Use `%q` only for strings that contain both single quotes and double quotes.","cop_name":"Style/UnneededPercentQ","corrected":false,"location":{"line":16,"column":24,"length":428}},{"severity":"convention","message":"Line is too long. [451/80]","cop_name":"Metrics/LineLength","corrected":null,"location":{"line":16,"column":81,"length":371}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":19,"column":19,"length":19}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":19,"column":42,"length":14}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":21,"column":11,"length":55}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":22,"column":7,"length":20}},{"severity":"convention","message":"Unnecessary spacing detected.","cop_name":"Style/ExtraSpacing","corrected":false,"location":{"line":25,"column":13,"length":8}},{"severity":"convention","message":"Operator `=` should be surrounded by a single space.","cop_name":"Style/SpaceAroundOperators","corrected":false,"location":{"line":25,"column":22,"length":1}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":29,"column":24,"length":5}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":31,"column":25,"length":5}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":35,"column":23,"length":15}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":35,"column":40,"length":10}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":56,"column":35,"length":9}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":57,"column":35,"length":8}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":58,"column":35,"length":9}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":58,"column":46,"length":11}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":59,"column":35,"length":6}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":60,"column":35,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":60,"column":44,"length":10}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":61,"column":35,"length":10}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":67,"column":1,"length":1}},{"severity":"convention","message":"Extra empty line detected at block body end.","cop_name":"Style/EmptyLinesAroundBlockBody","corrected":false,"location":{"line":76,"column":1,"length":1}}]},{"path":"Gemfile","offenses":[{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":1,"column":8,"length":22}},{"severity":"convention","message":"Space between { and | missing.","cop_name":"Style/SpaceInsideBlockBraces","corrected":false,"location":{"line":3,"column":21,"length":2}}]},{"path":"menu.rb","offenses":[{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":1,"column":18,"length":30}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":5,"column":8,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":6,"column":6,"length":10}}]},{"path":"Rakefile","offenses":[{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":1,"column":9,"length":19}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":2,"column":9,"length":22}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":8,"column":1,"length":1}},{"severity":"convention","message":"Use the new Ruby 1.9 hash syntax.","cop_name":"Style/HashSyntax","corrected":false,"location":{"line":10,"column":6,"length":11}},{"severity":"convention","message":"Use the new Ruby 1.9 hash syntax.","cop_name":"Style/HashSyntax","corrected":false,"location":{"line":11,"column":6,"length":8}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":13,"column":1,"length":1}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":18,"column":11,"length":20}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":24,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":25,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":26,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":27,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":28,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":29,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":30,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":31,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":32,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":33,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":34,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":38,"column":1,"length":1}},{"severity":"convention","message":"Incorrect indentation detected (column 0 instead of 2).","cop_name":"Style/CommentIndentation","corrected":false,"location":{"line":53,"column":1,"length":29}},{"severity":"convention","message":"Incorrect indentation detected (column 2 instead of 0).","cop_name":"Style/CommentIndentation","corrected":false,"location":{"line":58,"column":3,"length":54}}]},{"path":"bin/console","offenses":[{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":3,"column":9,"length":15}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":4,"column":9,"length":15}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":13,"column":9,"length":5}}]},{"path":"lib/crm_formatter/address.rb","offenses":[{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":36,"column":22,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":36,"column":39,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":43,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":44,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":46,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":47,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":48,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":49,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":50,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":51,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":52,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":53,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":55,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":56,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":57,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":58,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":59,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":60,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":61,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":62,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":63,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":64,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":65,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":66,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":67,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":68,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":69,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":70,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":71,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":72,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":74,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":75,"column":17,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":84,"column":18,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":84,"column":35,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":85,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":85,"column":40,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":86,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":87,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":88,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":89,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":90,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":91,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":92,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":93,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":94,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":95,"column":25,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":96,"column":11,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":97,"column":11,"length":2}},{"severity":"error","message":"unexpected token kDO_BLOCK\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":108,"column":44,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":113,"column":29,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":114,"column":29,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":115,"column":29,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":116,"column":29,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":117,"column":29,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":118,"column":29,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":119,"column":29,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":121,"column":15,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":122,"column":15,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":127,"column":18,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":127,"column":30,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":134,"column":20,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":134,"column":37,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":150,"column":35,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":162,"column":16,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":162,"column":33,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":163,"column":16,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":163,"column":28,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":164,"column":23,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":164,"column":41,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":167,"column":10,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":168,"column":10,"length":2}},{"severity":"error","message":"unexpected token kEND\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":174,"column":1,"length":3}}]},{"path":"lib/crm_formatter/dictionary.rb","offenses":[{"severity":"convention","message":"Missing top-level module documentation comment.","cop_name":"Style/Documentation","corrected":null,"location":{"line":2,"column":3,"length":6}},{"severity":"convention","message":"Extra empty line detected at module body beginning.","cop_name":"Style/EmptyLinesAroundModuleBody","corrected":false,"location":{"line":3,"column":1,"length":1}},{"severity":"warning","message":"Remove debugger entry point `binding.pry`.","cop_name":"Lint/Debugger","corrected":false,"location":{"line":6,"column":7,"length":11}},{"severity":"convention","message":"Inconsistent indentation detected.","cop_name":"Style/IndentationConsistency","corrected":false,"location":{"line":10,"column":3,"length":182}},{"severity":"convention","message":"Freeze mutable objects assigned to constants.","cop_name":"Style/MutableConstant","corrected":false,"location":{"line":10,"column":16,"length":169}},{"severity":"convention","message":"Use `%w` or `%W` for an array of words.","cop_name":"Style/WordArray","corrected":false,"location":{"line":10,"column":28,"length":37}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":10,"column":29,"length":3}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":10,"column":34,"length":5}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":10,"column":41,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":10,"column":50,"length":6}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":10,"column":58,"length":6}},{"severity":"convention","message":"Line is too long. [184/80]","cop_name":"Metrics/LineLength","corrected":null,"location":{"line":10,"column":81,"length":104}},{"severity":"convention","message":"Space inside } missing.","cop_name":"Style/SpaceInsideHashLiteralBraces","corrected":false,"location":{"line":10,"column":184,"length":1}},{"severity":"convention","message":"Inconsistent indentation detected.","cop_name":"Style/IndentationConsistency","corrected":false,"location":{"line":12,"column":3,"length":60}},{"severity":"convention","message":"Use `self.pronoun` instead of `Dictionary.pronoun`.","cop_name":"Style/ClassMethods","corrected":false,"location":{"line":12,"column":7,"length":10}},{"severity":"convention","message":"Use 2 (not 1) spaces for indentation.","cop_name":"Style/IndentationWidth","corrected":false,"location":{"line":13,"column":3,"length":1}},{"severity":"convention","message":"Inconsistent indentation detected.","cop_name":"Style/IndentationConsistency","corrected":false,"location":{"line":16,"column":3,"length":64}},{"severity":"convention","message":"Use `self.adjective` instead of `Dictionary.adjective`.","cop_name":"Style/ClassMethods","corrected":false,"location":{"line":16,"column":7,"length":10}},{"severity":"convention","message":"Use 2 (not 1) spaces for indentation.","cop_name":"Style/IndentationWidth","corrected":false,"location":{"line":17,"column":3,"length":1}},{"severity":"convention","message":"Inconsistent indentation detected.","cop_name":"Style/IndentationConsistency","corrected":false,"location":{"line":20,"column":3,"length":54}},{"severity":"convention","message":"Use `self.noun` instead of `Dictionary.noun`.","cop_name":"Style/ClassMethods","corrected":false,"location":{"line":20,"column":7,"length":10}},{"severity":"convention","message":"Use 2 (not 1) spaces for indentation.","cop_name":"Style/IndentationWidth","corrected":false,"location":{"line":21,"column":3,"length":1}},{"severity":"convention","message":"Extra empty line detected at module body end.","cop_name":"Style/EmptyLinesAroundModuleBody","corrected":false,"location":{"line":23,"column":1,"length":1}}]},{"path":"lib/crm_formatter/phone.rb","offenses":[{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":10,"column":22,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":10,"column":39,"length":2}}]},{"path":"lib/crm_formatter/tools.rb","offenses":[{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":30,"column":20,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":72,"column":38,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":91,"column":22,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":91,"column":46,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":92,"column":24,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":98,"column":33,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":98,"column":90,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":98,"column":111,"length":2}}]},{"path":"lib/crm_formatter/utf.rb","offenses":[{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":139,"column":26,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":139,"column":44,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":156,"column":32,"length":2}}]},{"path":"lib/crm_formatter/version.rb","offenses":[{"severity":"convention","message":"Freeze mutable objects assigned to constants.","cop_name":"Style/MutableConstant","corrected":false,"location":{"line":2,"column":13,"length":12}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":2,"column":13,"length":12}}]},{"path":"lib/crm_formatter/web.rb","offenses":[{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":43,"column":13,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":76,"column":18,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":76,"column":30,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":77,"column":18,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":77,"column":31,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":78,"column":12,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":79,"column":18,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":83,"column":12,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":90,"column":69,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":109,"column":21,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":110,"column":19,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":122,"column":34,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":173,"column":13,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":174,"column":20,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":174,"column":35,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":175,"column":20,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":175,"column":35,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":176,"column":20,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":176,"column":35,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":199,"column":47,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":217,"column":13,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":218,"column":13,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":219,"column":13,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":220,"column":13,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":221,"column":13,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":222,"column":13,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":227,"column":30,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":228,"column":20,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":229,"column":20,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":231,"column":48,"length":2}},{"severity":"error","message":"unexpected token error\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":244,"column":12,"length":2}},{"severity":"error","message":"unexpected token kEND\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":259,"column":1,"length":3}}]},{"path":"lib/crm_formatter/wrap.rb","offenses":[{"severity":"convention","message":"Missing top-level class documentation comment.","cop_name":"Style/Documentation","corrected":null,"location":{"line":4,"column":3,"length":5}},{"severity":"convention","message":"Extra empty line detected at class body beginning.","cop_name":"Style/EmptyLinesAroundClassBody","corrected":false,"location":{"line":5,"column":1,"length":1}},{"severity":"convention","message":"Space inside { missing.","cop_name":"Style/SpaceInsideHashLiteralBraces","corrected":false,"location":{"line":7,"column":18,"length":1}},{"severity":"convention","message":"Space inside } missing.","cop_name":"Style/SpaceInsideHashLiteralBraces","corrected":false,"location":{"line":7,"column":75,"length":1}},{"severity":"warning","message":"Useless assignment to variable - `formatted_urls`. Did you mean `format_urls`?","cop_name":"Lint/UselessAssignment","corrected":null,"location":{"line":17,"column":7,"length":14}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":20,"column":1,"length":1}},{"severity":"convention","message":"Method has too many lines. [12/10]","cop_name":"Metrics/MethodLength","corrected":null,"location":{"line":21,"column":5,"length":491}},{"severity":"warning","message":"Unused method argument - `args`. If it's necessary, use `_` or `_args` as an argument name to indicate that it won't be used. You can also write as `format_urls(*)` if you want the method to accept any arguments but don't care about them.","cop_name":"Lint/UnusedMethodArgument","corrected":false,"location":{"line":21,"column":21,"length":4}},{"severity":"convention","message":"Surrounding space missing in default value assignment.","cop_name":"Style/SpaceAroundEqualsInParameterDefault","corrected":false,"location":{"line":21,"column":25,"length":1}},{"severity":"warning","message":"Useless assignment to variable - `args`.","cop_name":"Lint/UselessAssignment","corrected":null,"location":{"line":22,"column":19,"length":4}},{"severity":"convention","message":"Surrounding space missing for operator `=`.","cop_name":"Style/SpaceAroundOperators","corrected":false,"location":{"line":22,"column":23,"length":1}},{"severity":"warning","message":"Useless assignment to variable - `local`.","cop_name":"Lint/UselessAssignment","corrected":null,"location":{"line":32,"column":11,"length":5}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":38,"column":1,"length":1}},{"severity":"convention","message":"Surrounding space missing in default value assignment.","cop_name":"Style/SpaceAroundEqualsInParameterDefault","corrected":false,"location":{"line":40,"column":25,"length":1}},{"severity":"convention","message":"Space inside { missing.","cop_name":"Style/SpaceInsideHashLiteralBraces","corrected":false,"location":{"line":41,"column":14,"length":1}},{"severity":"convention","message":"Space inside } missing.","cop_name":"Style/SpaceInsideHashLiteralBraces","corrected":false,"location":{"line":41,"column":49,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":46,"column":1,"length":1}},{"severity":"convention","message":"Do not prefix reader method names with `get_`.","cop_name":"Style/AccessorMethodName","corrected":null,"location":{"line":47,"column":9,"length":12}},{"severity":"convention","message":"Line is too long. [267/80]","cop_name":"Metrics/LineLength","corrected":null,"location":{"line":48,"column":81,"length":187}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":19,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":28,"length":12}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":42,"length":14}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":58,"length":6}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":66,"length":5}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":73,"length":9}},{"severity":"convention","message":"Line is too long. [521/80]","cop_name":"Metrics/LineLength","corrected":null,"location":{"line":50,"column":81,"length":441}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":84,"length":9}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":95,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":104,"length":6}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":112,"length":10}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":124,"length":11}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":137,"length":10}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":149,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":158,"length":9}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":169,"length":6}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":177,"length":6}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":185,"length":5}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":192,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":201,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":210,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":219,"length":8}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":229,"length":9}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":240,"length":10}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":252,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":261,"length":8}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":271,"length":6}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":279,"length":5}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":286,"length":13}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":301,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":310,"length":9}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":321,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":330,"length":6}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":338,"length":10}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":350,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":359,"length":9}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":370,"length":15}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":387,"length":12}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":401,"length":8}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":411,"length":9}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":422,"length":5}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":429,"length":13}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":444,"length":6}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":452,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":461,"length":7}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":470,"length":8}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":480,"length":8}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":490,"length":8}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":500,"length":12}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":50,"column":514,"length":7}},{"severity":"convention","message":"Line is too long. [467/80]","cop_name":"Metrics/LineLength","corrected":null,"location":{"line":55,"column":81,"length":387}},{"severity":"convention","message":"Line is too long. [549/80]","cop_name":"Metrics/LineLength","corrected":null,"location":{"line":57,"column":81,"length":469}},{"severity":"warning","message":"Useless assignment to variable - `oa_args`.","cop_name":"Lint/UselessAssignment","corrected":null,"location":{"line":61,"column":7,"length":7}},{"severity":"convention","message":"Space inside { missing.","cop_name":"Style/SpaceInsideHashLiteralBraces","corrected":false,"location":{"line":61,"column":17,"length":1}},{"severity":"convention","message":"Space inside } missing.","cop_name":"Style/SpaceInsideHashLiteralBraces","corrected":false,"location":{"line":61,"column":76,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":64,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":65,"column":1,"length":1}},{"severity":"warning","message":"Unused method argument - `hash`. If it's necessary, use `_` or `_hash` as an argument name to indicate that it won't be used. You can also write as `export(*)` if you want the method to accept any arguments but don't care about them.","cop_name":"Lint/UnusedMethodArgument","corrected":false,"location":{"line":68,"column":21,"length":4}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":85,"column":1,"length":1}},{"severity":"convention","message":"Extra empty line detected at class body end.","cop_name":"Style/EmptyLinesAroundClassBody","corrected":false,"location":{"line":85,"column":1,"length":1}},{"severity":"convention","message":"Extra empty line detected at module body end.","cop_name":"Style/EmptyLinesAroundModuleBody","corrected":false,"location":{"line":87,"column":1,"length":1}}]},{"path":"lib/crm_formatter.rb","offenses":[{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":1,"column":9,"length":23}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":2,"column":9,"length":26}},{"severity":"convention","message":"Missing top-level module documentation comment.","cop_name":"Style/Documentation","corrected":null,"location":{"line":12,"column":1,"length":6}},{"severity":"convention","message":"Extra empty line detected at module body beginning.","cop_name":"Style/EmptyLinesAroundModuleBody","corrected":false,"location":{"line":13,"column":1,"length":1}},{"severity":"warning","message":"Remove debugger entry point `binding.pry`.","cop_name":"Lint/Debugger","corrected":false,"location":{"line":23,"column":5,"length":11}},{"severity":"warning","message":"Remove debugger entry point `binding.pry`.","cop_name":"Lint/Debugger","corrected":false,"location":{"line":30,"column":5,"length":11}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":34,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":35,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":36,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":37,"column":1,"length":1}},{"severity":"convention","message":"Extra blank line detected.","cop_name":"Style/EmptyLines","corrected":false,"location":{"line":38,"column":1,"length":1}},{"severity":"convention","message":"Extra empty line detected at module body end.","cop_name":"Style/EmptyLinesAroundModuleBody","corrected":false,"location":{"line":38,"column":1,"length":1}}]},{"path":"spec/crm_formatter_spec.rb","offenses":[{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":5,"column":6,"length":22}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":9,"column":6,"length":23}},{"severity":"convention","message":"Extra empty line detected at block body end.","cop_name":"Style/EmptyLinesAroundBlockBody","corrected":false,"location":{"line":27,"column":1,"length":1}}]},{"path":"spec/dictionary_spec.rb","offenses":[{"severity":"error","message":"unexpected token kEND\n(Using Ruby 2.0 parser; configure using `TargetRubyVersion` parameter, under `AllCops`)","cop_name":"Syntax","corrected":false,"location":{"line":23,"column":1,"length":3}}]},{"path":"spec/spec_helper.rb","offenses":[{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":1,"column":9,"length":15}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":2,"column":9,"length":15}},{"severity":"convention","message":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","cop_name":"Style/StringLiterals","corrected":false,"location":{"line":7,"column":49,"length":15}}]}],"summary":{"offense_count":303,"target_file_count":17,"inspected_file_count":17}}
|
metadata
CHANGED
@@ -1,17 +1,201 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crm_formatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '2.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Booth
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
|
11
|
+
date: 2018-06-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.2'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 5.2.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '5.2'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 5.2.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: utf8_sanitizer
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '2.0'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.16'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 1.16.2
|
57
|
+
type: :development
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '1.16'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 1.16.2
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: byebug
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '10.0'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 10.0.2
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '10.0'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 10.0.2
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: class_indexer
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.3.0
|
94
|
+
type: :development
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 0.3.0
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: irbtools
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '2.2'
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.2.1
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.2'
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 2.2.1
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
name: rake
|
123
|
+
requirement: !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - "~>"
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: '12.3'
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 12.3.1
|
131
|
+
type: :development
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '12.3'
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
version: 12.3.1
|
141
|
+
- !ruby/object:Gem::Dependency
|
142
|
+
name: rspec
|
143
|
+
requirement: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - "~>"
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '3.7'
|
148
|
+
type: :development
|
149
|
+
prerelease: false
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - "~>"
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '3.7'
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: rubocop
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - "~>"
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: 0.56.0
|
162
|
+
type: :development
|
163
|
+
prerelease: false
|
164
|
+
version_requirements: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - "~>"
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 0.56.0
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
name: ruby-beautify
|
171
|
+
requirement: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - "~>"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: 0.97.4
|
176
|
+
type: :development
|
177
|
+
prerelease: false
|
178
|
+
version_requirements: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - "~>"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: 0.97.4
|
183
|
+
- !ruby/object:Gem::Dependency
|
184
|
+
name: pry
|
185
|
+
requirement: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - "~>"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: 0.11.3
|
190
|
+
type: :development
|
191
|
+
prerelease: false
|
192
|
+
version_requirements: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - "~>"
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: 0.11.3
|
197
|
+
description: Reformat, Normalize, and Scrub CRM Contact Data, Addresses, Phones and
|
198
|
+
URLs. Originally developed for proprietary use in an enterprise software suite. Recently
|
15
199
|
decided to make them open source in a gem. It's a work in progress as there are
|
16
200
|
additional features being added in near future. Also creating additonal gems with
|
17
201
|
similar CRM office efficiency objectives. Please contact me if you have any questions
|
@@ -23,41 +207,52 @@ extensions: []
|
|
23
207
|
extra_rdoc_files: []
|
24
208
|
files:
|
25
209
|
- ".gitignore"
|
210
|
+
- ".rspec_status"
|
211
|
+
- ".rubocop.yml"
|
212
|
+
- ".rubocop_todo.yml"
|
213
|
+
- CODE_OF_CONDUCT.md
|
214
|
+
- Gemfile
|
215
|
+
- LICENSE.txt
|
26
216
|
- README.md
|
27
217
|
- Rakefile
|
28
|
-
- bin/
|
218
|
+
- bin/console
|
219
|
+
- bin/setup
|
29
220
|
- crm_formatter.gemspec
|
30
|
-
- gem_notes_crm_formatter.txt
|
31
221
|
- lib/crm_formatter.rb
|
32
222
|
- lib/crm_formatter/address.rb
|
33
|
-
- lib/crm_formatter/extensions.csv
|
34
|
-
- lib/crm_formatter/
|
223
|
+
- lib/crm_formatter/csv/extensions.csv
|
224
|
+
- lib/crm_formatter/csv/seed.csv
|
35
225
|
- lib/crm_formatter/phone.rb
|
36
226
|
- lib/crm_formatter/version.rb
|
37
227
|
- lib/crm_formatter/web.rb
|
228
|
+
- lib/crm_formatter/wrap.rb
|
38
229
|
- menu.rb
|
230
|
+
- non_utf8_examples.txt
|
231
|
+
- result.txt
|
232
|
+
- rubocop.json
|
39
233
|
homepage: https://github.com/4rlm/crm_formatter
|
40
234
|
licenses:
|
41
235
|
- MIT
|
42
|
-
metadata:
|
43
|
-
|
236
|
+
metadata:
|
237
|
+
allowed_push_host: https://rubygems.org
|
238
|
+
post_install_message: Thanks for installing utf8_sanitizer!
|
44
239
|
rdoc_options: []
|
45
240
|
require_paths:
|
46
241
|
- lib
|
47
242
|
required_ruby_version: !ruby/object:Gem::Requirement
|
48
243
|
requirements:
|
49
|
-
- - "
|
244
|
+
- - "~>"
|
50
245
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
246
|
+
version: 2.5.1
|
52
247
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
248
|
requirements:
|
54
|
-
- - "
|
249
|
+
- - ">="
|
55
250
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
251
|
+
version: '0'
|
57
252
|
requirements: []
|
58
253
|
rubyforge_project:
|
59
254
|
rubygems_version: 2.7.6
|
60
255
|
signing_key:
|
61
256
|
specification_version: 4
|
62
|
-
summary: Reformat and
|
257
|
+
summary: Reformat, Normalize, and Scrub CRM Contact Data, Addresses, Phones and URLs
|
63
258
|
test_files: []
|
data/bin/crm_formatter
DELETED
data/gem_notes_crm_formatter.txt
DELETED
@@ -1,138 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
========= Quick Reference =========
|
4
|
-
* delete current gem build record.
|
5
|
-
* up count gemspec version
|
6
|
-
$ gem build crm_formatter.gemspec
|
7
|
-
* Uninstall Locally
|
8
|
-
$ gem list
|
9
|
-
$ gem uninstall crm_formatter
|
10
|
-
$ gem install crm_formatter-1.0.6.pre.rc.1.gem
|
11
|
-
* Test Locally
|
12
|
-
* Edit Gem Tester App Gemfile
|
13
|
-
|
14
|
-
* git add / commit / push
|
15
|
-
$ gem push crm_formatter-1.0.6.pre.rc.1.gem
|
16
|
-
|
17
|
-
|
18
|
-
========= TO DO =========
|
19
|
-
1. Red Flags: Change to 'OA'
|
20
|
-
2. Change Meth from 'remove' to 'compare_oa'
|
21
|
-
3. Zip can be integer?
|
22
|
-
4. Copy formatted results for README.
|
23
|
-
5. Continue and finish README.
|
24
|
-
6. Test Changes locally before pushing.
|
25
|
-
7. Push.
|
26
|
-
=========================
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
==== FIRST CREATE APP TO TEST GEM ====
|
31
|
-
-----------------------------------
|
32
|
-
rails new gem_tester
|
33
|
-
cd gem_tester
|
34
|
-
rails g scaffold Article
|
35
|
-
rails g controller Home index
|
36
|
-
-----------------------------------
|
37
|
-
get 'home/index'
|
38
|
-
root 'home#index'
|
39
|
-
-----------------------------------
|
40
|
-
|
41
|
-
|
42
|
-
==== CREATE BASIC GEM ====
|
43
|
-
-----------------------------------
|
44
|
-
create crm_formatter.gemspec
|
45
|
-
-----------------------------------
|
46
|
-
mkdir bin lib test lib/crm_formatter
|
47
|
-
-----------------------------------
|
48
|
-
touch Rakefile
|
49
|
-
touch lib/crm_formatter.rb
|
50
|
-
touch lib/crm_formatter/version.rb
|
51
|
-
touch lib/crm_formatter/translator.rb
|
52
|
-
touch bin/crm_formatter
|
53
|
-
touch test/test_crm_formatter.rb
|
54
|
-
-----------------------------------
|
55
|
-
$ git init .
|
56
|
-
$ ls -la
|
57
|
-
$ rm .DS_Store
|
58
|
-
$ git status
|
59
|
-
$ git add .
|
60
|
-
$ git commit -m "Initial Commit"
|
61
|
-
$ git log
|
62
|
-
$ git status
|
63
|
-
$ git ls-files -z
|
64
|
-
---- Create Repo on GitHub, then push.
|
65
|
-
-----------------------------------
|
66
|
-
$ gem build crm_formatter.gemspec
|
67
|
-
Successfully built RubyGem
|
68
|
-
Name: crm_formatter
|
69
|
-
Version: 1.0.5.pre.rc.1
|
70
|
-
File: crm_formatter-1.0.6.pre.rc.1.gem
|
71
|
-
-----------------------------------
|
72
|
-
$ gem install crm_formatter-1.0.6.pre.rc.1.gem
|
73
|
-
Successfully installed crm_formatter-1.0.5.pre.rc.1
|
74
|
-
Parsing documentation for crm_formatter-1.0.5.pre.rc.1
|
75
|
-
Installing ri documentation for crm_formatter-1.0.5.pre.rc.1
|
76
|
-
Done installing documentation for crm_formatter after 0 seconds
|
77
|
-
1 gem installed
|
78
|
-
-----------------------------------
|
79
|
-
$ irb
|
80
|
-
>> require 'crm_formatter'
|
81
|
-
=> true
|
82
|
-
>> CRMFormatter.hi 'english'
|
83
|
-
=> "hello world"
|
84
|
-
-----------------------------------
|
85
|
-
$ curl -u adamjbooth https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
|
86
|
-
Enter host password for user 'adamjbooth': RG<usual>rg
|
87
|
-
-----------------------------------
|
88
|
-
$ gem push crm_formatter-1.0.6.pre.rc.1.gem
|
89
|
-
Pushing gem to https://rubygems.org...
|
90
|
-
Successfully registered gem: crm_formatter (1.0.4.pre.rc.1)
|
91
|
-
-----------------------------------
|
92
|
-
|
93
|
-
|
94
|
-
============= after each change: =======================
|
95
|
-
gem build crm_formatter.gemspec
|
96
|
-
gem install crm_formatter-1.0.3.pre.rc.1.gem
|
97
|
-
irb
|
98
|
-
require 'crm_formatter'
|
99
|
-
CRMFormatter.hi('english')
|
100
|
-
|
101
|
-
Translator.new.greeter
|
102
|
-
|
103
|
-
CRMFormatter
|
104
|
-
=========================
|
105
|
-
|
106
|
-
CRMFormatter::Address.new
|
107
|
-
CRMFormatter::Address.new.state
|
108
|
-
CRMFormatter::Address.self_state
|
109
|
-
|
110
|
-
/Users/Adam/Desktop/gems/crm_formatter/lib/crm_formatter.rb
|
111
|
-
====================================================================
|
112
|
-
|
113
|
-
|
114
|
-
require '/Users/Adam/Desktop/gems/crm_formatter/lib/crm_formatter/address.rb'
|
115
|
-
crm_phone = CRMFormatter::Phone.new
|
116
|
-
crm_phone.validate_phone("229-954-6172")
|
117
|
-
|
118
|
-
=> [{:phone=>"229-954-6172", :valid_phone=>"(229) 954-6172", :change=>true},
|
119
|
-
{:phone=>"4.142285305606521", :valid_phone=>nil, :change=>nil},
|
120
|
-
{:phone=>"23870 Addie Green", :valid_phone=>nil, :change=>nil},
|
121
|
-
{:phone=>"73408-0942", :valid_phone=>nil, :change=>nil},
|
122
|
-
{:phone=>"8853 Hank Course", :valid_phone=>nil, :change=>nil},
|
123
|
-
{:phone=>"910-202-3756 x827", :valid_phone=>"(910) 202-3756", :change=>true},
|
124
|
-
{:phone=>"119-305-4317", :valid_phone=>"119-305-4317", :change=>false},
|
125
|
-
{:phone=>"197-294-8073 x2164", :valid_phone=>"(972) 948-0732", :change=>true},
|
126
|
-
{:phone=>"53.866282605787006", :valid_phone=>nil, :change=>nil},
|
127
|
-
{:phone=>"91783", :valid_phone=>nil, :change=>nil}]
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
address = CRMFormatter::Address.new
|
135
|
-
address.state
|
136
|
-
|
137
|
-
address = CRMFormatter::Address.new.state
|
138
|
-
address.gh
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module CRMFormatter
|
2
|
-
module Helpers
|
3
|
-
|
4
|
-
#CALL: Formatter.new.letter_case_check(street)
|
5
|
-
def self.letter_case_check(str)
|
6
|
-
if str.present?
|
7
|
-
flashes = str&.gsub(/[^ A-Za-z]/, '')&.strip&.split(' ')
|
8
|
-
flash = flashes&.reject {|e| e.length < 3 }.join(' ')
|
9
|
-
|
10
|
-
if flash.present?
|
11
|
-
has_caps = flash.scan(/[A-Z]/).any?
|
12
|
-
has_lows = flash.scan(/[a-z]/).any?
|
13
|
-
if !has_caps || !has_lows
|
14
|
-
str = str.split(' ')&.each { |el| el.capitalize! if el.gsub(/[^ A-Za-z]/, '')&.strip&.length > 2 }&.join(' ')
|
15
|
-
end
|
16
|
-
end
|
17
|
-
return str
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
|
22
|
-
end
|
23
|
-
end
|