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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93a8b6f5bd33ee3d2ca49fd60ab5120a5ed16753
4
- data.tar.gz: 02f7d1a50c6aca870805920c2a85994b7da63030
3
+ metadata.gz: 9329b2e9dca4bc7a89b0f35efe95087229a87005
4
+ data.tar.gz: 34077b66b9fa3b699307768ba60ba9afa13cfbc8
5
5
  SHA512:
6
- metadata.gz: 5c9fccafbe3aef91a6a794261f0f5a6213185784faf2128a5bceb1072af3bf8003c24b9a5a8ffd90457955e2187b8a347e17fbae040a052c286c0767a72837f3
7
- data.tar.gz: 7830aa4aa2fd4b2d32f7bbb20d57caa607ad658aa142f423ee6a1d7e51bec3e1061ddb682e1a4a42e89785af2a628fea9ba75d3a00b40137948d3a22fe8e2fc1
6
+ metadata.gz: 9e49338d46f9adb532cf3d74df1e8190283d88777f6eb1fc2a63378fde3f10cb2f1bfdd8b4689daff9a988fcf7b256585460436829f0d667003823e7d56d347d
7
+ data.tar.gz: a74bb88641c78e1c4c49de6dff0660de1ad8cbe0faf53a6a70700c82d13d0102b537bdc7716f155af6fe1fa7f0766a9189defee614e1c4a380406d21f66f8a2b
Binary file
data.tar.gz.sig CHANGED
@@ -1,4 +1,3 @@
1
-
2
- O�-�W�~~�����_��� ��y�7Z�-�jpa��tJ7_�-��#3���aT�A�
3
- H�-�9�a8lQK�X;���w���%��;,W����!}+c 0l��?1^f��7���~.9E"���$�Nf��Mgy^���Y�҉�
4
- ���Ć��EI�Q˧~�� �*r/�l����AX?-x���0'%���<��+���� e���+%H4
1
+ H3B2�б���qw������ܐ�Aq�N� ���Zir'����d�n����ì��/�x [ܫ^s���!C�g�K�NF v��~
2
+ ����se��孉0`�'
3
+ �(��23&%[�P�� ���@��� �����E`�n4g��∬=I{Ro��a��+ʙ؏9�K�mP����͠lG/:v��\�#���/���'��FD����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
@@ -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
@@ -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."
@@ -42,7 +42,7 @@ module Gemsmith
42
42
  print_gems specs
43
43
  spec_aid.send method, pick_gem(specs, name)
44
44
  else
45
- error "Unable to find gem: #{name}."
45
+ error("Unable to find gem: #{name}.") && ""
46
46
  end
47
47
  end
48
48
  end
@@ -10,7 +10,7 @@ module Gemsmith
10
10
  end
11
11
 
12
12
  def self.version
13
- "6.0.0"
13
+ "6.1.0"
14
14
  end
15
15
 
16
16
  def self.version_label
@@ -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
- tagger: Milestoner::Tagger.new,
9
+ publisher: Milestoner::Publisher.new,
10
10
  shell: Bundler::UI::Shell.new
11
11
 
12
12
  @gem_spec_path = gem_spec_path
13
- @tagger = tagger
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
- tagger.create version_number, sign: true
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, :tagger, :shell
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.0.0
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-26 00:00:00.000000000 Z
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.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.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