craby 0.0.1 → 0.0.2

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: af1111f7e931fcfe19ffd77703667003019f2373efa7ad449fab4265580bbd1c
4
- data.tar.gz: 655886f8671e59cfa5ab31377ded4401415027f60db309a87e2ec799a5899817
3
+ metadata.gz: d192463da028b4faccdead55e56bf0bd3c00c004eb44fd060dde68f3d4a4164d
4
+ data.tar.gz: e0b459330cf9c31b89030f982088ab07a04da04dcd4d9a64a1259d4b0bd7d7e4
5
5
  SHA512:
6
- metadata.gz: b9edf4507bac1abe4172cf7e811fb4d8aab01a1787f9ea644c83eb10403c09c1c33c0aeab0d658ca065db488db666dcca6b789ce46553e901ff2a264f77b121f
7
- data.tar.gz: 4a46b776a1fed1eb0cdb0aa8fd6e56a741aa2961a2e7559073a6acef0f0b0191b79e10cd429873d26e25a462eb9a09e8648fa5e7cd719f6f85a71d03cc3b7f75
6
+ metadata.gz: fbe8542927c86e2f73b2400705bbd14570a9e05ddee8b23a25e377d45c51869ac92de13f3e714921dfc37db3df8896c0ed228c937812753a11be3f83d655e39e
7
+ data.tar.gz: 620397afe1981d2f3686983a4d6bbdc281ea6734f4b9249059816e58b4fac48a62ac4ccef85be9f26db39b66920ea4227f509098c9d3a30f4bad871be799dec6
data/README.md CHANGED
@@ -53,6 +53,69 @@ And `.rspec` file in your root rails application:
53
53
  --order rand
54
54
  ```
55
55
 
56
+ Create `.standard.yml` file in your root rails application:
57
+
58
+ ```yml
59
+ ruby_version: 3.3
60
+ ```
61
+
62
+ Create `.rubocop.yml` file in your root rails application:
63
+
64
+ ```yml
65
+ require:
66
+ - rubocop-rails
67
+ - rubocop-factory_bot
68
+ - rubocop-capybara
69
+ - rubocop-rspec
70
+
71
+ inherit_gem:
72
+ standard: config/base.yml
73
+
74
+ AllCops:
75
+ NewCops: enable
76
+ TargetRubyVersion: 3.3
77
+ TargetRailsVersion: 7.1
78
+ Exclude:
79
+ - "bin/**/*"
80
+ - "config/environments/**/*"
81
+ - "db/schema.rb"
82
+ - "db/seeds.rb"
83
+ - "tmp/**/*"
84
+ - "vendor/**/*"
85
+ ```
86
+
87
+ If your application was a full stack rails application you should create a `.erb-lint.yml` file:
88
+
89
+ ```yml
90
+ EnableDefaultLinters: true
91
+ linters:
92
+ ErbSafety:
93
+ enabled: true
94
+ Rubocop:
95
+ enabled: true
96
+ rubocop_config:
97
+ inherit_from:
98
+ - .rubocop.yml
99
+ Style/FrozenStringLiteralComment:
100
+ Enabled: false
101
+ Layout/InitialIndentation:
102
+ Enabled: false
103
+ Layout/TrailingEmptyLines:
104
+ Enabled: false
105
+ Layout/TrailingWhitespace:
106
+ Enabled: false
107
+ Rails/OutputSafety:
108
+ Enabled: false
109
+ Lint/UselessAssignment:
110
+ Enabled: false
111
+ ```
112
+
113
+ And generate `bin/erblint`:
114
+
115
+ ```sh
116
+ bin/bundle binstub erb_lint
117
+ ```
118
+
56
119
  ## Contributing
57
120
 
58
121
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/craby.
data/craby.gemspec CHANGED
@@ -32,37 +32,39 @@ Gem::Specification.new do |spec|
32
32
  spec.require_paths = ["lib"]
33
33
 
34
34
  # https://github.com/presidentbeef/brakeman
35
- spec.add_dependency "brakeman", "~> 6"
35
+ spec.add_dependency "brakeman"
36
36
  # https://github.com/standardrb/standard#usage
37
- spec.add_dependency "standard", "~> 1"
37
+ spec.add_dependency "standard"
38
38
  # https://github.com/standardrb/standard-rails#usage
39
- spec.add_dependency "standard-rails", "~> 1"
39
+ spec.add_dependency "standard-rails"
40
40
  # https://github.com/rubocop/rubocop-rspec#usage
41
- spec.add_dependency "rubocop-rspec", "~> 2"
41
+ spec.add_dependency "rubocop-rspec"
42
42
  # https://github.com/rubocop/rubocop-capybara#usage
43
- spec.add_dependency "rubocop-capybara", "~> 2"
43
+ spec.add_dependency "rubocop-capybara"
44
44
  # https://github.com/rubocop/rubocop-factory_bot#usage
45
- spec.add_dependency "rubocop-factory_bot", "~> 2"
45
+ spec.add_dependency "rubocop-factory_bot"
46
46
  # https://github.com/Shopify/erb-lint#installation
47
- spec.add_dependency "erb_lint", "~> 0"
47
+ spec.add_dependency "erb_lint"
48
48
  # https://github.com/thoughtbot/factory_bot_rails
49
- spec.add_dependency "factory_bot_rails", "~> 6"
49
+ spec.add_dependency "factory_bot_rails"
50
50
  # https://github.com/stympy/faker
51
- spec.add_dependency "faker", "~> 3"
51
+ spec.add_dependency "faker"
52
52
  # https://github.com/thoughtbot/shoulda-matchers
53
- spec.add_dependency "shoulda-matchers", "~> 5"
53
+ spec.add_dependency "shoulda-matchers"
54
54
  # https://github.com/rspec/rspec-rails#installation
55
- spec.add_dependency "rspec-rails", "~> 5"
55
+ spec.add_dependency "rspec-rails"
56
56
  # https://github.com/DatabaseCleaner/database_cleaner
57
- spec.add_dependency "database_cleaner", "~> 1"
57
+ spec.add_dependency "database_cleaner"
58
58
  # https://github.com/teamcapybara/capybara#setup
59
- spec.add_dependency "capybara", "~> 2"
59
+ spec.add_dependency "capybara"
60
60
  # https://github.com/SeleniumHQ/selenium/tree/trunk/rb#install
61
- spec.add_dependency "selenium-webdriver", "~> 3"
61
+ spec.add_dependency "selenium-webdriver"
62
62
  # https://github.com/simplecov-ruby/simplecov#getting-started
63
- spec.add_dependency "simplecov", "~> 0"
63
+ spec.add_dependency "simplecov"
64
64
  # https://github.com/vicentllongo/simplecov-json#usage
65
- spec.add_dependency "simplecov-json", "~> 0"
65
+ spec.add_dependency "simplecov-json"
66
66
  # https://github.com/bblimke/webmock#rspec
67
- spec.add_dependency "webmock", "~> 2"
67
+ spec.add_dependency "webmock"
68
+ # https://github.com/rails/rails-controller-testing#rspec
69
+ spec.add_dependency "rails-controller-testing"
68
70
  end
data/lib/craby/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Craby
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
@@ -8,6 +8,7 @@ module Craby
8
8
  copy_file ".rspec", Rails.root.join(".rspec")
9
9
  copy_file ".rubocop.yml", Rails.root.join(".rubocop.yml")
10
10
  copy_file ".standard.yml", Rails.root.join(".standard.yml")
11
+ system "bin/bundle binstub brakeman rubocop rspec-core --force"
11
12
  end
12
13
  end
13
14
  end
metadata CHANGED
@@ -1,253 +1,267 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: craby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lavenda Software
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-15 00:00:00.000000000 Z
11
+ date: 2024-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brakeman
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '6'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: standard
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: standard-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1'
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '2'
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '2'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-capybara
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '2'
75
+ version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '2'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-factory_bot
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '2'
89
+ version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '2'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: erb_lint
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: factory_bot_rails
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '6'
117
+ version: '0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '6'
124
+ version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: faker
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: '3'
131
+ version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '3'
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: shoulda-matchers
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '5'
145
+ version: '0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: '5'
152
+ version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rspec-rails
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: '5'
159
+ version: '0'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: '5'
166
+ version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: database_cleaner
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: '1'
173
+ version: '0'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: '1'
180
+ version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: capybara
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - "~>"
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
- version: '2'
187
+ version: '0'
188
188
  type: :runtime
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - "~>"
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
- version: '2'
194
+ version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: selenium-webdriver
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - "~>"
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
- version: '3'
201
+ version: '0'
202
202
  type: :runtime
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - "~>"
206
+ - - ">="
207
207
  - !ruby/object:Gem::Version
208
- version: '3'
208
+ version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: simplecov
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - "~>"
213
+ - - ">="
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - "~>"
220
+ - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: simplecov-json
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - "~>"
227
+ - - ">="
228
228
  - !ruby/object:Gem::Version
229
229
  version: '0'
230
230
  type: :runtime
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - "~>"
234
+ - - ">="
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: webmock
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - "~>"
241
+ - - ">="
242
242
  - !ruby/object:Gem::Version
243
- version: '2'
243
+ version: '0'
244
244
  type: :runtime
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - "~>"
248
+ - - ">="
249
249
  - !ruby/object:Gem::Version
250
- version: '2'
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: rails-controller-testing
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ type: :runtime
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
251
265
  description:
252
266
  email:
253
267
  - lavenda@lavenda.com.br
@@ -306,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
306
320
  - !ruby/object:Gem::Version
307
321
  version: '0'
308
322
  requirements: []
309
- rubygems_version: 3.5.9
323
+ rubygems_version: 3.5.10
310
324
  signing_key:
311
325
  specification_version: 4
312
326
  summary: Craby is just a quick test suite setup for Rails application