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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b93d42bf74da78006d530667cf9a54988b58ccf9
4
- data.tar.gz: 5fc32740212eae2a8d07ad87c5630b83b056e8af
3
+ metadata.gz: 473dbc527ff74c54687f3e7bb0a02995d22ddb0a
4
+ data.tar.gz: 007dd1d1b2391186b16ba2bef90f40319aeaca34
5
5
  SHA512:
6
- metadata.gz: d8c0dbb04538bd718dbdf40e920e7eaac0e2ed75ad550bc628a924d2695f0f12d8f7a52cb961cdd9d999ee9ed8a441911c6aa16a27535ecfba20384ada425faa
7
- data.tar.gz: c055f80bdd307d9be084c418245b29719957c9ef9884497b1bc4de99eaa5f61cc2f3c7e1eb068c41720315f28d26e3e4388a49acc6270a3a05392336220917db
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
- "/keybase/private/#{current_user}"
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
- "/keybase/public/#{current_user}"
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
@@ -11,7 +11,7 @@ require_relative "keybase/chat"
11
11
  # The primary namespace for keybase-unofficial.
12
12
  module Keybase
13
13
  # keybase-unofficial's current version
14
- VERSION = "0.1.0"
14
+ VERSION = "0.2.0"
15
15
 
16
16
  extend Configuration
17
17
  end
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.1.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-07-19 00:00:00.000000000 Z
11
+ date: 2017-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday