octoauth 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/octoauth/auth.rb +2 -1
- data/octoauth.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 497f8e8e4a4ef7127e4072245480cc0b24229b98
|
4
|
+
data.tar.gz: ac8fc70a86604595f0a06849506b9559cf7aaa5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d0cdf52e1dee4eb8e7cc0029ffd8e2c9191589bce933cfbbf6936706162587191e1e34c99b1ed0fdb96e747a8b1de98c71141b4af1d1535480e913769adc184
|
7
|
+
data.tar.gz: fa5f144a3e9931018c3a134837fe16036a4abb969107167a4533ebc9585be42e7b6240200fdf26887f54f7ff5906380bb10b21d567de708854acc7e268fa3614
|
data/lib/octoauth/auth.rb
CHANGED
@@ -22,7 +22,7 @@ module Octoauth
|
|
22
22
|
attr_reader :token
|
23
23
|
|
24
24
|
def initialize(params = {})
|
25
|
-
params[:config_note] = params[:note]
|
25
|
+
params[:config_note] = "#{params[:note]}"
|
26
26
|
if params.include? :api_endpoint
|
27
27
|
params[:config_note] << "--#{params[:api_endpoint]}"
|
28
28
|
end
|
@@ -32,6 +32,7 @@ module Octoauth
|
|
32
32
|
|
33
33
|
def save
|
34
34
|
fail 'No token to save' unless @token
|
35
|
+
fail 'No file given for config' unless @config.file
|
35
36
|
@config.token = @token
|
36
37
|
@config.write
|
37
38
|
end
|
data/octoauth.gemspec
CHANGED