gisty 0.2.7 → 0.2.8

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/gisty +1 -1
  3. data/lib/gisty.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1927c05c746d973802f7646e4357e9b2b59cbc50
4
- data.tar.gz: e6b0899991fcd4ca37a4e42cacbe81087747a8b3
3
+ metadata.gz: 73c39cc60ab592b5fa840eb00df45a49e8649ebb
4
+ data.tar.gz: 08e1c11f15b26a0cae460de98ad1fda16872d8c2
5
5
  SHA512:
6
- metadata.gz: 45182641ed8d70d523a75c18a7f1d519b183bd081cb15d76b2e4b57fd8af7ba72c9ebe45fccf26b6a3a3a084793e71478661cfdbc6d4d4ed7db0379726b72df9
7
- data.tar.gz: 2610a84603fb81c00dfe455bfd3c435a23ad9a6f5d407615eafe4c0bf3a9a618edebbed1bed2dfcf4e1314e06ae27044bab9177e2fcdbb24b7755781f0f67c4e
6
+ metadata.gz: 27a5eafc8b95ae04e27b2910a3cc1787f576202b7c73445c645478815e42ae80fe530eb9fbd6b4f353137bf3ed69197dd7de395685e6c23d6dda9fd9eef4b909
7
+ data.tar.gz: c831d13a95fe335ecbcb7d19880a5a39875794787acb4bf52da0cb1952b4892be693576600f5283ce78c21ccbaf1a998f459be0b628d37cebe03a4186a01e0d5
data/bin/gisty CHANGED
@@ -17,7 +17,7 @@ def cmd name, args = '', description = ''
17
17
  end
18
18
 
19
19
  def load_commnads path
20
- Dir.glob(File.join(path, '*.rb')).each do |i|
20
+ Dir.glob(File.join(File.expand_path(path), '*.rb')).each do |i|
21
21
  begin
22
22
  load i
23
23
  rescue Exception => e
@@ -7,7 +7,7 @@ require 'rubygems'
7
7
  require 'json'
8
8
 
9
9
  class Gisty
10
- VERSION = '0.2.7'
10
+ VERSION = '0.2.8'
11
11
  GIST_URI = 'gist.github.com'
12
12
  GIST_API_URL = 'https://api.github.com/gists'
13
13
  GISTY_URL = 'https://github.com/swdyh/gisty'
@@ -32,7 +32,7 @@ class Gisty
32
32
  else
33
33
  raise UnsetAuthInfoException
34
34
  end
35
- @dir = Pathname.pwd.realpath.join path
35
+ @dir = Pathname.pwd.realpath.join(File.expand_path(path))
36
36
  FileUtils.mkdir_p @dir unless @dir.exist?
37
37
  @ssl_ca = opt[:ssl_ca]
38
38
  @ssl_verify = case opt[:ssl_verify]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gisty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - swdyh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-13 00:00:00.000000000 Z
11
+ date: 2015-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json