gemsmith 9.3.0 → 9.4.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: ed4b0644caf9cad4f2608978f4e730d3e7b92dda
4
- data.tar.gz: e98c4c2a2d3d91f1b18b6e2fa3da722c0455d374
3
+ metadata.gz: a7edf8bd9f31ce4595ff70f3c428b2922c09966a
4
+ data.tar.gz: '08f97819eacca80a1b8b1790c26a7d494aef5ce1'
5
5
  SHA512:
6
- metadata.gz: 0d51edd62620c7383e42ae07f44f79a55748ea8ea5cff2bd4db996284f8d931f0405f3002007585fc81703b27d3029f3047a8fac53063900436e9d094f1d879e
7
- data.tar.gz: e8c4aa16228b37f97e21780533f5afff5d5ea971bd1dea5ffe11d6c79d969343c48c10f6741a038e2a013b2cf757b8e0e6ef6e8d0d86593a4ec7e8e96d95b4ee
6
+ metadata.gz: 3ab51e189eb231ecebd9ae9153f664429ee4014fef369e914da6bde196a6439798cb7262b4144ce7121588a98fc9f12ace376bfa676258b868d3a50c5892b648
7
+ data.tar.gz: 838e2ce38888f34a29bd9f8a4811ae8a3a694c1c1c63aa9a6a31cd4d8000906e8964a6a892de38e4d1342821c520b67e1171bd9698637b4fc59b89c862b43599
@@ -2,8 +2,6 @@
2
2
 
3
3
  require "gemsmith/identity"
4
4
  require "gemsmith/git"
5
- require "gemsmith/authenticators/basic"
6
- require "gemsmith/authenticators/ruby_gems"
7
5
  require "gemsmith/credentials"
8
6
  require "gemsmith/errors/base"
9
7
  require "gemsmith/errors/requirement_conversion"
@@ -2,6 +2,8 @@
2
2
 
3
3
  require "yaml"
4
4
  require "fileutils"
5
+ require "gemsmith/authenticators/basic"
6
+ require "gemsmith/authenticators/ruby_gems"
5
7
 
6
8
  module Gemsmith
7
9
  # Generates gem credentials for RubyGems and/or alternative servers.
@@ -26,7 +28,7 @@ module Gemsmith
26
28
 
27
29
  def initialize key: self.class.default_key,
28
30
  url: self.class.default_url,
29
- shell: Bundler::UI::Shell.new
31
+ shell: Thor::Shell::Basic.new
30
32
  @key = key
31
33
  @url = url
32
34
  @shell = shell
@@ -51,7 +53,9 @@ module Gemsmith
51
53
  return if valid?
52
54
 
53
55
  login = shell.ask %(What is your "#{url}" login?)
54
- password = shell.ask %(What is your "#{url}" password?)
56
+ password = shell.ask %(What is your "#{url}" password?), echo: false
57
+ shell.say
58
+
55
59
  new_credentials = credentials.merge key => authenticator.new(login, password).authorization
56
60
 
57
61
  FileUtils.mkdir_p File.dirname self.class.file_path
@@ -12,7 +12,7 @@ module Gemsmith
12
12
  end
13
13
 
14
14
  def self.version
15
- "9.3.0"
15
+ "9.4.0"
16
16
  end
17
17
 
18
18
  def self.version_label
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemsmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.3.0
4
+ version: 9.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-01 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler