custom_cops_generator 0.1.0 → 0.1.1

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: 1b3a26c7275ff33acb6bdfb41c4eb9dd3264c6d06ae058e7551b9b6c10021e3b
4
- data.tar.gz: 1b1606a45da88d889934d9e701353e79e68a2f7b7dadd9c304b22b16ba362746
3
+ metadata.gz: 3f3bc426d6d4748227e4b7ee3a848832c085a97a3e1dda759af5eeb74811a27a
4
+ data.tar.gz: a60d1d736bff0b4f68eedc431fd8b240f474ecdeddb77bb108dcf85299a04a11
5
5
  SHA512:
6
- metadata.gz: 3d74b53a1a7e7c47764ae5fcb652ea11e02961793149b74655bf451c07dd9249fc29cee2d78bfec6abd4cd44dbae6a809cefe94942748fe56f8057d5f6bdf031
7
- data.tar.gz: 7e6513aab2049ee7c5bc54f14ce6f656f02c67f7d0c948d717bb6a43b50d8c6ee71519e4e82eed40f40ca5e0fc999149a07deda8957ac9628ec625766278649d
6
+ metadata.gz: ecc0ff69468a95b66f5c7c8acc1bd0c250d14459fa29101440cffaa4bdfd3ac66d6c1ae126af5b1245bffe3ae233f30fe89854984d8c847083f2121dd33e2cb7
7
+ data.tar.gz: ebead5e4d298c63c3ea89012d126717dc150ebea9a8d6ce4ae9cc447e15cebf3863a0593accd44f0cbf9aa6638363254ce1f90d070b1f8f99d1185c05709464d
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Masataka Pocke Kuwabara
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # CustomCopsGenerator
2
2
 
3
- 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/custom_cops_generator`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ A generator of RuboCop's custom cops gem.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,35 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ ```
24
+ $ custom_cops_generator rubocop-foobar
25
+ Creating gem 'rubocop-foobar'...
26
+ create rubocop-foobar/Gemfile
27
+ create rubocop-foobar/lib/rubocop/foobar.rb
28
+ create rubocop-foobar/lib/rubocop/foobar/version.rb
29
+ create rubocop-foobar/rubocop-foobar.gemspec
30
+ create rubocop-foobar/Rakefile
31
+ create rubocop-foobar/README.md
32
+ create rubocop-foobar/bin/console
33
+ create rubocop-foobar/bin/setup
34
+ create rubocop-foobar/.gitignore
35
+ Initializing git repo in /tmp/tmp.WB5WF1deee/rubocop-foobar
36
+ Gem 'rubocop-foobar' was successfully created. For more information on making a RubyGem visit https://bundler.io/guides/creating_gem.html
37
+ create rubocop-foobar/lib/rubocop-foobar.rb
38
+ create rubocop-foobar/lib/rubocop/foobar/inject.rb
39
+ create rubocop-foobar/lib/rubocop/cop/foobar_cops.rb
40
+ create rubocop-foobar/config/default.yml
41
+ create rubocop-foobar/spec/spec_helper.rb
42
+ create rubocop-foobar/.rspec
43
+ update rubocop-foobar.gemspec
44
+ update Rakefile
45
+ update Gemfile
46
+
47
+ It's done! You can start developing a new extension of RuboCop in rubocop-foobar.
48
+ For the next step, you can use the cop generator.
49
+
50
+ $ bundle exec rake 'new_cop[Foobar/SuperCoolCopName]'
51
+ ```
26
52
 
27
53
  ## Development
28
54
 
@@ -10,6 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.description = %q{A generator of RuboCop's custom cops gem}
11
11
  spec.homepage = "https://github.com/pocke/custom_cops_generator"
12
12
  spec.required_ruby_version = Gem::Requirement.new(">= 2.6.0")
13
+ spec.licenses = ['MIT']
13
14
 
14
15
  spec.metadata["allowed_push_host"] = "https://rubygems.org"
15
16
 
@@ -1,3 +1,3 @@
1
1
  module CustomCopsGenerator
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: custom_cops_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masataka Pocke Kuwabara
@@ -48,6 +48,7 @@ extra_rdoc_files: []
48
48
  files:
49
49
  - ".gitignore"
50
50
  - Gemfile
51
+ - LICENSE
51
52
  - README.md
52
53
  - Rakefile
53
54
  - bin/console
@@ -59,7 +60,8 @@ files:
59
60
  - lib/custom_cops_generator/generator.rb
60
61
  - lib/custom_cops_generator/version.rb
61
62
  homepage: https://github.com/pocke/custom_cops_generator
62
- licenses: []
63
+ licenses:
64
+ - MIT
63
65
  metadata:
64
66
  allowed_push_host: https://rubygems.org
65
67
  homepage_uri: https://github.com/pocke/custom_cops_generator