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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.7.6 2012-12-04
2
+
3
+ * Replace to_json with MultiJson.dump for ruby 1.8 support.
4
+
1
5
  ## 0.7.5 2012-12-03
2
6
 
3
7
  * Fix audio downloading.
@@ -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.to_json) }
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.to_json) }
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
@@ -1,5 +1,5 @@
1
1
  module Streamio
2
2
  module CLI
3
- VERSION = "0.7.5"
3
+ VERSION = "0.7.6"
4
4
  end
5
5
  end
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.5
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: -4152253763148155726
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: -4152253763148155726
163
+ hash: -1390201139928075045
148
164
  requirements: []
149
165
  rubyforge_project:
150
166
  rubygems_version: 1.8.24