scenic 1.6.0 → 1.8.0
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 +4 -4
- data/.github/workflows/ci.yml +24 -4
- data/CHANGELOG.md +25 -8
- data/CONTRIBUTING.md +1 -0
- data/Gemfile +3 -3
- data/README.md +29 -29
- data/Rakefile +1 -1
- data/bin/standardrb +27 -0
- data/lib/generators/scenic/materializable.rb +9 -0
- data/lib/generators/scenic/model/model_generator.rb +9 -7
- data/lib/generators/scenic/model/templates/model.erb +4 -0
- data/lib/generators/scenic/view/templates/db/migrate/update_view.erb +3 -2
- data/lib/generators/scenic/view/view_generator.rb +5 -5
- data/lib/scenic/adapters/postgres/indexes.rb +1 -1
- data/lib/scenic/adapters/postgres/refresh_dependencies.rb +3 -3
- data/lib/scenic/adapters/postgres/views.rb +5 -5
- data/lib/scenic/adapters/postgres.rb +28 -3
- data/lib/scenic/definition.rb +1 -1
- data/lib/scenic/statements.rb +5 -5
- data/lib/scenic/version.rb +1 -1
- data/lib/scenic/view.rb +1 -1
- data/scenic.gemspec +10 -10
- data/spec/dummy/Rakefile +5 -5
- data/spec/dummy/bin/bundle +2 -2
- data/spec/dummy/bin/rails +3 -3
- data/spec/dummy/bin/rake +2 -2
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/db/migrate/20220112154220_add_pg_stat_statements_extension.rb +1 -1
- data/spec/dummy/db/schema.rb +0 -2
- data/spec/generators/scenic/model/model_generator_spec.rb +9 -1
- data/spec/generators/scenic/view/view_generator_spec.rb +13 -1
- data/spec/integration/revert_spec.rb +1 -1
- data/spec/scenic/adapters/postgres/connection_spec.rb +1 -1
- data/spec/scenic/adapters/postgres/refresh_dependencies_spec.rb +9 -9
- data/spec/scenic/adapters/postgres_spec.rb +52 -6
- data/spec/scenic/command_recorder/statement_arguments_spec.rb +4 -4
- data/spec/scenic/command_recorder_spec.rb +12 -12
- data/spec/scenic/schema_dumper_spec.rb +6 -6
- data/spec/scenic/statements_spec.rb +4 -4
- data/spec/support/generator_spec_setup.rb +2 -2
- data/spec/support/view_definition_helpers.rb +1 -1
- metadata +19 -40
- data/.hound.yml +0 -2
- data/.rubocop.yml +0 -129
data/.rubocop.yml
DELETED
@@ -1,129 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 2.3.0
|
3
|
-
Exclude:
|
4
|
-
- "tmp/**/*"
|
5
|
-
- "bin/*"
|
6
|
-
- "spec/dummy/**/*"
|
7
|
-
|
8
|
-
Bundler/OrderedGems:
|
9
|
-
Enabled: false
|
10
|
-
|
11
|
-
Gemspec/OrderedDependencies:
|
12
|
-
Enabled: false
|
13
|
-
|
14
|
-
Layout/AlignParameters:
|
15
|
-
Enabled: true
|
16
|
-
EnforcedStyle: with_fixed_indentation
|
17
|
-
Layout/ConditionPosition:
|
18
|
-
Enabled: false
|
19
|
-
Layout/DotPosition:
|
20
|
-
EnforcedStyle: leading
|
21
|
-
Layout/ExtraSpacing:
|
22
|
-
Enabled: true
|
23
|
-
Layout/IndentAssignment:
|
24
|
-
Enabled: False
|
25
|
-
Layout/MultilineOperationIndentation:
|
26
|
-
Enabled: true
|
27
|
-
EnforcedStyle: indented
|
28
|
-
Layout/MultilineMethodCallIndentation:
|
29
|
-
Enabled: true
|
30
|
-
EnforcedStyle: indented
|
31
|
-
|
32
|
-
Lint/AmbiguousOperator:
|
33
|
-
Enabled: true
|
34
|
-
Lint/AmbiguousRegexpLiteral:
|
35
|
-
Enabled: true
|
36
|
-
Lint/DuplicatedKey:
|
37
|
-
Enabled: true
|
38
|
-
|
39
|
-
Metrics/ClassLength:
|
40
|
-
Enabled: false
|
41
|
-
Metrics/ModuleLength:
|
42
|
-
Enabled: false
|
43
|
-
Metrics/AbcSize:
|
44
|
-
Enabled: false
|
45
|
-
Metrics/BlockLength:
|
46
|
-
CountComments: true # count full line comments?
|
47
|
-
Max: 25
|
48
|
-
ExcludedMethods: []
|
49
|
-
Exclude:
|
50
|
-
- "spec/**/*"
|
51
|
-
- "*.gemspec"
|
52
|
-
Metrics/CyclomaticComplexity:
|
53
|
-
Enabled: false
|
54
|
-
Metrics/LineLength:
|
55
|
-
Max: 80
|
56
|
-
Metrics/MethodLength:
|
57
|
-
Enabled: false
|
58
|
-
|
59
|
-
Security/Eval:
|
60
|
-
Enabled: true
|
61
|
-
Exclude:
|
62
|
-
- "spec/scenic/schema_dumper_spec.rb"
|
63
|
-
Style/BlockDelimiters:
|
64
|
-
Enabled: false
|
65
|
-
Style/CollectionMethods:
|
66
|
-
Enabled: true
|
67
|
-
PreferredMethods:
|
68
|
-
find: find
|
69
|
-
inject: reduce
|
70
|
-
collect: map
|
71
|
-
find_all: select
|
72
|
-
Style/ConditionalAssignment:
|
73
|
-
Enabled: false
|
74
|
-
Style/ClassAndModuleChildren:
|
75
|
-
Enabled: true
|
76
|
-
Exclude:
|
77
|
-
- "spec/**/*"
|
78
|
-
Style/Documentation:
|
79
|
-
Enabled: false
|
80
|
-
Style/FrozenStringLiteralComment:
|
81
|
-
Description: >-
|
82
|
-
Add the frozen_string_literal comment to the top of files
|
83
|
-
to help transition from Ruby 2.3.0 to Ruby 3.0.
|
84
|
-
Enabled: false
|
85
|
-
Style/GuardClause:
|
86
|
-
Enabled: false
|
87
|
-
Style/IfUnlessModifier:
|
88
|
-
Enabled: false
|
89
|
-
Style/Lambda:
|
90
|
-
Enabled: false
|
91
|
-
Style/NumericLiterals:
|
92
|
-
Enabled: false
|
93
|
-
Style/OneLineConditional:
|
94
|
-
Enabled: false
|
95
|
-
Style/PercentLiteralDelimiters:
|
96
|
-
Enabled: false
|
97
|
-
Style/StringLiterals:
|
98
|
-
EnforcedStyle: double_quotes
|
99
|
-
Enabled: true
|
100
|
-
Style/TrailingCommaInArguments:
|
101
|
-
Description: 'Checks for trailing comma in argument lists.'
|
102
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
103
|
-
EnforcedStyleForMultiline: comma
|
104
|
-
SupportedStylesForMultiline:
|
105
|
-
- comma
|
106
|
-
- consistent_comma
|
107
|
-
- no_comma
|
108
|
-
Enabled: true
|
109
|
-
Style/TrailingCommaInArrayLiteral:
|
110
|
-
Description: 'Checks for trailing comma in array literals.'
|
111
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
112
|
-
EnforcedStyleForMultiline: comma
|
113
|
-
SupportedStylesForMultiline:
|
114
|
-
- comma
|
115
|
-
- consistent_comma
|
116
|
-
- no_comma
|
117
|
-
Enabled: true
|
118
|
-
Style/TrailingCommaInHashLiteral:
|
119
|
-
Description: 'Checks for trailing comma in hash literals.'
|
120
|
-
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
121
|
-
EnforcedStyleForMultiline: comma
|
122
|
-
SupportedStylesForMultiline:
|
123
|
-
- comma
|
124
|
-
- consistent_comma
|
125
|
-
- no_comma
|
126
|
-
Enabled: true
|
127
|
-
Style/WordArray:
|
128
|
-
Enabled: false
|
129
|
-
|