enigmamachine 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/enigmamachine.gemspec +123 -0
- data/lib/enigmamachine.rb +27 -1
- data/test/helper.rb +3 -8
- metadata +4 -4
- data/lib/init.rb +0 -26
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
@@ -0,0 +1,123 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{enigmamachine}
|
8
|
+
s.version = "0.1.3"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["dave"]
|
12
|
+
s.date = %q{2010-07-07}
|
13
|
+
s.default_executable = %q{enigmamachine}
|
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
|
+
s.email = %q{dave@caprica}
|
16
|
+
s.executables = ["enigmamachine"]
|
17
|
+
s.extra_rdoc_files = [
|
18
|
+
"LICENSE",
|
19
|
+
"README.rdoc"
|
20
|
+
]
|
21
|
+
s.files = [
|
22
|
+
".document",
|
23
|
+
".gitignore",
|
24
|
+
"LICENSE",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"bin/enigmamachine",
|
29
|
+
"enigmamachine.gemspec",
|
30
|
+
"lib/enigmamachine.rb",
|
31
|
+
"lib/enigmamachine.sqlite3",
|
32
|
+
"lib/enigmamachine/config.ru",
|
33
|
+
"lib/enigmamachine/encoding_queue.rb",
|
34
|
+
"lib/enigmamachine/models/encoder.rb",
|
35
|
+
"lib/enigmamachine/models/encoding_task.rb",
|
36
|
+
"lib/enigmamachine/models/video.rb",
|
37
|
+
"lib/enigmamachine/public/default.css",
|
38
|
+
"lib/enigmamachine/public/images/Enigma-logo.jpg",
|
39
|
+
"lib/enigmamachine/public/images/bg01.jpg",
|
40
|
+
"lib/enigmamachine/public/images/bg02.jpg",
|
41
|
+
"lib/enigmamachine/public/images/bg03.jpg",
|
42
|
+
"lib/enigmamachine/public/images/bg04.jpg",
|
43
|
+
"lib/enigmamachine/public/images/img02.gif",
|
44
|
+
"lib/enigmamachine/public/images/img03.gif",
|
45
|
+
"lib/enigmamachine/public/images/img04.gif",
|
46
|
+
"lib/enigmamachine/public/images/img05.gif",
|
47
|
+
"lib/enigmamachine/public/images/img06.jpg",
|
48
|
+
"lib/enigmamachine/public/images/spacer.gif",
|
49
|
+
"lib/enigmamachine/views/encoders/edit.erb",
|
50
|
+
"lib/enigmamachine/views/encoders/encoder.erb",
|
51
|
+
"lib/enigmamachine/views/encoders/encoding_task.erb",
|
52
|
+
"lib/enigmamachine/views/encoders/form.erb",
|
53
|
+
"lib/enigmamachine/views/encoders/index.erb",
|
54
|
+
"lib/enigmamachine/views/encoders/new.erb",
|
55
|
+
"lib/enigmamachine/views/encoders/show.erb",
|
56
|
+
"lib/enigmamachine/views/encoding_tasks/edit.erb",
|
57
|
+
"lib/enigmamachine/views/encoding_tasks/form.erb",
|
58
|
+
"lib/enigmamachine/views/encoding_tasks/new.erb",
|
59
|
+
"lib/enigmamachine/views/index.erb",
|
60
|
+
"lib/enigmamachine/views/layout.erb",
|
61
|
+
"lib/enigmamachine/views/videos/form.erb",
|
62
|
+
"lib/enigmamachine/views/videos/index.erb",
|
63
|
+
"lib/enigmamachine/views/videos/new.erb",
|
64
|
+
"lib/enigmamachine/views/videos/video.erb",
|
65
|
+
"lib/ext/array_ext.rb",
|
66
|
+
"lib/ext/partials.rb",
|
67
|
+
"test/helper.rb",
|
68
|
+
"test/support/afile.mpg",
|
69
|
+
"test/support/blueprints.rb",
|
70
|
+
"test/test_encoder.rb",
|
71
|
+
"test/test_encoding_queue.rb",
|
72
|
+
"test/test_enigmamachine.rb",
|
73
|
+
"test/test_video.rb"
|
74
|
+
]
|
75
|
+
s.homepage = %q{http://github.com/futurechimp/enigmamachine}
|
76
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
77
|
+
s.require_paths = ["lib"]
|
78
|
+
s.rubygems_version = %q{1.3.7}
|
79
|
+
s.summary = %q{A RESTful video encoder.}
|
80
|
+
s.test_files = [
|
81
|
+
"test/support/blueprints.rb",
|
82
|
+
"test/test_encoding_queue.rb",
|
83
|
+
"test/helper.rb",
|
84
|
+
"test/test_encoder.rb",
|
85
|
+
"test/test_enigmamachine.rb",
|
86
|
+
"test/test_video.rb"
|
87
|
+
]
|
88
|
+
|
89
|
+
if s.respond_to? :specification_version then
|
90
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
91
|
+
s.specification_version = 3
|
92
|
+
|
93
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
94
|
+
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
95
|
+
s.add_runtime_dependency(%q<data_mapper>, ["= 1.0.0"])
|
96
|
+
s.add_runtime_dependency(%q<eventmachine>, ["= 0.12.10"])
|
97
|
+
s.add_runtime_dependency(%q<dm-sqlite-adapter>, ["= 1.0.0"])
|
98
|
+
s.add_runtime_dependency(%q<rack-flash>, [">= 0"])
|
99
|
+
s.add_runtime_dependency(%q<ruby-debug>, [">= 0"])
|
100
|
+
s.add_runtime_dependency(%q<sinatra>, ["= 1.0.0"])
|
101
|
+
s.add_runtime_dependency(%q<thin>, [">= 0"])
|
102
|
+
else
|
103
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
104
|
+
s.add_dependency(%q<data_mapper>, ["= 1.0.0"])
|
105
|
+
s.add_dependency(%q<eventmachine>, ["= 0.12.10"])
|
106
|
+
s.add_dependency(%q<dm-sqlite-adapter>, ["= 1.0.0"])
|
107
|
+
s.add_dependency(%q<rack-flash>, [">= 0"])
|
108
|
+
s.add_dependency(%q<ruby-debug>, [">= 0"])
|
109
|
+
s.add_dependency(%q<sinatra>, ["= 1.0.0"])
|
110
|
+
s.add_dependency(%q<thin>, [">= 0"])
|
111
|
+
end
|
112
|
+
else
|
113
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
114
|
+
s.add_dependency(%q<data_mapper>, ["= 1.0.0"])
|
115
|
+
s.add_dependency(%q<eventmachine>, ["= 0.12.10"])
|
116
|
+
s.add_dependency(%q<dm-sqlite-adapter>, ["= 1.0.0"])
|
117
|
+
s.add_dependency(%q<rack-flash>, [">= 0"])
|
118
|
+
s.add_dependency(%q<ruby-debug>, [">= 0"])
|
119
|
+
s.add_dependency(%q<sinatra>, ["= 1.0.0"])
|
120
|
+
s.add_dependency(%q<thin>, [">= 0"])
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
data/lib/enigmamachine.rb
CHANGED
@@ -1,4 +1,30 @@
|
|
1
|
-
|
1
|
+
# Gems
|
2
|
+
#
|
3
|
+
require 'rubygems'
|
4
|
+
require 'sinatra/base'
|
5
|
+
require 'data_mapper'
|
6
|
+
require 'ruby-debug'
|
7
|
+
require 'eventmachine'
|
8
|
+
require 'rack-flash'
|
9
|
+
require 'dm-validations'
|
10
|
+
require 'dm-migrations'
|
11
|
+
require 'open3'
|
12
|
+
require 'logger'
|
13
|
+
|
14
|
+
# Extensions to Sinatra
|
15
|
+
#
|
16
|
+
require File.dirname(__FILE__) + '/ext/partials'
|
17
|
+
require File.dirname(__FILE__) + '/ext/array_ext'
|
18
|
+
|
19
|
+
# Enigma code
|
20
|
+
#
|
21
|
+
require File.dirname(__FILE__) + '/enigmamachine'
|
22
|
+
require File.dirname(__FILE__) + '/enigmamachine/models/encoder'
|
23
|
+
require File.dirname(__FILE__) + '/enigmamachine/models/encoding_task'
|
24
|
+
require File.dirname(__FILE__) + '/enigmamachine/models/video'
|
25
|
+
require File.dirname(__FILE__) + '/enigmamachine/encoding_queue'
|
26
|
+
|
27
|
+
|
2
28
|
|
3
29
|
class EnigmaMachine < Sinatra::Base
|
4
30
|
|
data/test/helper.rb
CHANGED
@@ -1,25 +1,20 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'sinatra'
|
2
|
+
require 'sinatra/base'
|
3
3
|
require 'rack/test'
|
4
4
|
require 'base64'
|
5
5
|
require 'machinist/data_mapper'
|
6
6
|
require 'faker'
|
7
7
|
require 'sham'
|
8
|
-
set :environment, :test
|
9
|
-
set :run, false
|
10
|
-
set :raise_errors, true
|
11
|
-
set :logging, false
|
12
|
-
require File.dirname(__FILE__) + '/../lib/init'
|
13
8
|
require File.dirname(__FILE__) + '/../lib/enigmamachine'
|
14
9
|
require File.expand_path(File.dirname(__FILE__) + "/support/blueprints")
|
15
10
|
|
16
11
|
|
12
|
+
ENV['RACK_ENV'] = 'test'
|
17
13
|
|
18
14
|
module TestHelper
|
19
15
|
|
20
16
|
def app
|
21
|
-
|
22
|
-
Sinatra::Application.new
|
17
|
+
EnigmaMachine.new
|
23
18
|
end
|
24
19
|
|
25
20
|
def body
|
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: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- dave
|
@@ -155,6 +155,7 @@ files:
|
|
155
155
|
- Rakefile
|
156
156
|
- VERSION
|
157
157
|
- bin/enigmamachine
|
158
|
+
- enigmamachine.gemspec
|
158
159
|
- lib/enigmamachine.rb
|
159
160
|
- lib/enigmamachine.sqlite3
|
160
161
|
- lib/enigmamachine/config.ru
|
@@ -192,7 +193,6 @@ files:
|
|
192
193
|
- lib/enigmamachine/views/videos/video.erb
|
193
194
|
- lib/ext/array_ext.rb
|
194
195
|
- lib/ext/partials.rb
|
195
|
-
- lib/init.rb
|
196
196
|
- test/helper.rb
|
197
197
|
- test/support/afile.mpg
|
198
198
|
- test/support/blueprints.rb
|
data/lib/init.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# Gems
|
2
|
-
#
|
3
|
-
require 'rubygems'
|
4
|
-
require 'sinatra/base'
|
5
|
-
require 'data_mapper'
|
6
|
-
require 'ruby-debug'
|
7
|
-
require 'eventmachine'
|
8
|
-
require 'rack-flash'
|
9
|
-
require 'dm-validations'
|
10
|
-
require 'dm-migrations'
|
11
|
-
require 'open3'
|
12
|
-
require 'logger'
|
13
|
-
|
14
|
-
# Extensions to Sinatra
|
15
|
-
#
|
16
|
-
require File.dirname(__FILE__) + '/ext/partials'
|
17
|
-
require File.dirname(__FILE__) + '/ext/array_ext'
|
18
|
-
|
19
|
-
# Enigma code
|
20
|
-
#
|
21
|
-
require File.dirname(__FILE__) + '/enigmamachine'
|
22
|
-
require File.dirname(__FILE__) + '/enigmamachine/models/encoder'
|
23
|
-
require File.dirname(__FILE__) + '/enigmamachine/models/encoding_task'
|
24
|
-
require File.dirname(__FILE__) + '/enigmamachine/models/video'
|
25
|
-
require File.dirname(__FILE__) + '/enigmamachine/encoding_queue'
|
26
|
-
|