streamio-cli 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +4 -0
- data/lib/streamio-cli.rb +2 -2
- data/lib/streamio-cli/version.rb +1 -1
- metadata +19 -3
data/HISTORY.md
CHANGED
data/lib/streamio-cli.rb
CHANGED
@@ -51,7 +51,7 @@ module Streamio::CLI
|
|
51
51
|
|
52
52
|
path = FileUtils.mkdir_p("streamio-export/videos/#{video.id}").first
|
53
53
|
progress_bar_title = "Original (#{bytes_to_megabytes(video.original_video['size'])})"
|
54
|
-
File.open("#{path}/#{video.id}.json", "w:utf-8") { |file| file.write(video.attributes
|
54
|
+
File.open("#{path}/#{video.id}.json", "w:utf-8") { |file| file.write(MultiJson.dump(video.attributes)) }
|
55
55
|
download("http://#{video.original_video['http_uri']}", path, progress_bar_title)
|
56
56
|
|
57
57
|
next unless options[:include_transcodings]
|
@@ -76,7 +76,7 @@ module Streamio::CLI
|
|
76
76
|
|
77
77
|
path = FileUtils.mkdir_p("streamio-export/audios/#{audio.id}").first
|
78
78
|
progress_bar_title = "Original (#{bytes_to_megabytes(audio.original_file['size'])})"
|
79
|
-
File.open("#{path}/#{audio.id}.json", "w:utf-8") { |file| file.write(audio.attributes
|
79
|
+
File.open("#{path}/#{audio.id}.json", "w:utf-8") { |file| file.write(MultiJson.dump(audio.attributes)) }
|
80
80
|
download("http://#{audio.original_file['http_uri']}", path, progress_bar_title)
|
81
81
|
end
|
82
82
|
end
|
data/lib/streamio-cli/version.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -59,6 +59,22 @@ dependencies:
|
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.0.2
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: multi_json
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '1.3'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '1.3'
|
62
78
|
- !ruby/object:Gem::Dependency
|
63
79
|
name: rake
|
64
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
151
|
version: '0'
|
136
152
|
segments:
|
137
153
|
- 0
|
138
|
-
hash: -
|
154
|
+
hash: -1390201139928075045
|
139
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
156
|
none: false
|
141
157
|
requirements:
|
@@ -144,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
160
|
version: '0'
|
145
161
|
segments:
|
146
162
|
- 0
|
147
|
-
hash: -
|
163
|
+
hash: -1390201139928075045
|
148
164
|
requirements: []
|
149
165
|
rubyforge_project:
|
150
166
|
rubygems_version: 1.8.24
|