enigmamachine 0.4.2 → 0.4.3

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/.gitignore CHANGED
@@ -13,6 +13,9 @@ tmtags
13
13
  ## VIM
14
14
  *.swp
15
15
 
16
+ ## NetBeans
17
+ nbproject
18
+
16
19
  ## PROJECT::GENERAL
17
20
  coverage
18
21
  rdoc
data/README.rdoc CHANGED
@@ -68,7 +68,7 @@ protected by HTTP basic auth. By default, the username is
68
68
  password in the config.yml file which will be generated on first use.
69
69
 
70
70
  When a video has finished encoding, the main web application might want to know.
71
- The optional video[callback_url] parameter tells enigmamachine to execute a GET
71
+ The optional @video[callback_url]@ parameter tells enigmamachine to execute a GET
72
72
  request to the callback url when video encoding is complete.
73
73
 
74
74
  Programmatic requests in Ruby might look something like this:
@@ -234,3 +234,9 @@ copy of ffmpeg available on your path.
234
234
 
235
235
  Copyright (c) 2010 Dave Hrycyszyn. See LICENSE for details.
236
236
 
237
+ Enigmamachine is a headlabs project. See http://labs.headlondon.com for more.
238
+
239
+ == Contributors
240
+
241
+ Dave Hrycyszyn, Dmitry Brazhkin
242
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{enigmamachine}
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
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"]
12
- s.date = %q{2010-07-21}
12
+ s.date = %q{2010-09-15}
13
13
  s.default_executable = %q{enigmamachine}
14
14
  s.description = %q{A RESTful video encoder which you can use as either a front-end to ffmpeg or headless on a server.}
15
15
  s.email = %q{dave@caprica}
@@ -79,11 +79,11 @@ Gem::Specification.new do |s|
79
79
  s.rubygems_version = %q{1.3.7}
80
80
  s.summary = %q{A RESTful video encoder.}
81
81
  s.test_files = [
82
- "test/support/blueprints.rb",
82
+ "test/helper.rb",
83
+ "test/test_enigmamachine.rb",
84
+ "test/support/blueprints.rb",
83
85
  "test/test_encoding_queue.rb",
84
- "test/helper.rb",
85
86
  "test/test_encoder.rb",
86
- "test/test_enigmamachine.rb",
87
87
  "test/test_video.rb"
88
88
  ]
89
89
 
@@ -8,7 +8,7 @@ class EncodingTask
8
8
  property :id, Serial
9
9
  property :name, String, :required => true, :length => (1..254)
10
10
  property :output_file_suffix, String, :required => true, :length => (1..254)
11
- property :command, String, :required => true, :length => (1..254)
11
+ property :command, String, :required => true, :length => (1..510)
12
12
  property :encoder_id, Integer
13
13
 
14
14
  # Associations
@@ -8,7 +8,7 @@ class Video
8
8
  # Properties
9
9
  #
10
10
  property :id, Serial
11
- property :file, String, :required => true, :length => (1..254)
11
+ property :file, String, :required => true, :length => (1..510)
12
12
  property :state, String, :required => true,
13
13
  :length => (1..10), :default => 'unencoded'
14
14
  property :created_at, DateTime
data/lib/enigmamachine.rb CHANGED
@@ -37,6 +37,7 @@ class EnigmaMachine < Sinatra::Base
37
37
 
38
38
  configure :development do
39
39
  db = "sqlite3:///#{Dir.pwd}/enigmamachine.sqlite3"
40
+ DataMapper::Logger.new(STDOUT, :debug)
40
41
  DataMapper.setup(:default, db)
41
42
  end
42
43
 
@@ -85,6 +86,7 @@ class EnigmaMachine < Sinatra::Base
85
86
  #
86
87
  use Rack::Session::Cookie
87
88
  use Rack::Flash
89
+ use Rack::MethodOverride
88
90
 
89
91
  # Starts the enigma encoding thread. The thread will be reabsorbed into the
90
92
  # main Sinatra/thin thread once the periodic timer is added.
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dave Hrycyszyn
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-21 00:00:00 +01:00
18
+ date: 2010-09-15 00:00:00 +01:00
19
19
  default_executable: enigmamachine
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -236,9 +236,9 @@ signing_key:
236
236
  specification_version: 3
237
237
  summary: A RESTful video encoder.
238
238
  test_files:
239
+ - test/helper.rb
240
+ - test/test_enigmamachine.rb
239
241
  - test/support/blueprints.rb
240
242
  - test/test_encoding_queue.rb
241
- - test/helper.rb
242
243
  - test/test_encoder.rb
243
- - test/test_enigmamachine.rb
244
244
  - test/test_video.rb