files.com 1.0.273 → 1.0.276

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: e4444cd6bf040d1d2a4bd4f6c3f1a32ce250603c43ac4d0a50319fa8e55f04d2
4
- data.tar.gz: 7dbf653e73f7acd9f9f37104f6b46d3a85cca63598c940d509bef79f17f53496
3
+ metadata.gz: 561707ab29257db681eecb5b30183ab0645048aa9adcc003de673be898a0e72a
4
+ data.tar.gz: 660929156e7e4df72498c86f88c62e886be265375b445e8b05c96ddb5b9383c2
5
5
  SHA512:
6
- metadata.gz: 46e36688b0aa360fe09f7411c5cc8df1741546e1a948deed39ebc5255b6e4639224740f9f915e00216d257ae54215225a7c8f91e456fc72c04435a676d1ccdc3
7
- data.tar.gz: 36ca33592098826113554cac96e7235ae75d98c470b197d514af2d20173cbfe4979a2d9342256c6c8ee401ce2c7d29b8ee5770d46e9a7f930f0e3355ccebcda8
6
+ metadata.gz: 95ff37cccb432e891d772e4792c2ceccbd802db578b15f01638842b7c82a19bff23dd0fefc85f51d1dd2595f96726f19dade4053d9992e8aa74e947b8897d837
7
+ data.tar.gz: c1a31585575bd6a3b073520189a3adccc5697b211b9c2318239a2bfa2b257f4f008822986cf88088b3984ce17ccd457cfccbbd38357e7f2396cd39ecad0cdd09
data/Gemfile.lock CHANGED
@@ -5,25 +5,34 @@ PATH
5
5
  addressable (>= 2.7.0)
6
6
  concurrent-ruby (>= 1.1.3)
7
7
  faraday (>= 1.0.1)
8
- net-http-persistent
8
+ faraday-multipart (>= 1.0)
9
+ faraday-net_http_persistent (>= 2.0)
10
+ net-http-persistent (>= 4.0)
9
11
 
10
12
  GEM
11
13
  remote: https://rubygems.org/
12
14
  specs:
13
- addressable (2.7.0)
15
+ addressable (2.8.0)
14
16
  public_suffix (>= 2.0.2, < 5.0)
15
17
  ast (2.4.1)
16
18
  byebug (11.1.3)
17
19
  coderay (1.1.2)
18
- concurrent-ruby (1.1.6)
19
- connection_pool (2.2.3)
20
+ concurrent-ruby (1.1.10)
21
+ connection_pool (2.2.5)
20
22
  diff-lcs (1.3)
21
- faraday (1.0.1)
22
- multipart-post (>= 1.2, < 3)
23
+ faraday (2.3.0)
24
+ faraday-net_http (~> 2.0)
25
+ ruby2_keywords (>= 0.0.4)
26
+ faraday-multipart (1.0.4)
27
+ multipart-post (~> 2)
28
+ faraday-net_http (2.0.3)
29
+ faraday-net_http_persistent (2.0.1)
30
+ faraday-net_http
31
+ net-http-persistent (~> 4.0)
23
32
  memory_profiler (0.9.14)
24
33
  method_source (1.0.0)
25
- multipart-post (2.1.1)
26
- net-http-persistent (4.0.0)
34
+ multipart-post (2.2.3)
35
+ net-http-persistent (4.0.1)
27
36
  connection_pool (~> 2.2)
28
37
  parallel (1.19.2)
29
38
  parser (2.7.1.4)
@@ -34,7 +43,7 @@ GEM
34
43
  pry-byebug (3.9.0)
35
44
  byebug (~> 11.0)
36
45
  pry (~> 0.13.0)
37
- public_suffix (4.0.5)
46
+ public_suffix (4.0.7)
38
47
  rainbow (3.0.0)
39
48
  rake (13.0.1)
40
49
  regexp_parser (1.7.1)
@@ -64,6 +73,7 @@ GEM
64
73
  rubocop-ast (0.0.3)
65
74
  parser (>= 2.7.0.1)
66
75
  ruby-progressbar (1.10.1)
76
+ ruby2_keywords (0.0.5)
67
77
  unicode-display_width (1.7.0)
68
78
 
69
79
  PLATFORMS
data/README.md CHANGED
@@ -16,7 +16,7 @@ Or add this to your app's Gemfile:
16
16
 
17
17
  ### Requirements
18
18
 
19
- * Ruby 2.3+
19
+ * Ruby 2.7+
20
20
 
21
21
 
22
22
  ## Usage
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.273
1
+ 1.0.276
data/docs/automation.md CHANGED
@@ -87,13 +87,13 @@ Files::Automation.list(
87
87
 
88
88
  * `cursor` (string): Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
89
89
  * `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
90
- * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `automation`, `last_modified_at` or `disabled`.
91
- * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
92
- * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
93
- * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
94
- * `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
95
- * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
96
- * `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
90
+ * `sort_by` (object): If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `automation`, `disabled` or `last_modified_at`.
91
+ * `filter` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
92
+ * `filter_gt` (object): If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
93
+ * `filter_gteq` (object): If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
94
+ * `filter_like` (object): If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
95
+ * `filter_lt` (object): If set, return records where the specified field is less than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
96
+ * `filter_lteq` (object): If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
97
97
  * `with_deleted` (boolean): Set to true to include deleted automations in the results.
98
98
  * `automation` (string): DEPRECATED: Type of automation to filter by. Use `filter[automation]` instead.
99
99
 
@@ -92,6 +92,7 @@
92
92
  * `aws_secret_key` (string): AWS secret key.
93
93
  * `password` (string): Password if needed.
94
94
  * `private_key` (string): Private key if needed.
95
+ * `private_key_passphrase` (string): Passphrase for private key if needed.
95
96
  * `ssl_certificate` (string): SSL client certificate.
96
97
  * `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
97
98
  * `wasabi_secret_key` (string): Wasabi secret key.
@@ -180,6 +181,7 @@ Files::RemoteServer.create(
180
181
  * `aws_secret_key` (string): AWS secret key.
181
182
  * `password` (string): Password if needed.
182
183
  * `private_key` (string): Private key if needed.
184
+ * `private_key_passphrase` (string): Passphrase for private key if needed.
183
185
  * `ssl_certificate` (string): SSL client certificate.
184
186
  * `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
185
187
  * `wasabi_access_key` (string): Wasabi access key.
@@ -273,6 +275,7 @@ Files::RemoteServer.update(id,
273
275
  * `aws_secret_key` (string): AWS secret key.
274
276
  * `password` (string): Password if needed.
275
277
  * `private_key` (string): Private key if needed.
278
+ * `private_key_passphrase` (string): Passphrase for private key if needed.
276
279
  * `ssl_certificate` (string): SSL client certificate.
277
280
  * `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
278
281
  * `wasabi_access_key` (string): Wasabi access key.
@@ -381,6 +384,7 @@ remote_server.update(
381
384
  * `aws_secret_key` (string): AWS secret key.
382
385
  * `password` (string): Password if needed.
383
386
  * `private_key` (string): Private key if needed.
387
+ * `private_key_passphrase` (string): Passphrase for private key if needed.
384
388
  * `ssl_certificate` (string): SSL client certificate.
385
389
  * `google_cloud_storage_credentials_json` (string): A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
386
390
  * `wasabi_access_key` (string): Wasabi access key.
data/files.com.gemspec CHANGED
@@ -10,11 +10,13 @@ Gem::Specification.new do |s|
10
10
  s.summary = "Files.com Ruby client."
11
11
  s.description = "The Files.com Ruby client."
12
12
  s.license = "MIT"
13
- s.required_ruby_version = ">= 2.5"
13
+ s.required_ruby_version = ">= 2.7"
14
14
  s.add_dependency 'addressable', ">= 2.7.0"
15
15
  s.add_dependency 'concurrent-ruby', ">= 1.1.3"
16
16
  s.add_dependency 'faraday', ">= 1.0.1"
17
- s.add_dependency 'net-http-persistent'
17
+ s.add_dependency 'net-http-persistent', ">= 4.0"
18
+ s.add_dependency 'faraday-net_http_persistent', '>= 2.0'
19
+ s.add_dependency 'faraday-multipart', ">= 1.0"
18
20
 
19
21
  s.files = `find *`.split("\n").uniq.sort.reject(&:empty?)
20
22
  s.executables = [ "files", "files-console" ]
@@ -34,7 +34,11 @@ module Files
34
34
 
35
35
  def self.build_default_conn(force_net_http: false)
36
36
  conn = Faraday.new do |builder|
37
- builder.use Faraday::Request::Multipart
37
+ if defined? Faraday::Request::Multipart
38
+ builder.use Faraday::Request::Multipart
39
+ else
40
+ builder.request :multipart
41
+ end
38
42
  builder.use Faraday::Request::UrlEncoded
39
43
  builder.use Faraday::Response::RaiseError
40
44
 
@@ -150,7 +154,7 @@ module Files
150
154
  uri = URI(uri)
151
155
  Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
152
156
  request = Net::HTTP::Get.new uri
153
- request["RANGE"] = "bytes=#{range[0]}-#{range[1]}" if range
157
+ request["RANGE"] = "bytes=#{range[0]}-#{range[1]}" unless range.empty?
154
158
  http.request request do |response|
155
159
  io.fulfill_content_length(response.content_length) if io.respond_to?(:fulfill_content_length)
156
160
  response.read_body do |chunk|
@@ -275,13 +275,13 @@ module Files
275
275
  # Parameters:
276
276
  # cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
277
277
  # per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
278
- # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `automation`, `last_modified_at` or `disabled`.
279
- # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
280
- # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
281
- # filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
282
- # filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
283
- # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
284
- # filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ disabled, automation ]`.
278
+ # sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `automation`, `disabled` or `last_modified_at`.
279
+ # filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
280
+ # filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
281
+ # filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
282
+ # filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
283
+ # filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
284
+ # filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `automation`, `last_modified_at` or `disabled`. Valid field combinations are `[ automation, disabled ]` and `[ disabled, automation ]`.
285
285
  # with_deleted - boolean - Set to true to include deleted automations in the results.
286
286
  # automation - string - DEPRECATED: Type of automation to filter by. Use `filter[automation]` instead.
287
287
  def self.list(params = {}, options = {})
@@ -71,7 +71,7 @@ module Files
71
71
  end
72
72
 
73
73
  def self.from_path(path)
74
- File.metadata(path)
74
+ File.find(path)
75
75
  end
76
76
 
77
77
  def self.get(path, params = {}, options = {})
@@ -405,6 +405,15 @@ module Files
405
405
  @attributes[:private_key] = value
406
406
  end
407
407
 
408
+ # string - Passphrase for private key if needed.
409
+ def private_key_passphrase
410
+ @attributes[:private_key_passphrase]
411
+ end
412
+
413
+ def private_key_passphrase=(value)
414
+ @attributes[:private_key_passphrase] = value
415
+ end
416
+
408
417
  # string - SSL client certificate.
409
418
  def ssl_certificate
410
419
  @attributes[:ssl_certificate]
@@ -500,6 +509,7 @@ module Files
500
509
  # aws_secret_key - string - AWS secret key.
501
510
  # password - string - Password if needed.
502
511
  # private_key - string - Private key if needed.
512
+ # private_key_passphrase - string - Passphrase for private key if needed.
503
513
  # ssl_certificate - string - SSL client certificate.
504
514
  # google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
505
515
  # wasabi_access_key - string - Wasabi access key.
@@ -552,6 +562,7 @@ module Files
552
562
  raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params.dig(:aws_secret_key) and !params.dig(:aws_secret_key).is_a?(String)
553
563
  raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
554
564
  raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
565
+ raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params.dig(:private_key_passphrase) and !params.dig(:private_key_passphrase).is_a?(String)
555
566
  raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params.dig(:ssl_certificate) and !params.dig(:ssl_certificate).is_a?(String)
556
567
  raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params.dig(:google_cloud_storage_credentials_json) and !params.dig(:google_cloud_storage_credentials_json).is_a?(String)
557
568
  raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params.dig(:wasabi_access_key) and !params.dig(:wasabi_access_key).is_a?(String)
@@ -658,6 +669,7 @@ module Files
658
669
  # aws_secret_key - string - AWS secret key.
659
670
  # password - string - Password if needed.
660
671
  # private_key - string - Private key if needed.
672
+ # private_key_passphrase - string - Passphrase for private key if needed.
661
673
  # ssl_certificate - string - SSL client certificate.
662
674
  # google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
663
675
  # wasabi_access_key - string - Wasabi access key.
@@ -706,6 +718,7 @@ module Files
706
718
  raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params.dig(:aws_secret_key) and !params.dig(:aws_secret_key).is_a?(String)
707
719
  raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
708
720
  raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
721
+ raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params.dig(:private_key_passphrase) and !params.dig(:private_key_passphrase).is_a?(String)
709
722
  raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params.dig(:ssl_certificate) and !params.dig(:ssl_certificate).is_a?(String)
710
723
  raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params.dig(:google_cloud_storage_credentials_json) and !params.dig(:google_cloud_storage_credentials_json).is_a?(String)
711
724
  raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params.dig(:wasabi_access_key) and !params.dig(:wasabi_access_key).is_a?(String)
@@ -757,6 +770,7 @@ module Files
757
770
  # aws_secret_key - string - AWS secret key.
758
771
  # password - string - Password if needed.
759
772
  # private_key - string - Private key if needed.
773
+ # private_key_passphrase - string - Passphrase for private key if needed.
760
774
  # ssl_certificate - string - SSL client certificate.
761
775
  # google_cloud_storage_credentials_json - string - A JSON file that contains the private key. To generate see https://cloud.google.com/storage/docs/json_api/v1/how-tos/authorizing#APIKey
762
776
  # wasabi_access_key - string - Wasabi access key.
@@ -808,6 +822,7 @@ module Files
808
822
  raise InvalidParameterError.new("Bad parameter: aws_secret_key must be an String") if params.dig(:aws_secret_key) and !params.dig(:aws_secret_key).is_a?(String)
809
823
  raise InvalidParameterError.new("Bad parameter: password must be an String") if params.dig(:password) and !params.dig(:password).is_a?(String)
810
824
  raise InvalidParameterError.new("Bad parameter: private_key must be an String") if params.dig(:private_key) and !params.dig(:private_key).is_a?(String)
825
+ raise InvalidParameterError.new("Bad parameter: private_key_passphrase must be an String") if params.dig(:private_key_passphrase) and !params.dig(:private_key_passphrase).is_a?(String)
811
826
  raise InvalidParameterError.new("Bad parameter: ssl_certificate must be an String") if params.dig(:ssl_certificate) and !params.dig(:ssl_certificate).is_a?(String)
812
827
  raise InvalidParameterError.new("Bad parameter: google_cloud_storage_credentials_json must be an String") if params.dig(:google_cloud_storage_credentials_json) and !params.dig(:google_cloud_storage_credentials_json).is_a?(String)
813
828
  raise InvalidParameterError.new("Bad parameter: wasabi_access_key must be an String") if params.dig(:wasabi_access_key) and !params.dig(:wasabi_access_key).is_a?(String)
data/lib/files.com.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require "cgi"
4
4
  require "faraday"
5
+ require 'faraday/multipart' unless defined? Faraday::Request::Multipart
5
6
  require "json"
6
7
  require "logger"
7
8
  require "openssl"
@@ -13,6 +14,9 @@ require "uri"
13
14
  require "addressable/uri"
14
15
  require "concurrent/promise"
15
16
 
17
+ require 'faraday/net_http_persistent'
18
+ require 'net/http/persistent'
19
+
16
20
  $LOAD_PATH.push __dir__
17
21
 
18
22
  require "files.com/version"
@@ -99,16 +99,16 @@ RSpec.describe Files::File, :with_test_folder, skip: ENV["GITLAB"] do
99
99
  end
100
100
 
101
101
  describe ".from_path" do
102
- it "returns a File object for a file" do
102
+ it "returns a file type" do
103
103
  Files::File.open(test_folder.join("read.txt").to_s, 'w', options) do |f|
104
104
  f.write("contents")
105
105
  end
106
- expect(Files::File.from_path("read.txt")).to be_a_kind_of(Files::File)
106
+ expect(Files::File.from_path(test_folder.join("read.txt").to_s).type).to eq("file")
107
107
  end
108
108
 
109
- it "returns a Folder object for a Folder" do
110
- Files::Folder.mkdir("testdir")
111
- expect(Files::File.from_path("testdir")).to be_a_kind_of(Files::Folder)
109
+ it "returns a directory type" do
110
+ Files::Folder.mkdir("testdir") unless Files::Folder.exist?("testdir")
111
+ expect(Files::File.from_path("testdir").type).to eq("directory")
112
112
  end
113
113
  end
114
114
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: files.com
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.273
4
+ version: 1.0.276
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-15 00:00:00.000000000 Z
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -58,14 +58,42 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '4.0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '4.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: faraday-net_http_persistent
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '2.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '2.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: faraday-multipart
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '1.0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '1.0'
69
97
  description: The Files.com Ruby client.
70
98
  email:
71
99
  - support@files.com
@@ -268,7 +296,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
268
296
  requirements:
269
297
  - - ">="
270
298
  - !ruby/object:Gem::Version
271
- version: '2.5'
299
+ version: '2.7'
272
300
  required_rubygems_version: !ruby/object:Gem::Requirement
273
301
  requirements:
274
302
  - - ">="