gem_bootstrap 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/.rubocop.yml +9 -0
- data/CHANGELOGS.md +5 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +116 -0
- data/Rakefile +30 -0
- data/bin/gem_bootstrap +3 -0
- data/gem_bootstrap.gemspec +41 -0
- data/lib/gem_bootstrap/cli.rb +57 -0
- data/lib/gem_bootstrap/core_ext/hash/keys.rb +54 -0
- data/lib/gem_bootstrap/core_ext/object/blank.rb +105 -0
- data/lib/gem_bootstrap/gem_bootstrap.rb +35 -0
- data/lib/gem_bootstrap/git_utils.rb +49 -0
- data/lib/gem_bootstrap/misc_utils.rb +75 -0
- data/lib/gem_bootstrap/version.rb +3 -0
- data/lib/gem_bootstrap.rb +7 -0
- data/rubocop-todo.yml +36 -0
- data/templates/CHANGELOGS.md +5 -0
- data/templates/GNU_LICENSE +339 -0
- data/templates/Gemfile +4 -0
- data/templates/Guardfile +13 -0
- data/templates/MIT_LICENSE +22 -0
- data/templates/README.md +57 -0
- data/templates/Rakefile +29 -0
- data/templates/bin/newgem +4 -0
- data/templates/dot_gitignore +18 -0
- data/templates/dot_rubocop.yml +10 -0
- data/templates/dot_yardopts +2 -0
- data/templates/lib/newgem/cli.rb +33 -0
- data/templates/lib/newgem/core_ext/hash/keys.rb +54 -0
- data/templates/lib/newgem/logger.rb +10 -0
- data/templates/lib/newgem/newgem.rb +10 -0
- data/templates/lib/newgem/version.rb +3 -0
- data/templates/lib/newgem.rb +6 -0
- data/templates/newgem.gemspec.tt +30 -0
- data/templates/rubocop-todo.yml +92 -0
- data/templates/test/lib/newgem/test_newgem.rb +8 -0
- data/templates/test/test_helper.rb +8 -0
- data/test/lib/gem_bootstrap/test_gem_bootstrap.rb +9 -0
- data/test/test_helper.rb +8 -0
- metadata +273 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require '<%= name %>/version'
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = '<%= name %>'
|
7
|
+
spec.version = <%= MiscUtils.camel_case(name) %>::VERSION
|
8
|
+
spec.authors = ['<%= options[:author] %>']
|
9
|
+
spec.email = ['<%= options[:email] %>']
|
10
|
+
spec.summary = %q{CLI template for <%= MiscUtils.camel_case(name) %>}
|
11
|
+
spec.description = %q{The starting template for <%= MiscUtils.camel_case(name) %>}
|
12
|
+
spec.homepage = 'https://github.com/<%= options[:github_id] %>/<%= name %>'
|
13
|
+
spec.license = 'MIT'
|
14
|
+
spec.files = `git ls-files -z`.split("\x0")
|
15
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
16
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
|
+
spec.require_paths = ['lib']
|
18
|
+
spec.add_runtime_dependency 'thor', '~> 0.19'
|
19
|
+
spec.add_development_dependency 'awesome_print', '~> 1.2'
|
20
|
+
spec.add_development_dependency 'bundler', '~> 1.5'
|
21
|
+
spec.add_development_dependency 'gem-ctags', '~> 1.0'
|
22
|
+
spec.add_development_dependency 'guard', '~> 2.6'
|
23
|
+
spec.add_development_dependency 'guard-minitest', '~> 2.2'
|
24
|
+
spec.add_development_dependency 'minitest', '~> 5.3'
|
25
|
+
spec.add_development_dependency 'minitest-spec-context', '~> 0.0.3'
|
26
|
+
spec.add_development_dependency 'pry', '~> 0.9'
|
27
|
+
spec.add_development_dependency 'rake', '~> 10.1'
|
28
|
+
spec.add_development_dependency 'rubocop', '~> 0.20'
|
29
|
+
spec.add_development_dependency 'yard', '~> 0.8'
|
30
|
+
end
|
@@ -0,0 +1,92 @@
|
|
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
|
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,273 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gem_bootstrap
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Burin Choomnuan
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-05-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: thor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.19'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.19'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: grit
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.5'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: awesome_print
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.2'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: bundler
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.6'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.6'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: gem-ctags
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: minitest
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.3'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.3'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: minitest-spec-context
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.0.3
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.0.3
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.6'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '2.6'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: guard-minitest
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '2.2'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '2.2'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: pry
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.9'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.9'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rake
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '10.3'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '10.3'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rubocop
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0.21'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0.21'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: yard
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.8.7
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.8.7
|
195
|
+
description: |-
|
196
|
+
Bootstrap the creation of ruby gem so that you don't have to start from scratch.
|
197
|
+
Build with simple, sensible default and very easy to extend
|
198
|
+
email:
|
199
|
+
- agilecreativity@gmail.com
|
200
|
+
executables:
|
201
|
+
- gem_bootstrap
|
202
|
+
extensions: []
|
203
|
+
extra_rdoc_files: []
|
204
|
+
files:
|
205
|
+
- ".gitignore"
|
206
|
+
- ".rubocop.yml"
|
207
|
+
- CHANGELOGS.md
|
208
|
+
- Gemfile
|
209
|
+
- LICENSE
|
210
|
+
- README.md
|
211
|
+
- Rakefile
|
212
|
+
- bin/gem_bootstrap
|
213
|
+
- gem_bootstrap.gemspec
|
214
|
+
- lib/gem_bootstrap.rb
|
215
|
+
- lib/gem_bootstrap/cli.rb
|
216
|
+
- lib/gem_bootstrap/core_ext/hash/keys.rb
|
217
|
+
- lib/gem_bootstrap/core_ext/object/blank.rb
|
218
|
+
- lib/gem_bootstrap/gem_bootstrap.rb
|
219
|
+
- lib/gem_bootstrap/git_utils.rb
|
220
|
+
- lib/gem_bootstrap/misc_utils.rb
|
221
|
+
- lib/gem_bootstrap/version.rb
|
222
|
+
- rubocop-todo.yml
|
223
|
+
- templates/CHANGELOGS.md
|
224
|
+
- templates/GNU_LICENSE
|
225
|
+
- templates/Gemfile
|
226
|
+
- templates/Guardfile
|
227
|
+
- templates/MIT_LICENSE
|
228
|
+
- templates/README.md
|
229
|
+
- templates/Rakefile
|
230
|
+
- templates/bin/newgem
|
231
|
+
- templates/dot_gitignore
|
232
|
+
- templates/dot_rubocop.yml
|
233
|
+
- templates/dot_yardopts
|
234
|
+
- templates/lib/newgem.rb
|
235
|
+
- templates/lib/newgem/cli.rb
|
236
|
+
- templates/lib/newgem/core_ext/hash/keys.rb
|
237
|
+
- templates/lib/newgem/logger.rb
|
238
|
+
- templates/lib/newgem/newgem.rb
|
239
|
+
- templates/lib/newgem/version.rb
|
240
|
+
- templates/newgem.gemspec.tt
|
241
|
+
- templates/rubocop-todo.yml
|
242
|
+
- templates/test/lib/newgem/test_newgem.rb
|
243
|
+
- templates/test/test_helper.rb
|
244
|
+
- test/lib/gem_bootstrap/test_gem_bootstrap.rb
|
245
|
+
- test/test_helper.rb
|
246
|
+
homepage: https://github.com/agilecreativity/gem_bootstrap
|
247
|
+
licenses:
|
248
|
+
- MIT
|
249
|
+
metadata: {}
|
250
|
+
post_install_message:
|
251
|
+
rdoc_options: []
|
252
|
+
require_paths:
|
253
|
+
- lib
|
254
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
255
|
+
requirements:
|
256
|
+
- - ">="
|
257
|
+
- !ruby/object:Gem::Version
|
258
|
+
version: '0'
|
259
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
|
+
requirements:
|
261
|
+
- - ">="
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: '0'
|
264
|
+
requirements: []
|
265
|
+
rubyforge_project:
|
266
|
+
rubygems_version: 2.2.2
|
267
|
+
signing_key:
|
268
|
+
specification_version: 4
|
269
|
+
summary: Bootstrap the creation of ruby gem so that you don't have to start from scratch
|
270
|
+
test_files:
|
271
|
+
- test/lib/gem_bootstrap/test_gem_bootstrap.rb
|
272
|
+
- test/test_helper.rb
|
273
|
+
has_rdoc:
|