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.
- checksums.yaml +4 -4
- data/README.md +12 -12
- data/_VERSION +1 -1
- data/lib/files.com/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd0a46c86c2167b17f252df78fa169f60de881435cc95db697e1fc4644230b81
|
4
|
+
data.tar.gz: 4ec5646cf1c4ecf8fde063a312189e47e7d995ed53acb26c7ad314498486de0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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.
|
1
|
+
1.1.184
|
data/lib/files.com/version.rb
CHANGED