gemsmith 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a220a52a8f7a6df89fb332d602cbee740ef5c84c
4
- data.tar.gz: 58c0206a6e1de61155c6102c258bc8daf2323d8d
3
+ metadata.gz: 29b202cd45ea444fb39dc11cf3c4da09296a3095
4
+ data.tar.gz: 9946e54a8555fd1007745a5d61bf625acbee1cc1
5
5
  SHA512:
6
- metadata.gz: f82e37a593de02905a752101fe83ef6181e8a08b23a029745ca86fe472a36a6607e455bf9be68875d1539a360e137180d77ab4a468a82fb458ae570be3de13bc
7
- data.tar.gz: 42d869e1e7d9d59200c58a85d92af5139308056b8f93b7430d3b762a90f1f84ae07c39f70e0c0ff445c06f7d30ec5335bb2aafcc0e4cc99fea6994a703e05f42
6
+ metadata.gz: 189e54f50da614284b0a36c915925cb625ce947248edea74f7e891632d90c212f7772956a6793598df246636b2aeab4fe26ac165174fc7f960ec95d083d3884c
7
+ data.tar.gz: 87c432e6e0a7003f114cfd9abe8337735bbf3b0629373d3a05657023910b966fe18e6a1e0dff8caf312d64879c37483fbbfcfa2e6d0579fb77ec3ea7e872f16a
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
- Type the following from the command line to securely install (recommended):
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 to insecurely install (not recommended):
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=GEM_NAME] # Create new gem.
75
- gemsmith -e, [edit] # Edit gem settings in default editor (assumes $EDITOR environment variable).
76
- gemsmith -h, [help] # Show this message.
77
- gemsmith -o, [open=NAME] # Opens gem in default editor (assumes $EDITOR environment variable).
78
- gemsmith -r, [read=NAME] # Opens gem in default browser.
79
- gemsmith -v, [version] # Show 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
- Also, don't forget that once you have created your gem skeleton, the following rake tasks are also
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 <gem>-<version>.gem into the pkg directory
100
- rake install # Build and install <gem>-<version>.gem into system gems
101
- rake release # Create tag v0.1.1 and build and push <gem>-<version>.gem to Rubygems
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)
@@ -59,19 +59,19 @@ module Gemsmith
59
59
  say
60
60
  end
61
61
 
62
- desc "-o, [open=OPEN]", "Opens gem in default editor (assumes $EDITOR environment variable)."
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]", "Opens gem in default browser."
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 settings in default editor (assumes $EDITOR environment variable)."
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}`
@@ -59,7 +59,7 @@ module Gemsmith
59
59
  # ===== Parameters
60
60
  # * +spec+ - Required. The gem specification.
61
61
  def open_gem spec
62
- `$EDITOR #{spec.full_gem_path}` if spec
62
+ `#{$EDITOR} #{spec.full_gem_path}` if spec
63
63
  end
64
64
 
65
65
  # Opens selected gem within default browser.
@@ -5,7 +5,7 @@ module Gemsmith
5
5
  Dir.chdir(File.join(destination_root, gem_name)) do
6
6
  `git init`
7
7
  `git add .`
8
- `git commit -a -n -m "Gemsmith skeleton created."`
8
+ `git commit -a -n -m "Added Gemsmith skeleton."`
9
9
  end
10
10
  end
11
11
  end
@@ -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] %>"
@@ -1,3 +1,3 @@
1
1
  module Gemsmith
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
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.2.0
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: 2013-12-28 00:00:00.000000000 Z
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: http://www.redalchemist.com
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.0
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