enigmamachine 0.6.1 → 0.6.2
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/VERSION +1 -1
- data/enigmamachine.gemspec +1 -1
- data/lib/enigmamachine/download_queue.rb +0 -1
- data/lib/enigmamachine/models/video.rb +0 -2
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/enigmamachine.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{enigmamachine}
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Dave Hrycyszyn", "Dmitry Brazhkin"]
|
@@ -19,7 +19,6 @@ class DownloadQueue
|
|
19
19
|
if Video.waiting_for_download.count > 0 && Video.downloading.count == 0
|
20
20
|
video = Video.waiting_for_download.first
|
21
21
|
begin
|
22
|
-
puts "downloading video #{video.id}"
|
23
22
|
video.download!
|
24
23
|
rescue Exception => ex
|
25
24
|
# don't do anything just yet, until we set up logging properly.
|
@@ -132,7 +132,6 @@ class Video
|
|
132
132
|
|
133
133
|
def self.reset_downloading_videos
|
134
134
|
Video.downloading.each do |video|
|
135
|
-
puts "resetting video #{video.id}"
|
136
135
|
video.reset_download!
|
137
136
|
end
|
138
137
|
end
|
@@ -226,7 +225,6 @@ class Video
|
|
226
225
|
http = EventMachine::HttpRequest.new(file).get :timeout => 10
|
227
226
|
|
228
227
|
http.stream do |data|
|
229
|
-
puts "what is status?: " + http.response_header.status.to_s
|
230
228
|
File.open(file_to_encode, 'a') {|f| f.write(data) }
|
231
229
|
end
|
232
230
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enigmamachine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 3
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 2
|
10
|
+
version: 0.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dave Hrycyszyn
|