gemsmith 7.4.0 → 7.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b15a788991bc084549c98a462eed3c3f5c38cdca
4
- data.tar.gz: 9738979e1f90e3f9e32a1e43da1a5ab1122bcab2
3
+ metadata.gz: b37d50dad74a5bfb96b4cccbe1acb2c9be2535f8
4
+ data.tar.gz: 7348735afdb627d3fa112fa28c81b5a33864e986
5
5
  SHA512:
6
- metadata.gz: e44ec634d3ed7706e7b2b3a807d57bbf36631b9e8d818e4e3f2fc02b8166bf13b401dad37de89dd7bfb933da86d929c02c9813890549d31ace84987ba3b9c9c1
7
- data.tar.gz: c983d010a5878a9a28082c66e61eb51a3ee0d235a224b612b5a5d7d629f0a6e0c1aa42c774c0e98eb8e6e0c3b3c6cabdae50f5ef3d14c04af2ce99c8f95a47b2
6
+ metadata.gz: 5d85c62093136a1cd68961f51419a0a5ba757ae75646d0c619f666b1aad304dacf6bfab58fb7e35dac72d84d8ff840ccf68c318db31eec9fee5c786710f3a2b1
7
+ data.tar.gz: 2d5958aee433222d02cbc9e3a060dcdfd1c5d2a0ea2f4e165112ac7afcc2b63eb9aef64703d28b989a94c4736c7087e4e13286f08107deee9ce5485a01fac781
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -127,6 +127,7 @@ The following defaults are used when no options are configured:
127
127
  :guard: true
128
128
  :rspec: true
129
129
  :rubocop: true
130
+ :git-hub: false
130
131
  :code_climate: true
131
132
  :gemnasium: true
132
133
  :travis: true
@@ -142,14 +143,15 @@ necessary.
142
143
 
143
144
  From the command line, type: `gemsmith --help`
144
145
 
145
- gemsmith -c, [--create=CREATE] # Create new gem.
146
- gemsmith -e, [--edit] # Edit Gemsmith settings in default editor.
147
- gemsmith -h, [--help=HELP] # Show this message or get help for a command.
148
- gemsmith -o, [--open=OPEN] # Open a gem in default editor.
149
- gemsmith -r, [--read=READ] # Open a gem in default browser.
150
- gemsmith -v, [--version] # Show Gemsmith version.
146
+ gemsmith -c, [--create=CREATE] # Create new gem. DEPRECATED (use --generate).
147
+ gemsmith -e, [--edit] # Edit Gemsmith settings in default editor.
148
+ gemsmith -g, [--generate=GENERATE] # Generate new gem.
149
+ gemsmith -h, [--help=HELP] # Show this message or get help for a command.
150
+ gemsmith -o, [--open=OPEN] # Open a gem in default editor.
151
+ gemsmith -r, [--read=READ] # Open a gem in default browser.
152
+ gemsmith -v, [--version] # Show Gemsmith version.
151
153
 
152
- For more gem creation options, type: `gemsmith --help --create`
154
+ For more gem creation options, type: `gemsmith --help --generate`
153
155
 
154
156
  -c, [--cli], [--no-cli] # Add CLI support.
155
157
  -r, [--rails], [--no-rails] # Add Rails support.
@@ -298,18 +300,17 @@ following:
298
300
  ## Gem Credentials
299
301
 
300
302
  With your gem specification metadata established, you are ready to publish your gem to a public or private server. If
301
- this is your first time publishing a gem and no gem credentials have been configured, you'll be prompted for them. This
302
- gem will ask you for your login and password during gem publish. Gem credentials will are stored in the
303
- `~/.gem/credentials` file as defined by RubyGems. *This will only happen once.* Afterwards, future gem publishing will
304
- your stored credentials instead. Multiple credentials can be stored in the `~/.gem/credentials` file. Example:
303
+ this is your first time publishing a gem and no gem credentials have been configured, you'll be prompted for them. Gem
304
+ credentials are stored in the RubyGems `~/.gem/credentials` file. From this point forward, future gem publishing will
305
+ use your stored credentials instead. Multiple credentials can be stored in the `~/.gem/credentials` file. Example:
305
306
 
306
307
  ---
307
308
  :rubygems_api_key: 2a0b460650e67d9b85a60e183defa376
308
309
  :example_key: "Basic dXNlcjpwYXNzd29yZA=="
309
310
 
310
- Should you need delete a credential (due to a bad login/password for example), you can open the `~/.gem/credentials` in
311
- your default editor and remove the line(s) you don't need. Upon next publish of your gem, this gem will prompt you for
312
- new credentials.
311
+ Should you need to delete a credential (due to a bad login/password for example), you can open the `~/.gem/credentials`
312
+ in your default editor and remove the line(s) you don't need. Upon next publish of your gem, you'll be prompted for the
313
+ missing credentials.
313
314
 
314
315
  # Promotion
315
316
 
data/lib/gemsmith/cli.rb CHANGED
@@ -30,6 +30,7 @@ require "gemsmith/configuration"
30
30
 
31
31
  module Gemsmith
32
32
  # The Command Line Interface (CLI) for the gem.
33
+ # rubocop:disable Metrics/ClassLength
33
34
  class CLI < Thor
34
35
  include Thor::Actions
35
36
  include ThorPlus::Actions
@@ -68,7 +69,32 @@ module Gemsmith
68
69
  @gem_spec = Aids::GemSpec
69
70
  end
70
71
 
71
- desc "-c, [--create=CREATE]", "Create new gem."
72
+ desc "-g, [--generate=GENERATE]", "Generate new gem."
73
+ map %w(-g --generate) => :generate
74
+ method_option :cli, aliases: "-c", desc: "Add CLI support.", type: :boolean, default: false
75
+ method_option :rails, aliases: "-r", desc: "Add Rails support.", type: :boolean, default: false
76
+ method_option :security, aliases: "-S", desc: "Add security support.", type: :boolean, default: true
77
+ method_option :pry, aliases: "-p", desc: "Add Pry support.", type: :boolean, default: true
78
+ method_option :guard, aliases: "-g", desc: "Add Guard support.", type: :boolean, default: true
79
+ method_option :rspec, aliases: "-s", desc: "Add RSpec support.", type: :boolean, default: true
80
+ method_option :rubocop, aliases: "-R", desc: "Add Rubocop support.", type: :boolean, default: true
81
+ method_option :git_hub, aliases: "-H", desc: "Add GitHub support.", type: :boolean, default: false
82
+ method_option :code_climate, aliases: "-C", desc: "Add Code Climate support.", type: :boolean, default: true
83
+ method_option :gemnasium, aliases: "-G", desc: "Add Gemnasium support.", type: :boolean, default: true
84
+ method_option :travis, aliases: "-t", desc: "Add Travis CI support.", type: :boolean, default: true
85
+ method_option :patreon, aliases: "-P", desc: "Add Patreon support.", type: :boolean, default: true
86
+ def generate name
87
+ say
88
+ info "Generating gem..."
89
+
90
+ setup_configuration name, options
91
+ self.class.skeletons.each { |skeleton| skeleton.create self, configuration: configuration }
92
+
93
+ info "Gem generation finished."
94
+ say
95
+ end
96
+
97
+ desc "-c, [--create=CREATE]", "Create new gem. DEPRECATED (use --generate)."
72
98
  map %w(-c --create) => :create
73
99
  method_option :cli, aliases: "-c", desc: "Add CLI support.", type: :boolean, default: false
74
100
  method_option :rails, aliases: "-r", desc: "Add Rails support.", type: :boolean, default: false
@@ -83,13 +109,14 @@ module Gemsmith
83
109
  method_option :travis, aliases: "-t", desc: "Add Travis CI support.", type: :boolean, default: true
84
110
  method_option :patreon, aliases: "-P", desc: "Add Patreon support.", type: :boolean, default: true
85
111
  def create name
112
+ warn "[DEPRECATION]: --create (-c) is deprecated, use --generate (-g) instead."
86
113
  say
87
- info "Creating gem..."
114
+ info "Generating gem..."
88
115
 
89
116
  setup_configuration name, options
90
117
  self.class.skeletons.each { |skeleton| skeleton.create self, configuration: configuration }
91
118
 
92
- info "Gem created."
119
+ info "Gem generation finished."
93
120
  say
94
121
  end
95
122
 
@@ -12,7 +12,7 @@ module Gemsmith
12
12
  end
13
13
 
14
14
  def self.version
15
- "7.4.0"
15
+ "7.5.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -1,19 +1,16 @@
1
1
  ## Expected Behavior
2
-
3
- <!-- Describe, in detail, the experienced behavior. -->
2
+ <!-- Required. Describe, in detail, the behavior experienced. -->
4
3
 
5
4
  ## Actual Behavior
6
-
7
- <!-- Describe, in detail, what should be the correct behavior. -->
8
-
9
- ## Environment
10
-
11
- <!-- What is your operating system, software version(s), and/or other details that might be helpful. -->
5
+ <!-- Required. Describe, in detail, what should be the correct behavior. -->
12
6
 
13
7
  ## Steps to Recreate
8
+ <!-- Required. List the exact steps to the reproduce errant behavior. -->
14
9
 
15
10
  0.
16
11
 
17
- ## Screenshots/Screencasts
12
+ ## Environment
13
+ <!-- Optional. What is your operating system, software version(s), etc. Delete if unused. -->
18
14
 
19
- <!-- Attach screenshots/screencasts that demo the behavior. -->
15
+ ## Screenshots/Screencasts
16
+ <!-- Optional. Attach screenshots/screencasts that demo the behavior. Delete if unused. -->
@@ -1,15 +1,11 @@
1
1
  ## Overview
2
+ <!-- Required. Why is this important/necessary? -->
2
3
 
3
- <!-- Why is this pull request important/necessary -->
4
+ ## Details
5
+ <!-- Optional. List the key features/highlights as bullet points. -->
4
6
 
5
- ## Features
7
+ ## Notes
8
+ <!-- Optional. List additional notes/references as bullet points. Delete if unused. -->
6
9
 
7
- <!-- List the key features of this pull request as bullet points. -->
8
-
9
- -
10
-
11
- <!-- Optional. Uncomment to provide additional notes, links, concerns, caveats, etc. -->
12
- <!-- ## Notes -->
13
-
14
- <!-- Optional. Uncomment to provide image/video details. -->
15
- <!-- ## Screenshots/Screencasts -->
10
+ ## Screenshots/Screencasts
11
+ <!-- Optional. Provide image/video support. Delete if unused. -->
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemsmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.0
4
+ version: 7.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -30,7 +30,7 @@ cert_chain:
30
30
  aSif+qBc6oHD7EQWPF5cZkzkIURuwNwPBngZGxIKaMAgRhjGFXzUMAaq++r59cS9
31
31
  xTfQ4k6fglKEgpnLAXiKdo2c8Ym+X4rIKFfedQ==
32
32
  -----END CERTIFICATE-----
33
- date: 2016-03-14 00:00:00.000000000 Z
33
+ date: 2016-04-04 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: thor
@@ -200,6 +200,62 @@ dependencies:
200
200
  - - ">="
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
+ - !ruby/object:Gem::Dependency
204
+ name: bond
205
+ requirement: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ type: :development
211
+ prerelease: false
212
+ version_requirements: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ">="
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ - !ruby/object:Gem::Dependency
218
+ name: wirb
219
+ requirement: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ">="
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ type: :development
225
+ prerelease: false
226
+ version_requirements: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - ">="
229
+ - !ruby/object:Gem::Version
230
+ version: '0'
231
+ - !ruby/object:Gem::Dependency
232
+ name: hirb
233
+ requirement: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ type: :development
239
+ prerelease: false
240
+ version_requirements: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - ">="
243
+ - !ruby/object:Gem::Version
244
+ version: '0'
245
+ - !ruby/object:Gem::Dependency
246
+ name: awesome_print
247
+ requirement: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - ">="
250
+ - !ruby/object:Gem::Version
251
+ version: '0'
252
+ type: :development
253
+ prerelease: false
254
+ version_requirements: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ version: '0'
203
259
  - !ruby/object:Gem::Dependency
204
260
  name: rspec
205
261
  requirement: !ruby/object:Gem::Requirement
@@ -417,7 +473,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
417
473
  version: '0'
418
474
  requirements: []
419
475
  rubyforge_project:
420
- rubygems_version: 2.6.1
476
+ rubygems_version: 2.6.2
421
477
  signing_key:
422
478
  specification_version: 4
423
479
  summary: A command line interface for smithing new Ruby gems.
metadata.gz.sig CHANGED
Binary file