gem_bootstrap 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{CHANGELOGS.md → CHANGELOG.md} +5 -1
- data/gem_bootstrap.gemspec +2 -2
- data/lib/gem_bootstrap/cli.rb +0 -1
- data/lib/gem_bootstrap/gem_bootstrap.rb +0 -5
- data/lib/gem_bootstrap/version.rb +1 -1
- data/templates/dot_gitignore +1 -0
- data/templates/dot_rubocop.yml +93 -7
- metadata +3 -4
- data/templates/rubocop-todo.yml +0 -92
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c9ebdea1a852424f11c30504027ecb365cf8c4f
|
4
|
+
data.tar.gz: d6c85720678bc5b21471ae7a8cbf05797d4f1142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa43885938f7775df184c4fcd124ca1dd8bc49cc0a80343e3452ab9fe82988b4e5b59ae9f966e895ae85e96674001d426a9cc6889f478d424e203aebfd91013b
|
7
|
+
data.tar.gz: 8c3c0a634d09c5b727015e6b213c4f323daf3e7fea0c6bed80e4bb7a2da062454d32965e19b0155996aedefb6f419297c81b80f8176951f35b22d22796886678
|
data/gem_bootstrap.gemspec
CHANGED
@@ -11,14 +11,14 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.summary = %q(Bootstrap the creation of ruby gem so that you don't have to start from scratch)
|
12
12
|
spec.description = %q(Bootstrap the creation of ruby gem so that you don't have to start from scratch.
|
13
13
|
Build with simple, sensible default and very easy to extend.
|
14
|
-
TL;DR `gem_bootstrap
|
14
|
+
TL;DR create new gem with `gem_bootstrap awesome_gem -g github_id -e your@email.com -a 'John Guru'`)
|
15
15
|
spec.homepage = "https://github.com/agilecreativity/gem_bootstrap"
|
16
16
|
spec.license = "MIT"
|
17
17
|
spec.files = Dir.glob("{bin,lib,templates}/**/*") + %w[Gemfile
|
18
18
|
Rakefile
|
19
19
|
gem_bootstrap.gemspec
|
20
20
|
README.md
|
21
|
-
|
21
|
+
CHANGELOG.md
|
22
22
|
LICENSE
|
23
23
|
.rubocop.yml
|
24
24
|
.gitignore]
|
data/lib/gem_bootstrap/cli.rb
CHANGED
@@ -31,7 +31,6 @@ module GemBootstrap
|
|
31
31
|
template "../../templates/Rakefile", "#{name}/Rakefile"
|
32
32
|
template "../../templates/Guardfile", "#{name}/Guardfile"
|
33
33
|
template "../../templates/dot_rubocop.yml", "#{name}/.rubocop.yml"
|
34
|
-
template "../../templates/rubocop-todo.yml", "#{name}/rubocop-todo.yml"
|
35
34
|
template "../../templates/newgem.gemspec.tt", "#{name}/#{name}.gemspec"
|
36
35
|
template "../../templates/bin/newgem", "#{name}/bin/#{name}"
|
37
36
|
template "../../templates/lib/newgem.rb", "#{name}/lib/#{name}.rb"
|
@@ -19,12 +19,7 @@ e.g. create a gem name 'awesome_gem'
|
|
19
19
|
$gem_bootstrap awesome_gem -g awesome_developer -e cool@awesomedev.com -a 'John Guru II'
|
20
20
|
|
21
21
|
EOT
|
22
|
-
# help_text = <<-EOT
|
23
|
-
# gem_bootstrap help [COMMAND] # Describe available commands or one specific command
|
24
|
-
# gem_bootstrap usage # Display help screen
|
25
|
-
# EOT
|
26
22
|
puts generate_usage
|
27
|
-
# puts help_text.gsub(/^\s+/, '')
|
28
23
|
end
|
29
24
|
|
30
25
|
default_task :usage
|
data/templates/dot_gitignore
CHANGED
data/templates/dot_rubocop.yml
CHANGED
@@ -1,10 +1,96 @@
|
|
1
1
|
# This is the configuration used to check the rubocop source code.
|
2
2
|
AllCops:
|
3
3
|
Include:
|
4
|
-
-
|
5
|
-
-
|
6
|
-
-
|
7
|
-
|
8
|
-
-
|
9
|
-
-
|
10
|
-
|
4
|
+
- Gemfile
|
5
|
+
- Rakefile
|
6
|
+
- bin/*
|
7
|
+
- <%= name %>.gemspec
|
8
|
+
- lib/**/*.rb
|
9
|
+
- test/**/*.rb
|
10
|
+
# Avoid long parameter lists
|
11
|
+
ParameterLists:
|
12
|
+
Max: 5
|
13
|
+
CountKeywordArgs: true
|
14
|
+
|
15
|
+
MethodLength:
|
16
|
+
CountComments: false
|
17
|
+
Max: 15
|
18
|
+
|
19
|
+
# Avoid more than `Max` levels of nesting.
|
20
|
+
BlockNesting:
|
21
|
+
Max: 4
|
22
|
+
|
23
|
+
# Align with the style guide.
|
24
|
+
CollectionMethods:
|
25
|
+
PreferredMethods:
|
26
|
+
collect: 'map'
|
27
|
+
inject: 'reduce'
|
28
|
+
find: 'detect'
|
29
|
+
find_all: 'select'
|
30
|
+
|
31
|
+
# Do not force public/protected/private keyword to be indented at the same
|
32
|
+
# level as the def keyword. My personal preference is to outdent these keywords
|
33
|
+
# because I think when scanning code it makes it easier to identify the
|
34
|
+
# sections of code and visually separate them. When the keyword is at the same
|
35
|
+
# level I think it sort of blends in with the def keywords and makes it harder
|
36
|
+
# to scan the code and see where the sections are.
|
37
|
+
AccessModifierIndentation:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
# Limit line length
|
41
|
+
LineLength:
|
42
|
+
Enabled: false
|
43
|
+
|
44
|
+
# Disable documentation checking until a class needs to be documented once
|
45
|
+
Documentation:
|
46
|
+
Enabled: false
|
47
|
+
|
48
|
+
# Enforce Ruby 1.8-compatible hash syntax
|
49
|
+
HashSyntax:
|
50
|
+
Enabled: true
|
51
|
+
|
52
|
+
# No spaces inside hash literals
|
53
|
+
SpaceInsideHashLiteralBraces:
|
54
|
+
EnforcedStyle: no_space
|
55
|
+
|
56
|
+
# Allow dots at the end of lines
|
57
|
+
DotPosition:
|
58
|
+
Enabled: false
|
59
|
+
|
60
|
+
# Don't require magic comment at the top of every file
|
61
|
+
Encoding:
|
62
|
+
Enabled: false
|
63
|
+
|
64
|
+
# Enforce outdenting of access modifiers (i.e. public, private, protected)
|
65
|
+
AccessModifierIndentation:
|
66
|
+
EnforcedStyle: outdent
|
67
|
+
|
68
|
+
EmptyLinesAroundAccessModifier:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
# Align ends correctly
|
72
|
+
EndAlignment:
|
73
|
+
AlignWith: variable
|
74
|
+
|
75
|
+
# Indentation of when/else
|
76
|
+
CaseIndentation:
|
77
|
+
IndentWhenRelativeTo: end
|
78
|
+
IndentOneStep: false
|
79
|
+
|
80
|
+
DoubleNegation:
|
81
|
+
Enabled: false
|
82
|
+
|
83
|
+
PercentLiteralDelimiters:
|
84
|
+
PreferredDelimiters:
|
85
|
+
'%': ()
|
86
|
+
'%i': ()
|
87
|
+
'%q': ()
|
88
|
+
'%Q': ()
|
89
|
+
'%r': '{}'
|
90
|
+
'%s': ()
|
91
|
+
'%w': '[]'
|
92
|
+
'%W': '[]'
|
93
|
+
'%x': ()
|
94
|
+
|
95
|
+
StringLiterals:
|
96
|
+
EnforcedStyle: double_quotes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Burin Choomnuan
|
@@ -195,7 +195,7 @@ dependencies:
|
|
195
195
|
description: |-
|
196
196
|
Bootstrap the creation of ruby gem so that you don't have to start from scratch.
|
197
197
|
Build with simple, sensible default and very easy to extend.
|
198
|
-
TL;DR `gem_bootstrap
|
198
|
+
TL;DR create new gem with `gem_bootstrap awesome_gem -g github_id -e your@email.com -a 'John Guru'`
|
199
199
|
email:
|
200
200
|
- agilecreativity@gmail.com
|
201
201
|
executables:
|
@@ -205,7 +205,7 @@ extra_rdoc_files: []
|
|
205
205
|
files:
|
206
206
|
- ".gitignore"
|
207
207
|
- ".rubocop.yml"
|
208
|
-
-
|
208
|
+
- CHANGELOG.md
|
209
209
|
- Gemfile
|
210
210
|
- LICENSE
|
211
211
|
- README.md
|
@@ -238,7 +238,6 @@ files:
|
|
238
238
|
- templates/lib/newgem/newgem.rb
|
239
239
|
- templates/lib/newgem/version.rb
|
240
240
|
- templates/newgem.gemspec.tt
|
241
|
-
- templates/rubocop-todo.yml
|
242
241
|
- templates/test/lib/newgem/test_newgem.rb
|
243
242
|
- templates/test/test_helper.rb
|
244
243
|
- test/lib/gem_bootstrap/test_gem_bootstrap.rb
|
data/templates/rubocop-todo.yml
DELETED
@@ -1,92 +0,0 @@
|
|
1
|
-
# This configuration was generated by `rubocop --auto-gen-config`
|
2
|
-
# on 2014-04-23 16:41:01 +1000 using RuboCop version 0.19.1.
|
3
|
-
# The point is for the user to remove these configuration records
|
4
|
-
# one by one as the offenses are removed from the code base.
|
5
|
-
# Note that changes in the inspected code, or installation of new
|
6
|
-
# versions of RuboCop, may require this file to be generated again.
|
7
|
-
|
8
|
-
# Offense count: 2
|
9
|
-
# Cop supports --auto-correct.
|
10
|
-
DeprecatedClassMethods:
|
11
|
-
Enabled: false
|
12
|
-
|
13
|
-
# Offense count: 9
|
14
|
-
Documentation:
|
15
|
-
Enabled: false
|
16
|
-
|
17
|
-
# Offense count: 6
|
18
|
-
# Cop supports --auto-correct.
|
19
|
-
EmptyLinesAroundBody:
|
20
|
-
Enabled: false
|
21
|
-
|
22
|
-
# Offense count: 1
|
23
|
-
Eval:
|
24
|
-
Enabled: false
|
25
|
-
|
26
|
-
# Offense count: 2
|
27
|
-
# Configuration parameters: Exclude.
|
28
|
-
FileName:
|
29
|
-
Enabled: false
|
30
|
-
|
31
|
-
# Offense count: 1
|
32
|
-
# Cop supports --auto-correct.
|
33
|
-
IndentationConsistency:
|
34
|
-
Enabled: true
|
35
|
-
|
36
|
-
# Offense count: 2
|
37
|
-
# Cop supports --auto-correct.
|
38
|
-
LeadingCommentSpace:
|
39
|
-
Enabled: false
|
40
|
-
|
41
|
-
# Offense count: 5
|
42
|
-
LineLength:
|
43
|
-
Max: 89
|
44
|
-
|
45
|
-
# Offense count: 1
|
46
|
-
# Configuration parameters: CountComments.
|
47
|
-
MethodLength:
|
48
|
-
Max: 12
|
49
|
-
|
50
|
-
# Offense count: 2
|
51
|
-
# Configuration parameters: NamePrefixBlacklist.
|
52
|
-
PredicateName:
|
53
|
-
Enabled: false
|
54
|
-
|
55
|
-
# Offense count: 1
|
56
|
-
RedundantBegin:
|
57
|
-
Enabled: true
|
58
|
-
|
59
|
-
# Offense count: 1
|
60
|
-
RescueException:
|
61
|
-
Enabled: false
|
62
|
-
|
63
|
-
# Offense count: 2
|
64
|
-
RescueModifier:
|
65
|
-
Enabled: false
|
66
|
-
|
67
|
-
# Offense count: 2
|
68
|
-
# Cop supports --auto-correct.
|
69
|
-
SpaceAfterComma:
|
70
|
-
Enabled: false
|
71
|
-
|
72
|
-
# Offense count: 2
|
73
|
-
# Cop supports --auto-correct.
|
74
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
75
|
-
SpaceBeforeBlockBraces:
|
76
|
-
Enabled: false
|
77
|
-
|
78
|
-
# Offense count: 1
|
79
|
-
# Cop supports --auto-correct.
|
80
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
81
|
-
SpaceInsideBlockBraces:
|
82
|
-
Enabled: true
|
83
|
-
|
84
|
-
# Offense count: 16
|
85
|
-
# Cop supports --auto-correct.
|
86
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
87
|
-
StringLiterals:
|
88
|
-
Enabled: false
|
89
|
-
|
90
|
-
# Offense count: 2
|
91
|
-
UselessAssignment:
|
92
|
-
Enabled: true
|