openvfs-rb 1.1.3-aarch64-linux → 1.3.0-aarch64-linux
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/lib/openvfs/occ/3.3/occ.so +0 -0
- data/lib/openvfs/occ/3.4/occ.so +0 -0
- data/lib/openvfs/occ/4.0/occ.so +0 -0
- data/lib/openvfs/occ/sync-exclude.lst +50 -0
- data/lib/openvfs/occ.rb +25 -2
- data/lib/openvfs/rb/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33622bbc9441b99d5034127c9fe977559ed4ff691f254a468c8cebc1c18072bd
|
|
4
|
+
data.tar.gz: ae10034c975ee2a648ae2e01a68154c4eb6bbff45336a3d0ae968f7d05a258c6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e875a8c2e3bd2adf87cd11da74a27d914e2c7a3cca56d183f255b18539e6506018425936a27b492c1a5a2c241a88ecdcf4c1c0b8a0740bf8d015b36cc0355e33
|
|
7
|
+
data.tar.gz: eb70b556ec0c66c969d14109f275dc3d9b1d7e3140d0c7a7bcf553dd344ebcaa80fcecad38c225a6981facdcc7cb920c5bb4d8e33f09e9cdd6982b72d617c038
|
data/lib/openvfs/occ/3.3/occ.so
CHANGED
|
Binary file
|
data/lib/openvfs/occ/3.4/occ.so
CHANGED
|
Binary file
|
data/lib/openvfs/occ/4.0/occ.so
CHANGED
|
Binary file
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# This file contains fixed global exclude patterns
|
|
2
|
+
|
|
3
|
+
# Internal files
|
|
4
|
+
].sync_journal.db*
|
|
5
|
+
|
|
6
|
+
*~
|
|
7
|
+
~$*
|
|
8
|
+
.~lock.*
|
|
9
|
+
~*.tmp
|
|
10
|
+
]*.~*
|
|
11
|
+
]Icon\r*
|
|
12
|
+
].DS_Store
|
|
13
|
+
].ds_store
|
|
14
|
+
._*
|
|
15
|
+
]Thumbs.db
|
|
16
|
+
# Windows desktop ini
|
|
17
|
+
]Desktop.ini
|
|
18
|
+
|
|
19
|
+
.*.sw?
|
|
20
|
+
.*.*sw?
|
|
21
|
+
|
|
22
|
+
].TemporaryItems
|
|
23
|
+
].Trashes
|
|
24
|
+
].DocumentRevisions-V100
|
|
25
|
+
|
|
26
|
+
# https://specifications.freedesktop.org/trash/1.0/
|
|
27
|
+
].Trash-*[0-9]
|
|
28
|
+
].Trash
|
|
29
|
+
|
|
30
|
+
.fseventd
|
|
31
|
+
.apdisk
|
|
32
|
+
|
|
33
|
+
.directory
|
|
34
|
+
|
|
35
|
+
*.part
|
|
36
|
+
*.filepart
|
|
37
|
+
*.crdownload
|
|
38
|
+
|
|
39
|
+
*.kate-swp
|
|
40
|
+
*.gnucash.tmp-*
|
|
41
|
+
|
|
42
|
+
.synkron.*
|
|
43
|
+
.sync.ffs_db
|
|
44
|
+
.symform
|
|
45
|
+
.symform-store
|
|
46
|
+
.fuse_hidden*
|
|
47
|
+
*.unison
|
|
48
|
+
.nfs*
|
|
49
|
+
|
|
50
|
+
My Saved Places.
|
data/lib/openvfs/occ.rb
CHANGED
|
@@ -10,10 +10,29 @@ rescue LoadError
|
|
|
10
10
|
require "openvfs/occ/occ"
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
+
# The default exclude list, which the client loads before it will sync anything: SyncEngine::loadDefaultExcludes fails without it, and Folder's constructor then puts the folder in SyncResult::SetupError and returns, so the account connects and authenticates and nothing is ever scheduled or watched.
|
|
14
|
+
#
|
|
15
|
+
# It ships in the gem and is named here because ConfigFile::defaultExcludeFile falls back to the path the build installed it at, which is the build machine's and not any other's.
|
|
16
|
+
ENV["OPENCLOUD_SYNC_EXCLUDE_FILE"] ||= File.expand_path("occ/sync-exclude.lst", __dir__)
|
|
17
|
+
|
|
13
18
|
require "fileutils"
|
|
14
19
|
require "securerandom"
|
|
20
|
+
require "uri"
|
|
15
21
|
|
|
16
22
|
module OpenVFS
|
|
23
|
+
# What the engine calls itself, which is also where it reads its config.
|
|
24
|
+
# @parameter user [String] the user on the server.
|
|
25
|
+
# @parameter url [String] the server's base URL, whose host names the account with the user.
|
|
26
|
+
# @returns [String] the application name for that account.
|
|
27
|
+
def self.application_name_for(user, url) = "#{user}@#{URI(url.to_s).host}"
|
|
28
|
+
|
|
29
|
+
# The INI that application name resolves to, derived the way ConfigFile derives it.
|
|
30
|
+
# @parameter name [String] the application name; the current one by default.
|
|
31
|
+
# @returns [String] the config file for that name.
|
|
32
|
+
def self.config_path(name = application_name)
|
|
33
|
+
File.join(ENV.fetch("XDG_CONFIG_HOME", File.join(Dir.home, ".config")), name, "#{name.downcase}.cfg")
|
|
34
|
+
end
|
|
35
|
+
|
|
17
36
|
# Writes the INI file AccountManager::restore and FolderMan::loadFolders read on start.
|
|
18
37
|
#
|
|
19
38
|
# The credential is not written here: credentials live in the keychain, so store it with Account#credential_manager.set("http/oauthtoken", credential) before starting.
|
|
@@ -21,12 +40,16 @@ module OpenVFS
|
|
|
21
40
|
# @parameter path [String] The local directory to sync.
|
|
22
41
|
# @parameter url [String] The server's base URL.
|
|
23
42
|
# @parameter remote_path [String] The WebDAV path to sync against.
|
|
43
|
+
# @parameter user [String] The user on that server. With the server's host it names the account, which is the application name and so the config file.
|
|
24
44
|
# @parameter uuid [String] The account's UUID; also names the keychain entry.
|
|
25
45
|
# @parameter display_name [String] How the folder is named in logs.
|
|
26
46
|
# @parameter space_id [String] The space to sync, if any.
|
|
27
47
|
# @returns [String] The UUID the account was written under.
|
|
28
|
-
def self.configure(path, url:, remote_path:, uuid: SecureRandom.uuid, display_name: path, space_id: "")
|
|
29
|
-
|
|
48
|
+
def self.configure(path, url:, remote_path:, user:, uuid: SecureRandom.uuid, display_name: path, space_id: "")
|
|
49
|
+
# One account per process, so the application name is the account's: it is what decides which config the engine reads, and OpenVFS.start reads it rather than being told.
|
|
50
|
+
self.application_name = application_name_for(user, url)
|
|
51
|
+
|
|
52
|
+
config_path = self.config_path
|
|
30
53
|
FileUtils.mkdir_p(File.dirname(config_path))
|
|
31
54
|
FileUtils.mkdir_p(path)
|
|
32
55
|
|
data/lib/openvfs/rb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openvfs-rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Nathan Kidd
|
|
@@ -53,6 +53,7 @@ files:
|
|
|
53
53
|
- lib/openvfs/occ/3.3/occ.so
|
|
54
54
|
- lib/openvfs/occ/3.4/occ.so
|
|
55
55
|
- lib/openvfs/occ/4.0/occ.so
|
|
56
|
+
- lib/openvfs/occ/sync-exclude.lst
|
|
56
57
|
- lib/openvfs/rb.rb
|
|
57
58
|
- lib/openvfs/rb/version.rb
|
|
58
59
|
- lib/openvfs/version.rb
|