files.com 1.1.183 → 1.1.184

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -12
  3. data/_VERSION +1 -1
  4. data/lib/files.com/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f1d4a3612c36c070eb39088c5f41b7290e33e2a056a58fe06026d61609ae93e
4
- data.tar.gz: 4bca153f7a9b7c6093025aa5a053156ffa5eb43df5795ddbc63cd10e7ce7672c
3
+ metadata.gz: cd0a46c86c2167b17f252df78fa169f60de881435cc95db697e1fc4644230b81
4
+ data.tar.gz: 4ec5646cf1c4ecf8fde063a312189e47e7d995ed53acb26c7ad314498486de0e
5
5
  SHA512:
6
- metadata.gz: eb1f9cb7eaa3121e5831fb759261809d8f068bd79afcfbd9afeeb5762e9ddb49ea59fa963514d1bda3a074371d578494ff9a128ac2da976525f953e9e37053df
7
- data.tar.gz: 63867ced6e208758ff179a40b8e16679c487ec1af9a70acee6d1f3025c3c21b21f3fbfa90d6ab49d9bf35f0b35c53027ade856a0f1a922fb4b50fa3ee739615b
6
+ metadata.gz: 43c08967c994d4a2048d2ff0142c2553faeccddc562a3f664e5aa08b7f045486a8d2a140297c4c359b331b1fc849cd0c0f25ab79d704e556c13476f85fb7357a
7
+ data.tar.gz: 530629ff255de9e1433c6068e0865cf5e88bdd60ec2b2d4ba417bc4dc8b4823fd6312740c12073a416fd50da3b8e01e17d5bd9656b84e73fa727b4532abc7113
data/README.md CHANGED
@@ -519,26 +519,18 @@ A README is available on the GitHub link.
519
519
 
520
520
  ## File/Folder Operations
521
521
 
522
- ### File Operations
523
-
524
522
  The Files::File and Files::Dir models implement the standard Ruby API
525
523
  for File and Dir, respectively. (Note that the Files.com SDK uses the
526
524
  word Folder, not Dir, and Files::Dir is simply an alias for
527
525
  Files::Folder).
528
526
 
529
- #### List Root Folder
530
-
531
- ```ruby
532
- Files::Folder.list_for("/").each do |file|
533
- puts file.path
534
- end
535
- ```
536
-
537
- #### Writing a File
527
+ ### Upload
538
528
 
539
529
  ```ruby
530
+ ## Upload a file on disk.
540
531
  Files::upload_file("local.txt", "/remote.txt")
541
532
 
533
+ ## Upload raw file data.
542
534
  File.open("local.txt") do |local_file|
543
535
  Files::File.open("remote.txt", "w") do |remote_file|
544
536
  remote_file.write(local_file.read)
@@ -546,8 +538,16 @@ File.open("local.txt") do |local_file|
546
538
  end
547
539
  ```
548
540
 
549
- #### Reading a File
541
+ ### Download
550
542
 
551
543
  ```ruby
552
544
  Files::File.find("foo.txt").read
553
545
  ```
546
+
547
+ ### List
548
+
549
+ ```ruby
550
+ Files::Folder.list_for("/").each do |file|
551
+ puts file.path
552
+ end
553
+ ```
data/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.183
1
+ 1.1.184
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Files
4
- VERSION = "1.1.183"
4
+ VERSION = "1.1.184"
5
5
  end
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.183
4
+ version: 1.1.184
5
5
  platform: ruby
6
6
  authors:
7
7
  - files.com