octoauth 0.0.3 → 0.0.4

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: 497f8e8e4a4ef7127e4072245480cc0b24229b98
4
- data.tar.gz: ac8fc70a86604595f0a06849506b9559cf7aaa5b
3
+ metadata.gz: 2b25a87f39c451d0ae889199a813dcf4fbc97fae
4
+ data.tar.gz: d0234a80a55d0faa0680cd035ec46659889c9738
5
5
  SHA512:
6
- metadata.gz: 7d0cdf52e1dee4eb8e7cc0029ffd8e2c9191589bce933cfbbf6936706162587191e1e34c99b1ed0fdb96e747a8b1de98c71141b4af1d1535480e913769adc184
7
- data.tar.gz: fa5f144a3e9931018c3a134837fe16036a4abb969107167a4533ebc9585be42e7b6240200fdf26887f54f7ff5906380bb10b21d567de708854acc7e268fa3614
6
+ metadata.gz: cd798d6c1d88c6f03efb8935bc18e27c38d6d4f81b29bf2c37ad35f05e8c279aa261b576fd96d57fb8827e6c86a20f2ac01869d4a3f033fdaee734c23ff75765
7
+ data.tar.gz: 338c3a73b60d1d02b7abab2c88adf5728cd1b2493a98e9e41b5a472c995ff63c5e2aba81325b436d261943c2985487cfc133609f1adb13e73f25b877a5bd8341
@@ -17,6 +17,7 @@ module Octoauth
17
17
  # Create new Config object, either ephemerally or from a file
18
18
  def initialize(params = {})
19
19
  @file = params[:file] == :default ? DEFAULT_FILE : params[:file]
20
+ @file = File.expand_path(@file) if @file
20
21
  @note = params[:note] || fail(ArgumentError, 'A note must be provided')
21
22
  @token = parse
22
23
  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.3'
3
+ s.version = '0.0.4'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = ''
@@ -23,7 +23,7 @@ describe Octoauth do
23
23
  context 'when give :default' do
24
24
  it 'uses the default file' do
25
25
  config = Octoauth::ConfigFile.new(note: 'foo', file: :default)
26
- expect(config.file).to eql Octoauth::DEFAULT_FILE
26
+ expect(config.file).to eql File.expand_path(Octoauth::DEFAULT_FILE)
27
27
  end
28
28
  end
29
29
  context 'when given no file' do
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker