forte 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b940e6e029800b742bd33cd63aebe2e846d90dd
4
- data.tar.gz: 9b6d24ac6767c3243343e7ce290e9f5f84a2298d
3
+ metadata.gz: 18c29a8d6bebd48bbd02f04a24a19469d95bc685
4
+ data.tar.gz: dc3c481f030984d0f4f485fe196568fd317c8043
5
5
  SHA512:
6
- metadata.gz: 1ba93783bb6dfb7fab779e27efe4d3778b8445a5df17d1b597f5e79debdab746f0f43a20906faf0479d3f0c34b0d82d6222e58d44214c668d88d0005372502f5
7
- data.tar.gz: 766e4b08145ebbf412561c978364222a9cdf7f619d00656ea14a72b58874e4235ee31c026d9de9dde8035dd0db72b8a266b0bd0007dbbf23972d54badc9a904c
6
+ metadata.gz: 07e347903001314b22e2cfd68444864389195f2ba3f6c2be8a29385d3c0c9aeb2a723ca6ca5d5234fa949f9fbc6dae3d0528f5b78510da8d93ed3e55fd89a63c
7
+ data.tar.gz: 85bbfdc523fb3a0ec959b756de2617b80d2eb3c80c4f04bb3eb075b05cd45b3e85e2da0d47302aaa152ed334795d8793e85f6bd9163a05250c0f93b1d2d2f209
data/lib/forte/base.rb CHANGED
@@ -2,7 +2,7 @@ class Base < Thor
2
2
  desc "print", "Prints the public keys to STDOUT"
3
3
  def print(uri)
4
4
  loc = RepoLocation.new(uri)
5
- repo = Git.clone(loc.uri, File.join(Dir.pwd, './.tmp'))
5
+ repo = Git.clone(loc.uri, File.join(Dir.pwd, '.tmp'))
6
6
  puts AuthorizedKeys.build(repo.dir.path)
7
7
  FileUtils.rm_rf(repo.dir.path)
8
8
  end
@@ -6,6 +6,7 @@ class RepoLocation
6
6
  end
7
7
 
8
8
  def uri
9
+ return path if path.start_with?('git@')
9
10
  return path if path.start_with?('http')
10
11
  return path if Dir.exists?(File.join(path, '.git'))
11
12
  "https://github.com/#{path}.git"
data/lib/forte/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Forte
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forte
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Yockey
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-11 00:00:00.000000000 Z
12
+ date: 2014-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor