missing_rspec 0.1.0 → 0.1.3
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/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/missing_rspec/core.rb +2 -2
- data/lib/missing_rspec/creator.rb +3 -1
- data/lib/missing_rspec/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f797d87a4a15a358b4a3ff4e973201b33f2990124588c630ad05a6458e227c4
|
4
|
+
data.tar.gz: 73e0ad823c2894da62e0ae8076ae76004264caf91e4c9cd0bb1e6aaed00b5a7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ef7e34bab86dd50b69c8dc285ec83f3496d01e0ece867dda32cead1ffd82c2aef668e3b91e19e3dc39067060e449546c5e408be35957e14a175867f4de1dd64
|
7
|
+
data.tar.gz: a80dfef03a094294f0175db4fd8d9abf147dfdc7b9569b632f4eeebfe7dc5e4f0f4f4cfaae0e0adcf8b50ca2935ff1de05a2ce8b2c17b82d84b0ca7e96f87fc7
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -43,7 +43,7 @@ bin/rails missing_rspec
|
|
43
43
|
The following is an example of specifying models, controllers and jobs.
|
44
44
|
|
45
45
|
```shell
|
46
|
-
bin/rails missing_rspec[/app,models
|
46
|
+
bin/rails missing_rspec[/app,models\;controllers\;jobs]
|
47
47
|
```
|
48
48
|
|
49
49
|
### Execution example
|
@@ -187,7 +187,7 @@ bin/rails missing_rspec_create
|
|
187
187
|
The following is an example of specifying models, controllers and jobs.
|
188
188
|
|
189
189
|
```shell
|
190
|
-
bin/rails missing_rspec_create[/app,models
|
190
|
+
bin/rails missing_rspec_create[/app,models\;controllers\;jobs]
|
191
191
|
```
|
192
192
|
|
193
193
|
## Contributing
|
data/lib/missing_rspec/core.rb
CHANGED
@@ -9,11 +9,11 @@ module MissingRspec
|
|
9
9
|
raise "Set the rails app path to the rake argument or the environment variable RAILS_APP_PATH." unless app_path
|
10
10
|
|
11
11
|
folder_type ||= 'all'
|
12
|
-
folder_types = MissingRspec::FolderTypesFinder.new(app_path).fetch_folder_types
|
13
|
-
puts "The following folders are targeted: #{folder_types}"
|
12
|
+
folder_types = MissingRspec::FolderTypesFinder.new(app_path).fetch_folder_types
|
14
13
|
if folder_type != 'all'
|
15
14
|
folder_types &&= folder_type.split(';').map!(&:strip)
|
16
15
|
end
|
16
|
+
puts "The following folders are targeted: #{folder_types}"
|
17
17
|
|
18
18
|
case mode
|
19
19
|
when :viewer
|
@@ -42,7 +42,7 @@ module MissingRspec
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def build_full_class_name(module_name, class_name)
|
45
|
-
if module_name
|
45
|
+
if module_name.start_with?("Concerns")
|
46
46
|
"#{'"'}#{class_name}#{'"'}"
|
47
47
|
else
|
48
48
|
"#{module_name}#{module_name.blank? ? '' : '::'}#{class_name}"
|
@@ -58,8 +58,10 @@ module MissingRspec
|
|
58
58
|
|
59
59
|
def build_rspec_content(full_class_name, folder_type)
|
60
60
|
<<~EOS
|
61
|
+
# rubocop:disable Lint/EmptyBlock
|
61
62
|
RSpec.describe #{full_class_name}, type: :#{folder_type.singularize} do
|
62
63
|
end
|
64
|
+
# rubocop:enaable Lint/EmptyBlock
|
63
65
|
EOS
|
64
66
|
end
|
65
67
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: missing_rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keiichi Kayama
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This Gem extracts RSpec files that have not yet been created.
|
14
14
|
email:
|
@@ -45,7 +45,7 @@ metadata:
|
|
45
45
|
homepage_uri: https://github.com/kayamak/missing_rspec
|
46
46
|
source_code_uri: https://github.com/kayamak/missing_rspec
|
47
47
|
changelog_uri: https://github.com/kayamak/missing_rspec
|
48
|
-
post_install_message:
|
48
|
+
post_install_message:
|
49
49
|
rdoc_options: []
|
50
50
|
require_paths:
|
51
51
|
- lib
|
@@ -60,8 +60,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
requirements: []
|
63
|
-
rubygems_version: 3.3
|
64
|
-
signing_key:
|
63
|
+
rubygems_version: 3.0.3
|
64
|
+
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: find missing rspec files.
|
67
67
|
test_files: []
|