keybase-unofficial 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/keybase/configuration.rb +5 -2
- data/lib/keybase.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 473dbc527ff74c54687f3e7bb0a02995d22ddb0a
|
4
|
+
data.tar.gz: 007dd1d1b2391186b16ba2bef90f40319aeaca34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d13bd698881ab20740d8296670e2dedf7c01460327b62f5cd95a32b784e3d1314552ef39f64862ca00e19ce66d274c59436c57a7a030e78f3327bde1ac49f95
|
7
|
+
data.tar.gz: 6e2e1d574c6894229281dd951f268947403716417eb1b0c486a76dc1d8697856b74784a82c1673cb79eb604dee9c8d4168c2dc182abd2844bec295d58a3d4e50
|
@@ -21,6 +21,9 @@ module Keybase
|
|
21
21
|
# The hash from Keybase's configuration file.
|
22
22
|
CONFIG_HASH = JSON.parse(File.read(CONFIG_FILE)).freeze
|
23
23
|
|
24
|
+
# The mountpoint for KBFS.
|
25
|
+
KBFS_MOUNT = "/keybase"
|
26
|
+
|
24
27
|
# @return [String] the currently logged-in user
|
25
28
|
def current_user
|
26
29
|
CONFIG_HASH["current_user"]
|
@@ -34,12 +37,12 @@ module Keybase
|
|
34
37
|
|
35
38
|
# @return [String] the user's private KBFS directory
|
36
39
|
def private_dir
|
37
|
-
"
|
40
|
+
File.join(KBFS_MOUNT, "private", current_user)
|
38
41
|
end
|
39
42
|
|
40
43
|
# @return [String] the user's public KBFS directory
|
41
44
|
def public_dir
|
42
|
-
"
|
45
|
+
File.join(KBFS_MOUNT, "public", current_user)
|
43
46
|
end
|
44
47
|
|
45
48
|
# @return [Boolean] whether or not Keybase is currently running
|
data/lib/keybase.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keybase-unofficial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Woodruff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|