rubocop_default_config 0.0.6 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/bin/rubocop_config +4 -1
- data/lib/.rubocop_popular_config.yml +2 -1
- data/lib/rubocop_config.rb +2 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32a2f7d0e545cc2890c6da0c136d6d17ee54521d
|
4
|
+
data.tar.gz: a44972f7e79eaed3e132ecc7c47d29cead0b966a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b5eba7db6b43baa8278d15c8b9a29ca64852bdb6d8dbc77a87b9177c3b2ee05639a31a00052287c396dce6a1df33fce4b2f03aecbacce6c9f2516a5bcbae326
|
7
|
+
data.tar.gz: 4e0b7adf31f6d1cd5009aab2bc16bbf42d7b0a2b9a3f0ac84872a843352ca289584fac9a41123fa9ac4bc16e8705f78089fdd79e7cd9c357cbd2e01d25bb7dd3
|
data/README.md
CHANGED
data/bin/rubocop_config
CHANGED
data/lib/rubocop_config.rb
CHANGED
@@ -3,11 +3,12 @@ require "yaml"
|
|
3
3
|
class RubocopConfig
|
4
4
|
# Generate popular config for RuboCop.
|
5
5
|
# Run *rubocop_config* to generate .rubocop.yml file.
|
6
|
-
def
|
6
|
+
def rubocop_generate_config
|
7
7
|
puts "Generating rubocop config ..."
|
8
8
|
file_name = ".rubocop.yml"
|
9
9
|
config_file = File.expand_path File.dirname(__FILE__) + '/.rubocop_popular_config.yml'
|
10
10
|
config = YAML.safe_load(ERB.new(File.read(config_file)).result)
|
11
|
+
exec 'rubocop --auto-gen-config' rescue nil
|
11
12
|
File.open(file_name, "w") { |f| f << config.to_yaml }
|
12
13
|
end
|
13
14
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop_default_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thai Huynh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|