rubiojr-iorb 0.2.20090421102937 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/History.txt +7 -0
  2. data/README.txt +9 -4
  3. data/bin/iorb +11 -2
  4. data/iorb.gemspec +1 -1
  5. data/lib/iorb.rb +1 -1
  6. metadata +1 -1
@@ -2,3 +2,10 @@
2
2
 
3
3
  * Initial Release
4
4
 
5
+ === 0.3 / 2009-04-21
6
+
7
+ * Initial public release
8
+ * create/destroy drops
9
+ * list drop assets
10
+ * add files to drops
11
+
data/README.txt CHANGED
@@ -1,20 +1,25 @@
1
1
  = iorb
2
2
 
3
- * http://github.com/rubiojr/iorb
3
+ * http://rubiojr.github.com/
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
7
  http://drop.io CLI interface
8
8
 
9
+ You will need a drop.io API key. Get it at http://api.drop.io
10
+
9
11
  == FEATURES/PROBLEMS:
10
12
 
11
13
  * Many things not yet implemented
12
14
 
13
15
  == SYNOPSIS:
14
16
 
15
- iorb --drop-name foodrop --create file1 [file2] [file3]...
16
-
17
- iorb -h prints help
17
+ iorb --create [drop_name]
18
+ iorb --drop-name <drop_name> --add-files file1 file2 ...
19
+ iorb --list <drop_name>
20
+ iorb --destroy <drop_name>
21
+ ...
22
+ iorb -h
18
23
 
19
24
  == REQUIREMENTS:
20
25
 
data/bin/iorb CHANGED
@@ -154,10 +154,19 @@ elsif Choice.choices.add_files
154
154
  drop_name = Choice.choices.drop_name
155
155
  if drop_name
156
156
  drop_details = IORB::DropManager.find(drop_name)
157
- if drop_details.nil?
158
- $stderr.puts "Drop #{drop_name} not found in config."
157
+ if drop_details.nil? or drop_details['admin-token'].nil?
158
+ $stderr.puts "Drop #{drop_name} not found in config or admin-token invalid."
159
159
  exit 1
160
160
  end
161
+ drop = Drop.find(drop_name, drop_details['admin-token'])
162
+ Choice.choices.add_files.each do |f|
163
+ if File.exist?(f)
164
+ drop.add_file(f)
165
+ puts "File #{f} added."
166
+ else
167
+ $stderr.puts "File #{f} not found, skipping."
168
+ end
169
+ end
161
170
  else
162
171
  options = {
163
172
  :expiration_length => Choice.choices.expiration_length,
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{iorb}
3
- s.version = "0.2.20090421102937"
3
+ s.version = "0.3"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Sergio RubioSergio Rubio"]
@@ -1,7 +1,7 @@
1
1
  require 'highline/import'
2
2
 
3
3
  module IORB
4
- VERSION = "0.2.20090421104931"
4
+ VERSION = "0.3"
5
5
  module Util
6
6
  # Code stolen from:
7
7
  # http://evan.tiggerpalace.com/2008/04/26/pastie-from-the-mac-clipboard/
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubiojr-iorb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.20090421102937
4
+ version: "0.3"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio RubioSergio Rubio