gemsmith 6.0.0 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +3 -4
- data/README.md +2 -0
- data/lib/gemsmith/aids/spec.rb +2 -0
- data/lib/gemsmith/cli.rb +9 -2
- data/lib/gemsmith/cli_helpers.rb +1 -1
- data/lib/gemsmith/identity.rb +1 -1
- data/lib/gemsmith/rake/release.rb +4 -4
- 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: 9329b2e9dca4bc7a89b0f35efe95087229a87005
|
4
|
+
data.tar.gz: 34077b66b9fa3b699307768ba60ba9afa13cfbc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e49338d46f9adb532cf3d74df1e8190283d88777f6eb1fc2a63378fde3f10cb2f1bfdd8b4689daff9a988fcf7b256585460436829f0d667003823e7d56d347d
|
7
|
+
data.tar.gz: a74bb88641c78e1c4c49de6dff0660de1ad8cbe0faf53a6a70700c82d13d0102b537bdc7716f155af6fe1fa7f0766a9189defee614e1c4a380406d21f66f8a2b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
���Ć��EI�Q˧~�� �*r/�l����AX?-x���0'%���<��+���� e���+%H4
|
1
|
+
H3B2�б���qw������ܐ�Aq�N����Zir'����d�n����ì��/�x [ܫ^s���!C�g�K�NFv��~
|
2
|
+
����s�e��孉0`�'�
|
3
|
+
�(��23&%[�P�����@��������E`�n4g��∬=I{Ro��a��+ʙ؏9�K�mP����͠lG/:v��\�#���/���'��F�D����nb�h��=a)�H�������o���4
|
data/README.md
CHANGED
@@ -53,6 +53,8 @@ A command line interface for smithing new Ruby gems.
|
|
53
53
|
- Adds commonly needed [README](README.md), [CHANGELOG](CHANGELOG.md), [CONTRIBUTING](CONTRIBUTING.md),
|
54
54
|
[CODE OF CONDUCT](CODE_OF_CONDUCT.md), [LICENSE](LICENSE.md), etc. documentation.
|
55
55
|
|
56
|
+
[![asciicast](https://asciinema.org/a/30728.png)](https://asciinema.org/a/30728)
|
57
|
+
|
56
58
|
# Requirements
|
57
59
|
|
58
60
|
0. A UNIX-based system
|
data/lib/gemsmith/aids/spec.rb
CHANGED
@@ -16,6 +16,7 @@ module Gemsmith
|
|
16
16
|
def open spec = nil
|
17
17
|
return unless spec
|
18
18
|
shell.capture2 editor, spec.full_gem_path
|
19
|
+
spec.full_gem_path
|
19
20
|
end
|
20
21
|
|
21
22
|
def read spec = nil
|
@@ -23,6 +24,7 @@ module Gemsmith
|
|
23
24
|
return if spec.homepage.nil? || spec.homepage.empty?
|
24
25
|
|
25
26
|
shell.capture2 "open", spec.homepage
|
27
|
+
spec.homepage
|
26
28
|
end
|
27
29
|
|
28
30
|
def find name, version
|
data/lib/gemsmith/cli.rb
CHANGED
@@ -88,13 +88,20 @@ module Gemsmith
|
|
88
88
|
desc "-o, [open=OPEN]", "Open a gem in default editor."
|
89
89
|
map %w(-o --open) => :open
|
90
90
|
def open name
|
91
|
-
process_gem name, "open"
|
91
|
+
result = process_gem name, "open"
|
92
|
+
info("Opening: #{result}") unless result.nil? || result.empty?
|
92
93
|
end
|
93
94
|
|
94
95
|
desc "-r, [read=READ]", "Open a gem in default browser."
|
95
96
|
map %w(-r --read) => :read
|
96
97
|
def read name
|
97
|
-
process_gem name, "read"
|
98
|
+
result = process_gem name, "read"
|
99
|
+
|
100
|
+
if result.nil? || result.empty?
|
101
|
+
error "Gem home page is not defined."
|
102
|
+
else
|
103
|
+
info "Reading: #{result}"
|
104
|
+
end
|
98
105
|
end
|
99
106
|
|
100
107
|
desc "-e, [--edit]", "Edit #{Gemsmith::Identity.label} settings in default editor."
|
data/lib/gemsmith/cli_helpers.rb
CHANGED
data/lib/gemsmith/identity.rb
CHANGED
@@ -6,11 +6,11 @@ module Gemsmith
|
|
6
6
|
class Release
|
7
7
|
def initialize gem_spec_path = Dir.glob("#{Dir.pwd}/*.gemspec").first,
|
8
8
|
bundler: Bundler,
|
9
|
-
|
9
|
+
publisher: Milestoner::Publisher.new,
|
10
10
|
shell: Bundler::UI::Shell.new
|
11
11
|
|
12
12
|
@gem_spec_path = gem_spec_path
|
13
|
-
@
|
13
|
+
@publisher = publisher
|
14
14
|
@shell = shell
|
15
15
|
@gem_spec = bundler.load_gemspec gem_spec_path.to_s
|
16
16
|
rescue Errno::ENOENT
|
@@ -30,14 +30,14 @@ module Gemsmith
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def publish
|
33
|
-
|
33
|
+
publisher.publish version_number, sign: true
|
34
34
|
rescue Milestoner::Errors::Base => error
|
35
35
|
shell.error error.message
|
36
36
|
end
|
37
37
|
|
38
38
|
private
|
39
39
|
|
40
|
-
attr_reader :gem_spec_path, :gem_spec, :
|
40
|
+
attr_reader :gem_spec_path, :gem_spec, :publisher, :shell
|
41
41
|
end
|
42
42
|
end
|
43
43
|
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: 6.
|
4
|
+
version: 6.1.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: 2015-11-
|
33
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: thor
|
@@ -80,14 +80,14 @@ dependencies:
|
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '1.
|
83
|
+
version: '1.2'
|
84
84
|
type: :runtime
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '1.
|
90
|
+
version: '1.2'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: rake
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|