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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7ab31b325573ced5acc13cc972144130539c1f69602ba6ab512bcc8d2054805
4
- data.tar.gz: 5bf9dc6b0713590d0452db38f8d017daa124ea4cc81dc63ecd1a77969679554f
3
+ metadata.gz: 1f797d87a4a15a358b4a3ff4e973201b33f2990124588c630ad05a6458e227c4
4
+ data.tar.gz: 73e0ad823c2894da62e0ae8076ae76004264caf91e4c9cd0bb1e6aaed00b5a7a
5
5
  SHA512:
6
- metadata.gz: 92c8a066ed74ad3c9f021efb6bd9ee72c95589ab753afda402a214a530a3e039e27e11b6997a322b095547082343ecf98d15421f19bc2ca1f220a95b0b040c81
7
- data.tar.gz: 0c199bfd3b278bd4c766d81ccb0882a92284e477a9752d31524b84f47f348049a4fb06b2f5a9ea2f3188f8cf818d42eb075a0b8c9ed7963d8122441ba745f40a
6
+ metadata.gz: 8ef7e34bab86dd50b69c8dc285ec83f3496d01e0ece867dda32cead1ffd82c2aef668e3b91e19e3dc39067060e449546c5e408be35957e14a175867f4de1dd64
7
+ data.tar.gz: a80dfef03a094294f0175db4fd8d9abf147dfdc7b9569b632f4eeebfe7dc5e4f0f4f4cfaae0e0adcf8b50ca2935ff1de05a2ce8b2c17b82d84b0ca7e96f87fc7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- missing_rspec (0.1.0)
4
+ missing_rspec (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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;controllers;jobs]
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;controllers;jobs]
190
+ bin/rails missing_rspec_create[/app,models\;controllers\;jobs]
191
191
  ```
192
192
 
193
193
  ## Contributing
@@ -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 == "Concerns"
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
 
@@ -1,3 +1,3 @@
1
1
  module MissingRspec
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.3"
3
3
  end
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.0
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-15 00:00:00.000000000 Z
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.19
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: []