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 +4 -4
- data/lib/gemsmith.rb +0 -2
- data/lib/gemsmith/credentials.rb +6 -2
- data/lib/gemsmith/identity.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7edf8bd9f31ce4595ff70f3c428b2922c09966a
|
4
|
+
data.tar.gz: '08f97819eacca80a1b8b1790c26a7d494aef5ce1'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ab51e189eb231ecebd9ae9153f664429ee4014fef369e914da6bde196a6439798cb7262b4144ce7121588a98fc9f12ace376bfa676258b868d3a50c5892b648
|
7
|
+
data.tar.gz: 838e2ce38888f34a29bd9f8a4811ae8a3a694c1c1c63aa9a6a31cd4d8000906e8964a6a892de38e4d1342821c520b67e1171bd9698637b4fc59b89c862b43599
|
data/lib/gemsmith.rb
CHANGED
data/lib/gemsmith/credentials.rb
CHANGED
@@ -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:
|
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
|
data/lib/gemsmith/identity.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|