queulor_views 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2405c989e2f50b2330e7fb101d0220e57321a76406448dc147005ec2ab8f4ba4
4
+ data.tar.gz: 7c22e99b7e749cd77b062d1e9bb53995cd7bffaccbed616fd34c533aba1be062
5
+ SHA512:
6
+ metadata.gz: 0e2ca8c1bbc2a62ec73fdc81607c5f5eae42aab7d0fb5c9e654e45d1fd0449faf751ae39d460a410b47c6468563b04ecd14dd598604bccc8a01d3c13f9bb92f4
7
+ data.tar.gz: 7510aa2039a2f1d570c4ea358726f442e03ba0cb5d9473bb3e81a5d1c6dfd4e13bce0f9db1b3ffd3ba0064f3dbe3ad9dfa02a4b7fcab10f17d682b339848ffc3
data/.rubocop.yml ADDED
@@ -0,0 +1,239 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-capybara
4
+ - rubocop-rails
5
+
6
+ AllCops:
7
+ NewCops: enable
8
+ Exclude:
9
+ - "app/models/originals/*"
10
+ - "app/models/dordogne/*"
11
+ - "app/models/data_migration_odile.rb"
12
+ - "app/models/data_migration_dordogne.rb"
13
+ - "vendor/**/*"
14
+ - "test/fixtures/**/*"
15
+ - "db/**/*"
16
+ - "bin/**/*"
17
+ - "log/**/*"
18
+ - "tmp/**/*"
19
+ - "app/views/**/*"
20
+ - "config/environments/*"
21
+ - "node_modules/**/*"
22
+ TargetRubyVersion: 3.1
23
+
24
+ # Metrics Cops
25
+
26
+ Metrics/ClassLength:
27
+ Description: "Avoid classes longer than 100 lines of code."
28
+ Max: 100
29
+ Enabled: false
30
+
31
+ Metrics/ModuleLength:
32
+ Description: "Avoid modules longer than 100 lines of code."
33
+ Max: 100
34
+ Enabled: true
35
+
36
+ Metrics/ParameterLists:
37
+ Description: "Pass no more than four parameters into a method."
38
+ Max: 4
39
+ Enabled: true
40
+
41
+ Metrics/MethodLength:
42
+ Description: "Avoid methods longer than 5 lines of code."
43
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#short-methods"
44
+ Max: 5
45
+ Enabled: false
46
+
47
+ Metrics/BlockLength:
48
+ Enabled: false
49
+ CountComments: false
50
+ Max: 5
51
+ AllowedMethods:
52
+ - context
53
+ - describe
54
+ - it
55
+ - shared_examples
56
+ - shared_examples_for
57
+ - namespace
58
+ - draw
59
+ - configure
60
+ - group
61
+
62
+ # Style Cops
63
+
64
+ Style/BlockDelimiters:
65
+ Exclude:
66
+ - "spec/**/*"
67
+
68
+ Style/SymbolArray:
69
+ Enabled: false
70
+
71
+ Style/ClassAndModuleChildren:
72
+ Description: "Checks style of children classes and modules."
73
+ Enabled: false
74
+ EnforcedStyle: nested
75
+
76
+ Style/CollectionMethods:
77
+ Enabled: false
78
+ PreferredMethods:
79
+ find: detect
80
+ inject: reduce
81
+ collect: map
82
+ find_all: select
83
+
84
+ Style/Documentation:
85
+ Description: "Document classes and non-namespace modules."
86
+ Enabled: false
87
+
88
+ Style/FrozenStringLiteralComment:
89
+ Description: >-
90
+ Add the frozen_string_literal comment to the top of files
91
+ to help transition from Ruby 2.3.0 to Ruby 3.0.
92
+ Enabled: false
93
+
94
+ Style/IfUnlessModifier:
95
+ Description: >-
96
+ Favor modifier if/unless usage when you have a
97
+ single-line body.
98
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier"
99
+ Enabled: false
100
+
101
+ Style/InlineComment:
102
+ Description: "Avoid inline comments."
103
+ Enabled: false
104
+
105
+ Style/LineEndConcatenation:
106
+ Description: >-
107
+ Use \ instead of + or << to concatenate two string literals at
108
+ line end.
109
+ Enabled: true
110
+
111
+ Style/StringLiterals:
112
+ Description: "Checks if uses of quotes match the configured preference."
113
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#consistent-string-literals"
114
+ EnforcedStyle: double_quotes
115
+ Enabled: false
116
+
117
+ Style/TrailingCommaInArguments:
118
+ Description: "Checks for trailing comma in argument lists."
119
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas"
120
+ EnforcedStyleForMultiline: comma
121
+ SupportedStylesForMultiline:
122
+ - comma
123
+ - consistent_comma
124
+ - no_comma
125
+ Enabled: false
126
+
127
+ Style/TrailingCommaInArrayLiteral:
128
+ Description: "Checks for trailing comma in array literals."
129
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas"
130
+ EnforcedStyleForMultiline: comma
131
+ SupportedStylesForMultiline:
132
+ - comma
133
+ - consistent_comma
134
+ - no_comma
135
+ Enabled: false
136
+
137
+ Style/TrailingCommaInHashLiteral:
138
+ Description: "Checks for trailing comma in hash literals."
139
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas"
140
+ EnforcedStyleForMultiline: comma
141
+ SupportedStylesForMultiline:
142
+ - comma
143
+ - consistent_comma
144
+ - no_comma
145
+ Enabled: false
146
+
147
+ # Layout Cops
148
+
149
+ Layout/ArgumentAlignment:
150
+ Exclude:
151
+ - "config/initializers/*"
152
+ Enabled: false
153
+
154
+ Layout/FirstArgumentIndentation:
155
+ Enabled: false
156
+
157
+ Layout/DotPosition:
158
+ Description: "Checks the position of the dot in multi-line method calls."
159
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains"
160
+ Enabled: false
161
+
162
+ Layout/LineLength:
163
+ Description: "Limit lines to 120 characters."
164
+ StyleGuide: "https://github.com/bbatsov/ruby-style-guide#80-character-limits"
165
+ Max: 120
166
+ Enabled: false # revert later
167
+
168
+ Layout/MultilineOperationIndentation:
169
+ Description: >-
170
+ Checks indentation of binary operations that span more than
171
+ one line.
172
+ Enabled: true
173
+ EnforcedStyle: indented
174
+
175
+ Layout/MultilineMethodCallIndentation:
176
+ Description: >-
177
+ Checks indentation of method calls with the dot operator
178
+ that span more than one line.
179
+ Enabled: true
180
+ EnforcedStyle: indented
181
+
182
+ # Rails Cops
183
+
184
+ Rails/Delegate:
185
+ Description: "Prefer delegate method for delegations."
186
+ Enabled: false
187
+
188
+ # Bundler Cops
189
+
190
+ Layout/HashAlignment:
191
+ Enabled: false
192
+
193
+ Rails/RefuteMethods:
194
+ Enabled: false
195
+
196
+ Lint/UnusedBlockArgument:
197
+ Enabled: false # maybe not
198
+
199
+ Layout/FirstArrayElementIndentation:
200
+ Enabled: false
201
+
202
+ Metrics/AbcSize:
203
+ Enabled: false # maybe not
204
+
205
+ Style/RedundantFetchBlock:
206
+ Enabled: false
207
+
208
+ Rails/HasAndBelongsToMany:
209
+ Enabled: false # maybe yes
210
+
211
+ Style/MixinGrouping:
212
+ Enabled: false
213
+
214
+ Layout/FirstHashElementIndentation:
215
+ Enabled: false
216
+
217
+ Style/PreferredHashMethods:
218
+ Enabled: false
219
+
220
+ Style/HashEachMethods:
221
+ Enabled: false
222
+
223
+ Style/HashAsLastArrayItem:
224
+ Enabled: false
225
+
226
+ Style/FileWrite:
227
+ Enabled: false
228
+
229
+ Rails/FilePath:
230
+ Enabled: false
231
+
232
+ Style/RedundantReturn:
233
+ Enabled: false
234
+
235
+ Style/OptionalBooleanParameter:
236
+ Enabled: false
237
+
238
+ Rails/ApplicationController:
239
+ Enabled: false
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # QueulorViews
2
+
3
+ TODO: Delete this and the text below, and describe your gem
4
+
5
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/queulor_views`. To experiment with that code, run `bin/console` for an interactive prompt.
6
+
7
+ ## Installation
8
+
9
+ TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Development
24
+
25
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+
27
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+
29
+ ## Contributing
30
+
31
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/queulor_views.
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module QueulorViews
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "queulor_views/version"
4
+
5
+ module QueulorViews
6
+ class Error < StandardError; end
7
+ # Your code goes here...
8
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: queulor_views
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - vianney.sonneville
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-07-26 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - vianney.sonneville@unova.fr
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".rubocop.yml"
21
+ - README.md
22
+ - lib/queulor_views.rb
23
+ - lib/queulor_views/version.rb
24
+ homepage: https://rubygems.org/gems/queulor_views
25
+ licenses:
26
+ - MIT
27
+ metadata:
28
+ allowed_push_host: https://rubygems.org
29
+ source_code_uri: https://github.com/VianneySonneville/queulor_views
30
+ changelog_uri: https://github.com/VianneySonneville/queulor_views/blob/main/CHANGELOG.md
31
+ rubygems_mfa_required: 'false'
32
+ post_install_message:
33
+ rdoc_options: []
34
+ require_paths:
35
+ - lib
36
+ required_ruby_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 3.1.0
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ requirements: []
47
+ rubygems_version: 3.5.14
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: View.
51
+ test_files: []