streamio-cli 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -0,0 +1,7 @@
1
+ ## 0.6.0 2012-11-07
2
+
3
+ * Fix writing to binary file on Windows
4
+
5
+ ## 0.5.0 2012-11-07
6
+
7
+ * Initial release
data/README.md CHANGED
@@ -9,7 +9,7 @@ A gem for interacting with Streamio through the command line.
9
9
  ## Usage
10
10
 
11
11
  After installation you can use the streamio command from your
12
- terminal. To get a list of available tasks run `streamio` without
12
+ command line. To get a list of available tasks run `streamio` without
13
13
  any arguments.
14
14
 
15
15
  To get help on a specific task run `streamio help name_of_task`.
@@ -19,7 +19,7 @@ and available options for the export task.
19
19
  ### Export
20
20
 
21
21
  You can use the export task to download all videos and audios
22
- from your Streamio account. First use your terminal to navigate
22
+ from your Streamio account. First use your command line to navigate
23
23
  to a directory where you wish the export to be downloaded to.
24
24
  Then use the command together with your api username and password
25
25
  found under Account Settings > API when logged in to streamio.com.
@@ -42,5 +42,10 @@ be availible:
42
42
  streamio-export/videos/<video_id>/<video_id>.json
43
43
  streamio-export/videos/<audio_id>/<audio_id>.json
44
44
 
45
+ The export is idempotent - meaning that if you run it multiple
46
+ times from the same directory it will not re-download already
47
+ downloaded files. So don't worry about interupting the download
48
+ process to continue another time.
49
+
45
50
  Note that it is likely that you will need a developer to actually
46
51
  make use of the exported material.
@@ -1,5 +1,5 @@
1
1
  module Streamio
2
2
  module CLI
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
data/lib/streamio-cli.rb CHANGED
@@ -103,7 +103,7 @@ module Streamio::CLI
103
103
  waiting_for_speed_test = true
104
104
  start_time = nil
105
105
  http.request_get(uri.path) do |response|
106
- File.open(filename, "w:binary") do |file|
106
+ File.open(filename, "wb") do |file|
107
107
  response.read_body do |data|
108
108
  progress_bar.progress += data.length
109
109
  file << data
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamio-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: -2975853809125404003
106
+ hash: -4078630850951257756
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: -2975853809125404003
115
+ hash: -4078630850951257756
116
116
  requirements: []
117
117
  rubyforge_project:
118
118
  rubygems_version: 1.8.24