octoauth 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e662d2be3726ad6da9d18f4404199106052aa599
4
- data.tar.gz: f139f60f766463b2ee0ecdd0aa17ae6464e18573
3
+ metadata.gz: 497f8e8e4a4ef7127e4072245480cc0b24229b98
4
+ data.tar.gz: ac8fc70a86604595f0a06849506b9559cf7aaa5b
5
5
  SHA512:
6
- metadata.gz: 5a9e4b20659320da55cc9f913be5e7fd151dfd2bbff4328716555e1e393b343bea4e0eae16e784785c9daea172039dbc5846697a8b881bf6fd60c3bd3d254980
7
- data.tar.gz: 8344027f6637f8f54cc4691ea7b171e6511a11f82b2ff6e922b8a250883b9f5262b579a1c3f82f3d9f7f12facd698d8575500b762284a8c31c58f24dbcb4fd6f
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].dup
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'octoauth'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octoauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker