forte 1.0.4 → 1.1.0

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
  SHA256:
3
- metadata.gz: e4da4d23a5e9981308609c3d8900d26f9cc4e934140a1bbb8b379de5cfdd720b
4
- data.tar.gz: adcba87a9412e19eccdb036e06b574bb228dec6c2206b60aaa649030fb190293
3
+ metadata.gz: bbda895acde9b5ca837e807cc07b25b5fbb1055eba101d0a9747f3c45d3ab065
4
+ data.tar.gz: acaed1c930c32c32a02a34a01b98881032b01aa2782967171ecf3e034a1ae811
5
5
  SHA512:
6
- metadata.gz: 69676b1be44a2e56556449610f6745de4f6e38b8ddcf3546d6960fe397b461732be729e86fb7a7093b7149e7eb9af43647c6a48f29c7acd1f484b3e757631978
7
- data.tar.gz: 6ca717f9bfc3e63b837c6b902b62797f14791a122a244173eaf57212b84568ba2a59f0599c6606c9689806dffee7c6b86180b4746dc1d0135fd4fdf23db66c6b
6
+ metadata.gz: aa6a623019bbb89fe4c195296e488a8c9e63f5b4dc90a099de8800609c8fb661db6de78a84585c7c46c60419e386038ac3de4ec985c3ecf31f7ac96ab1e53378
7
+ data.tar.gz: bc866c437845eed20a00bba2e323809e9560740369e4f0b6393d6e2d51881b81c58e1b0d2c1315dab89be079a3f52ed808d0409bc0d084062fa7d83b931a13e8
@@ -9,7 +9,7 @@ module Forte
9
9
  def uri
10
10
  return path if path.start_with?('git@')
11
11
  return path if path.start_with?('http')
12
- return path if Dir.exists?(File.join(path, '.git'))
12
+ return path if Dir.exist?(File.join(path, '.git'))
13
13
  "https://github.com/#{path}.git"
14
14
  end
15
15
 
data/lib/forte/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Forte
2
- VERSION = "1.0.4"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forte
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Yockey
8
8
  - Ryan Cromwell
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2022-05-25 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: thor
@@ -39,6 +38,20 @@ dependencies:
39
38
  - - "~>"
40
39
  - !ruby/object:Gem::Version
41
40
  version: '1.11'
41
+ - !ruby/object:Gem::Dependency
42
+ name: logger
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.5'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.5'
42
55
  description: 'Create an authorized_keys file for a shared shell account from a repository
43
56
  of public key files '
44
57
  email:
@@ -52,7 +65,6 @@ files:
52
65
  - bin/forte
53
66
  - lib/forte.rb
54
67
  - lib/forte/authorized_keys.rb
55
- - lib/forte/base.rb
56
68
  - lib/forte/keyfile.rb
57
69
  - lib/forte/repo_location.rb
58
70
  - lib/forte/version.rb
@@ -60,7 +72,6 @@ homepage: https://github.com/yock/forte
60
72
  licenses:
61
73
  - MIT
62
74
  metadata: {}
63
- post_install_message:
64
75
  rdoc_options: []
65
76
  require_paths:
66
77
  - lib
@@ -68,15 +79,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
79
  requirements:
69
80
  - - ">="
70
81
  - !ruby/object:Gem::Version
71
- version: '0'
82
+ version: '3.2'
72
83
  required_rubygems_version: !ruby/object:Gem::Requirement
73
84
  requirements:
74
85
  - - ">="
75
86
  - !ruby/object:Gem::Version
76
87
  version: '0'
77
88
  requirements: []
78
- rubygems_version: 3.3.7
79
- signing_key:
89
+ rubygems_version: 3.6.9
80
90
  specification_version: 4
81
91
  summary: Create an authorized_keys file for a shared shell account from a repository
82
92
  of public key files
data/lib/forte/base.rb DELETED
@@ -1,9 +0,0 @@
1
- class Base < Thor
2
- desc "print", "Prints the public keys to STDOUT"
3
- def print(uri)
4
- loc = RepoLocation.new(uri)
5
- repo = Git.clone(loc.uri, File.join(Dir.pwd, '.forte'))
6
- puts AuthorizedKeys.build(repo.dir.path)
7
- FileUtils.rm_rf(repo.dir.path)
8
- end
9
- end