gemsmith 2.2.0 → 2.3.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +26 -13
- data/lib/gemsmith/cli.rb +3 -3
- data/lib/gemsmith/cli_helpers.rb +1 -1
- data/lib/gemsmith/skeletons/git_skeleton.rb +1 -1
- data/lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt +1 -1
- data/lib/gemsmith/version.rb +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29b202cd45ea444fb39dc11cf3c4da09296a3095
|
4
|
+
data.tar.gz: 9946e54a8555fd1007745a5d61bf625acbee1cc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 189e54f50da614284b0a36c915925cb625ce947248edea74f7e891632d90c212f7772956a6793598df246636b2aeab4fe26ac165174fc7f960ec95d083d3884c
|
7
|
+
data.tar.gz: 87c432e6e0a7003f114cfd9abe8337735bbf3b0629373d3a05657023910b966fe18e6a1e0dff8caf312d64879c37483fbbfcfa2e6d0579fb77ec3ea7e872f16a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -31,12 +31,12 @@ gem. Gemsmith is essentially an enhanced version of Bundler's gem building capab
|
|
31
31
|
|
32
32
|
# Setup
|
33
33
|
|
34
|
-
|
34
|
+
For a secure install, type the following from the command line (recommended):
|
35
35
|
|
36
36
|
gem cert --add <(curl -Ls http://www.redalchemist.com/gem-public.pem)
|
37
37
|
gem install gemsmith -P HighSecurity
|
38
38
|
|
39
|
-
...or type the following
|
39
|
+
...or, for an insecure install, type the following (not recommended):
|
40
40
|
|
41
41
|
gem install gemsmith
|
42
42
|
|
@@ -71,12 +71,12 @@ If no options are configured, then the defaults are as follows:
|
|
71
71
|
|
72
72
|
From the command line, type: gemsmith help
|
73
73
|
|
74
|
-
gemsmith -c, [create=
|
75
|
-
gemsmith -e, [edit]
|
76
|
-
gemsmith -h, [help]
|
77
|
-
gemsmith -o, [open=
|
78
|
-
gemsmith -r, [read=
|
79
|
-
gemsmith -v, [version]
|
74
|
+
gemsmith -c, [create=CREATE] # Create new gem.
|
75
|
+
gemsmith -e, [edit] # Edit gem in default editor (assumes $EDITOR environment variable).
|
76
|
+
gemsmith -h, [--help=HELP] # Show this message or get help for a command.
|
77
|
+
gemsmith -o, [open=OPEN] # Open gem in default editor (assumes $EDITOR environment variable).
|
78
|
+
gemsmith -r, [read=READ] # Open gem in default browser.
|
79
|
+
gemsmith -v, [--version] # Show version.
|
80
80
|
|
81
81
|
For more gem creation options, type: gemsmith help create
|
82
82
|
|
@@ -93,12 +93,11 @@ For more gem creation options, type: gemsmith help create
|
|
93
93
|
-c, [--code-climate] # Add Code Climate support.
|
94
94
|
# Default: true
|
95
95
|
|
96
|
-
|
97
|
-
available to you via Bundler (i.e. rake -T):
|
96
|
+
Once a gem skeleton has been created, the following tasks are available within the project via Bundler (i.e. rake -T):
|
98
97
|
|
99
|
-
rake build # Build
|
100
|
-
rake install # Build and install
|
101
|
-
rake release # Create tag
|
98
|
+
rake build # Build example-0.1.0.gem into the pkg directory
|
99
|
+
rake install # Build and install example-0.1.0.gem into system gems
|
100
|
+
rake release # Create tag v2.3.0 and build and push example-0.1.0.gem to Rubygems
|
102
101
|
|
103
102
|
# Tests
|
104
103
|
|
@@ -108,6 +107,20 @@ To test, do the following:
|
|
108
107
|
0. bundle install
|
109
108
|
0. bundle exec rspec spec
|
110
109
|
|
110
|
+
# Security
|
111
|
+
|
112
|
+
To creat a certificate for your gems, run the following:
|
113
|
+
|
114
|
+
cd ~/.ssh
|
115
|
+
gem cert --build you@example.com
|
116
|
+
chmod 600 gem-*.pem
|
117
|
+
|
118
|
+
To learn more about gem certificates, read the following:
|
119
|
+
|
120
|
+
* [Ruby Gems](http://guides.rubygems.org/security/#building_gems)
|
121
|
+
* [A Practical Guide to Using Signed Ruby Gems - Part 1: Bundler](http://blog.meldium.com/home/2013/3/3/signed-rubygems-part)
|
122
|
+
* [A Practical Guide to Using Signed Ruby Gems - Part 2: Heroku](http://blog.meldium.com/home/2013/3/6/signed-gems-on-heroku)
|
123
|
+
|
111
124
|
# Best Practices
|
112
125
|
|
113
126
|
0. [Semantic Versioning](http://semver.org)
|
data/lib/gemsmith/cli.rb
CHANGED
@@ -59,19 +59,19 @@ module Gemsmith
|
|
59
59
|
say
|
60
60
|
end
|
61
61
|
|
62
|
-
desc "-o, [open=OPEN]", "
|
62
|
+
desc "-o, [open=OPEN]", "Open gem in default editor (assumes $EDITOR environment variable)."
|
63
63
|
map %w(-o --open) => :open
|
64
64
|
def open name
|
65
65
|
process_gem name, "open"
|
66
66
|
end
|
67
67
|
|
68
|
-
desc "-r, [read=READ]", "
|
68
|
+
desc "-r, [read=READ]", "Open gem in default browser."
|
69
69
|
map %w(-r --read) => :read
|
70
70
|
def read name
|
71
71
|
process_gem name, "read"
|
72
72
|
end
|
73
73
|
|
74
|
-
desc "-e, [edit]", "Edit gem
|
74
|
+
desc "-e, [edit]", "Edit gem in default editor (assumes $EDITOR environment variable)."
|
75
75
|
map %w(-e --edit) => :edit
|
76
76
|
def edit
|
77
77
|
`$EDITOR #{@settings_file}`
|
data/lib/gemsmith/cli_helpers.rb
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
|
18
18
|
unless ENV["TRAVIS"]
|
19
19
|
s.signing_key = File.expand_path("~/.ssh/gem-private.pem")
|
20
|
-
s.cert_chain = ["gem-public.pem"]
|
20
|
+
s.cert_chain = [File.expand_path("~/.ssh/gem-public.pem")]
|
21
21
|
end
|
22
22
|
|
23
23
|
s.required_ruby_version = "~> <%= config[:ruby_version] %>"
|
data/lib/gemsmith/version.rb
CHANGED
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: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
SJpzzzZ8gO6BKn4fhd+ENNQ333Qy3nuNk07TVIaNnlgeHhowUDuD9T7Z8Lka0pt3
|
31
31
|
4PteiTppsf0SSVAM9zSO5IuFngXMRwWgvjOfXE70f43RDuUVTCSyylc=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2014-01-26 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: thor
|
@@ -282,7 +282,7 @@ files:
|
|
282
282
|
- lib/gemsmith/templates/%gem_name%/spec/%gem_name%_spec.rb.tt
|
283
283
|
- lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt
|
284
284
|
- lib/gemsmith/version.rb
|
285
|
-
homepage:
|
285
|
+
homepage: https://github.com/bkuhlmann/gemsmith
|
286
286
|
licenses:
|
287
287
|
- MIT
|
288
288
|
metadata: {}
|
@@ -302,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
302
|
version: '0'
|
303
303
|
requirements: []
|
304
304
|
rubyforge_project:
|
305
|
-
rubygems_version: 2.2.
|
305
|
+
rubygems_version: 2.2.1
|
306
306
|
signing_key:
|
307
307
|
specification_version: 4
|
308
308
|
summary: Ruby gem skeleton generation for the professional gemsmith.
|
metadata.gz.sig
CHANGED
Binary file
|