zencodable 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +13 -7
- data/lib/zencodable/version.rb +1 -1
- data/test/debug.log +1 -4706
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +17 -11
- data/test/dummy/log/test.log +0 -42
- data/test/dummy/tmp/db/migrate/20120208012439_zencodable_add_tracking_columns_and_tables.rb +26 -0
- metadata +20 -20
- data/test/dummy/tmp/db/migrate/20111202054112_create_encoded_kitteh_vids.rb +0 -17
Binary file
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,22 +1,28 @@
|
|
1
1
|
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
2
|
-
[1m[35m (
|
2
|
+
[1m[35m (133.3ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3
3
|
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
4
|
-
[1m[35m (
|
4
|
+
[1m[35m (63.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
5
|
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6
6
|
Migrating to CreateDummyVideos (20111130180309)
|
7
|
-
[1m[35m (0.
|
8
|
-
[1m[36m (0.
|
7
|
+
[1m[35m (0.5ms)[0m CREATE TABLE "videos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
|
8
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111130180309')[0m
|
9
9
|
Migrating to CreateVideoFiles (20111130192331)
|
10
|
-
[1m[35m (0.
|
10
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "video_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url" varchar(255), "format" varchar(255), "zencoder_file_id" integer, "video_id" integer, "created_at" datetime, "updated_at" datetime, "duration_sec" integer, "width" integer, "height" integer, "file_size" integer, "error_message" varchar(255), "state" varchar(255))
|
11
11
|
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111130192331')[0m
|
12
12
|
Migrating to CreateVideoThumbnails (20111130193231)
|
13
13
|
[1m[35m (1.0ms)[0m CREATE TABLE "video_thumbnails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "thumbnail_file_name" varchar(255), "thumbnail_content_type" varchar(255), "thumbnail_file_size" integer, "thumbnail_updated_at" datetime, "video_id" integer, "created_at" datetime, "updated_at" datetime)
|
14
|
-
[1m[36m (0.
|
14
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111130193231')[0m
|
15
15
|
Migrating to RenameVideoThumbnails (20111201135457)
|
16
16
|
[1m[35m (1.1ms)[0m ALTER TABLE "video_thumbnails" RENAME TO "video_file_thumbnails"
|
17
17
|
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111201135457')[0m
|
18
|
-
|
19
|
-
[1m[
|
20
|
-
[1m[
|
21
|
-
[1m[
|
22
|
-
[1m[
|
18
|
+
Migrating to AddZencoderJobTrackingColumns (20111202212901)
|
19
|
+
[1m[35m (1.1ms)[0m ALTER TABLE "videos" ADD "origin_url" varchar(255)
|
20
|
+
[1m[36m (0.5ms)[0m [1mALTER TABLE "videos" ADD "zencoder_job_status" varchar(255)[0m
|
21
|
+
[1m[35m (0.5ms)[0m ALTER TABLE "videos" ADD "zencoder_job_created" datetime
|
22
|
+
[1m[36m (0.6ms)[0m [1mALTER TABLE "videos" ADD "zencoder_job_finished" datetime[0m
|
23
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111202212901')
|
24
|
+
[1m[36m (0.8ms)[0m [1mselect sqlite_version(*)[0m
|
25
|
+
[1m[35m (0.3ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
26
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("video_file_thumbnails")[0m
|
27
|
+
[1m[35m (0.1ms)[0m PRAGMA index_list("video_files")
|
28
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("videos")[0m
|
data/test/dummy/log/test.log
CHANGED
@@ -1,42 +0,0 @@
|
|
1
|
-
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
2
|
-
[1m[35m (133.0ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
3
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
4
|
-
[1m[35m (60.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
5
|
-
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
6
|
-
Migrating to CreateDummyVideos (20111130180309)
|
7
|
-
[1m[35m (0.6ms)[0m CREATE TABLE "videos" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "origin_url" varchar(255), "zencoder_job_id" varchar(255), "zencoder_job_status" varchar(255), "zencoder_job_created" datetime, "zencoder_job_finished" datetime, "created_at" datetime, "updated_at" datetime)
|
8
|
-
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111130180309')[0m
|
9
|
-
Migrating to CreateVideoFiles (20111130192331)
|
10
|
-
[1m[35m (0.9ms)[0m CREATE TABLE "video_files" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url" varchar(255), "format" varchar(255), "zencoder_file_id" integer, "video_id" integer, "created_at" datetime, "updated_at" datetime, "duration_sec" integer, "width" integer, "height" integer, "file_size" integer, "error_message" varchar(255), "state" varchar(255))
|
11
|
-
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111130192331')[0m
|
12
|
-
Migrating to CreateVideoThumbnails (20111130193231)
|
13
|
-
[1m[35m (1.0ms)[0m CREATE TABLE "video_thumbnails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "thumbnail_file_name" varchar(255), "thumbnail_content_type" varchar(255), "thumbnail_file_size" integer, "thumbnail_updated_at" datetime, "video_id" integer, "created_at" datetime, "updated_at" datetime)
|
14
|
-
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20111130193231')[0m
|
15
|
-
[1m[35m (0.8ms)[0m select sqlite_version(*)
|
16
|
-
[1m[36m (0.3ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
17
|
-
[1m[35m (0.1ms)[0m PRAGMA index_list("video_files")
|
18
|
-
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("video_thumbnails")[0m
|
19
|
-
[1m[35m (0.2ms)[0m PRAGMA index_list("videos")
|
20
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
21
|
-
Migrating to CreateDummyVideos (20111130180309)
|
22
|
-
Migrating to CreateVideoFiles (20111130192331)
|
23
|
-
Migrating to CreateVideoThumbnails (20111130193231)
|
24
|
-
Migrating to RenameVideoThumbnails (20111201135457)
|
25
|
-
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
26
|
-
[1m[36m (0.7ms)[0m [1mALTER TABLE "video_thumbnails" RENAME TO "video_file_thumbnails"[0m
|
27
|
-
[1m[35m (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ('20111201135457')
|
28
|
-
[1m[36m (0.5ms)[0m [1mselect sqlite_version(*)[0m
|
29
|
-
[1m[35m (0.2ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
30
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("video_file_thumbnails")[0m
|
31
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("video_files")
|
32
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("videos")[0m
|
33
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
34
|
-
Migrating to CreateDummyVideos (20111130180309)
|
35
|
-
Migrating to CreateVideoFiles (20111130192331)
|
36
|
-
Migrating to CreateVideoThumbnails (20111130193231)
|
37
|
-
Migrating to RenameVideoThumbnails (20111201135457)
|
38
|
-
[1m[35m (0.4ms)[0m select sqlite_version(*)
|
39
|
-
[1m[36m (0.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
40
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("video_file_thumbnails")
|
41
|
-
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("video_files")[0m
|
42
|
-
[1m[35m (0.0ms)[0m PRAGMA index_list("videos")
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class ZencodableAddTrackingColumnsAndTables < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
add_column :kitteh_movies, :origin_url, :string
|
4
|
+
add_column :kitteh_movies, :zencoder_job_id, :string
|
5
|
+
add_column :kitteh_movies, :zencoder_job_status, :string
|
6
|
+
add_column :kitteh_movies, :zencoder_job_created, :datetime
|
7
|
+
add_column :kitteh_movies, :zencoder_job_finished, :datetime
|
8
|
+
|
9
|
+
create_table "encoded_kitteh_vids" do |t|
|
10
|
+
t.string "url"
|
11
|
+
t.string "format"
|
12
|
+
t.integer "zencoder_file_id"
|
13
|
+
t.integer "kitteh_movie_id"
|
14
|
+
t.datetime "created_at"
|
15
|
+
t.integer "width"
|
16
|
+
t.integer "height"
|
17
|
+
t.integer "file_size"
|
18
|
+
t.string "error_message"
|
19
|
+
t.string "state"
|
20
|
+
t.integer "duration_sec"
|
21
|
+
t.timestamps
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zencodable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-02-08 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &18793500 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *18793500
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: aws-s3
|
27
|
-
requirement: &
|
27
|
+
requirement: &18792800 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *18792800
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: zencoder
|
38
|
-
requirement: &
|
38
|
+
requirement: &18792060 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *18792060
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: typhoeus
|
49
|
-
requirement: &
|
49
|
+
requirement: &18791200 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *18791200
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: sqlite3
|
60
|
-
requirement: &
|
60
|
+
requirement: &18790400 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *18790400
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mocha
|
71
|
-
requirement: &
|
71
|
+
requirement: &18789980 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,10 +76,10 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *18789980
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
81
|
name: factory_girl
|
82
|
-
requirement: &
|
82
|
+
requirement: &18789560 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ! '>='
|
@@ -87,7 +87,7 @@ dependencies:
|
|
87
87
|
version: '0'
|
88
88
|
type: :development
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *18789560
|
91
91
|
description: provides a `has_video_encodings` class method to your models that allows
|
92
92
|
you to configure and set up any Zencoder settings you will need to create multiple
|
93
93
|
output video container formats (mp4, ogg, wmv, etc) from a single uploaded source
|
@@ -150,7 +150,7 @@ files:
|
|
150
150
|
- test/dummy/log/development.log
|
151
151
|
- test/dummy/script/rails
|
152
152
|
- test/dummy/config.ru
|
153
|
-
- test/dummy/tmp/db/migrate/
|
153
|
+
- test/dummy/tmp/db/migrate/20120208012439_zencodable_add_tracking_columns_and_tables.rb
|
154
154
|
- test/test_helper.rb
|
155
155
|
- test/zencodable_test.rb
|
156
156
|
homepage: https://github.com/sbeam/zencodable
|
@@ -222,6 +222,6 @@ test_files:
|
|
222
222
|
- test/dummy/log/development.log
|
223
223
|
- test/dummy/script/rails
|
224
224
|
- test/dummy/config.ru
|
225
|
-
- test/dummy/tmp/db/migrate/
|
225
|
+
- test/dummy/tmp/db/migrate/20120208012439_zencodable_add_tracking_columns_and_tables.rb
|
226
226
|
- test/test_helper.rb
|
227
227
|
- test/zencodable_test.rb
|
@@ -1,17 +0,0 @@
|
|
1
|
-
class CreateZencodableOutputFilesAssociationTable < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
create_table "encoded_kitteh_vids" do |t|
|
4
|
-
t.string "url"
|
5
|
-
t.string "format"
|
6
|
-
t.integer "zencoder_file_id"
|
7
|
-
t.integer "kitteh_movie_id"
|
8
|
-
t.datetime "created_at"
|
9
|
-
t.integer "width"
|
10
|
-
t.integer "height"
|
11
|
-
t.integer "file_size"
|
12
|
-
t.string "error_message"
|
13
|
-
t.string "state"
|
14
|
-
t.timestamps
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|