cloudapp 2.1.0.beta.1 → 2.1.0
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.
- data/Gemfile.lock +1 -1
- data/README.md +62 -35
- data/bin/cloudapp +17 -1
- data/cloudapp.gemspec +2 -2
- data/lib/cloudapp.rb +1 -1
- data/man/cloudapp.1 +2 -6
- data/man/cloudapp.1.html +4 -8
- data/man/cloudapp.1.ronn +4 -8
- metadata +6 -6
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# CloudApp CLI
|
2
2
|
|
3
|
-
Experience all the pleasures of sharing with [CloudApp][] now in your
|
4
|
-
and
|
3
|
+
Experience all the pleasures of sharing with [CloudApp][] now in your terminal
|
4
|
+
and Ruby.
|
5
5
|
|
6
6
|
[cloudapp]: http://getcloudapp.com
|
7
7
|
|
@@ -12,67 +12,94 @@ and terminal.
|
|
12
12
|
you're willing to lend a hand, we'd love to officially support it.
|
13
13
|
|
14
14
|
|
15
|
-
##
|
15
|
+
## Quick Start
|
16
16
|
|
17
17
|
``` bash
|
18
|
-
$ gem install cloudapp
|
19
|
-
$ cloudapp
|
20
|
-
$ cloudapp
|
21
|
-
$ cloudapp
|
18
|
+
$ gem install cloudapp
|
19
|
+
$ cloudapp screenshot.png
|
20
|
+
$ cloudapp --direct screenshot.png
|
21
|
+
$ cloudapp http://getcloudapp.com
|
22
22
|
```
|
23
23
|
|
24
24
|
For a good time, install `gem-man` and read the man page or
|
25
25
|
[read it online][man].
|
26
26
|
|
27
|
-
[man]: http://cloudapp.github.com/cloudapp
|
28
|
-
|
27
|
+
[man]: http://cloudapp.github.com/cloudapp.rb
|
29
28
|
|
30
29
|
``` bash
|
31
30
|
$ gem install gem-man
|
32
31
|
$ gem man cloudapp
|
33
32
|
```
|
34
33
|
|
35
|
-
##
|
34
|
+
## Usage
|
35
|
+
|
36
|
+
### `cloudapp [--direct] [--[no-]copy] <file_or_url>...`
|
36
37
|
|
37
|
-
|
38
|
+
Upload a file or share a bookmark. The drop's share link will be printed to
|
39
|
+
standard output and copied to the system clipboard. Use the `--direct` flag
|
40
|
+
for the drop's direct link suitable for use in places where a link to a file
|
41
|
+
is expected. An HTML IMG tag or Campfire, for example.
|
38
42
|
|
39
|
-
Upload
|
40
|
-
print the file's direct link which is suitable for use in places that expect a
|
41
|
-
link to a file like an HTML IMG tag.
|
43
|
+
### Upload a file:
|
42
44
|
|
43
45
|
``` bash
|
44
|
-
$ cloudapp
|
45
|
-
http://cl.ly/
|
46
|
+
$ cloudapp screenshot.png
|
47
|
+
Uploading screenshot.png... http://cl.ly/image/3U2U2f3B1O0x
|
48
|
+
```
|
46
49
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
50
|
+
### Upload several files:
|
51
|
+
|
52
|
+
``` bash
|
53
|
+
$ cloudapp *.png
|
54
|
+
Uploading screenshot-1.png... http://cl.ly/image/1E1F1k3Q3919
|
55
|
+
Uploading screenshot-2.png... http://cl.ly/image/3P1s3p0c3545
|
56
|
+
Uploading screenshot-3.png... http://cl.ly/image/0E3k0h353X0w
|
51
57
|
```
|
52
58
|
|
53
|
-
###
|
59
|
+
### Upload file names and URLs from standard input:
|
54
60
|
|
55
|
-
|
61
|
+
``` bash
|
62
|
+
$ ls *.png | cloudapp
|
63
|
+
Uploading screenshot-1.png... http://cl.ly/image/1E1F1k3Q3919
|
64
|
+
Uploading screenshot-2.png... http://cl.ly/image/3P1s3p0c3545
|
65
|
+
Uploading screenshot-3.png... http://cl.ly/image/0E3k0h353X0w
|
66
|
+
```
|
67
|
+
|
68
|
+
### Bookmark a URL:
|
56
69
|
|
57
70
|
``` bash
|
58
|
-
$ cloudapp
|
59
|
-
http://cl.ly/
|
71
|
+
$ cloudapp http://getcloudapp.com
|
72
|
+
Bookmarking http://getcloudapp.com... http://cl.ly/352T3Z2G0G2S
|
73
|
+
```
|
60
74
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
http://
|
75
|
+
### Everything at once:
|
76
|
+
|
77
|
+
``` bash
|
78
|
+
$ cloudapp screenshot.png http://getcloudapp.com
|
79
|
+
Uploading screenshot.png... http://cl.ly/image/3U2U2f3B1O0x
|
80
|
+
Bookmarking http://getcloudapp.com... http://cl.ly/352T3Z2G0G2S
|
65
81
|
```
|
66
82
|
|
83
|
+
### Copy the drop's direct link:
|
84
|
+
|
85
|
+
``` bash
|
86
|
+
$ cloudapp --direct screenshot.png
|
87
|
+
Uploading screenshot.png... http://cl.ly/image/3U2U2f3B1O0x/screenshot.png
|
88
|
+
```
|
89
|
+
|
90
|
+
### Print but don't copy the drop's link:
|
91
|
+
|
92
|
+
``` bash
|
93
|
+
$ cloudapp --no-copy screenshot.png
|
94
|
+
Uploading screenshot.png... http://cl.ly/image/3U2U2f3B1O0x
|
95
|
+
```
|
96
|
+
|
97
|
+
|
67
98
|
## Wish List
|
68
99
|
|
69
100
|
A few simple commands to allow scripting and input from other Unix programs
|
70
101
|
would be ideal.
|
71
102
|
|
72
|
-
-
|
73
|
-
-
|
74
|
-
-
|
75
|
-
- Download and decrypt and encrypted drop: `cloudapp download --key=def456 http://cl.ly/abc123`
|
76
|
-
|
77
|
-
There's be a better way to express some of these commands, but you get the
|
78
|
-
picture.
|
103
|
+
- Download a drop: `cloudapp http://cl.ly/abc123`
|
104
|
+
- Encrypt and share a file: `cloudapp --encrypt launch_codes.txt`
|
105
|
+
- Download and decrypt and encrypted drop: `cloudapp --key=def456 http://cl.ly/abc123`
|
data/bin/cloudapp
CHANGED
@@ -88,7 +88,23 @@ def print_help io = $stdout
|
|
88
88
|
cloudapp, version #{CloudApp::VERSION}
|
89
89
|
|
90
90
|
Usage:
|
91
|
-
cloudapp [--direct] [--[no-]copy] <file_or_url
|
91
|
+
cloudapp [--direct] [--[no-]copy] <file_or_url>...
|
92
|
+
|
93
|
+
Options:
|
94
|
+
-d, --direct
|
95
|
+
Print the drop's direct link after creation. The direct link is
|
96
|
+
suitable for use in places that expect a link to a file like an
|
97
|
+
HTML IMG tag.
|
98
|
+
|
99
|
+
-h, --help
|
100
|
+
Print this help message.
|
101
|
+
|
102
|
+
--[no-]copy
|
103
|
+
Copy the new drop's link to the system clipboard. The default
|
104
|
+
option is copy.
|
105
|
+
|
106
|
+
--version
|
107
|
+
Display the version of cloudapp.
|
92
108
|
|
93
109
|
EOS
|
94
110
|
end
|
data/cloudapp.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'cloudapp'
|
16
|
-
s.version = '2.1.0
|
17
|
-
s.date = '2013-01-
|
16
|
+
s.version = '2.1.0'
|
17
|
+
s.date = '2013-01-22'
|
18
18
|
s.rubyforge_project = 'cloudapp'
|
19
19
|
|
20
20
|
## Make sure your summary is short. The description may be as long
|
data/lib/cloudapp.rb
CHANGED
data/man/cloudapp.1
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
\fBcloudapp\fR \- all the pleasures of cloudapp in a cli
|
8
8
|
.
|
9
9
|
.SH "SYNOPSIS"
|
10
|
-
\fBcloudapp [\
|
10
|
+
\fBcloudapp\fR [\fB\-\-direct\fR] [\fB\-\-[no\-]copy\fR] \fIfile_or_url\fR\.\.\.
|
11
11
|
.
|
12
12
|
.SH "DESCRIPTION"
|
13
13
|
Upload a file or share a bookmark with CloudApp\. The drop\'s share link will be printed to standard output and copied to the system clipboard\. Account credentials are stored in \fB~/\.netrc\fR as defined by \fBftp\fR(1)\.
|
@@ -64,7 +64,7 @@ Uploading screenshot\-3\.png\.\.\. http://cl\.ly/image/0E3k0h353X0w
|
|
64
64
|
.IP "" 0
|
65
65
|
.
|
66
66
|
.P
|
67
|
-
Upload file
|
67
|
+
Upload file paths and URLs from standard input:
|
68
68
|
.
|
69
69
|
.IP "" 4
|
70
70
|
.
|
@@ -74,10 +74,6 @@ $ ls *\.png | cloudapp
|
|
74
74
|
Uploading screenshot\-1\.png\.\.\. http://cl\.ly/image/1E1F1k3Q3919
|
75
75
|
Uploading screenshot\-2\.png\.\.\. http://cl\.ly/image/3P1s3p0c3545
|
76
76
|
Uploading screenshot\-3\.png\.\.\. http://cl\.ly/image/0E3k0h353X0w
|
77
|
-
|
78
|
-
$ gifme {1,2,3}\.png | cloudapp \-\-direct
|
79
|
-
You now have a handsome animation at /Users/Larry/Desktop/animated\-2013\-01\-11_15h\-59m\-49s\.gif
|
80
|
-
Uploading animated\-2013\-01\-11_15h\-59m\-49s\.gif\.\.\. http://cl\.ly/image/373I3q2g1p36
|
81
77
|
.
|
82
78
|
.fi
|
83
79
|
.
|
data/man/cloudapp.1.html
CHANGED
@@ -79,7 +79,7 @@
|
|
79
79
|
|
80
80
|
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
81
81
|
|
82
|
-
<p><code>cloudapp [
|
82
|
+
<p><code>cloudapp</code> [<code>--direct</code>] [<code>--[no-]copy</code>] <var>file_or_url</var>...</p>
|
83
83
|
|
84
84
|
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
85
85
|
|
@@ -92,8 +92,8 @@ credentials are stored in <code>~/.netrc</code> as defined by <code>ftp</code>(1
|
|
92
92
|
<h2 id="OPTIONS">OPTIONS</h2>
|
93
93
|
|
94
94
|
<dl>
|
95
|
-
<dt><code>-d</code>, <code>--direct</code></dt><dd><p>Print the drop's direct link after creation. The direct link is suitable
|
96
|
-
use in places that expect a link to a file like an HTML IMG tag.</p></dd>
|
95
|
+
<dt><code>-d</code>, <code>--direct</code></dt><dd><p>Print the drop's direct link after creation. The direct link is suitable
|
96
|
+
for use in places that expect a link to a file like an HTML IMG tag.</p></dd>
|
97
97
|
<dt><code>-h</code>, <code>--help</code></dt><dd><p>Print a help message describing cloudapp's usage.</p></dd>
|
98
98
|
<dt><code>--[no-]copy</code></dt><dd><p>Copy the new drop's link to the system clipboard. The default option is
|
99
99
|
copy.</p></dd>
|
@@ -117,16 +117,12 @@ Uploading screenshot-2.png... http://cl.ly/image/3P1s3p0c3545
|
|
117
117
|
Uploading screenshot-3.png... http://cl.ly/image/0E3k0h353X0w
|
118
118
|
</code></pre>
|
119
119
|
|
120
|
-
<p>Upload file
|
120
|
+
<p>Upload file paths and URLs from standard input:</p>
|
121
121
|
|
122
122
|
<pre><code>$ ls *.png | cloudapp
|
123
123
|
Uploading screenshot-1.png... http://cl.ly/image/1E1F1k3Q3919
|
124
124
|
Uploading screenshot-2.png... http://cl.ly/image/3P1s3p0c3545
|
125
125
|
Uploading screenshot-3.png... http://cl.ly/image/0E3k0h353X0w
|
126
|
-
|
127
|
-
$ gifme {1,2,3}.png | cloudapp --direct
|
128
|
-
You now have a handsome animation at /Users/Larry/Desktop/animated-2013-01-11_15h-59m-49s.gif
|
129
|
-
Uploading animated-2013-01-11_15h-59m-49s.gif... http://cl.ly/image/373I3q2g1p36
|
130
126
|
</code></pre>
|
131
127
|
|
132
128
|
<p>Bookmark a URL:</p>
|
data/man/cloudapp.1.ronn
CHANGED
@@ -3,7 +3,7 @@ cloudapp(1) -- all the pleasures of cloudapp in a cli
|
|
3
3
|
|
4
4
|
## SYNOPSIS
|
5
5
|
|
6
|
-
`cloudapp [`--direct`] [`--[no-]copy`] <file_or_url
|
6
|
+
`cloudapp` [`--direct`] [`--[no-]copy`] <file_or_url>...
|
7
7
|
|
8
8
|
## DESCRIPTION
|
9
9
|
|
@@ -16,8 +16,8 @@ credentials are stored in `~/.netrc` as defined by `ftp`(1).
|
|
16
16
|
## OPTIONS
|
17
17
|
|
18
18
|
- `-d`, `--direct`:
|
19
|
-
Print the drop's direct link after creation. The direct link is suitable
|
20
|
-
use in places that expect a link to a file like an HTML IMG tag.
|
19
|
+
Print the drop's direct link after creation. The direct link is suitable
|
20
|
+
for use in places that expect a link to a file like an HTML IMG tag.
|
21
21
|
|
22
22
|
- `-h`, `--help`:
|
23
23
|
Print a help message describing cloudapp's usage.
|
@@ -43,17 +43,13 @@ Upload several files:
|
|
43
43
|
Uploading screenshot-2.png... http://cl.ly/image/3P1s3p0c3545
|
44
44
|
Uploading screenshot-3.png... http://cl.ly/image/0E3k0h353X0w
|
45
45
|
|
46
|
-
Upload file
|
46
|
+
Upload file paths and URLs from standard input:
|
47
47
|
|
48
48
|
$ ls *.png | cloudapp
|
49
49
|
Uploading screenshot-1.png... http://cl.ly/image/1E1F1k3Q3919
|
50
50
|
Uploading screenshot-2.png... http://cl.ly/image/3P1s3p0c3545
|
51
51
|
Uploading screenshot-3.png... http://cl.ly/image/0E3k0h353X0w
|
52
52
|
|
53
|
-
$ gifme {1,2,3}.png | cloudapp --direct
|
54
|
-
You now have a handsome animation at /Users/Larry/Desktop/animated-2013-01-11_15h-59m-49s.gif
|
55
|
-
Uploading animated-2013-01-11_15h-59m-49s.gif... http://cl.ly/image/373I3q2g1p36
|
56
|
-
|
57
53
|
Bookmark a URL:
|
58
54
|
|
59
55
|
$ cloudapp http://getcloudapp.com
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Larry Marburger
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: clipboard
|
@@ -192,13 +192,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
segments:
|
194
194
|
- 0
|
195
|
-
hash:
|
195
|
+
hash: 217609111151704735
|
196
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
197
|
none: false
|
198
198
|
requirements:
|
199
|
-
- - ! '
|
199
|
+
- - ! '>='
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: '0'
|
202
202
|
requirements: []
|
203
203
|
rubyforge_project: cloudapp
|
204
204
|
rubygems_version: 1.8.23
|