ompload 1.0.0 → 1.0.1

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/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ # 1.0.1
2
+ pick bffc337 Version bump.
3
+ pick 9e0d8d6 Better README and usage.
4
+ pick 06ff5d3 Update github username.
5
+ # 1.0.0
6
+ Initial release.
data/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # ompload
2
+
3
+ CLI to upload files to [omploader](http://ompldr.org).
4
+
5
+ ## Dependencies
6
+ `ompload` requires a copy of [cURL](http://curl.haxx.se) in the PATH, and will
7
+ automatically copy the list of URLs to the X11 clipboard if
8
+ [xclip](http://sourceforge.net/projects/xclip) is available in your PATH.
9
+
10
+ ## Install
11
+ $ gem install ompload
12
+
13
+ ## Usage
14
+ $ ompload [-h|--help] [options] [file(s)]
15
+ -q, --quiet Only output errors and warnings
16
+ -u, --url Only output URLs
17
+ -f, --filename File name on omploader for when piping data via stdin
18
+ -n, --no-clip Disable copying of the URL to the clipboard
19
+
20
+ You can supply a list of files or data via stdin (or both)
21
+
22
+ ### Omploading regular files
23
+ $ ompload foo bar baz
24
+
25
+ ### Omploading data from stdin and giving it a name on [omploader](http://ompldr.org)
26
+ $ echo 'qux' | ompload -f qux
27
+
28
+ ## Author
29
+ [Murilo Pereira](http://murilopereira.com)
30
+
31
+ ## License
32
+ Distributed under the terms of the GNU General Public License v3
33
+
34
+ ## [Original project](http://git.omp.am/?p=omploader.git;a=blob;f=ompload;hb=HEAD)
35
+ Copyright 2007-2009 David Shakaryan <omp@gentoo.org>
36
+ Copyright 2007-2009 Brenden Matthews <brenden@diddyinc.com>
37
+ Distributed under the terms of the GNU General Public License v3
38
+ Special thanks to Christoph for a patch.
data/lib/ompload.rb CHANGED
@@ -55,24 +55,17 @@ module Omploader
55
55
  end
56
56
 
57
57
  module Ompload
58
- VERSION = '1.0.0'
58
+ VERSION = '1.0.1'
59
59
  MAX_FILE_SIZE = 2**32
60
60
 
61
61
  USAGE = <<-USAGE.gsub(/^ /, '')
62
- Usage: ompload [-h|--help] [options] [file(s)]
62
+ Usage: ompload [-h|--help] [options] [file(s)]
63
63
  -q, --quiet Only output errors and warnings
64
- -u, --url Only output URL when finished
65
- -f, --filename Filename to use when posting data
66
- from stdin
67
- -n, --no-clip Disable copying of URL to clipboard
68
- (this feature uses the xclip tool)
64
+ -u, --url Only output URLs
65
+ -f, --filename File name on omploader for when piping data via stdin
66
+ -n, --no-clip Disable copying of the URL to the clipboard
69
67
 
70
68
  You can supply a list of files or data via stdin (or both)
71
-
72
- This script requires a copy of cURL in the path,
73
- and will automatically copy the list of URLs to.
74
- the X11 clipboard if the `xclip' program is
75
- available in your PATH.
76
69
  USAGE
77
70
 
78
71
  class ThrottledError < StandardError; end
data/ompload.gemspec CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.author = 'Murilo Pereira'
8
8
  s.email = 'murilo@murilopereira.com'
9
- s.homepage = 'https://github.com/murilasso/ompload'
9
+ s.homepage = 'https://github.com/mpereira/ompload'
10
10
  s.summary = 'Upload files to omploader.'
11
11
 
12
12
  s.required_rubygems_version = '>= 1.3.6'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: ompload
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.0
5
+ version: 1.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Murilo Pereira
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-06 00:00:00 -03:00
13
+ date: 2011-05-26 00:00:00 -03:00
14
14
  default_executable:
15
15
  dependencies: []
16
16
 
@@ -24,14 +24,14 @@ extra_rdoc_files: []
24
24
 
25
25
  files:
26
26
  - .gitignore
27
- - CHANGELOG.org
27
+ - CHANGELOG.md
28
28
  - LICENSE
29
- - README.org
29
+ - README.md
30
30
  - bin/ompload
31
31
  - lib/ompload.rb
32
32
  - ompload.gemspec
33
33
  has_rdoc: true
34
- homepage: https://github.com/murilasso/ompload
34
+ homepage: https://github.com/mpereira/ompload
35
35
  licenses: []
36
36
 
37
37
  post_install_message:
data/CHANGELOG.org DELETED
@@ -1,4 +0,0 @@
1
- * 1.0.0
2
- #+BEGIN_SRC
3
- Initial release.
4
- #+END_SRC
data/README.org DELETED
@@ -1,13 +0,0 @@
1
- * ompload
2
- Upload files to [[http://ompldr.org/][omploader]].
3
- ** Author
4
- [[http://murilopereira.com][Murilo Pereira]]
5
- ** License
6
- Distributed under the terms of the GNU General Public License v3
7
- ** [[http://git.omp.am/?p=omploader.git;a=blob;f=ompload;hb=HEAD][Original project]]
8
- #+BEGIN_SRC
9
- Copyright 2007-2009 David Shakaryan <omp@gentoo.org>
10
- Copyright 2007-2009 Brenden Matthews <brenden@diddyinc.com>
11
- Distributed under the terms of the GNU General Public License v3
12
- Special thanks to Christoph for a patch.
13
- #+END_SRC