files.com 1.1.1 → 1.1.3

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: 1d6822036b0626cb6a0d85ae357c2fb7e2945d5829c44eaa958b54ce8315eb1a
4
- data.tar.gz: 3fd058ba3a28a80b128e066cc2cc7ed23904babde3df2f2b17e3e8cce62b311c
3
+ metadata.gz: e7e9f5238627784c9e8f5a5205cc69968a7cea8cc8960dbf161c554eeda2ce33
4
+ data.tar.gz: d8f97881249ec3a71b713baa752d877b3a364f3f36b7ad5dfa04306dd198efc0
5
5
  SHA512:
6
- metadata.gz: e26f0d51e5ae4405b12029953638f2a768c8f77b0183552a284ca57fd531a56e68439cb38b9f180b267e63fd04dbfec085d3007d187994ad836825bfdb6b270a
7
- data.tar.gz: 741203882d4d451bf7a8805e70e3dd018e1daa3bc22e1f878d9c2a537658af45b4c1632da4f7798582380b8305167b162ebe0923669d9c2798a7dbb4c4f48273
6
+ metadata.gz: e270b0f252e971f03ea2b49d0b2afb8b25949bdc1370fa6619af9d32157cd6bda9299813f871c83a06a5df6481bc24086364400ae4f45bafca87000c2d0580c6
7
+ data.tar.gz: 709e26324054a511c47367634b3d0569aa191463cadaf852c16f7a0d6e27bb38c81f2df56f9956b86daf5a771700b571d832d74e73c09f727fc86099c37b50b9
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.3
data/bin/files CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # frozen_string_literal: true
4
4
 
5
- require "#{::File.dirname(__FILE__)}/../lib/files.com"
6
- require "#{::File.dirname(__FILE__)}/../lib/files.com/cli"
5
+ require "#{File.dirname(__FILE__)}/../lib/files.com"
6
+ require "#{File.dirname(__FILE__)}/../lib/files.com/cli"
7
7
 
8
8
  Files::Cli.new.run
data/bin/files-console CHANGED
@@ -5,7 +5,7 @@
5
5
  require "irb"
6
6
  require "irb/completion"
7
7
 
8
- require "#{::File.dirname(__FILE__)}/../lib/files.com"
8
+ require "#{File.dirname(__FILE__)}/../lib/files.com"
9
9
 
10
10
  # Config IRB to enable --simple-prompt and auto indent
11
11
  IRB.conf[:PROMPT_MODE] = :SIMPLE
data/docs/site.md CHANGED
@@ -12,6 +12,7 @@
12
12
  "allowed_2fa_method_yubi": true,
13
13
  "allowed_2fa_method_bypass_for_ftp_sftp_dav": true,
14
14
  "admin_user_id": 1,
15
+ "admins_bypass_locked_subfolders": true,
15
16
  "allow_bundle_names": true,
16
17
  "allowed_countries": "US,DE",
17
18
  "allowed_ips": "example",
@@ -236,6 +237,7 @@
236
237
  * `allowed_2fa_method_yubi` (boolean): Is yubikey two factor authentication allowed?
237
238
  * `allowed_2fa_method_bypass_for_ftp_sftp_dav` (boolean): Are users allowed to configure their two factor authentication to be bypassed for FTP/SFTP/WebDAV?
238
239
  * `admin_user_id` (int64): User ID for the main site administrator
240
+ * `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.
239
241
  * `allow_bundle_names` (boolean): Are manual Bundle names allowed?
240
242
  * `allowed_countries` (string): Comma seperated list of allowed Country codes
241
243
  * `allowed_ips` (string): List of allowed IP addresses
@@ -488,6 +490,7 @@ Files::Site.update(
488
490
  group_admins_can_set_user_password: true,
489
491
  bundle_recipient_blacklist_free_email_domains: true,
490
492
  bundle_recipient_blacklist_domains: ["example"],
493
+ admins_bypass_locked_subfolders: true,
491
494
  allowed_2fa_method_sms: true,
492
495
  allowed_2fa_method_u2f: true,
493
496
  allowed_2fa_method_totp: true,
@@ -625,6 +628,7 @@ Files::Site.update(
625
628
  * `group_admins_can_set_user_password` (boolean): Allow group admins set password authentication method
626
629
  * `bundle_recipient_blacklist_free_email_domains` (boolean): Disallow free email domains for Bundle/Inbox recipients?
627
630
  * `bundle_recipient_blacklist_domains` (array(string)): List of email domains to disallow when entering a Bundle/Inbox recipients
631
+ * `admins_bypass_locked_subfolders` (boolean): Allow admins to bypass the locked subfolders setting.
628
632
  * `allowed_2fa_method_sms` (boolean): Is SMS two factor authentication allowed?
629
633
  * `allowed_2fa_method_u2f` (boolean): Is U2F two factor authentication allowed?
630
634
  * `allowed_2fa_method_totp` (boolean): Is TOTP two factor authentication allowed?
@@ -49,6 +49,11 @@ module Files
49
49
  @attributes[:admin_user_id]
50
50
  end
51
51
 
52
+ # boolean - Allow admins to bypass the locked subfolders setting.
53
+ def admins_bypass_locked_subfolders
54
+ @attributes[:admins_bypass_locked_subfolders]
55
+ end
56
+
52
57
  # boolean - Are manual Bundle names allowed?
53
58
  def allow_bundle_names
54
59
  @attributes[:allow_bundle_names]
@@ -850,6 +855,7 @@ module Files
850
855
  # group_admins_can_set_user_password - boolean - Allow group admins set password authentication method
851
856
  # bundle_recipient_blacklist_free_email_domains - boolean - Disallow free email domains for Bundle/Inbox recipients?
852
857
  # bundle_recipient_blacklist_domains - array(string) - List of email domains to disallow when entering a Bundle/Inbox recipients
858
+ # admins_bypass_locked_subfolders - boolean - Allow admins to bypass the locked subfolders setting.
853
859
  # allowed_2fa_method_sms - boolean - Is SMS two factor authentication allowed?
854
860
  # allowed_2fa_method_u2f - boolean - Is U2F two factor authentication allowed?
855
861
  # allowed_2fa_method_totp - boolean - Is TOTP two factor authentication allowed?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.3"
5
5
  end
data/setup.sh CHANGED
@@ -1,6 +1,9 @@
1
1
  #!/usr/bin/env bash
2
2
 
3
+ # cd to the directory containing this file
4
+ cd "$( dirname "${BASH_SOURCE[0]}" )"
5
+
3
6
  # Auto-fix generated code, an important fix is where we use `inspect` to generate hashes
4
7
  # and these hashes do not have spaces around {} or =>
5
8
  # Note: we always return true so that offenses that cannot be auto-fixed are ignored for local developement, CI will catch them
6
- bundle exec rubocop --format simple -a --ignore-parent-exclusion >/dev/null 2>/dev/null || true
9
+ bundle install >/dev/null 2>/dev/null && bundle exec rubocop --cache false --format simple -a --ignore-parent-exclusion >/dev/null 2>/dev/null || true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com