gem_bootstrap 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +6 -0
- data/lib/gem_bootstrap/cli.rb +1 -1
- data/lib/gem_bootstrap/gem_bootstrap.rb +2 -2
- data/lib/gem_bootstrap/version.rb +1 -1
- data/templates/{CHANGELOGS.md → CHANGELOG.md} +0 -0
- data/templates/Guardfile-minitest +1 -1
- data/templates/Guardfile-rspec +2 -2
- data/templates/lib/newgem/cli.rb +1 -3
- data/templates/lib/newgem.rb +1 -0
- data/templates/newgem-minitest.gemspec.tt +8 -1
- data/templates/newgem-rspec.gemspec.tt +8 -1
- metadata +63 -79
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2471860cb338a977d05107438858b14e7ec38120
|
4
|
+
data.tar.gz: 6e8bdd16cd1c1e5bc6ba493324bb35fe0dd15832
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fd1e5687799ca4880c78525814a2055fb2f4abce275994ec01edcb68b6193fab9cd4538a30474e5c053d211659fcfe4518c58bebd6171c5bd3b95396f244071f
|
7
|
+
data.tar.gz: 794b66bd3440c7e769a6aad2b1f4467da9e564886f3af06ea4aab7cda5444e630784a787ab7a8ca3ab00eeda09e50c3cda0fd772643ec347ee9cf20179b525ac
|
data/CHANGELOG.md
CHANGED
data/lib/gem_bootstrap/cli.rb
CHANGED
@@ -30,7 +30,7 @@ module GemBootstrap
|
|
30
30
|
# rubocop:disable MethodLength, LineLength
|
31
31
|
def create_lib_file
|
32
32
|
template "#{TEMPLATES_DIR}/README.md", "#{name}/README.md"
|
33
|
-
template "#{TEMPLATES_DIR}/
|
33
|
+
template "#{TEMPLATES_DIR}/CHANGELOG.md", "#{name}/CHANGELOG.md"
|
34
34
|
template "#{TEMPLATES_DIR}/dot_yardopts", "#{name}/.yardopts"
|
35
35
|
template "#{TEMPLATES_DIR}/dot_gitignore", "#{name}/.gitignore"
|
36
36
|
template "#{TEMPLATES_DIR}/Gemfile", "#{name}/Gemfile"
|
@@ -12,10 +12,10 @@ module GemBootstrap
|
|
12
12
|
# Usage/Synopsis:
|
13
13
|
gem_bootstrap [GEM_NAME] -g, --github-id [GITHUB_ID] -e, --email [EMAIL] -a, --author [AUTHOR] --test-framework [FRAMEWORK]
|
14
14
|
|
15
|
-
# Create a gem name 'awesome_gem'
|
15
|
+
# Create a gem name 'awesome_gem' with minitest as a testing framework (default)
|
16
16
|
gem_bootstrap awesome_gem -g awesome_developer -e cool@awesomedev.com -a 'John Guru II'
|
17
17
|
|
18
|
-
#
|
18
|
+
# Create a gem name 'awesome_gem' with rspec as a testing framework
|
19
19
|
gem_bootstrap awesome_gem -g awesome_developer -e cool@awesomedev.com -a 'John Guru II' -t rspec
|
20
20
|
|
21
21
|
EOT
|
File without changes
|
data/templates/Guardfile-rspec
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
# More info at https://github.com/guard/guard#readme
|
3
3
|
guard :rspec, cmd: 'rspec', all_on_start: true, all_after_pass: true do
|
4
4
|
watch(%r{^spec/.+_spec\.rb$})
|
5
|
-
watch(%r{^lib/(.+)\.rb$})
|
6
|
-
watch('spec/spec_helper.rb')
|
5
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
6
|
+
watch('spec/spec_helper.rb') { 'spec' }
|
7
7
|
end
|
data/templates/lib/newgem/cli.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'thor'
|
2
1
|
module <%= MiscUtils.camel_case(name) %>
|
3
2
|
class CLI < Thor
|
4
3
|
desc 'execute', 'Execute the main program'
|
@@ -11,7 +10,6 @@ module <%= MiscUtils.camel_case(name) %>
|
|
11
10
|
puts "You are using <%= MiscUtils.camel_case(name) %> version #{<%= MiscUtils.camel_case(name) %>::VERSION}"
|
12
11
|
exit
|
13
12
|
end
|
14
|
-
puts "Your options #{opts}"
|
15
13
|
process(opts)
|
16
14
|
end
|
17
15
|
|
@@ -27,7 +25,7 @@ TODO: Add your sample usage here
|
|
27
25
|
private
|
28
26
|
|
29
27
|
def process(opts = {})
|
30
|
-
puts "Your options #{opts}"
|
28
|
+
puts "Your options: #{opts}"
|
31
29
|
end
|
32
30
|
end
|
33
31
|
end
|
data/templates/lib/newgem.rb
CHANGED
@@ -3,6 +3,7 @@ require 'active_support/core_ext/object/blank'
|
|
3
3
|
require 'active_support/core_ext/hash/keys'
|
4
4
|
require 'active_support/core_ext/hash/indifferent_access'
|
5
5
|
require 'active_support/core_ext/kernel/reporting'
|
6
|
+
require 'thor'
|
6
7
|
require_relative '<%= name %>/version'
|
7
8
|
require_relative '<%= name %>/<%= name %>'
|
8
9
|
require_relative '<%= name %>/cli'
|
@@ -12,7 +12,14 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = 'https://github.com/<%= options[:github_id] %>/<%= name %>'
|
13
13
|
spec.required_ruby_version = ">= 1.9.3"
|
14
14
|
spec.license = 'MIT'
|
15
|
-
spec.files =
|
15
|
+
spec.files = Dir.glob('{bin,lib,spec,test}/**/*') + %w(Gemfile
|
16
|
+
Rakefile
|
17
|
+
<%= name %>.gemspec
|
18
|
+
README.md
|
19
|
+
CHANGELOG.md
|
20
|
+
LICENSE
|
21
|
+
.rubocop.yml
|
22
|
+
.gitignore)
|
16
23
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
24
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
25
|
spec.require_paths = ['lib']
|
@@ -12,7 +12,14 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.homepage = 'https://github.com/<%= options[:github_id] %>/<%= name %>'
|
13
13
|
spec.required_ruby_version = ">= 1.9.3"
|
14
14
|
spec.license = 'MIT'
|
15
|
-
spec.files =
|
15
|
+
spec.files = Dir.glob('{bin,lib,spec,test}/**/*') + %w(Gemfile
|
16
|
+
Rakefile
|
17
|
+
<%= name %>.gemspec
|
18
|
+
README.md
|
19
|
+
CHANGELOG.md
|
20
|
+
LICENSE
|
21
|
+
.rubocop.yml
|
22
|
+
.gitignore)
|
16
23
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
17
24
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
25
|
spec.require_paths = ['lib']
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Burin Choomnuan
|
@@ -14,231 +13,217 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activesupport-core-ext
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 4.0.0.2
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 4.0.0.2
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: grit
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: 2.5.0
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: 2.5.0
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: thor
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: 0.19.1
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: 0.19.1
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: awesome_print
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- - ~>
|
59
|
+
- - "~>"
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: 1.2.0
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- - ~>
|
66
|
+
- - "~>"
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: 1.2.0
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: bundler
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- - ~>
|
73
|
+
- - "~>"
|
84
74
|
- !ruby/object:Gem::Version
|
85
75
|
version: 1.7.3
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- - ~>
|
80
|
+
- - "~>"
|
92
81
|
- !ruby/object:Gem::Version
|
93
82
|
version: 1.7.3
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: gem-ctags
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- - ~>
|
87
|
+
- - "~>"
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: 1.0.6
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- - ~>
|
94
|
+
- - "~>"
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: 1.0.6
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: guard
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- - ~>
|
101
|
+
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: 2.6.1
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- - ~>
|
108
|
+
- - "~>"
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: 2.6.1
|
126
111
|
- !ruby/object:Gem::Dependency
|
127
112
|
name: guard-minitest
|
128
113
|
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
114
|
requirements:
|
131
|
-
- - ~>
|
115
|
+
- - "~>"
|
132
116
|
- !ruby/object:Gem::Version
|
133
117
|
version: 2.3.2
|
134
118
|
type: :development
|
135
119
|
prerelease: false
|
136
120
|
version_requirements: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
121
|
requirements:
|
139
|
-
- - ~>
|
122
|
+
- - "~>"
|
140
123
|
- !ruby/object:Gem::Version
|
141
124
|
version: 2.3.2
|
142
125
|
- !ruby/object:Gem::Dependency
|
143
126
|
name: minitest
|
144
127
|
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
128
|
requirements:
|
147
|
-
- - ~>
|
129
|
+
- - "~>"
|
148
130
|
- !ruby/object:Gem::Version
|
149
131
|
version: 5.4.2
|
150
132
|
type: :development
|
151
133
|
prerelease: false
|
152
134
|
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
135
|
requirements:
|
155
|
-
- - ~>
|
136
|
+
- - "~>"
|
156
137
|
- !ruby/object:Gem::Version
|
157
138
|
version: 5.4.2
|
158
139
|
- !ruby/object:Gem::Dependency
|
159
140
|
name: minitest-spec-context
|
160
141
|
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
142
|
requirements:
|
163
|
-
- - ~>
|
143
|
+
- - "~>"
|
164
144
|
- !ruby/object:Gem::Version
|
165
145
|
version: 0.0.3
|
166
146
|
type: :development
|
167
147
|
prerelease: false
|
168
148
|
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
149
|
requirements:
|
171
|
-
- - ~>
|
150
|
+
- - "~>"
|
172
151
|
- !ruby/object:Gem::Version
|
173
152
|
version: 0.0.3
|
174
153
|
- !ruby/object:Gem::Dependency
|
175
154
|
name: pry
|
176
155
|
requirement: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
156
|
requirements:
|
179
|
-
- - ~>
|
157
|
+
- - "~>"
|
180
158
|
- !ruby/object:Gem::Version
|
181
159
|
version: 0.10.1
|
182
160
|
type: :development
|
183
161
|
prerelease: false
|
184
162
|
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
163
|
requirements:
|
187
|
-
- - ~>
|
164
|
+
- - "~>"
|
188
165
|
- !ruby/object:Gem::Version
|
189
166
|
version: 0.10.1
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: pry-byebug
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 2.0.0
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 2.0.0
|
190
181
|
- !ruby/object:Gem::Dependency
|
191
182
|
name: rake
|
192
183
|
requirement: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
184
|
requirements:
|
195
|
-
- - ~>
|
185
|
+
- - "~>"
|
196
186
|
- !ruby/object:Gem::Version
|
197
187
|
version: 10.3.2
|
198
188
|
type: :development
|
199
189
|
prerelease: false
|
200
190
|
version_requirements: !ruby/object:Gem::Requirement
|
201
|
-
none: false
|
202
191
|
requirements:
|
203
|
-
- - ~>
|
192
|
+
- - "~>"
|
204
193
|
- !ruby/object:Gem::Version
|
205
194
|
version: 10.3.2
|
206
195
|
- !ruby/object:Gem::Dependency
|
207
196
|
name: rubocop
|
208
197
|
requirement: !ruby/object:Gem::Requirement
|
209
|
-
none: false
|
210
198
|
requirements:
|
211
|
-
- - ~>
|
199
|
+
- - "~>"
|
212
200
|
- !ruby/object:Gem::Version
|
213
201
|
version: 0.26.1
|
214
202
|
type: :development
|
215
203
|
prerelease: false
|
216
204
|
version_requirements: !ruby/object:Gem::Requirement
|
217
|
-
none: false
|
218
205
|
requirements:
|
219
|
-
- - ~>
|
206
|
+
- - "~>"
|
220
207
|
- !ruby/object:Gem::Version
|
221
208
|
version: 0.26.1
|
222
209
|
- !ruby/object:Gem::Dependency
|
223
210
|
name: yard
|
224
211
|
requirement: !ruby/object:Gem::Requirement
|
225
|
-
none: false
|
226
212
|
requirements:
|
227
|
-
- - ~>
|
213
|
+
- - "~>"
|
228
214
|
- !ruby/object:Gem::Version
|
229
215
|
version: 0.8.7
|
230
216
|
type: :development
|
231
217
|
prerelease: false
|
232
218
|
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
none: false
|
234
219
|
requirements:
|
235
|
-
- - ~>
|
220
|
+
- - "~>"
|
236
221
|
- !ruby/object:Gem::Version
|
237
222
|
version: 0.8.7
|
238
|
-
description:
|
239
|
-
|
240
|
-
|
241
|
-
|
223
|
+
description: |-
|
224
|
+
Bootstrap the creation of ruby gem so that you don't have to start from scratch.
|
225
|
+
Build with simple, sensible default and very easy to extend.
|
226
|
+
TL;DR; create new gem with `gem_bootstrap awesome_gem -g github_id -e your@email.com -a 'John Guru'`
|
242
227
|
email:
|
243
228
|
- agilecreativity@gmail.com
|
244
229
|
executables:
|
@@ -246,14 +231,22 @@ executables:
|
|
246
231
|
extensions: []
|
247
232
|
extra_rdoc_files: []
|
248
233
|
files:
|
234
|
+
- ".gitignore"
|
235
|
+
- ".rubocop.yml"
|
236
|
+
- CHANGELOG.md
|
237
|
+
- Gemfile
|
238
|
+
- LICENSE
|
239
|
+
- README.md
|
240
|
+
- Rakefile
|
249
241
|
- bin/gem_bootstrap
|
242
|
+
- gem_bootstrap.gemspec
|
243
|
+
- lib/gem_bootstrap.rb
|
250
244
|
- lib/gem_bootstrap/cli.rb
|
251
245
|
- lib/gem_bootstrap/gem_bootstrap.rb
|
252
246
|
- lib/gem_bootstrap/git_utils.rb
|
253
247
|
- lib/gem_bootstrap/misc_utils.rb
|
254
248
|
- lib/gem_bootstrap/version.rb
|
255
|
-
-
|
256
|
-
- templates/CHANGELOGS.md
|
249
|
+
- templates/CHANGELOG.md
|
257
250
|
- templates/GNU_LICENSE
|
258
251
|
- templates/Gemfile
|
259
252
|
- templates/Guardfile-minitest
|
@@ -266,50 +259,41 @@ files:
|
|
266
259
|
- templates/dot_gitignore
|
267
260
|
- templates/dot_rubocop.yml
|
268
261
|
- templates/dot_yardopts
|
262
|
+
- templates/lib/newgem.rb
|
269
263
|
- templates/lib/newgem/cli.rb
|
270
264
|
- templates/lib/newgem/newgem.rb
|
271
265
|
- templates/lib/newgem/version.rb
|
272
|
-
- templates/lib/newgem.rb
|
273
266
|
- templates/newgem-minitest.gemspec.tt
|
274
267
|
- templates/newgem-rspec.gemspec.tt
|
275
268
|
- templates/spec/lib/newgem/newgem_spec.rb
|
276
269
|
- templates/spec/spec_helper.rb
|
277
270
|
- templates/test/lib/newgem/test_newgem.rb
|
278
271
|
- templates/test/test_helper.rb
|
279
|
-
- Gemfile
|
280
|
-
- Rakefile
|
281
|
-
- gem_bootstrap.gemspec
|
282
|
-
- README.md
|
283
|
-
- CHANGELOG.md
|
284
|
-
- LICENSE
|
285
|
-
- .rubocop.yml
|
286
|
-
- .gitignore
|
287
272
|
- test/lib/gem_bootstrap/test_gem_bootstrap.rb
|
288
273
|
- test/test_helper.rb
|
289
274
|
homepage: https://github.com/agilecreativity/gem_bootstrap
|
290
275
|
licenses:
|
291
276
|
- MIT
|
277
|
+
metadata: {}
|
292
278
|
post_install_message:
|
293
279
|
rdoc_options: []
|
294
280
|
require_paths:
|
295
281
|
- lib
|
296
282
|
required_ruby_version: !ruby/object:Gem::Requirement
|
297
|
-
none: false
|
298
283
|
requirements:
|
299
|
-
- -
|
284
|
+
- - ">="
|
300
285
|
- !ruby/object:Gem::Version
|
301
286
|
version: 1.9.3
|
302
287
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
303
|
-
none: false
|
304
288
|
requirements:
|
305
|
-
- -
|
289
|
+
- - ">="
|
306
290
|
- !ruby/object:Gem::Version
|
307
291
|
version: '0'
|
308
292
|
requirements: []
|
309
293
|
rubyforge_project:
|
310
|
-
rubygems_version:
|
294
|
+
rubygems_version: 2.2.2
|
311
295
|
signing_key:
|
312
|
-
specification_version:
|
296
|
+
specification_version: 4
|
313
297
|
summary: Bootstrap the creation of ruby gem so that you don't have to start from scratch
|
314
298
|
test_files:
|
315
299
|
- test/lib/gem_bootstrap/test_gem_bootstrap.rb
|