Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

Commit 6a57753

Browse files
authored
Merge pull request #2 from AdWerx/v6.2.0-fork
V6.2.0 fork
2 parents c769382 + b99edbb commit 6a57753

File tree

147 files changed

+2936
-3666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+2936
-3666
lines changed

.hound.yml

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Style/CaseIndentation:
7979
Description: Indentation of when in a case/when/[else/]end.
8080
StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
8181
Enabled: true
82-
IndentWhenRelativeTo: case
82+
EnforcedStyle: case
8383
SupportedStyles:
8484
- case
8585
- end
@@ -157,10 +157,6 @@ Style/Encoding:
157157
Description: Use UTF-8 as the source file encoding.
158158
StyleGuide: https://github.com/bbatsov/ruby-style-guide#utf-8
159159
Enabled: false
160-
EnforcedStyle: always
161-
SupportedStyles:
162-
- when_needed
163-
- always
164160
Style/FileName:
165161
Description: Use snake_case for source file names.
166162
StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
@@ -169,7 +165,7 @@ Style/FileName:
169165
Style/FirstParameterIndentation:
170166
Description: Checks the indentation of the first parameter in a method call.
171167
Enabled: true
172-
EnforcedStyle: special_for_inner_method_call_in_parentheses
168+
EnforcedStyle: consistent
173169
SupportedStyles:
174170
- consistent
175171
- special_for_inner_method_call
@@ -210,11 +206,11 @@ Style/HashSyntax:
210206
SupportedStyles:
211207
- ruby19
212208
- hash_rockets
213-
Style/IfUnlessModifier:
209+
Metrics/LineLength:
214210
Description: Favor modifier if/unless usage when you have a single-line body.
215211
StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
216212
Enabled: false
217-
MaxLineLength: 80
213+
Max: 80
218214
Style/IndentationWidth:
219215
Description: Use 2 spaces for indentation.
220216
StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
@@ -311,7 +307,7 @@ Style/PredicateName:
311307
- is_
312308
- has_
313309
- have_
314-
NamePrefixBlacklist:
310+
ForbiddenPrefixes:
315311
- is_
316312
Style/RaiseArgs:
317313
Description: Checks the arguments passed to raise/fail.
@@ -435,7 +431,15 @@ Style/TrailingBlankLines:
435431
SupportedStyles:
436432
- final_newline
437433
- final_blank_line
438-
Style/TrailingCommaInLiteral:
434+
Style/TrailingCommaInArrayLiteral:
435+
Description: Checks for trailing comma in parameter lists and literals.
436+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
437+
Enabled: false
438+
EnforcedStyleForMultiline: no_comma
439+
SupportedStyles:
440+
- comma
441+
- no_comma
442+
Style/TrailingCommaInHashLiteral:
439443
Description: Checks for trailing comma in parameter lists and literals.
440444
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
441445
Enabled: false
@@ -450,7 +454,7 @@ Style/TrivialAccessors:
450454
ExactNameMatch: false
451455
AllowPredicates: false
452456
AllowDSLWriters: false
453-
Whitelist:
457+
AllowedMethods:
454458
- to_ary
455459
- to_a
456460
- to_c
@@ -476,11 +480,6 @@ Style/VariableName:
476480
SupportedStyles:
477481
- snake_case
478482
- camelCase
479-
Style/WhileUntilModifier:
480-
Description: Favor modifier while/until usage when you have a single-line body.
481-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
482-
Enabled: false
483-
MaxLineLength: 80
484483
Style/WordArray:
485484
Description: Use %w or %W for arrays of words.
486485
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
@@ -508,10 +507,10 @@ Metrics/CyclomaticComplexity:
508507
Enabled: false
509508
Max: 6
510509
Metrics/LineLength:
511-
Description: Limit lines to 80 characters.
512-
StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
510+
Description: Limit lines to 120 characters.
511+
StyleGuide: https://github.com/bbatsov/ruby-style-guide#120-character-limits
513512
Enabled: true
514-
Max: 80
513+
Max: 120
515514
AllowURI: true
516515
URISchemes:
517516
- http
@@ -541,14 +540,14 @@ Lint/AssignmentInCondition:
541540
Lint/EndAlignment:
542541
Description: Align ends correctly.
543542
Enabled: true
544-
AlignWith: keyword
543+
EnforcedStyleAlignWith: keyword
545544
SupportedStyles:
546545
- keyword
547546
- variable
548547
Lint/DefEndAlignment:
549548
Description: Align ends corresponding to defs correctly.
550549
Enabled: true
551-
AlignWith: start_of_line
550+
EnforcedStyleAlignWith: start_of_line
552551
SupportedStyles:
553552
- start_of_line
554553
- def
@@ -752,7 +751,7 @@ Style/LineEndConcatenation:
752751
Description: Use \ instead of + or << to concatenate two string literals at line
753752
end.
754753
Enabled: false
755-
Style/MethodCallParentheses:
754+
Style/MethodCallWithoutArgsParentheses:
756755
Description: Do not use parentheses for method calls with no arguments.
757756
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
758757
Enabled: true
@@ -799,7 +798,7 @@ Style/OneLineConditional:
799798
Description: Favor the ternary operator(?:) over if/then/else/end constructs.
800799
StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
801800
Enabled: false
802-
Style/OpMethod:
801+
Naming/BinaryOperatorParameterName:
803802
Description: When defining binary operators, name the argument other.
804803
StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
805804
Enabled: false
@@ -905,10 +904,10 @@ Style/UnlessElse:
905904
Description: Do not use unless with else. Rewrite these with the positive case first.
906905
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
907906
Enabled: true
908-
Style/UnneededCapitalW:
907+
Style/RedundantCapitalW:
909908
Description: Checks for %W when interpolation is not needed.
910909
Enabled: true
911-
Style/UnneededPercentQ:
910+
Style/RedundantPercentQ:
912911
Description: Checks for %q/%Q when single quotes or double quotes would do.
913912
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
914913
Enabled: true
@@ -974,14 +973,10 @@ Lint/EnsureReturn:
974973
Lint/Eval:
975974
Description: The use of eval represents a serious security risk.
976975
Enabled: true
977-
Lint/HandleExceptions:
976+
Lint/SuppressedException:
978977
Description: Don't suppress exception.
979978
StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
980979
Enabled: false
981-
Lint/InvalidCharacterLiteral:
982-
Description: Checks for invalid character literals with a non-escaped whitespace
983-
character.
984-
Enabled: false
985980
Lint/LiteralInCondition:
986981
Description: Checks of literals used in conditions.
987982
Enabled: false
@@ -1012,7 +1007,7 @@ Lint/SpaceBeforeFirstArg:
10121007
Description: Put a space between a method name and the first argument in a method
10131008
call without parentheses.
10141009
Enabled: true
1015-
Lint/StringConversionInInterpolation:
1010+
Lint/RedundantStringCoercion:
10161011
Description: Checks for Object#to_s usage in string interpolation.
10171012
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
10181013
Enabled: true
@@ -1037,7 +1032,7 @@ Lint/UselessAssignment:
10371032
Description: Checks for useless assignment to a local variable.
10381033
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
10391034
Enabled: true
1040-
Lint/UselessComparison:
1035+
Lint/BinaryOperatorWithIdenticalOperands:
10411036
Description: Checks for comparison of something with itself.
10421037
Enabled: true
10431038
Lint/UselessElseWithoutRescue:

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

Appraisals

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
appraise "4.2" do
2-
gem "rails", "~> 4.2.0"
1+
appraise "6.0" do
2+
gem "sqlite3", "~> 1.4", platforms: :ruby
3+
gem "rails", "~> 6.0"
34
end
45

5-
appraise "5.0" do
6-
gem "rails", "~> 5.0.0"
6+
appraise "7.0" do
7+
gem "sqlite3", "~> 1.4", platforms: :ruby
8+
gem "rails", "~> 7.0"
79
end

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM ruby:2.7.4
2+
3+
RUN apt-get update && apt-get install -y imagemagick ghostscript
4+
5+
COPY hack/policy.xml /etc/ImageMagick-6/policy.xml
6+
7+
WORKDIR /code
8+
9+
COPY Gemfile paperclip.gemspec ./
10+
11+
COPY lib/ ./lib
12+
13+
RUN bundle
14+
15+
COPY . /code

Gemfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ source "https://rubygems.org"
22

33
gemspec
44

5-
gem 'sqlite3', '~> 1.3.8', :platforms => :ruby
6-
gem 'pry'
5+
gem "pry"
76

87
# Hinting at development dependencies
98
# Prevents bundler from taking a long-time to resolve
109
group :development, :test do
11-
gem 'activerecord-import'
12-
gem 'mime-types'
13-
gem 'builder'
14-
gem 'rubocop', require: false
15-
gem 'rspec'
10+
gem "activerecord-import"
11+
gem 'bootsnap', require: false
12+
gem "builder"
13+
gem 'listen', '~> 3.0.8'
14+
gem "mime-types"
15+
gem "rspec"
16+
gem "rubocop", require: false
17+
gem "sprockets", "3.7.2"
1618
end

0 commit comments

Comments
 (0)