Merge branch 'release/0.4.3'

This commit is contained in:
Pierre Rudloff 2015-12-09 10:50:31 +01:00
commit cda6b27d37
9 changed files with 113 additions and 30 deletions

1
.dockerignore Symbolic link
View file

@ -0,0 +1 @@
.gitignore

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM php:apache
RUN apt-get update
RUN apt-get install -y libicu-dev xz-utils git zlib1g-dev python npm nodejs-legacy
RUN docker-php-ext-install mbstring
RUN docker-php-ext-install intl
RUN docker-php-ext-install zip
RUN npm install -g bower grunt-cli
RUN a2enmod rewrite
COPY php.ini /usr/local/etc/php/
COPY . /var/www/html/
RUN curl -sS https://getcomposer.org/installer | php
RUN php composer.phar install
RUN npm install
RUN bower --allow-root install
RUN grunt

View file

@ -51,7 +51,7 @@ module.exports = function (grunt) {
options: { options: {
archive: 'alltube-release.zip' archive: 'alltube-release.zip'
}, },
src: ['*.php', '!config.yml', 'dist/**', 'fonts/**', '.htaccess', 'img/**', 'js/**', 'LICENSE', 'README.md', 'robots.txt', 'sitemap.xml', 'templates/**', 'templates_c/', 'vendor/**', 'classes/**', 'controllers/**', 'bower_components/**'] src: ['*.php', '!config.yml', 'dist/**', 'fonts/**', '.htaccess', 'img/**', 'js/**', 'LICENSE', 'README.md', 'robots.txt', 'sitemap.xml', 'templates/**', 'templates_c/', 'vendor/**', 'classes/**', 'controllers/**', 'bower_components/**', '!vendor/ffmpeg/**', '!vendor/bin/ffmpeg']
} }
} }
} }

View file

@ -6,15 +6,15 @@
"type": "project", "type": "project",
"require": { "require": {
"smarty/smarty": "~3.1", "smarty/smarty": "~3.1",
"rg3/youtube-dl": "~2015.11.13", "rg3/youtube-dl": "2015.12.06",
"slim/slim": "~2.6.2", "slim/slim": "~2.6.2",
"slim/views": "~0.1.3", "slim/views": "~0.1.3",
"rudloff/smarty-plugin-noscheme": "~0.1.0", "rudloff/smarty-plugin-noscheme": "~0.1.0",
"symfony/yaml": "~2.7.6", "symfony/yaml": "~3.0.0",
"ffmpeg/ffmpeg": "~2.8.2" "ffmpeg/ffmpeg": "~2.8.2"
}, },
"require-dev": { "require-dev": {
"symfony/var-dumper": "~2.7.6" "symfony/var-dumper": "~3.0.0"
}, },
"extra": { "extra": {
"paas": { "paas": {
@ -28,11 +28,11 @@
"type": "package", "type": "package",
"package": { "package": {
"name": "rg3/youtube-dl", "name": "rg3/youtube-dl",
"version": "2015.11.13", "version": "2015.12.06",
"source": { "source": {
"url": "https://github.com/rg3/youtube-dl.git", "url": "https://github.com/rg3/youtube-dl.git",
"type": "git", "type": "git",
"reference": "2015.11.13" "reference": "2015.12.06"
} }
} }
}, },

110
composer.lock generated
View file

@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"hash": "a4d07c0b568b699f11966a06bb02c01a", "hash": "c7b053d687208446a7f7456623d6e888",
"content-hash": "d44f2b04ee42d003e6c04dbde30106c5", "content-hash": "2ed45cb5e9f8cb491d41f4272a543c5c",
"packages": [ "packages": [
{ {
"name": "ffmpeg/ffmpeg", "name": "ffmpeg/ffmpeg",
@ -199,11 +199,11 @@
}, },
{ {
"name": "rg3/youtube-dl", "name": "rg3/youtube-dl",
"version": "2015.11.13", "version": "2015.12.06",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/rg3/youtube-dl.git", "url": "https://github.com/rg3/youtube-dl.git",
"reference": "2015.11.13" "reference": "2015.12.06"
}, },
"type": "library" "type": "library"
}, },
@ -399,31 +399,34 @@
}, },
{ {
"name": "symfony/yaml", "name": "symfony/yaml",
"version": "v2.7.6", "version": "v3.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/yaml.git", "url": "https://github.com/symfony/yaml.git",
"reference": "eca9019c88fbe250164affd107bc8057771f3f4d" "reference": "177a015cb0e19ff4a49e0e2e2c5fc1c1bee07002"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/eca9019c88fbe250164affd107bc8057771f3f4d", "url": "https://api.github.com/repos/symfony/yaml/zipball/177a015cb0e19ff4a49e0e2e2c5fc1c1bee07002",
"reference": "eca9019c88fbe250164affd107bc8057771f3f4d", "reference": "177a015cb0e19ff4a49e0e2e2c5fc1c1bee07002",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.9" "php": ">=5.5.9"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.7-dev" "dev-master": "3.0-dev"
} }
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Symfony\\Component\\Yaml\\": "" "Symfony\\Component\\Yaml\\": ""
} },
"exclude-from-classmap": [
"/Tests/"
]
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": [ "license": [
@ -441,26 +444,86 @@
], ],
"description": "Symfony Yaml Component", "description": "Symfony Yaml Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2015-10-11 09:39:48" "time": "2015-11-30 12:36:17"
} }
], ],
"packages-dev": [ "packages-dev": [
{ {
"name": "symfony/var-dumper", "name": "symfony/polyfill-mbstring",
"version": "v2.7.6", "version": "v1.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/var-dumper.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "eb033050050916b6bfa51be71009ef67b16046c9" "reference": "0b6a8940385311a24e060ec1fe35680e17c74497"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/eb033050050916b6bfa51be71009ef67b16046c9", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0b6a8940385311a24e060ec1fe35680e17c74497",
"reference": "eb033050050916b6bfa51be71009ef67b16046c9", "reference": "0b6a8940385311a24e060ec1fe35680e17c74497",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.9" "php": ">=5.3.3"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Mbstring\\": ""
},
"files": [
"bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for the Mbstring extension",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"mbstring",
"polyfill",
"portable",
"shim"
],
"time": "2015-11-04 20:28:58"
},
{
"name": "symfony/var-dumper",
"version": "v3.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
"reference": "737e07704cca83f9dd0af926d45ce27eedc25657"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/737e07704cca83f9dd0af926d45ce27eedc25657",
"reference": "737e07704cca83f9dd0af926d45ce27eedc25657",
"shasum": ""
},
"require": {
"php": ">=5.5.9",
"symfony/polyfill-mbstring": "~1.0"
},
"require-dev": {
"twig/twig": "~1.20|~2.0"
}, },
"suggest": { "suggest": {
"ext-symfony_debug": "" "ext-symfony_debug": ""
@ -468,7 +531,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.7-dev" "dev-master": "3.0-dev"
} }
}, },
"autoload": { "autoload": {
@ -477,7 +540,10 @@
], ],
"psr-4": { "psr-4": {
"Symfony\\Component\\VarDumper\\": "" "Symfony\\Component\\VarDumper\\": ""
} },
"exclude-from-classmap": [
"/Tests/"
]
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": [ "license": [
@ -499,7 +565,7 @@
"debug", "debug",
"dump" "dump"
], ],
"time": "2015-10-25 17:17:38" "time": "2015-11-18 13:48:51"
} }
], ],
"aliases": [], "aliases": [],

BIN
composer.phar Executable file

Binary file not shown.

View file

@ -191,7 +191,7 @@ class FrontController
$app->redirect($video['url']); $app->redirect($video['url']);
} catch (\Exception $e) { } catch (\Exception $e) {
$app->response->headers->set('Content-Type', 'text/plain'); $app->response->headers->set('Content-Type', 'text/plain');
echo $e->getMessage(); echo $e->getMessage().PHP_EOL;
} }
} }
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "alltube", "name": "alltube",
"version": "0.4.2", "version": "0.4.3",
"dependencies": { "dependencies": {
"grunt": "~0.4.5", "grunt": "~0.4.5",
"grunt-cli": "~0.1.13", "grunt-cli": "~0.1.13",

1
php.ini Normal file
View file

@ -0,0 +1 @@
date.timezone = UTC