thorium 0.3.5 → 0.3.6
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 +4 -4
- data/bin/thorium +4 -0
- data/lib/thorium/base.rb +7 -1
- data/lib/thorium/tasks/git.rb +1 -1
- data/lib/thorium/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06cc86ecfb89a29ea8c2f507b923a8f88f9b2d3d
|
4
|
+
data.tar.gz: ad50508ad6c1696bee2416dc96383830ab815b73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 250b1a68de0e25c7acaa77302cb0198745102a2d53c9b7135338978e87c8ea285478f16962376117278c7061f8eadadc9457719918757854f5b80b6c08bbbaad
|
7
|
+
data.tar.gz: 0b6bd5d5ef3d4542a92eed92f516b605ea741bf3d720b27f327839e7202cae238e4834283cbb662961d26dd8dd3c81712c39b8f91c0d12d15726ef7b46ecf002
|
data/bin/thorium
CHANGED
data/lib/thorium/base.rb
CHANGED
@@ -22,6 +22,11 @@ module ThoriumCLI
|
|
22
22
|
|
23
23
|
class_option :verbose, type: :boolean, default: false, aliases: :v
|
24
24
|
|
25
|
+
desc 'pubkey', 'Get id_rsa.pub (default) in your clipboard'
|
26
|
+
def pubkey
|
27
|
+
copy_to_clipboard Dir.glob(File.expand_path('~/.ssh/id_rsa.pub')).first
|
28
|
+
end
|
29
|
+
|
25
30
|
desc 'pubkeys', 'Simple public keys manipulation'
|
26
31
|
def pubkeys
|
27
32
|
public_keys = Dir.glob(File.expand_path('~/.ssh') + '/*.pub')
|
@@ -60,7 +65,8 @@ module ThoriumCLI
|
|
60
65
|
|
61
66
|
def copy_to_clipboard(content)
|
62
67
|
if run 'which pbcopy > /dev/null', verbose: false
|
63
|
-
run "pbcopy < #{content}"
|
68
|
+
run "pbcopy < #{content}", verbose: false
|
69
|
+
say "---> `#{content}` copied to your clipboard.", :blue
|
64
70
|
else
|
65
71
|
say 'pbcopy is not installed, cannot copy to clipboard', :red
|
66
72
|
end
|
data/lib/thorium/tasks/git.rb
CHANGED
@@ -5,13 +5,13 @@ module GitCLI
|
|
5
5
|
package_name 'Thorium | Git'
|
6
6
|
GH_API_URL = 'https://api.github.com'
|
7
7
|
|
8
|
+
require 'json'
|
8
9
|
include Thor::Actions
|
9
10
|
|
10
11
|
class_option :verbose, type: :boolean, default: 1
|
11
12
|
|
12
13
|
desc 'list', 'Lists Github repositories'
|
13
14
|
def list
|
14
|
-
require 'json'
|
15
15
|
gh_uname = ask('Enter Github username: ', :green)
|
16
16
|
abort if gh_uname.empty?
|
17
17
|
puts "\nFetching Github repositories (#{gh_uname})..."
|
data/lib/thorium/version.rb
CHANGED
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thorium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Stankevich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.19'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.19'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '3.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
55
|
description: Simple workflow automation toolkit.
|
@@ -77,12 +77,12 @@ require_paths:
|
|
77
77
|
- lib
|
78
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 2.0.0
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- -
|
85
|
+
- - '>='
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|