username_password 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -1
- data/lib/username_password.rb +2 -1
- data/lib/username_password/version.rb +1 -1
- metadata +72 -92
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3a5b28d0d06ce2b411175c39085e3834c01aeb78
|
4
|
+
data.tar.gz: cf508ef83e2faca32c882108ad540b18db9a6e3f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 69a29420c07ee440cca9c4e267eb61f2be806dbaba6b6746d25dea6b06559dd23932dc0f4a7b9425542aa1080c6c4a1a6dcecf41286dda2a57b653ed54401165
|
7
|
+
data.tar.gz: b94652e644aebfe72a85ec2ac88beae451366687d7ec13227fe147ead985f27a90f75585629562a7cb8e976d1915994b4a77c42ff85838c6020df3371779a562
|
data/Gemfile
CHANGED
data/lib/username_password.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'highline'
|
2
2
|
require 'ezcrypto'
|
3
|
+
require 'yaml'
|
3
4
|
|
4
5
|
module UsernamePassword
|
5
6
|
@@input_io = $stdin
|
@@ -32,7 +33,7 @@ module UsernamePassword
|
|
32
33
|
username = highline.ask("Username: ")
|
33
34
|
password = highline.ask("Password: ") { |q| q.echo = false }
|
34
35
|
|
35
|
-
result = {:username => username, :password => password}
|
36
|
+
result = {:username => username.to_s, :password => password.to_s}
|
36
37
|
save_file(result) if @@auth_file
|
37
38
|
result
|
38
39
|
end
|
metadata
CHANGED
@@ -1,90 +1,80 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: username_password
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 0.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Patrick Bacon
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
-
none: false
|
24
|
-
requirements:
|
25
|
-
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
hash: 1
|
28
|
-
segments:
|
29
|
-
- 1
|
30
|
-
version: "1"
|
31
|
-
type: :runtime
|
11
|
+
date: 2014-01-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
32
14
|
name: highline
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1'
|
20
|
+
type: :runtime
|
33
21
|
prerelease: false
|
34
|
-
version_requirements:
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: ezcrypto
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
39
31
|
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
segments:
|
43
|
-
- 0
|
44
|
-
version: "0"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
45
34
|
type: :runtime
|
46
|
-
name: ezcrypto
|
47
35
|
prerelease: false
|
48
|
-
version_requirements:
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
hash: 7
|
56
|
-
segments:
|
57
|
-
- 2
|
58
|
-
version: "2"
|
59
|
-
type: :development
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
60
42
|
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2'
|
48
|
+
type: :development
|
61
49
|
prerelease: false
|
62
|
-
version_requirements:
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
67
59
|
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
segments:
|
71
|
-
- 0
|
72
|
-
version: "0"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
73
62
|
type: :development
|
74
|
-
name: rake
|
75
63
|
prerelease: false
|
76
|
-
version_requirements:
|
77
|
-
|
78
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Simple authentication gem to ask user for username/password and save
|
70
|
+
to a file if desired
|
71
|
+
email:
|
79
72
|
- bacon@atomicobject.com
|
80
73
|
executables: []
|
81
|
-
|
82
74
|
extensions: []
|
83
|
-
|
84
75
|
extra_rdoc_files: []
|
85
|
-
|
86
|
-
|
87
|
-
- .gitignore
|
76
|
+
files:
|
77
|
+
- ".gitignore"
|
88
78
|
- Gemfile
|
89
79
|
- README.rdoc
|
90
80
|
- Rakefile
|
@@ -93,40 +83,30 @@ files:
|
|
93
83
|
- spec/spec_helper.rb
|
94
84
|
- spec/username_password_spec.rb
|
95
85
|
- username_password.gemspec
|
96
|
-
has_rdoc: true
|
97
86
|
homepage: http://github.com/baconpat/username_password
|
98
87
|
licenses: []
|
99
|
-
|
88
|
+
metadata: {}
|
100
89
|
post_install_message:
|
101
90
|
rdoc_options: []
|
102
|
-
|
103
|
-
require_paths:
|
91
|
+
require_paths:
|
104
92
|
- lib
|
105
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
106
|
-
|
107
|
-
requirements:
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
108
95
|
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
version: "0"
|
114
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
|
-
requirements:
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
117
100
|
- - ">="
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
|
120
|
-
segments:
|
121
|
-
- 0
|
122
|
-
version: "0"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
123
103
|
requirements: []
|
124
|
-
|
125
104
|
rubyforge_project:
|
126
|
-
rubygems_version:
|
105
|
+
rubygems_version: 2.2.0
|
127
106
|
signing_key:
|
128
|
-
specification_version:
|
129
|
-
summary: Simple authentication gem to ask user for username/password and save to a
|
130
|
-
|
107
|
+
specification_version: 4
|
108
|
+
summary: Simple authentication gem to ask user for username/password and save to a
|
109
|
+
file if desired
|
110
|
+
test_files:
|
131
111
|
- spec/spec_helper.rb
|
132
112
|
- spec/username_password_spec.rb
|