cloudapp 0.0.9 → 0.0.10
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/Rakefile +7 -1
- data/bin/cloudapp +6 -6
- data/cloudapp.gemspec +1 -1
- data/lib/cloudapp.rb +1 -1
- data/man/cloudapp.1 +28 -1
- data/man/cloudapp.1.html +23 -3
- data/man/cloudapp.1.ronn +20 -3
- metadata +23 -23
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -79,7 +79,7 @@ task :release => :build do
|
|
79
79
|
end
|
80
80
|
|
81
81
|
desc "Build #{gem_file} into the pkg directory"
|
82
|
-
task :build => :gemspec do
|
82
|
+
task :build => [:gemspec, :update_bundle] do
|
83
83
|
sh "mkdir -p pkg"
|
84
84
|
sh "gem build #{gemspec_file}"
|
85
85
|
sh "mv #{gem_file} pkg"
|
@@ -114,6 +114,12 @@ task :gemspec => :validate do
|
|
114
114
|
puts "Updated #{gemspec_file}"
|
115
115
|
end
|
116
116
|
|
117
|
+
desc "Update #{name} in bundle"
|
118
|
+
task :update_bundle => :validate do
|
119
|
+
`bundle update #{name}`
|
120
|
+
puts "Bundled #{name} version #{version}"
|
121
|
+
end
|
122
|
+
|
117
123
|
desc "Validate #{gemspec_file}"
|
118
124
|
task :validate do
|
119
125
|
libfiles = Dir['lib/*'] - ["lib/#{name}.rb", "lib/#{name}"]
|
data/bin/cloudapp
CHANGED
@@ -53,12 +53,12 @@ desc 'CloudApp account password'
|
|
53
53
|
arg_name 'password'
|
54
54
|
flag :password
|
55
55
|
|
56
|
-
desc '
|
56
|
+
desc 'Output format (default: pretty for TTY, csv otherwise)'
|
57
57
|
arg_name 'csv|pretty'
|
58
58
|
flag [:f, :format]
|
59
59
|
|
60
|
-
desc 'Create a bookmark to each URL'
|
61
|
-
arg_name '[url...]'
|
60
|
+
desc 'Create a new bookmark to each URL and print each link'
|
61
|
+
arg_name 'url [url...]'
|
62
62
|
command [:bookmark, :shorten] do |c|
|
63
63
|
c.action do |global_options, options, urls|
|
64
64
|
check_for_credentials global_options
|
@@ -76,8 +76,8 @@ command [:bookmark, :shorten] do |c|
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
desc 'Upload each
|
80
|
-
arg_name '[file...]'
|
79
|
+
desc 'Upload each FILE and print each link'
|
80
|
+
arg_name 'file [file...]'
|
81
81
|
command :upload do |c|
|
82
82
|
c.action do |global_options, options, files|
|
83
83
|
check_for_credentials global_options
|
@@ -95,7 +95,7 @@ command :upload do |c|
|
|
95
95
|
end
|
96
96
|
end
|
97
97
|
|
98
|
-
desc 'List
|
98
|
+
desc 'List the most recent drops'
|
99
99
|
command [:list, :ls] do |c|
|
100
100
|
|
101
101
|
c.desc 'Number of drops to display'
|
data/cloudapp.gemspec
CHANGED
@@ -13,7 +13,7 @@ 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 = '0.0.
|
16
|
+
s.version = '0.0.10'
|
17
17
|
s.date = '2012-02-08'
|
18
18
|
s.rubyforge_project = 'cloudapp'
|
19
19
|
|
data/lib/cloudapp.rb
CHANGED
data/man/cloudapp.1
CHANGED
@@ -9,6 +9,15 @@
|
|
9
9
|
.SH "SYNOPSIS"
|
10
10
|
\fBcloudapp\fR [\fB\-\-email\fR=\fIemail\fR] [\fB\-\-password\fR=\fIpassword\fR] \fIcommand\fR [\fIargs\fR]
|
11
11
|
.
|
12
|
+
.br
|
13
|
+
\fBcloudapp list\fR [\fB\-\-count\fR=\fIcount\fR]
|
14
|
+
.
|
15
|
+
.br
|
16
|
+
\fBcloudapp bookmark\fR \fIurl\fR
|
17
|
+
.
|
18
|
+
.br
|
19
|
+
\fBcloudapp upload\fR \fIfile\fR
|
20
|
+
.
|
12
21
|
.SH "DESCRIPTION"
|
13
22
|
\fBcloudapp\fR is a simple, Unix\-friendly tool for CloudApp meant to augment the Mac and Web apps\. Sometimes it\'s more convenient to share without leaving the terminal and other times it\'s the only tool available\.
|
14
23
|
.
|
@@ -24,7 +33,25 @@ Use \fIpassword\fR for CloudApp account credentials\.
|
|
24
33
|
.
|
25
34
|
.TP
|
26
35
|
\fB\-f\fR \fIformat\fR, \fB\-\-format\fR=\fIformat\fR
|
27
|
-
Output using either \fBpretty\fR or \fBcsv\fR format\. Default
|
36
|
+
Output using either \fBpretty\fR or \fBcsv\fR format\. (Default: \fBpretty\fR when output to a terminal and \fBcsv\fR when output is piped to another program\.)
|
37
|
+
.
|
38
|
+
.TP
|
39
|
+
\fB\-n\fR \fIcount\fR, \fB\-\-count\fR=\fIcount\fR
|
40
|
+
Display \fIcount\fR drops\. (Default: \fB20\fR)
|
41
|
+
.
|
42
|
+
.SH "COMMANDS"
|
43
|
+
.
|
44
|
+
.TP
|
45
|
+
\fBlist\fR [\fB\-\-count\fR=\fIcount\fR]
|
46
|
+
List the most recent \fIcount\fR drops\. The default is to list \fB20\fR drops\.
|
47
|
+
.
|
48
|
+
.TP
|
49
|
+
\fBbookmark\fR \fIurl\fR [\fIurl\fR\.\.\.]
|
50
|
+
Create a new bookmark to each \fIurl\fR and print each link\.
|
51
|
+
.
|
52
|
+
.TP
|
53
|
+
\fBupload\fR \fIfile\fR [\fIfile\fR\.\.\.]
|
54
|
+
Upload each \fIfile\fR and print each link\.
|
28
55
|
.
|
29
56
|
.SH "EXAMPLES"
|
30
57
|
List newest 20 drops:
|
data/man/cloudapp.1.html
CHANGED
@@ -41,6 +41,12 @@
|
|
41
41
|
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
42
42
|
ol.man-decor li.tr {text-align:right;float:right}
|
43
43
|
</style>
|
44
|
+
<style type='text/css' media='all'>
|
45
|
+
/* style: toc */
|
46
|
+
.man-navigation {display:block !important;position:fixed;top:0;left:113ex;height:100%;width:100%;padding:48px 0 0 0;border-left:1px solid #dbdbdb;background:#eee}
|
47
|
+
.man-navigation a,.man-navigation a:hover,.man-navigation a:link,.man-navigation a:visited {display:block;margin:0;padding:5px 2px 5px 30px;color:#999;text-decoration:none}
|
48
|
+
.man-navigation a:hover {color:#111;text-decoration:underline}
|
49
|
+
</style>
|
44
50
|
</head>
|
45
51
|
<!--
|
46
52
|
The following styles are deprecated and will be removed at some point:
|
@@ -57,6 +63,7 @@
|
|
57
63
|
<a href="#SYNOPSIS">SYNOPSIS</a>
|
58
64
|
<a href="#DESCRIPTION">DESCRIPTION</a>
|
59
65
|
<a href="#OPTIONS">OPTIONS</a>
|
66
|
+
<a href="#COMMANDS">COMMANDS</a>
|
60
67
|
<a href="#EXAMPLES">EXAMPLES</a>
|
61
68
|
<a href="#SECURITY-CONSIDERATIONS">SECURITY CONSIDERATIONS</a>
|
62
69
|
<a href="#LICENSE">LICENSE</a>
|
@@ -75,7 +82,10 @@
|
|
75
82
|
|
76
83
|
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
77
84
|
|
78
|
-
<p><code>cloudapp</code> [<code>--email</code>=<var>email</var>] [<code>--password</code>=<var>password</var>] <var>command</var> [<var>args</var>]
|
85
|
+
<p><code>cloudapp</code> [<code>--email</code>=<var>email</var>] [<code>--password</code>=<var>password</var>] <var>command</var> [<var>args</var>]<br />
|
86
|
+
<code>cloudapp list</code> [<code>--count</code>=<var>count</var>]<br />
|
87
|
+
<code>cloudapp bookmark</code> <var>url</var><br />
|
88
|
+
<code>cloudapp upload</code> <var>file</var></p>
|
79
89
|
|
80
90
|
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
81
91
|
|
@@ -88,8 +98,18 @@ terminal and other times it's the only tool available.</p>
|
|
88
98
|
<dl>
|
89
99
|
<dt><code>--email</code>=<var>email</var></dt><dd><p>Use <var>email</var> for CloudApp account credentials.</p></dd>
|
90
100
|
<dt><code>--password</code>=<var>password</var></dt><dd><p>Use <var>password</var> for CloudApp account credentials.</p></dd>
|
91
|
-
<dt><code>-f</code> <var>format</var>, <code>--format</code>=<var>format</var></dt><dd><p>Output using either <strong>pretty</strong> or <strong>csv</strong> format. Default
|
92
|
-
|
101
|
+
<dt><code>-f</code> <var>format</var>, <code>--format</code>=<var>format</var></dt><dd><p>Output using either <strong>pretty</strong> or <strong>csv</strong> format. (Default: <strong>pretty</strong> when
|
102
|
+
output to a terminal and <strong>csv</strong> when output is piped to another program.)</p></dd>
|
103
|
+
<dt><code>-n</code> <var>count</var>, <code>--count</code>=<var>count</var></dt><dd><p>Display <var>count</var> drops. (Default: <strong>20</strong>)</p></dd>
|
104
|
+
</dl>
|
105
|
+
|
106
|
+
|
107
|
+
<h2 id="COMMANDS">COMMANDS</h2>
|
108
|
+
|
109
|
+
<dl>
|
110
|
+
<dt><code>list</code> [<code>--count</code>=<var>count</var>]</dt><dd><p>List the most recent <var>count</var> drops. The default is to list <strong>20</strong> drops.</p></dd>
|
111
|
+
<dt><code>bookmark</code> <var>url</var> [<var>url</var>...]</dt><dd><p>Create a new bookmark to each <var>url</var> and print each link.</p></dd>
|
112
|
+
<dt><code>upload</code> <var>file</var> [<var>file</var>...]</dt><dd><p>Upload each <var>file</var> and print each link.</p></dd>
|
93
113
|
</dl>
|
94
114
|
|
95
115
|
|
data/man/cloudapp.1.ronn
CHANGED
@@ -3,7 +3,10 @@ cloudapp(1) -- All the pleasures of CloudApp now at your terminal
|
|
3
3
|
|
4
4
|
## SYNOPSIS
|
5
5
|
|
6
|
-
`cloudapp` [`--email`=<email>] [`--password`=<password>] <command> [<args>]
|
6
|
+
`cloudapp` [`--email`=<email>] [`--password`=<password>] <command> [<args>]<br>
|
7
|
+
`cloudapp list` [`--count`=<count>]<br>
|
8
|
+
`cloudapp bookmark` <url><br>
|
9
|
+
`cloudapp upload` <file>
|
7
10
|
|
8
11
|
## DESCRIPTION
|
9
12
|
|
@@ -20,8 +23,22 @@ terminal and other times it's the only tool available.
|
|
20
23
|
Use <password> for CloudApp account credentials.
|
21
24
|
|
22
25
|
* `-f` <format>, `--format`=<format>:
|
23
|
-
Output using either **pretty** or **csv** format. Default
|
24
|
-
|
26
|
+
Output using either **pretty** or **csv** format. (Default: **pretty** when
|
27
|
+
output to a terminal and **csv** when output is piped to another program.)
|
28
|
+
|
29
|
+
* `-n` <count>, `--count`=<count>:
|
30
|
+
Display <count> drops. (Default: **20**)
|
31
|
+
|
32
|
+
## COMMANDS
|
33
|
+
|
34
|
+
* `list` [`--count`=<count>]:
|
35
|
+
List the most recent <count> drops. The default is to list **20** drops.
|
36
|
+
|
37
|
+
* `bookmark` <url> [<url>...]:
|
38
|
+
Create a new bookmark to each <url> and print each link.
|
39
|
+
|
40
|
+
* `upload` <file> [<file>...]:
|
41
|
+
Upload each <file> and print each link.
|
25
42
|
|
26
43
|
## EXAMPLES
|
27
44
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|
16
|
-
requirement: &
|
16
|
+
requirement: &70182354377040 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70182354377040
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: faraday
|
27
|
-
requirement: &
|
27
|
+
requirement: &70182354374460 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.8.0.rc2
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70182354374460
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: formatador
|
38
|
-
requirement: &
|
38
|
+
requirement: &70182354373800 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70182354373800
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: gli
|
49
|
-
requirement: &
|
49
|
+
requirement: &70182354373240 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70182354373240
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: leadlight
|
60
|
-
requirement: &
|
60
|
+
requirement: &70182354372560 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70182354372560
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: typhoeus
|
71
|
-
requirement: &
|
71
|
+
requirement: &70182354372100 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70182354372100
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: rake
|
82
|
-
requirement: &
|
82
|
+
requirement: &70182354371680 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,10 +87,10 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70182354371680
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: ronn
|
93
|
-
requirement: &
|
93
|
+
requirement: &70182354371220 !ruby/object:Gem::Requirement
|
94
94
|
none: false
|
95
95
|
requirements:
|
96
96
|
- - ! '>='
|
@@ -98,10 +98,10 @@ dependencies:
|
|
98
98
|
version: '0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
|
-
version_requirements: *
|
101
|
+
version_requirements: *70182354371220
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: rspec
|
104
|
-
requirement: &
|
104
|
+
requirement: &70182354370780 !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ! '>='
|
@@ -109,10 +109,10 @@ dependencies:
|
|
109
109
|
version: '0'
|
110
110
|
type: :development
|
111
111
|
prerelease: false
|
112
|
-
version_requirements: *
|
112
|
+
version_requirements: *70182354370780
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: vcr
|
115
|
-
requirement: &
|
115
|
+
requirement: &70182354370200 !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
118
118
|
- - ~>
|
@@ -120,10 +120,10 @@ dependencies:
|
|
120
120
|
version: 2.0.0.rc1
|
121
121
|
type: :development
|
122
122
|
prerelease: false
|
123
|
-
version_requirements: *
|
123
|
+
version_requirements: *70182354370200
|
124
124
|
- !ruby/object:Gem::Dependency
|
125
125
|
name: webmock
|
126
|
-
requirement: &
|
126
|
+
requirement: &70182354369760 !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
129
129
|
- - ! '>='
|
@@ -131,7 +131,7 @@ dependencies:
|
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
|
-
version_requirements: *
|
134
|
+
version_requirements: *70182354369760
|
135
135
|
description: Experience all the pleasures of sharing with CloudApp now in your terminal.
|
136
136
|
email: larry@marburger.cc
|
137
137
|
executables:
|