s3cp 1.1.25 → 1.1.26

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/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.1.26 (2013-03-21)
2
+
3
+ * Fixed: Prevent crash if $terminal.output_rows can't be determined in s3ls/s3tree.
4
+ Depending on the platform, a warning such as: "stty: standard input:
5
+ Inappropriate ioctl for device" may be displayed instead.
6
+
1
7
  === 1.1.25 (2013-03-19)
2
8
 
3
9
  * Changed: Don't display progress bar during upload to S3 unless $stdout.isatty
data/lib/s3cp/s3ls.rb CHANGED
@@ -20,7 +20,7 @@ require 's3cp/utils'
20
20
  # Parse arguments
21
21
  options = {}
22
22
  options[:date_format] = ENV['S3CP_DATE_FORMAT'] || '%x %X'
23
- options[:rows_per_page] = ($terminal.output_rows - 1) if $stdout.isatty
23
+ options[:rows_per_page] = ($terminal.output_rows - 1) if $stdout.isatty rescue nil
24
24
  options[:precision] = 0
25
25
 
26
26
  op = OptionParser.new do |opts|
data/lib/s3cp/s3tree.rb CHANGED
@@ -19,7 +19,7 @@ require 's3cp/utils'
19
19
 
20
20
  # Parse arguments
21
21
  options = {}
22
- options[:rows_per_page] = ($terminal.output_rows - 1) if $stdout.isatty
22
+ options[:rows_per_page] = ($terminal.output_rows - 1) if $stdout.isatty rescue nil
23
23
  options[:delimiter] = ENV["S3CP_DELIMITER"] || "/"
24
24
  options[:max_depth] = 9999999
25
25
 
data/lib/s3cp/version.rb CHANGED
@@ -16,5 +16,5 @@
16
16
  # the License.
17
17
 
18
18
  module S3CP
19
- VERSION = "1.1.25"
19
+ VERSION = "1.1.26"
20
20
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3cp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 33
4
+ hash: 39
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 25
10
- version: 1.1.25
9
+ - 26
10
+ version: 1.1.26
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Boisvert
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-03-19 00:00:00 Z
18
+ date: 2013-03-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement