roo 1.13.2 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.codeclimate.yml +17 -0
- data/.github/issue_template.md +16 -0
- data/.github/pull_request_template.md +14 -0
- data/.github/workflows/pull-request.yml +15 -0
- data/.github/workflows/ruby.yml +34 -0
- data/.gitignore +11 -0
- data/.rubocop.yml +186 -0
- data/.simplecov +4 -0
- data/CHANGELOG.md +702 -0
- data/Gemfile +18 -12
- data/Guardfile +23 -0
- data/LICENSE +5 -1
- data/README.md +328 -0
- data/Rakefile +23 -23
- data/examples/roo_soap_client.rb +28 -31
- data/examples/roo_soap_server.rb +4 -6
- data/examples/write_me.rb +9 -10
- data/lib/roo/base.rb +317 -504
- data/lib/roo/constants.rb +7 -0
- data/lib/roo/csv.rb +141 -113
- data/lib/roo/errors.rb +11 -0
- data/lib/roo/excelx/cell/base.rb +108 -0
- data/lib/roo/excelx/cell/boolean.rb +30 -0
- data/lib/roo/excelx/cell/date.rb +28 -0
- data/lib/roo/excelx/cell/datetime.rb +107 -0
- data/lib/roo/excelx/cell/empty.rb +20 -0
- data/lib/roo/excelx/cell/number.rb +99 -0
- data/lib/roo/excelx/cell/string.rb +19 -0
- data/lib/roo/excelx/cell/time.rb +44 -0
- data/lib/roo/excelx/cell.rb +110 -0
- data/lib/roo/excelx/comments.rb +55 -0
- data/lib/roo/excelx/coordinate.rb +19 -0
- data/lib/roo/excelx/extractor.rb +39 -0
- data/lib/roo/excelx/format.rb +71 -0
- data/lib/roo/excelx/images.rb +26 -0
- data/lib/roo/excelx/relationships.rb +33 -0
- data/lib/roo/excelx/shared.rb +39 -0
- data/lib/roo/excelx/shared_strings.rb +151 -0
- data/lib/roo/excelx/sheet.rb +151 -0
- data/lib/roo/excelx/sheet_doc.rb +257 -0
- data/lib/roo/excelx/styles.rb +64 -0
- data/lib/roo/excelx/workbook.rb +64 -0
- data/lib/roo/excelx.rb +407 -601
- data/lib/roo/font.rb +17 -0
- data/lib/roo/formatters/base.rb +15 -0
- data/lib/roo/formatters/csv.rb +84 -0
- data/lib/roo/formatters/matrix.rb +23 -0
- data/lib/roo/formatters/xml.rb +31 -0
- data/lib/roo/formatters/yaml.rb +40 -0
- data/lib/roo/helpers/default_attr_reader.rb +20 -0
- data/lib/roo/helpers/weak_instance_cache.rb +41 -0
- data/lib/roo/libre_office.rb +4 -0
- data/lib/roo/link.rb +34 -0
- data/lib/roo/open_office.rb +631 -0
- data/lib/roo/spreadsheet.rb +28 -23
- data/lib/roo/tempdir.rb +24 -0
- data/lib/roo/utils.rb +128 -0
- data/lib/roo/version.rb +3 -0
- data/lib/roo.rb +26 -24
- data/roo.gemspec +29 -203
- data/spec/helpers.rb +5 -0
- data/spec/lib/roo/base_spec.rb +291 -3
- data/spec/lib/roo/csv_spec.rb +38 -11
- data/spec/lib/roo/excelx/cell/time_spec.rb +15 -0
- data/spec/lib/roo/excelx/format_spec.rb +7 -6
- data/spec/lib/roo/excelx/relationships_spec.rb +43 -0
- data/spec/lib/roo/excelx/sheet_doc_spec.rb +11 -0
- data/spec/lib/roo/excelx_spec.rb +672 -11
- data/spec/lib/roo/libreoffice_spec.rb +16 -6
- data/spec/lib/roo/openoffice_spec.rb +30 -8
- data/spec/lib/roo/spreadsheet_spec.rb +60 -12
- data/spec/lib/roo/strict_spec.rb +43 -0
- data/spec/lib/roo/utils_spec.rb +119 -0
- data/spec/lib/roo/weak_instance_cache_spec.rb +92 -0
- data/spec/lib/roo_spec.rb +0 -0
- data/spec/spec_helper.rb +7 -6
- data/test/all_ss.rb +12 -11
- data/test/excelx/cell/test_attr_reader_default.rb +72 -0
- data/test/excelx/cell/test_base.rb +68 -0
- data/test/excelx/cell/test_boolean.rb +36 -0
- data/test/excelx/cell/test_date.rb +38 -0
- data/test/excelx/cell/test_datetime.rb +45 -0
- data/test/excelx/cell/test_empty.rb +18 -0
- data/test/excelx/cell/test_number.rb +90 -0
- data/test/excelx/cell/test_string.rb +48 -0
- data/test/excelx/cell/test_time.rb +30 -0
- data/test/excelx/test_coordinate.rb +51 -0
- data/test/formatters/test_csv.rb +136 -0
- data/test/formatters/test_matrix.rb +76 -0
- data/test/formatters/test_xml.rb +78 -0
- data/test/formatters/test_yaml.rb +20 -0
- data/test/helpers/test_accessing_files.rb +81 -0
- data/test/helpers/test_comments.rb +43 -0
- data/test/helpers/test_formulas.rb +9 -0
- data/test/helpers/test_labels.rb +103 -0
- data/test/helpers/test_sheets.rb +55 -0
- data/test/helpers/test_styles.rb +62 -0
- data/test/roo/test_base.rb +182 -0
- data/test/roo/test_csv.rb +88 -0
- data/test/roo/test_excelx.rb +360 -0
- data/test/roo/test_libre_office.rb +9 -0
- data/test/roo/test_open_office.rb +289 -0
- data/test/test_helper.rb +123 -59
- data/test/test_roo.rb +392 -2292
- metadata +153 -298
- data/CHANGELOG +0 -417
- data/Gemfile.lock +0 -78
- data/README.markdown +0 -126
- data/VERSION +0 -1
- data/lib/roo/excel.rb +0 -355
- data/lib/roo/excel2003xml.rb +0 -300
- data/lib/roo/google.rb +0 -292
- data/lib/roo/openoffice.rb +0 -496
- data/lib/roo/roo_rails_helper.rb +0 -83
- data/lib/roo/worksheet.rb +0 -18
- data/scripts/txt2html +0 -67
- data/spec/lib/roo/excel2003xml_spec.rb +0 -15
- data/spec/lib/roo/excel_spec.rb +0 -17
- data/spec/lib/roo/google_spec.rb +0 -64
- data/test/files/1900_base.xls +0 -0
- data/test/files/1900_base.xlsx +0 -0
- data/test/files/1904_base.xls +0 -0
- data/test/files/1904_base.xlsx +0 -0
- data/test/files/Bibelbund.csv +0 -3741
- data/test/files/Bibelbund.ods +0 -0
- data/test/files/Bibelbund.xls +0 -0
- data/test/files/Bibelbund.xlsx +0 -0
- data/test/files/Bibelbund.xml +0 -62518
- data/test/files/Bibelbund1.ods +0 -0
- data/test/files/Pfand_from_windows_phone.xlsx +0 -0
- data/test/files/bad_excel_date.xls +0 -0
- data/test/files/bbu.ods +0 -0
- data/test/files/bbu.xls +0 -0
- data/test/files/bbu.xlsx +0 -0
- data/test/files/bbu.xml +0 -152
- data/test/files/bode-v1.ods.zip +0 -0
- data/test/files/bode-v1.xls.zip +0 -0
- data/test/files/boolean.csv +0 -2
- data/test/files/boolean.ods +0 -0
- data/test/files/boolean.xls +0 -0
- data/test/files/boolean.xlsx +0 -0
- data/test/files/boolean.xml +0 -112
- data/test/files/borders.ods +0 -0
- data/test/files/borders.xls +0 -0
- data/test/files/borders.xlsx +0 -0
- data/test/files/borders.xml +0 -144
- data/test/files/bug-numbered-sheet-names.xlsx +0 -0
- data/test/files/bug-row-column-fixnum-float.xls +0 -0
- data/test/files/bug-row-column-fixnum-float.xml +0 -127
- data/test/files/comments.ods +0 -0
- data/test/files/comments.xls +0 -0
- data/test/files/comments.xlsx +0 -0
- data/test/files/csvtypes.csv +0 -1
- data/test/files/datetime.ods +0 -0
- data/test/files/datetime.xls +0 -0
- data/test/files/datetime.xlsx +0 -0
- data/test/files/datetime.xml +0 -142
- data/test/files/datetime_floatconv.xls +0 -0
- data/test/files/datetime_floatconv.xml +0 -148
- data/test/files/dreimalvier.ods +0 -0
- data/test/files/emptysheets.ods +0 -0
- data/test/files/emptysheets.xls +0 -0
- data/test/files/emptysheets.xlsx +0 -0
- data/test/files/emptysheets.xml +0 -105
- data/test/files/excel2003.xml +0 -21140
- data/test/files/false_encoding.xls +0 -0
- data/test/files/false_encoding.xml +0 -132
- data/test/files/file_item_error.xlsx +0 -0
- data/test/files/formula.ods +0 -0
- data/test/files/formula.xls +0 -0
- data/test/files/formula.xlsx +0 -0
- data/test/files/formula.xml +0 -134
- data/test/files/formula_parse_error.xls +0 -0
- data/test/files/formula_parse_error.xml +0 -1833
- data/test/files/formula_string_error.xlsx +0 -0
- data/test/files/html-escape.ods +0 -0
- data/test/files/link.xls +0 -0
- data/test/files/link.xlsx +0 -0
- data/test/files/matrix.ods +0 -0
- data/test/files/matrix.xls +0 -0
- data/test/files/named_cells.ods +0 -0
- data/test/files/named_cells.xls +0 -0
- data/test/files/named_cells.xlsx +0 -0
- data/test/files/no_spreadsheet_file.txt +0 -1
- data/test/files/numbers1.csv +0 -18
- data/test/files/numbers1.ods +0 -0
- data/test/files/numbers1.xls +0 -0
- data/test/files/numbers1.xlsx +0 -0
- data/test/files/numbers1.xml +0 -312
- data/test/files/numeric-link.xlsx +0 -0
- data/test/files/only_one_sheet.ods +0 -0
- data/test/files/only_one_sheet.xls +0 -0
- data/test/files/only_one_sheet.xlsx +0 -0
- data/test/files/only_one_sheet.xml +0 -67
- data/test/files/paragraph.ods +0 -0
- data/test/files/paragraph.xls +0 -0
- data/test/files/paragraph.xlsx +0 -0
- data/test/files/paragraph.xml +0 -127
- data/test/files/prova.xls +0 -0
- data/test/files/ric.ods +0 -0
- data/test/files/simple_spreadsheet.ods +0 -0
- data/test/files/simple_spreadsheet.xls +0 -0
- data/test/files/simple_spreadsheet.xlsx +0 -0
- data/test/files/simple_spreadsheet.xml +0 -225
- data/test/files/simple_spreadsheet_from_italo.ods +0 -0
- data/test/files/simple_spreadsheet_from_italo.xls +0 -0
- data/test/files/simple_spreadsheet_from_italo.xml +0 -242
- data/test/files/so_datetime.csv +0 -7
- data/test/files/style.ods +0 -0
- data/test/files/style.xls +0 -0
- data/test/files/style.xlsx +0 -0
- data/test/files/style.xml +0 -154
- data/test/files/time-test.csv +0 -2
- data/test/files/time-test.ods +0 -0
- data/test/files/time-test.xls +0 -0
- data/test/files/time-test.xlsx +0 -0
- data/test/files/time-test.xml +0 -131
- data/test/files/type_excel.ods +0 -0
- data/test/files/type_excel.xlsx +0 -0
- data/test/files/type_excelx.ods +0 -0
- data/test/files/type_excelx.xls +0 -0
- data/test/files/type_openoffice.xls +0 -0
- data/test/files/type_openoffice.xlsx +0 -0
- data/test/files/whitespace.ods +0 -0
- data/test/files/whitespace.xls +0 -0
- data/test/files/whitespace.xlsx +0 -0
- data/test/files/whitespace.xml +0 -184
- data/test/rm_sub_test.rb +0 -12
- data/test/rm_test.rb +0 -7
- data/test/test_generic_spreadsheet.rb +0 -259
- data/website/index.html +0 -385
- data/website/index.txt +0 -423
- data/website/javascripts/rounded_corners_lite.inc.js +0 -285
- data/website/stylesheets/screen.css +0 -130
- data/website/template.rhtml +0 -48
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: cd6f8267a04fcec20134f5170360fdd0259369b0c8b319100d0304c95964a6f5
|
|
4
|
+
data.tar.gz: 6e33716242265c9c02a7cc42b22690f03114cf12bcbbe846055040fede3cd790
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65dd59afe1dfda800c7e88547f305dbd1eb295c5715fd23dc5123618307205ae1a0c0740511739d2880b4d91cabca10fad152d522cca96a2694f8e3c1cccbd39
|
|
7
|
+
data.tar.gz: 9d239b22ee226fc3466d2445127dc2c4fc50c488249171b0b86dc17a4a41779e543e83ed3def1fe9fae26ddc67608a81733483e3757b32156d822abdbf2bc974
|
data/.codeclimate.yml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
Thanks for filing an issue. Following these instructions will help us solve your problem sooner.
|
|
2
|
+
|
|
3
|
+
### Steps to reproduce
|
|
4
|
+
|
|
5
|
+
1. Create an executable test case for this issue ([sample test case](https://gist.github.com/tgturner/e4b7f491639b8a6dd883fe2ace408652))
|
|
6
|
+
2. You can share your executable test case as a [gist](https://gist.github.com), or simply paste the content into the issue description.
|
|
7
|
+
- You can execute the test case by running `ruby the_file.rb` in your terminal. If all goes well, you should see your test case failing.
|
|
8
|
+
3. Please provide a stripped down version of the offending spreadsheet.
|
|
9
|
+
|
|
10
|
+
### Issue
|
|
11
|
+
Describe the issue
|
|
12
|
+
|
|
13
|
+
### System configuration
|
|
14
|
+
**Roo version**:
|
|
15
|
+
|
|
16
|
+
**Ruby version**:
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
### Summary
|
|
2
|
+
|
|
3
|
+
Provide a general description of the code changes in your pull
|
|
4
|
+
request... were there any bugs you had fixed? If so, mention them. If
|
|
5
|
+
these bugs have open GitHub issues, be sure to tag them here as well,
|
|
6
|
+
to keep the conversation linked together.
|
|
7
|
+
|
|
8
|
+
### Other Information
|
|
9
|
+
|
|
10
|
+
If there's anything else that's important and relevant to your pull
|
|
11
|
+
request, mention that information here. This could include
|
|
12
|
+
benchmarks, or other information.
|
|
13
|
+
|
|
14
|
+
Thanks for contributing to Roo!
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: Changelog
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
changelog:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v2
|
|
12
|
+
- uses: amoniacou/changelog-enforcer@v1.4.0
|
|
13
|
+
with:
|
|
14
|
+
changeLogPath: 'CHANGELOG.md'
|
|
15
|
+
skipLabel: 'Skip-Changelog'
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Ruby
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- master
|
|
6
|
+
pull_request:
|
|
7
|
+
branches:
|
|
8
|
+
- master
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: false
|
|
14
|
+
matrix:
|
|
15
|
+
ruby:
|
|
16
|
+
- '2.7'
|
|
17
|
+
- '3.0'
|
|
18
|
+
- '3.1'
|
|
19
|
+
- ruby-head
|
|
20
|
+
- jruby-9.3.3.0
|
|
21
|
+
include:
|
|
22
|
+
- ruby: ruby-head
|
|
23
|
+
env:
|
|
24
|
+
RUBYOPT: '--jit'
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v2
|
|
27
|
+
- uses: ruby/setup-ruby@v1
|
|
28
|
+
with:
|
|
29
|
+
ruby-version: ${{ matrix.ruby }}
|
|
30
|
+
bundler-cache: true
|
|
31
|
+
- run: bundle exec rake
|
|
32
|
+
env:
|
|
33
|
+
LONG_RUN: true
|
|
34
|
+
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRubyVersion: 2.4
|
|
3
|
+
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
|
4
|
+
# to ignore them, so only the ones explicitly set in this file are enabled.
|
|
5
|
+
DisabledByDefault: true
|
|
6
|
+
|
|
7
|
+
Performance:
|
|
8
|
+
Exclude:
|
|
9
|
+
- '**/test/**/*'
|
|
10
|
+
- '**/spec/**/*'
|
|
11
|
+
|
|
12
|
+
# Prefer &&/|| over and/or.
|
|
13
|
+
Style/AndOr:
|
|
14
|
+
Enabled: true
|
|
15
|
+
|
|
16
|
+
# Do not use braces for hash literals when they are the last argument of a
|
|
17
|
+
# method call.
|
|
18
|
+
Style/BracesAroundHashParameters:
|
|
19
|
+
Enabled: true
|
|
20
|
+
EnforcedStyle: context_dependent
|
|
21
|
+
|
|
22
|
+
# Align `when` with `case`.
|
|
23
|
+
Layout/CaseIndentation:
|
|
24
|
+
Enabled: true
|
|
25
|
+
|
|
26
|
+
# Align comments with method definitions.
|
|
27
|
+
Layout/CommentIndentation:
|
|
28
|
+
Enabled: true
|
|
29
|
+
|
|
30
|
+
Layout/ElseAlignment:
|
|
31
|
+
Enabled: true
|
|
32
|
+
|
|
33
|
+
# Align `end` with the matching keyword or starting expression except for
|
|
34
|
+
# assignments, where it should be aligned with the LHS.
|
|
35
|
+
Layout/EndAlignment:
|
|
36
|
+
Enabled: true
|
|
37
|
+
EnforcedStyleAlignWith: variable
|
|
38
|
+
AutoCorrect: true
|
|
39
|
+
|
|
40
|
+
Layout/EmptyLineAfterMagicComment:
|
|
41
|
+
Enabled: true
|
|
42
|
+
|
|
43
|
+
Layout/EmptyLinesAroundBlockBody:
|
|
44
|
+
Enabled: true
|
|
45
|
+
|
|
46
|
+
# In a regular class definition, no empty lines around the body.
|
|
47
|
+
Layout/EmptyLinesAroundClassBody:
|
|
48
|
+
Enabled: true
|
|
49
|
+
|
|
50
|
+
# In a regular method definition, no empty lines around the body.
|
|
51
|
+
Layout/EmptyLinesAroundMethodBody:
|
|
52
|
+
Enabled: true
|
|
53
|
+
|
|
54
|
+
# In a regular module definition, no empty lines around the body.
|
|
55
|
+
Layout/EmptyLinesAroundModuleBody:
|
|
56
|
+
Enabled: true
|
|
57
|
+
|
|
58
|
+
Layout/FirstParameterIndentation:
|
|
59
|
+
Enabled: true
|
|
60
|
+
|
|
61
|
+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
|
62
|
+
Style/HashSyntax:
|
|
63
|
+
Enabled: true
|
|
64
|
+
|
|
65
|
+
# Method definitions after `private` or `protected` isolated calls need one
|
|
66
|
+
# extra level of indentation.
|
|
67
|
+
Layout/IndentationConsistency:
|
|
68
|
+
Enabled: true
|
|
69
|
+
|
|
70
|
+
# Two spaces, no tabs (for indentation).
|
|
71
|
+
Layout/IndentationWidth:
|
|
72
|
+
Enabled: true
|
|
73
|
+
|
|
74
|
+
Layout/LeadingCommentSpace:
|
|
75
|
+
Enabled: true
|
|
76
|
+
|
|
77
|
+
Layout/SpaceAfterColon:
|
|
78
|
+
Enabled: true
|
|
79
|
+
|
|
80
|
+
Layout/SpaceAfterComma:
|
|
81
|
+
Enabled: true
|
|
82
|
+
|
|
83
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
|
84
|
+
Enabled: true
|
|
85
|
+
|
|
86
|
+
Layout/SpaceAroundKeyword:
|
|
87
|
+
Enabled: true
|
|
88
|
+
|
|
89
|
+
Layout/SpaceAroundOperators:
|
|
90
|
+
Enabled: true
|
|
91
|
+
|
|
92
|
+
Layout/SpaceBeforeComma:
|
|
93
|
+
Enabled: true
|
|
94
|
+
|
|
95
|
+
Layout/SpaceBeforeFirstArg:
|
|
96
|
+
Enabled: true
|
|
97
|
+
|
|
98
|
+
Style/DefWithParentheses:
|
|
99
|
+
Enabled: true
|
|
100
|
+
|
|
101
|
+
# Defining a method with parameters needs parentheses.
|
|
102
|
+
Style/MethodDefParentheses:
|
|
103
|
+
Enabled: true
|
|
104
|
+
|
|
105
|
+
Style/FrozenStringLiteralComment:
|
|
106
|
+
Enabled: true
|
|
107
|
+
EnforcedStyle: always
|
|
108
|
+
|
|
109
|
+
# Use `foo {}` not `foo{}`.
|
|
110
|
+
Layout/SpaceBeforeBlockBraces:
|
|
111
|
+
Enabled: true
|
|
112
|
+
|
|
113
|
+
# Use `foo { bar }` not `foo {bar}`.
|
|
114
|
+
Layout/SpaceInsideBlockBraces:
|
|
115
|
+
Enabled: true
|
|
116
|
+
|
|
117
|
+
# Use `{ a: 1 }` not `{a:1}`.
|
|
118
|
+
Layout/SpaceInsideHashLiteralBraces:
|
|
119
|
+
Enabled: true
|
|
120
|
+
|
|
121
|
+
Layout/SpaceInsideParens:
|
|
122
|
+
Enabled: true
|
|
123
|
+
|
|
124
|
+
# Check quotes usage according to lint rule below.
|
|
125
|
+
Style/StringLiterals:
|
|
126
|
+
Enabled: true
|
|
127
|
+
EnforcedStyle: double_quotes
|
|
128
|
+
|
|
129
|
+
# Detect hard tabs, no hard tabs.
|
|
130
|
+
Layout/Tab:
|
|
131
|
+
Enabled: true
|
|
132
|
+
|
|
133
|
+
# Blank lines should not have any spaces.
|
|
134
|
+
Layout/TrailingBlankLines:
|
|
135
|
+
Enabled: true
|
|
136
|
+
|
|
137
|
+
# No trailing whitespace.
|
|
138
|
+
Layout/TrailingWhitespace:
|
|
139
|
+
Enabled: true
|
|
140
|
+
|
|
141
|
+
# Use quotes for string literals when they are enough.
|
|
142
|
+
Style/UnneededPercentQ:
|
|
143
|
+
Enabled: true
|
|
144
|
+
|
|
145
|
+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
|
146
|
+
Lint/RequireParentheses:
|
|
147
|
+
Enabled: true
|
|
148
|
+
|
|
149
|
+
Lint/StringConversionInInterpolation:
|
|
150
|
+
Enabled: true
|
|
151
|
+
|
|
152
|
+
Lint/UriEscapeUnescape:
|
|
153
|
+
Enabled: true
|
|
154
|
+
|
|
155
|
+
Style/ParenthesesAroundCondition:
|
|
156
|
+
Enabled: true
|
|
157
|
+
|
|
158
|
+
Style/RedundantReturn:
|
|
159
|
+
Enabled: true
|
|
160
|
+
AllowMultipleReturnValues: true
|
|
161
|
+
|
|
162
|
+
Style/Semicolon:
|
|
163
|
+
Enabled: true
|
|
164
|
+
AllowAsExpressionSeparator: true
|
|
165
|
+
|
|
166
|
+
# Prefer Foo.method over Foo::method
|
|
167
|
+
Style/ColonMethodCall:
|
|
168
|
+
Enabled: true
|
|
169
|
+
|
|
170
|
+
Style/TrivialAccessors:
|
|
171
|
+
Enabled: true
|
|
172
|
+
|
|
173
|
+
Performance/FlatMap:
|
|
174
|
+
Enabled: true
|
|
175
|
+
|
|
176
|
+
Performance/RedundantMerge:
|
|
177
|
+
Enabled: true
|
|
178
|
+
|
|
179
|
+
Performance/StartWith:
|
|
180
|
+
Enabled: true
|
|
181
|
+
|
|
182
|
+
Performance/EndWith:
|
|
183
|
+
Enabled: true
|
|
184
|
+
|
|
185
|
+
Performance/RegexpMatch:
|
|
186
|
+
Enabled: true
|
data/.simplecov
ADDED