cliaws 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/bin/clis3 +11 -4
  3. data/lib/cliaws/version.rb +1 -1
  4. metadata +2 -2
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 1.2.3 2008-09-15
2
+
3
+ * clis3 put with one local argument was putting in a named folder on S3.
4
+
1
5
  == 1.2.2 2008-08-25
2
6
 
3
7
  * clis3 put was rewritten to work correctly with --data, stdin and multiple files.
data/bin/clis3 CHANGED
@@ -79,11 +79,18 @@ Main {
79
79
  source = STDIN
80
80
  else
81
81
  targets = paths.map {|filename| filename.to_s}
82
- targets.each do |local_file|
82
+ case targets.length
83
+ when 1
83
84
  File.open(local_file, "rb") do |source|
84
- remote_file = File.join(s3_object, File.basename(local_file))
85
- puts "%-30s => %s" % [local_file, remote_file]
86
- Cliaws.s3.put(source, remote_file)
85
+ Cliaws.s3.put(source, s3_object)
86
+ end
87
+ else
88
+ targets.each do |local_file|
89
+ File.open(local_file, "rb") do |source|
90
+ remote_file = File.join(s3_object, File.basename(local_file))
91
+ puts "%-30s => %s" % [local_file, remote_file]
92
+ Cliaws.s3.put(source, remote_file)
93
+ end
87
94
  end
88
95
  end
89
96
 
@@ -2,7 +2,7 @@ module Cliaws #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cliaws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Fran\xC3\xA7ois Beausoleil"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-25 00:00:00 -04:00
12
+ date: 2008-09-15 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency