rails_pallet 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7051495e5cf7ebca90869aae101083ba2c2982edc2896cd545a8aae402f77c20
4
- data.tar.gz: 1d16034140e14cd59cb15b73d9f8a8d3d4ab377afdf6b6e1f307ab34bdb8a417
3
+ metadata.gz: 23fe2aac8fb25ce3e75f6d8b5f94f408ef25d8cd81a2f0f424751eec8a3277b6
4
+ data.tar.gz: 1398b14725614b3c4591f5f92aae216ba1069ab5232d0bc63018027720af143c
5
5
  SHA512:
6
- metadata.gz: eaad47e1e537887a6b0f784ea586a6246a533a4cb4940cdc6defd2993bf17e460d73a8a08fe846a05c72096c307e183cdf1f39174c36960c735c65f932cfe500
7
- data.tar.gz: 8b9cac41b7ce37be50dcc6ddd855d7a3c8234623a2eb0f3f3c174b0c9a101a141037de802bde2402420df4da46022ccf04f8665b7e448ab2094b42e587e031fb
6
+ metadata.gz: 10ce9fc5da2bde78b4e064febcaac8ced57f07cf02a52588cded619ebbb06bf0db1045a24ed55c140f43572a467ce04fc624e2eb9f54b39ace1ebc31691f3428
7
+ data.tar.gz: 9843c47e521678a6728679fa0b8048f0ef10c60c6764cba869dd0b9924c4728580efaa2e5c16f03041d99eea63541896ab7e6b8f34d15c54a95c8e18c44e70b5
@@ -10,7 +10,7 @@ AllCops:
10
10
  DisplayCopNames: false
11
11
  StyleGuideCopsOnly: false
12
12
  TargetRubyVersion: 2.3
13
- Style/AccessModifierIndentation:
13
+ Layout/AccessModifierIndentation:
14
14
  Description: Check indentation of private/protected visibility modifiers.
15
15
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
16
16
  Enabled: true
@@ -18,7 +18,7 @@ Style/AccessModifierIndentation:
18
18
  SupportedStyles:
19
19
  - outdent
20
20
  - indent
21
- Style/AlignHash:
21
+ Layout/AlignHash:
22
22
  Description: Align the elements of a hash literal if they span more than one line.
23
23
  Enabled: true
24
24
  EnforcedHashRocketStyle: key
@@ -29,7 +29,7 @@ Style/AlignHash:
29
29
  - always_ignore
30
30
  - ignore_implicit
31
31
  - ignore_explicit
32
- Style/AlignParameters:
32
+ Layout/AlignParameters:
33
33
  Description: Align the parameters of a method call if they span more than one line.
34
34
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
35
35
  Enabled: true
@@ -63,11 +63,11 @@ Style/BracesAroundHashParameters:
63
63
  - braces
64
64
  - no_braces
65
65
  - context_dependent
66
- Style/CaseIndentation:
66
+ Layout/CaseIndentation:
67
67
  Description: Indentation of when in a case/when/[else/]end.
68
68
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
69
69
  Enabled: true
70
- IndentWhenRelativeTo: case
70
+ EnforcedStyle: case
71
71
  SupportedStyles:
72
72
  - case
73
73
  - end
@@ -108,7 +108,7 @@ Style/CommentAnnotation:
108
108
  - OPTIMIZE
109
109
  - HACK
110
110
  - REVIEW
111
- Style/DotPosition:
111
+ Layout/DotPosition:
112
112
  Description: Checks the position of the dot in multi-line method calls.
113
113
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
114
114
  Enabled: true
@@ -116,26 +116,26 @@ Style/DotPosition:
116
116
  SupportedStyles:
117
117
  - leading
118
118
  - trailing
119
- Style/EmptyLineBetweenDefs:
119
+ Layout/EmptyLineBetweenDefs:
120
120
  Description: Use empty lines between defs.
121
121
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
122
122
  Enabled: true
123
123
  AllowAdjacentOneLineDefs: false
124
- Style/EmptyLinesAroundBlockBody:
124
+ Layout/EmptyLinesAroundBlockBody:
125
125
  Description: Keeps track of empty lines around block bodies.
126
126
  Enabled: true
127
127
  EnforcedStyle: no_empty_lines
128
128
  SupportedStyles:
129
129
  - empty_lines
130
130
  - no_empty_lines
131
- Style/EmptyLinesAroundClassBody:
131
+ Layout/EmptyLinesAroundClassBody:
132
132
  Description: Keeps track of empty lines around class bodies.
133
133
  Enabled: true
134
134
  EnforcedStyle: no_empty_lines
135
135
  SupportedStyles:
136
136
  - empty_lines
137
137
  - no_empty_lines
138
- Style/EmptyLinesAroundModuleBody:
138
+ Layout/EmptyLinesAroundModuleBody:
139
139
  Description: Keeps track of empty lines around module bodies.
140
140
  Enabled: true
141
141
  EnforcedStyle: no_empty_lines
@@ -155,7 +155,7 @@ Style/FileName:
155
155
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
156
156
  Enabled: false
157
157
  Exclude: []
158
- Style/FirstParameterIndentation:
158
+ Layout/FirstParameterIndentation:
159
159
  Description: Checks the indentation of the first parameter in a method call.
160
160
  Enabled: true
161
161
  EnforcedStyle: special_for_inner_method_call_in_parentheses
@@ -206,12 +206,12 @@ Style/IfUnlessModifier:
206
206
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
207
207
  Enabled: false
208
208
  MaxLineLength: 80
209
- Style/IndentationWidth:
209
+ Layout/IndentationWidth:
210
210
  Description: Use 2 spaces for indentation.
211
211
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
212
212
  Enabled: true
213
213
  Width: 2
214
- Style/IndentHash:
214
+ Layout/IndentHash:
215
215
  Description: Checks the indentation of the first key in a hash literal.
216
216
  Enabled: true
217
217
  EnforcedStyle: special_inside_parentheses
@@ -256,7 +256,7 @@ Style/MethodName:
256
256
  SupportedStyles:
257
257
  - snake_case
258
258
  - camelCase
259
- Style/MultilineOperationIndentation:
259
+ Layout/MultilineOperationIndentation:
260
260
  Description: Checks indentation of binary operations that span more than one line.
261
261
  Enabled: true
262
262
  EnforcedStyle: indented
@@ -366,14 +366,14 @@ Style/StringLiteralsInInterpolation:
366
366
  SupportedStyles:
367
367
  - single_quotes
368
368
  - double_quotes
369
- Style/SpaceAroundBlockParameters:
369
+ Layout/SpaceAroundBlockParameters:
370
370
  Description: Checks the spacing inside and after block parameters pipes.
371
371
  Enabled: true
372
372
  EnforcedStyleInsidePipes: no_space
373
- SupportedStyles:
373
+ SupportedStylesInsidePipes:
374
374
  - space
375
375
  - no_space
376
- Style/SpaceAroundEqualsInParameterDefault:
376
+ Layout/SpaceAroundEqualsInParameterDefault:
377
377
  Description: Checks that the equals signs in parameter default assignments have
378
378
  or don't have surrounding space depending on configuration.
379
379
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
@@ -382,14 +382,14 @@ Style/SpaceAroundEqualsInParameterDefault:
382
382
  SupportedStyles:
383
383
  - space
384
384
  - no_space
385
- Style/SpaceBeforeBlockBraces:
385
+ Layout/SpaceBeforeBlockBraces:
386
386
  Description: Checks that the left block brace has or doesn't have space before it.
387
387
  Enabled: true
388
388
  EnforcedStyle: space
389
389
  SupportedStyles:
390
390
  - space
391
391
  - no_space
392
- Style/SpaceInsideBlockBraces:
392
+ Layout/SpaceInsideBlockBraces:
393
393
  Description: Checks that block braces have or don't have surrounding space. For
394
394
  blocks taking parameters, checks that the left brace has or doesn't have trailing
395
395
  space.
@@ -400,7 +400,7 @@ Style/SpaceInsideBlockBraces:
400
400
  - no_space
401
401
  EnforcedStyleForEmptyBraces: no_space
402
402
  SpaceBeforeBlockParameters: true
403
- Style/SpaceInsideHashLiteralBraces:
403
+ Layout/SpaceInsideHashLiteralBraces:
404
404
  Description: Use spaces inside hash literal braces - or don't.
405
405
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
406
406
  Enabled: true
@@ -414,7 +414,7 @@ Style/SymbolProc:
414
414
  Enabled: true
415
415
  IgnoredMethods:
416
416
  - respond_to
417
- Style/TrailingBlankLines:
417
+ Layout/TrailingBlankLines:
418
418
  Description: Checks trailing blank lines and final newline.
419
419
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
420
420
  Enabled: true
@@ -530,15 +530,15 @@ Lint/AssignmentInCondition:
530
530
  Lint/EndAlignment:
531
531
  Description: Align ends correctly.
532
532
  Enabled: true
533
- AlignWith: keyword
534
- SupportedStyles:
533
+ EnforcedStyleAlignWith: keyword
534
+ SupportedStylesAlignWith:
535
535
  - keyword
536
536
  - variable
537
537
  Lint/DefEndAlignment:
538
538
  Description: Align ends corresponding to defs correctly.
539
539
  Enabled: true
540
- AlignWith: start_of_line
541
- SupportedStyles:
540
+ EnforcedStyleAlignWith: start_of_line
541
+ SupportedStylesAlignWith:
542
542
  - start_of_line
543
543
  - def
544
544
  Rails/ActionFilter:
@@ -589,7 +589,7 @@ Style/SymbolArray:
589
589
  Description: Use %i or %I for arrays of symbols.
590
590
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
591
591
  Enabled: false
592
- Style/ExtraSpacing:
592
+ Layout/ExtraSpacing:
593
593
  Description: Do not use unnecessary spacing.
594
594
  Enabled: false
595
595
  Style/AccessorMethodName:
@@ -599,7 +599,7 @@ Style/Alias:
599
599
  Description: Use alias_method instead of alias.
600
600
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
601
601
  Enabled: false
602
- Style/AlignArray:
602
+ Layout/AlignArray:
603
603
  Description: Align the elements of an array literal if they span more than one line.
604
604
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
605
605
  Enabled: true
@@ -627,7 +627,7 @@ Style/BlockComments:
627
627
  Description: Do not use block comments.
628
628
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
629
629
  Enabled: false
630
- Style/BlockEndNewline:
630
+ Layout/BlockEndNewline:
631
631
  Description: Put end statement of multiline block on its own line.
632
632
  Enabled: true
633
633
  Style/CaseEquality:
@@ -654,7 +654,7 @@ Style/ColonMethodCall:
654
654
  Description: 'Do not use :: for method call.'
655
655
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
656
656
  Enabled: false
657
- Style/CommentIndentation:
657
+ Layout/CommentIndentation:
658
658
  Description: Indentation of comments.
659
659
  Enabled: true
660
660
  Style/ConstantName:
@@ -679,19 +679,19 @@ Style/DoubleNegation:
679
679
  Style/EachWithObject:
680
680
  Description: Prefer `each_with_object` over `inject` or `reduce`.
681
681
  Enabled: false
682
- Style/ElseAlignment:
682
+ Layout/ElseAlignment:
683
683
  Description: Align elses and elsifs correctly.
684
684
  Enabled: true
685
685
  Style/EmptyElse:
686
686
  Description: Avoid empty else-clauses.
687
687
  Enabled: true
688
- Style/EmptyLines:
688
+ Layout/EmptyLines:
689
689
  Description: Don't use several empty lines in a row.
690
690
  Enabled: true
691
- Style/EmptyLinesAroundAccessModifier:
691
+ Layout/EmptyLinesAroundAccessModifier:
692
692
  Description: Keep blank lines around access modifiers.
693
693
  Enabled: true
694
- Style/EmptyLinesAroundMethodBody:
694
+ Layout/EmptyLinesAroundMethodBody:
695
695
  Description: Keeps track of empty lines around method bodies.
696
696
  Enabled: true
697
697
  Style/EmptyLiteral:
@@ -702,7 +702,7 @@ Style/EndBlock:
702
702
  Description: Avoid the use of END blocks.
703
703
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
704
704
  Enabled: true
705
- Style/EndOfLine:
705
+ Layout/EndOfLine:
706
706
  Description: Use Unix-style line endings.
707
707
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
708
708
  Enabled: true
@@ -718,10 +718,10 @@ Style/IfWithSemicolon:
718
718
  Description: Do not use if x; .... Use the ternary operator instead.
719
719
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
720
720
  Enabled: false
721
- Style/IndentationConsistency:
721
+ Layout/IndentationConsistency:
722
722
  Description: Keep indentation straight.
723
723
  Enabled: true
724
- Style/IndentArray:
724
+ Layout/IndentArray:
725
725
  Description: Checks the indentation of the first element in an array literal.
726
726
  Enabled: true
727
727
  Style/InfiniteLoop:
@@ -732,7 +732,7 @@ Style/Lambda:
732
732
  Description: Use the new lambda literal syntax for single-line blocks.
733
733
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
734
734
  Enabled: false
735
- Style/LeadingCommentSpace:
735
+ Layout/LeadingCommentSpace:
736
736
  Description: Comments should start with a space.
737
737
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
738
738
  Enabled: true
@@ -740,7 +740,7 @@ Style/LineEndConcatenation:
740
740
  Description: Use \ instead of + or << to concatenate two string literals at line
741
741
  end.
742
742
  Enabled: false
743
- Style/MethodCallParentheses:
743
+ Style/MethodCallWithoutArgsParentheses:
744
744
  Description: Do not use parentheses for method calls with no arguments.
745
745
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
746
746
  Enabled: true
@@ -752,7 +752,7 @@ Style/MultilineBlockChain:
752
752
  Description: Avoid multi-line chains of blocks.
753
753
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
754
754
  Enabled: false
755
- Style/MultilineBlockLayout:
755
+ Layout/MultilineBlockLayout:
756
756
  Description: Ensures newlines after multiline block do statements.
757
757
  Enabled: false
758
758
  Style/MultilineIfThen:
@@ -820,56 +820,56 @@ Style/SelfAssignment:
820
820
  used.
821
821
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
822
822
  Enabled: false
823
- Style/SpaceAfterColon:
823
+ Layout/SpaceAfterColon:
824
824
  Description: Use spaces after colons.
825
825
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
826
826
  Enabled: true
827
- Style/SpaceAfterComma:
827
+ Layout/SpaceAfterComma:
828
828
  Description: Use spaces after commas.
829
829
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
830
830
  Enabled: true
831
- Style/SpaceAroundKeyword:
831
+ Layout/SpaceAroundKeyword:
832
832
  Description: Use a space around keywords if appropriate.
833
833
  Enabled: true
834
- Style/SpaceAfterMethodName:
834
+ Layout/SpaceAfterMethodName:
835
835
  Description: Do not put a space between a method name and the opening parenthesis
836
836
  in a method definition.
837
837
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
838
838
  Enabled: true
839
- Style/SpaceAfterNot:
839
+ Layout/SpaceAfterNot:
840
840
  Description: Tracks redundant space after the ! operator.
841
841
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
842
842
  Enabled: true
843
- Style/SpaceAfterSemicolon:
843
+ Layout/SpaceAfterSemicolon:
844
844
  Description: Use spaces after semicolons.
845
845
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
846
846
  Enabled: true
847
- Style/SpaceBeforeComma:
847
+ Layout/SpaceBeforeComma:
848
848
  Description: No spaces before commas.
849
849
  Enabled: true
850
- Style/SpaceBeforeComment:
850
+ Layout/SpaceBeforeComment:
851
851
  Description: Checks for missing space between code and a comment on the same line.
852
852
  Enabled: true
853
- Style/SpaceBeforeFirstArg:
853
+ Layout/SpaceBeforeFirstArg:
854
854
  Description: Put a space between a method name and the first argument in a method
855
855
  call without parentheses.
856
856
  Enabled: true
857
- Style/SpaceBeforeSemicolon:
857
+ Layout/SpaceBeforeSemicolon:
858
858
  Description: No spaces before semicolons.
859
859
  Enabled: true
860
- Style/SpaceAroundOperators:
860
+ Layout/SpaceAroundOperators:
861
861
  Description: Use spaces around operators.
862
862
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
863
863
  Enabled: true
864
- Style/SpaceInsideBrackets:
864
+ Layout/SpaceInsideBrackets:
865
865
  Description: No spaces after [ or before ].
866
866
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
867
867
  Enabled: true
868
- Style/SpaceInsideParens:
868
+ Layout/SpaceInsideParens:
869
869
  Description: No spaces after ( or before ).
870
870
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
871
871
  Enabled: true
872
- Style/SpaceInsideRangeLiteral:
872
+ Layout/SpaceInsideRangeLiteral:
873
873
  Description: No spaces inside range literals.
874
874
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
875
875
  Enabled: true
@@ -881,11 +881,11 @@ Style/StructInheritance:
881
881
  Description: Checks for inheritance from Struct.new.
882
882
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
883
883
  Enabled: true
884
- Style/Tab:
884
+ Layout/Tab:
885
885
  Description: No hard tabs.
886
886
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
887
887
  Enabled: true
888
- Style/TrailingWhitespace:
888
+ Layout/TrailingWhitespace:
889
889
  Description: Avoid trailing whitespace.
890
890
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
891
891
  Enabled: true
@@ -955,7 +955,7 @@ Lint/EnsureReturn:
955
955
  Description: Do not use return in an ensure block.
956
956
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
957
957
  Enabled: true
958
- Lint/Eval:
958
+ Security/Eval:
959
959
  Description: The use of eval represents a serious security risk.
960
960
  Enabled: true
961
961
  Lint/HandleExceptions:
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ### v2.3.0
6
+
7
+ ##### Added
8
+
9
+ * Add support for Rails 5
10
+
5
11
  ### v2.2.0
6
12
 
7
13
  ##### Changed
@@ -1,223 +1,219 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_pallet (2.2.0)
4
+ rails_pallet (2.3.0)
5
5
  active_model_serializers (~> 0.9)
6
6
  hashids (~> 1.0, >= 1.0.2)
7
- paperclip (~> 4.2, >= 4.2.0)
8
- rails (~> 4.2, >= 4.2.1)
7
+ paperclip
8
+ rails (>= 4.2)
9
9
  responders (~> 2.1, >= 2.1.0)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actionmailer (4.2.1)
15
- actionpack (= 4.2.1)
16
- actionview (= 4.2.1)
17
- activejob (= 4.2.1)
14
+ actionmailer (4.2.10)
15
+ actionpack (= 4.2.10)
16
+ actionview (= 4.2.10)
17
+ activejob (= 4.2.10)
18
18
  mail (~> 2.5, >= 2.5.4)
19
19
  rails-dom-testing (~> 1.0, >= 1.0.5)
20
- actionpack (4.2.1)
21
- actionview (= 4.2.1)
22
- activesupport (= 4.2.1)
20
+ actionpack (4.2.10)
21
+ actionview (= 4.2.10)
22
+ activesupport (= 4.2.10)
23
23
  rack (~> 1.6)
24
24
  rack-test (~> 0.6.2)
25
25
  rails-dom-testing (~> 1.0, >= 1.0.5)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
27
- actionview (4.2.1)
28
- activesupport (= 4.2.1)
26
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
+ actionview (4.2.10)
28
+ activesupport (= 4.2.10)
29
29
  builder (~> 3.1)
30
30
  erubis (~> 2.7.0)
31
31
  rails-dom-testing (~> 1.0, >= 1.0.5)
32
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
32
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
33
  active_model_serializers (0.10.7)
34
34
  actionpack (>= 4.1, < 6)
35
35
  activemodel (>= 4.1, < 6)
36
36
  case_transform (>= 0.2)
37
37
  jsonapi-renderer (>= 0.1.1.beta1, < 0.3)
38
- activejob (4.2.1)
39
- activesupport (= 4.2.1)
38
+ activejob (4.2.10)
39
+ activesupport (= 4.2.10)
40
40
  globalid (>= 0.3.0)
41
- activemodel (4.2.1)
42
- activesupport (= 4.2.1)
41
+ activemodel (4.2.10)
42
+ activesupport (= 4.2.10)
43
43
  builder (~> 3.1)
44
- activerecord (4.2.1)
45
- activemodel (= 4.2.1)
46
- activesupport (= 4.2.1)
44
+ activerecord (4.2.10)
45
+ activemodel (= 4.2.10)
46
+ activesupport (= 4.2.10)
47
47
  arel (~> 6.0)
48
- activesupport (4.2.1)
48
+ activesupport (4.2.10)
49
49
  i18n (~> 0.7)
50
- json (~> 1.7, >= 1.7.7)
51
50
  minitest (~> 5.1)
52
51
  thread_safe (~> 0.3, >= 0.3.4)
53
52
  tzinfo (~> 1.1)
54
- annotate (2.6.8)
55
- activerecord (>= 3.2, <= 4.3)
56
- rake (~> 10.4)
57
- arel (6.0.0)
58
- builder (3.2.2)
53
+ annotate (2.7.2)
54
+ activerecord (>= 3.2, < 6.0)
55
+ rake (>= 10.4, < 13.0)
56
+ arel (6.0.4)
57
+ builder (3.2.3)
59
58
  case_transform (0.2)
60
59
  activesupport
61
- celluloid (0.16.0)
62
- timers (~> 4.0.0)
63
60
  climate_control (0.2.0)
64
- cocaine (0.5.8)
65
- climate_control (>= 0.0.3, < 1.0)
66
- coderay (1.1.0)
61
+ coderay (1.1.2)
67
62
  concurrent-ruby (1.0.5)
68
- coveralls (0.8.19)
63
+ coveralls (0.8.21)
69
64
  json (>= 1.8, < 3)
70
- simplecov (~> 0.12.0)
65
+ simplecov (~> 0.14.1)
71
66
  term-ansicolor (~> 1.3)
72
- thor (~> 0.19.1)
67
+ thor (~> 0.19.4)
73
68
  tins (~> 1.6)
74
- diff-lcs (1.2.5)
69
+ crass (1.0.3)
70
+ diff-lcs (1.3)
75
71
  docile (1.1.5)
76
72
  erubis (2.7.0)
77
- factory_girl (4.5.0)
73
+ factory_bot (4.8.2)
78
74
  activesupport (>= 3.0.0)
79
- factory_girl_rails (4.5.0)
80
- factory_girl (~> 4.5.0)
75
+ factory_bot_rails (4.8.2)
76
+ factory_bot (~> 4.8.2)
81
77
  railties (>= 3.0.0)
82
- ffi (1.9.8)
78
+ ffi (1.9.23)
83
79
  formatador (0.2.5)
84
80
  globalid (0.4.1)
85
81
  activesupport (>= 4.2.0)
86
- guard (2.12.5)
82
+ guard (2.14.2)
87
83
  formatador (>= 0.2.4)
88
- listen (~> 2.7)
89
- lumberjack (~> 1.0)
84
+ listen (>= 2.7, < 4.0)
85
+ lumberjack (>= 1.0.12, < 2.0)
90
86
  nenv (~> 0.1)
91
87
  notiffany (~> 0.0)
92
88
  pry (>= 0.9.12)
93
89
  shellany (~> 0.0)
94
90
  thor (>= 0.18.1)
95
91
  guard-compat (1.2.1)
96
- guard-rspec (4.5.2)
92
+ guard-rspec (4.7.3)
97
93
  guard (~> 2.1)
98
94
  guard-compat (~> 1.1)
99
95
  rspec (>= 2.99.0, < 4.0)
100
96
  hashids (1.0.4)
101
- hitimes (1.2.2)
102
- i18n (0.7.0)
103
- json (1.8.3)
97
+ i18n (0.9.5)
98
+ concurrent-ruby (~> 1.0)
99
+ json (2.1.0)
104
100
  jsonapi-renderer (0.2.0)
105
- listen (2.10.0)
106
- celluloid (~> 0.16.0)
107
- rb-fsevent (>= 0.9.3)
108
- rb-inotify (>= 0.9)
109
- loofah (2.0.2)
101
+ listen (3.1.5)
102
+ rb-fsevent (~> 0.9, >= 0.9.4)
103
+ rb-inotify (~> 0.9, >= 0.9.7)
104
+ ruby_dep (~> 1.2)
105
+ loofah (2.2.2)
106
+ crass (~> 1.0.2)
110
107
  nokogiri (>= 1.5.9)
111
- lumberjack (1.0.9)
108
+ lumberjack (1.0.12)
112
109
  mail (2.7.0)
113
110
  mini_mime (>= 0.1.1)
114
- method_source (0.8.2)
111
+ method_source (0.9.0)
115
112
  mime-types (3.1)
116
113
  mime-types-data (~> 3.2015)
117
114
  mime-types-data (3.2016.0521)
118
- mimemagic (0.3.0)
115
+ mimemagic (0.3.2)
119
116
  mini_mime (1.0.0)
120
- mini_portile (0.6.2)
121
- minitest (5.7.0)
122
- nenv (0.2.0)
123
- nokogiri (1.6.6.2)
124
- mini_portile (~> 0.6.0)
125
- notiffany (0.0.6)
117
+ mini_portile2 (2.3.0)
118
+ minitest (5.11.3)
119
+ nenv (0.3.0)
120
+ nokogiri (1.8.2)
121
+ mini_portile2 (~> 2.3.0)
122
+ notiffany (0.1.1)
126
123
  nenv (~> 0.1)
127
124
  shellany (~> 0.0)
128
- paperclip (4.3.7)
129
- activemodel (>= 3.2.0)
130
- activesupport (>= 3.2.0)
131
- cocaine (~> 0.5.5)
125
+ paperclip (6.0.0)
126
+ activemodel (>= 4.2.0)
127
+ activesupport (>= 4.2.0)
132
128
  mime-types
133
- mimemagic (= 0.3.0)
134
- pry (0.10.1)
129
+ mimemagic (~> 0.3.0)
130
+ terrapin (~> 0.6.0)
131
+ pry (0.11.3)
135
132
  coderay (~> 1.1.0)
136
- method_source (~> 0.8.1)
137
- slop (~> 3.4)
138
- pry-rails (0.3.4)
139
- pry (>= 0.9.10)
140
- rack (1.6.1)
133
+ method_source (~> 0.9.0)
134
+ pry-rails (0.3.6)
135
+ pry (>= 0.10.4)
136
+ rack (1.6.9)
141
137
  rack-test (0.6.3)
142
138
  rack (>= 1.0)
143
- rails (4.2.1)
144
- actionmailer (= 4.2.1)
145
- actionpack (= 4.2.1)
146
- actionview (= 4.2.1)
147
- activejob (= 4.2.1)
148
- activemodel (= 4.2.1)
149
- activerecord (= 4.2.1)
150
- activesupport (= 4.2.1)
139
+ rails (4.2.10)
140
+ actionmailer (= 4.2.10)
141
+ actionpack (= 4.2.10)
142
+ actionview (= 4.2.10)
143
+ activejob (= 4.2.10)
144
+ activemodel (= 4.2.10)
145
+ activerecord (= 4.2.10)
146
+ activesupport (= 4.2.10)
151
147
  bundler (>= 1.3.0, < 2.0)
152
- railties (= 4.2.1)
148
+ railties (= 4.2.10)
153
149
  sprockets-rails
154
150
  rails-deprecated_sanitizer (1.0.3)
155
151
  activesupport (>= 4.2.0.alpha)
156
- rails-dom-testing (1.0.6)
157
- activesupport (>= 4.2.0.beta, < 5.0)
158
- nokogiri (~> 1.6.0)
152
+ rails-dom-testing (1.0.9)
153
+ activesupport (>= 4.2.0, < 5.0)
154
+ nokogiri (~> 1.6)
159
155
  rails-deprecated_sanitizer (>= 1.0.1)
160
- rails-html-sanitizer (1.0.2)
161
- loofah (~> 2.0)
162
- railties (4.2.1)
163
- actionpack (= 4.2.1)
164
- activesupport (= 4.2.1)
156
+ rails-html-sanitizer (1.0.4)
157
+ loofah (~> 2.2, >= 2.2.2)
158
+ railties (4.2.10)
159
+ actionpack (= 4.2.10)
160
+ activesupport (= 4.2.10)
165
161
  rake (>= 0.8.7)
166
162
  thor (>= 0.18.1, < 2.0)
167
- rake (10.4.2)
168
- rb-fsevent (0.9.5)
169
- rb-inotify (0.9.5)
170
- ffi (>= 0.5.0)
171
- recursive-open-struct (0.6.4)
163
+ rake (12.3.1)
164
+ rb-fsevent (0.10.3)
165
+ rb-inotify (0.9.10)
166
+ ffi (>= 0.5.0, < 2)
167
+ recursive-open-struct (0.6.5)
172
168
  responders (2.4.0)
173
169
  actionpack (>= 4.2.0, < 5.3)
174
170
  railties (>= 4.2.0, < 5.3)
175
- rspec (3.2.0)
176
- rspec-core (~> 3.2.0)
177
- rspec-expectations (~> 3.2.0)
178
- rspec-mocks (~> 3.2.0)
179
- rspec-core (3.2.3)
180
- rspec-support (~> 3.2.0)
181
- rspec-expectations (3.2.1)
171
+ rspec (3.7.0)
172
+ rspec-core (~> 3.7.0)
173
+ rspec-expectations (~> 3.7.0)
174
+ rspec-mocks (~> 3.7.0)
175
+ rspec-core (3.7.1)
176
+ rspec-support (~> 3.7.0)
177
+ rspec-expectations (3.7.0)
182
178
  diff-lcs (>= 1.2.0, < 2.0)
183
- rspec-support (~> 3.2.0)
184
- rspec-mocks (3.2.1)
179
+ rspec-support (~> 3.7.0)
180
+ rspec-mocks (3.7.0)
185
181
  diff-lcs (>= 1.2.0, < 2.0)
186
- rspec-support (~> 3.2.0)
187
- rspec-rails (3.2.2)
188
- actionpack (>= 3.0, < 4.3)
189
- activesupport (>= 3.0, < 4.3)
190
- railties (>= 3.0, < 4.3)
191
- rspec-core (~> 3.2.0)
192
- rspec-expectations (~> 3.2.0)
193
- rspec-mocks (~> 3.2.0)
194
- rspec-support (~> 3.2.0)
195
- rspec-support (3.2.2)
182
+ rspec-support (~> 3.7.0)
183
+ rspec-rails (3.7.2)
184
+ actionpack (>= 3.0)
185
+ activesupport (>= 3.0)
186
+ railties (>= 3.0)
187
+ rspec-core (~> 3.7.0)
188
+ rspec-expectations (~> 3.7.0)
189
+ rspec-mocks (~> 3.7.0)
190
+ rspec-support (~> 3.7.0)
191
+ rspec-support (3.7.1)
192
+ ruby_dep (1.5.0)
196
193
  shellany (0.0.1)
197
194
  shoulda-matchers (2.8.0)
198
195
  activesupport (>= 3.0.0)
199
- simplecov (0.12.0)
196
+ simplecov (0.14.1)
200
197
  docile (~> 1.1.0)
201
198
  json (>= 1.8, < 3)
202
199
  simplecov-html (~> 0.10.0)
203
- simplecov-html (0.10.0)
204
- slop (3.6.0)
205
- sprockets (3.7.1)
200
+ simplecov-html (0.10.2)
201
+ sprockets (3.7.2)
206
202
  concurrent-ruby (~> 1.0)
207
203
  rack (> 1, < 3)
208
204
  sprockets-rails (3.2.1)
209
205
  actionpack (>= 4.0)
210
206
  activesupport (>= 4.0)
211
207
  sprockets (>= 3.0.0)
212
- sqlite3 (1.3.10)
213
- term-ansicolor (1.4.0)
208
+ sqlite3 (1.3.13)
209
+ term-ansicolor (1.6.0)
214
210
  tins (~> 1.0)
215
- thor (0.19.1)
216
- thread_safe (0.3.5)
217
- timers (4.0.1)
218
- hitimes
219
- tins (1.13.2)
220
- tzinfo (1.2.2)
211
+ terrapin (0.6.0)
212
+ climate_control (>= 0.0.3, < 1.0)
213
+ thor (0.19.4)
214
+ thread_safe (0.3.6)
215
+ tins (1.16.3)
216
+ tzinfo (1.2.5)
221
217
  thread_safe (~> 0.1)
222
218
 
223
219
  PLATFORMS
@@ -226,7 +222,7 @@ PLATFORMS
226
222
  DEPENDENCIES
227
223
  annotate (~> 2.6, >= 2.6.6)
228
224
  coveralls
229
- factory_girl_rails (~> 4.5, >= 4.5.0)
225
+ factory_bot_rails
230
226
  guard (~> 2.12, >= 2.12.5)
231
227
  guard-rspec (~> 4.5, >= 4.5.0)
232
228
  pry-rails (~> 0.3.3)
@@ -237,4 +233,4 @@ DEPENDENCIES
237
233
  sqlite3 (~> 1.3, >= 1.3.10)
238
234
 
239
235
  BUNDLED WITH
240
- 1.14.6
236
+ 1.16.1
@@ -1,4 +1,10 @@
1
+ require 'rails/generators'
2
+ require 'rails/generators/migration'
3
+ require 'rails/generators/active_record'
4
+
1
5
  class RailsPallet::InstallGenerator < Rails::Generators::Base
6
+ include Rails::Generators::Migration
7
+
2
8
  source_root File.expand_path('../templates', __FILE__)
3
9
 
4
10
  def create_initializer
@@ -15,7 +21,19 @@ class RailsPallet::InstallGenerator < Rails::Generators::Base
15
21
  end
16
22
  end
17
23
 
24
+ def self.next_migration_number(path)
25
+ ActiveRecord::Generators::Base.next_migration_number(path)
26
+ end
27
+
18
28
  def copy_engine_migrations
19
- rake "railties:install:migrations"
29
+ migration_template(
30
+ 'create_rails_pallet_uploads.rb.erb',
31
+ 'db/migrate/create_rails_pallet_uploads.rb'
32
+ )
33
+
34
+ migration_template(
35
+ 'add_attachment_file_to_uploads.rb.erb',
36
+ 'db/migrate/add_attachment_file_to_uploads.rb'
37
+ )
20
38
  end
21
39
  end
@@ -1,4 +1,8 @@
1
+ <%- if Rails.version.to_i > 4 -%>
2
+ class AddAttachmentFileToUploads < ActiveRecord::Migration[<%= Rails.version.to_f %>]
3
+ <%- else -%>
1
4
  class AddAttachmentFileToUploads < ActiveRecord::Migration
5
+ <%- end -%>
2
6
  def self.up
3
7
  change_table :rails_pallet_uploads do |t|
4
8
  t.attachment :file
@@ -1,4 +1,8 @@
1
+ <%- if Rails.version.to_i > 4 -%>
2
+ class CreateRailsPalletUploads < ActiveRecord::Migration[<%= Rails.version.to_f %>]
3
+ <%- else -%>
1
4
  class CreateRailsPalletUploads < ActiveRecord::Migration
5
+ <%- end -%>
2
6
  def change
3
7
  create_table :rails_pallet_uploads do |t|
4
8
  t.timestamps null: false
@@ -1,3 +1,3 @@
1
1
  module RailsPallet
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
@@ -16,16 +16,16 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.files = `git ls-files`.split($/).reject { |fn| fn.start_with? "spec" }
18
18
 
19
- s.add_runtime_dependency 'rails', '~> 4.2', '>= 4.2.1'
20
19
  s.add_runtime_dependency 'hashids', '~> 1.0', '>= 1.0.2'
21
- s.add_runtime_dependency 'paperclip', '~> 4.2', '>= 4.2.0'
20
+ s.add_runtime_dependency 'paperclip'
22
21
  s.add_runtime_dependency 'responders', '~> 2.1', '>= 2.1.0'
22
+ s.add_dependency "rails", ">= 4.2"
23
23
  s.add_dependency "active_model_serializers", "~> 0.9"
24
24
 
25
25
  s.add_development_dependency 'coveralls'
26
26
  s.add_development_dependency 'rspec-rails', '~> 3.2', '>= 3.2.1'
27
27
  s.add_development_dependency "pry-rails", "~> 0.3.3"
28
- s.add_development_dependency 'factory_girl_rails', '~> 4.5', '>= 4.5.0'
28
+ s.add_development_dependency 'factory_bot_rails'
29
29
  s.add_development_dependency 'shoulda-matchers', '~> 2.8', '>= 2.8.0'
30
30
  s.add_development_dependency 'guard', '~> 2.12', '>= 2.12.5'
31
31
  s.add_development_dependency 'guard-rspec', '~> 4.5', '>= 4.5.0'
metadata CHANGED
@@ -1,35 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_pallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Segovia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-28 00:00:00.000000000 Z
11
+ date: 2018-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rails
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '4.2'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 4.2.1
23
- type: :runtime
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '4.2'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 4.2.1
33
13
  - !ruby/object:Gem::Dependency
34
14
  name: hashids
35
15
  requirement: !ruby/object:Gem::Requirement
@@ -54,22 +34,16 @@ dependencies:
54
34
  name: paperclip
55
35
  requirement: !ruby/object:Gem::Requirement
56
36
  requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '4.2'
60
37
  - - ">="
61
38
  - !ruby/object:Gem::Version
62
- version: 4.2.0
39
+ version: '0'
63
40
  type: :runtime
64
41
  prerelease: false
65
42
  version_requirements: !ruby/object:Gem::Requirement
66
43
  requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '4.2'
70
44
  - - ">="
71
45
  - !ruby/object:Gem::Version
72
- version: 4.2.0
46
+ version: '0'
73
47
  - !ruby/object:Gem::Dependency
74
48
  name: responders
75
49
  requirement: !ruby/object:Gem::Requirement
@@ -90,6 +64,20 @@ dependencies:
90
64
  - - ">="
91
65
  - !ruby/object:Gem::Version
92
66
  version: 2.1.0
67
+ - !ruby/object:Gem::Dependency
68
+ name: rails
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '4.2'
74
+ type: :runtime
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '4.2'
93
81
  - !ruby/object:Gem::Dependency
94
82
  name: active_model_serializers
95
83
  requirement: !ruby/object:Gem::Requirement
@@ -153,25 +141,19 @@ dependencies:
153
141
  - !ruby/object:Gem::Version
154
142
  version: 0.3.3
155
143
  - !ruby/object:Gem::Dependency
156
- name: factory_girl_rails
144
+ name: factory_bot_rails
157
145
  requirement: !ruby/object:Gem::Requirement
158
146
  requirements:
159
- - - "~>"
160
- - !ruby/object:Gem::Version
161
- version: '4.5'
162
147
  - - ">="
163
148
  - !ruby/object:Gem::Version
164
- version: 4.5.0
149
+ version: '0'
165
150
  type: :development
166
151
  prerelease: false
167
152
  version_requirements: !ruby/object:Gem::Requirement
168
153
  requirements:
169
- - - "~>"
170
- - !ruby/object:Gem::Version
171
- version: '4.5'
172
154
  - - ">="
173
155
  - !ruby/object:Gem::Version
174
- version: 4.5.0
156
+ version: '0'
175
157
  - !ruby/object:Gem::Dependency
176
158
  name: shoulda-matchers
177
159
  requirement: !ruby/object:Gem::Requirement
@@ -320,10 +302,10 @@ files:
320
302
  - app/views/layouts/rails_pallet/application.html.erb
321
303
  - bin/rails
322
304
  - config/routes.rb
323
- - db/migrate/20150612152328_create_rails_pallet_uploads.rb
324
- - db/migrate/20150612152417_add_attachment_file_to_uploads.rb
325
305
  - lib/generators/rails_pallet/install/USAGE
326
306
  - lib/generators/rails_pallet/install/install_generator.rb
307
+ - lib/generators/rails_pallet/install/templates/add_attachment_file_to_uploads.rb.erb
308
+ - lib/generators/rails_pallet/install/templates/create_rails_pallet_uploads.rb.erb
327
309
  - lib/generators/rails_pallet/install/templates/initializer.rb
328
310
  - lib/generators/rails_pallet/upload_controller/USAGE
329
311
  - lib/generators/rails_pallet/upload_controller/templates/controller.rb
@@ -354,7 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
336
  version: '0'
355
337
  requirements: []
356
338
  rubyforge_project:
357
- rubygems_version: 2.7.3
339
+ rubygems_version: 2.7.7
358
340
  signing_key:
359
341
  specification_version: 4
360
342
  summary: Rails engine to save paperclip attachments asynchronously