Skip to content

Commit

Permalink
Added ralouphie/mimey to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
HughbertD committed May 3, 2022
1 parent 82d1d84 commit 0b753bd
Show file tree
Hide file tree
Showing 22 changed files with 9,699 additions and 3 deletions.
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"minimum-stability": "dev",
"require": {
"php": ">=7.0",
"techcrunch/wp-async-task": "dev-master"
"techcrunch/wp-async-task": "dev-master",
"ralouphie/mimey": "^1.0"
},
"require-dev": {
"antecedent/patchwork": "2.1.*",
Expand All @@ -30,5 +31,10 @@
},
"scripts": {
"phpcbf": "./vendor/bin/phpcbf --standard=WordPress"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": false
}
}
}
48 changes: 46 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions vendor/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
$baseDir = dirname($vendorDir);

return array(
'Mimey\\' => array($vendorDir . '/ralouphie/mimey/src'),
);
16 changes: 16 additions & 0 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@

class ComposerStaticInitb26fadc2a4161998e2090a74160adfaf
{
public static $prefixLengthsPsr4 = array (
'M' =>
array (
'Mimey\\' => 6,
),
);

public static $prefixDirsPsr4 = array (
'Mimey\\' =>
array (
0 => __DIR__ . '/..' . '/ralouphie/mimey/src',
),
);

public static $classMap = array (
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
'WP_Async_Task' => __DIR__ . '/..' . '/techcrunch/wp-async-task/wp-async-task.php',
Expand All @@ -14,6 +28,8 @@ class ComposerStaticInitb26fadc2a4161998e2090a74160adfaf
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitb26fadc2a4161998e2090a74160adfaf::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb26fadc2a4161998e2090a74160adfaf::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitb26fadc2a4161998e2090a74160adfaf::$classMap;

}, null, ClassLoader::class);
Expand Down
47 changes: 47 additions & 0 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
{
"packages": [
{
"name": "ralouphie/mimey",
"version": "1.0.2",
"version_normalized": "1.0.2.0",
"source": {
"type": "git",
"url": "https://github.com/ralouphie/mimey.git",
"reference": "2a0e997c733b7c2f9f8b61cafb006fd5fb9fa15a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/ralouphie/mimey/zipball/2a0e997c733b7c2f9f8b61cafb006fd5fb9fa15a",
"reference": "2a0e997c733b7c2f9f8b61cafb006fd5fb9fa15a",
"shasum": ""
},
"require": {
"php": ">=5.3"
},
"require-dev": {
"phpunit/phpunit": "~3.7.0",
"satooshi/php-coveralls": ">=1.0"
},
"time": "2016-09-28T03:36:23+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
"psr-4": {
"Mimey\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ralph Khattar",
"email": "[email protected]"
}
],
"description": "PHP package for converting file extensions to MIME types and vice versa.",
"support": {
"issues": "https://github.com/ralouphie/mimey/issues",
"source": "https://github.com/ralouphie/mimey/tree/master"
},
"install-path": "../ralouphie/mimey"
},
{
"name": "techcrunch/wp-async-task",
"version": "dev-master",
Expand Down
9 changes: 9 additions & 0 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
'reference' => NULL,
'dev_requirement' => false,
),
'ralouphie/mimey' => array(
'pretty_version' => '1.0.2',
'version' => '1.0.2.0',
'type' => 'library',
'install_path' => __DIR__ . '/../ralouphie/mimey',
'aliases' => array(),
'reference' => '2a0e997c733b7c2f9f8b61cafb006fd5fb9fa15a',
'dev_requirement' => false,
),
'techcrunch/wp-async-task' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
Expand Down
8 changes: 8 additions & 0 deletions vendor/ralouphie/mimey/.codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
languages:
PHP: true

exclude_paths:
- mime.types.php
- build/**/*
- tests/**/*
- vendor/**/*
5 changes: 5 additions & 0 deletions vendor/ralouphie/mimey/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea
.DS_store
/vendor/
composer.phar
composer.lock
18 changes: 18 additions & 0 deletions vendor/ralouphie/mimey/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0

before_script:
- composer install

script:
- mkdir -p build/logs
- php vendor/bin/phpunit -c phpunit.xml

after_script:
- php vendor/bin/coveralls -v
11 changes: 11 additions & 0 deletions vendor/ralouphie/mimey/bin/generate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env php
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$mime_types_text = file_get_contents(dirname(__DIR__) . '/mime.types');

$generator = new \Mimey\MimeMappingGenerator($mime_types_text);
$mapping_code = $generator->generateMappingCode();

file_put_contents(dirname(__DIR__) . '/mime.types.php', $mapping_code);
23 changes: 23 additions & 0 deletions vendor/ralouphie/mimey/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "ralouphie/mimey",
"description": "PHP package for converting file extensions to MIME types and vice versa.",
"license": "MIT",
"authors": [
{
"name": "Ralph Khattar",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.3"
},
"require-dev": {
"phpunit/phpunit": "~3.7.0",
"satooshi/php-coveralls": ">=1.0"
},
"autoload": {
"psr-4": {
"Mimey\\": "src/"
}
}
}
21 changes: 21 additions & 0 deletions vendor/ralouphie/mimey/license
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2016 Ralph Khattar

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 0b753bd

Please sign in to comment.