dropbox-sign 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/VERSION +1 -0
- data/bin/release +39 -0
- data/bin/ruby +1 -0
- data/docs/SignatureRequestApi.md +3 -3
- data/docs/SignatureRequestCreateEmbeddedRequest.md +1 -1
- data/docs/SignatureRequestSendRequest.md +1 -1
- data/docs/SubFormFieldsPerDocumentBase.md +1 -1
- data/docs/TemplateCreateEmbeddedDraftRequest.md +1 -1
- data/docs/UnclaimedDraftApi.md +2 -2
- data/docs/UnclaimedDraftCreateEmbeddedRequest.md +1 -1
- data/docs/UnclaimedDraftCreateRequest.md +1 -1
- data/examples/SignatureRequestCreateEmbedded.rb +1 -1
- data/examples/SignatureRequestSend.rb +2 -2
- data/examples/UnclaimedDraftCreate.rb +2 -2
- data/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +1 -1
- data/lib/dropbox-sign/models/signature_request_send_request.rb +1 -1
- data/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb +1 -1
- data/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +1 -1
- data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb +1 -1
- data/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +1 -1
- data/lib/dropbox-sign/version.rb +1 -1
- data/openapi-config.yaml +4 -1
- data/openapi-sdk.yaml +6 -10
- data/templates/VERSION-root.mustache +1 -0
- metadata +14 -54
- data/vendor/autoload.php +0 -7
- data/vendor/bin/yaml-lint +0 -117
- data/vendor/composer/ClassLoader.php +0 -572
- data/vendor/composer/InstalledVersions.php +0 -350
- data/vendor/composer/LICENSE +0 -21
- data/vendor/composer/autoload_classmap.php +0 -10
- data/vendor/composer/autoload_files.php +0 -11
- data/vendor/composer/autoload_namespaces.php +0 -9
- data/vendor/composer/autoload_psr4.php +0 -11
- data/vendor/composer/autoload_real.php +0 -80
- data/vendor/composer/autoload_static.php +0 -46
- data/vendor/composer/installed.json +0 -239
- data/vendor/composer/installed.php +0 -50
- data/vendor/composer/platform_check.php +0 -26
- data/vendor/symfony/deprecation-contracts/.gitignore +0 -3
- data/vendor/symfony/deprecation-contracts/CHANGELOG.md +0 -5
- data/vendor/symfony/deprecation-contracts/LICENSE +0 -19
- data/vendor/symfony/deprecation-contracts/README.md +0 -26
- data/vendor/symfony/deprecation-contracts/composer.json +0 -35
- data/vendor/symfony/deprecation-contracts/function.php +0 -27
- data/vendor/symfony/polyfill-ctype/Ctype.php +0 -232
- data/vendor/symfony/polyfill-ctype/LICENSE +0 -19
- data/vendor/symfony/polyfill-ctype/README.md +0 -12
- data/vendor/symfony/polyfill-ctype/bootstrap.php +0 -50
- data/vendor/symfony/polyfill-ctype/bootstrap80.php +0 -46
- data/vendor/symfony/polyfill-ctype/composer.json +0 -41
- data/vendor/symfony/yaml/CHANGELOG.md +0 -237
- data/vendor/symfony/yaml/Command/LintCommand.php +0 -289
- data/vendor/symfony/yaml/Dumper.php +0 -140
- data/vendor/symfony/yaml/Escaper.php +0 -95
- data/vendor/symfony/yaml/Exception/DumpException.php +0 -21
- data/vendor/symfony/yaml/Exception/ExceptionInterface.php +0 -21
- data/vendor/symfony/yaml/Exception/ParseException.php +0 -132
- data/vendor/symfony/yaml/Exception/RuntimeException.php +0 -21
- data/vendor/symfony/yaml/Inline.php +0 -812
- data/vendor/symfony/yaml/LICENSE +0 -19
- data/vendor/symfony/yaml/Parser.php +0 -1305
- data/vendor/symfony/yaml/README.md +0 -13
- data/vendor/symfony/yaml/Resources/bin/yaml-lint +0 -45
- data/vendor/symfony/yaml/Tag/TaggedValue.php +0 -38
- data/vendor/symfony/yaml/Unescaper.php +0 -132
- data/vendor/symfony/yaml/Yaml.php +0 -100
- data/vendor/symfony/yaml/composer.json +0 -42
@@ -1,13 +0,0 @@
|
|
1
|
-
Yaml Component
|
2
|
-
==============
|
3
|
-
|
4
|
-
The Yaml component loads and dumps YAML files.
|
5
|
-
|
6
|
-
Resources
|
7
|
-
---------
|
8
|
-
|
9
|
-
* [Documentation](https://symfony.com/doc/current/components/yaml.html)
|
10
|
-
* [Contributing](https://symfony.com/doc/current/contributing/index.html)
|
11
|
-
* [Report issues](https://github.com/symfony/symfony/issues) and
|
12
|
-
[send Pull Requests](https://github.com/symfony/symfony/pulls)
|
13
|
-
in the [main Symfony repository](https://github.com/symfony/symfony)
|
@@ -1,45 +0,0 @@
|
|
1
|
-
#!/usr/bin/env php
|
2
|
-
<?php
|
3
|
-
|
4
|
-
/*
|
5
|
-
* This file is part of the Symfony package.
|
6
|
-
*
|
7
|
-
* (c) Fabien Potencier <fabien@symfony.com>
|
8
|
-
*
|
9
|
-
* For the full copyright and license information, please view the LICENSE
|
10
|
-
* file that was distributed with this source code.
|
11
|
-
*/
|
12
|
-
|
13
|
-
/**
|
14
|
-
* Runs the Yaml lint command.
|
15
|
-
*
|
16
|
-
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
|
17
|
-
*/
|
18
|
-
|
19
|
-
use Symfony\Component\Console\Application;
|
20
|
-
use Symfony\Component\Yaml\Command\LintCommand;
|
21
|
-
|
22
|
-
function includeIfExists(string $file): bool
|
23
|
-
{
|
24
|
-
return file_exists($file) && include $file;
|
25
|
-
}
|
26
|
-
|
27
|
-
if (
|
28
|
-
!includeIfExists(__DIR__ . '/../../../../autoload.php') &&
|
29
|
-
!includeIfExists(__DIR__ . '/../../vendor/autoload.php') &&
|
30
|
-
!includeIfExists(__DIR__ . '/../../../../../../vendor/autoload.php')
|
31
|
-
) {
|
32
|
-
fwrite(STDERR, 'Install dependencies using Composer.'.PHP_EOL);
|
33
|
-
exit(1);
|
34
|
-
}
|
35
|
-
|
36
|
-
if (!class_exists(Application::class)) {
|
37
|
-
fwrite(STDERR, 'You need the "symfony/console" component in order to run the Yaml linter.'.PHP_EOL);
|
38
|
-
exit(1);
|
39
|
-
}
|
40
|
-
|
41
|
-
(new Application())->add($command = new LintCommand())
|
42
|
-
->getApplication()
|
43
|
-
->setDefaultCommand($command->getName(), true)
|
44
|
-
->run()
|
45
|
-
;
|
@@ -1,38 +0,0 @@
|
|
1
|
-
<?php
|
2
|
-
|
3
|
-
/*
|
4
|
-
* This file is part of the Symfony package.
|
5
|
-
*
|
6
|
-
* (c) Fabien Potencier <fabien@symfony.com>
|
7
|
-
*
|
8
|
-
* For the full copyright and license information, please view the LICENSE
|
9
|
-
* file that was distributed with this source code.
|
10
|
-
*/
|
11
|
-
|
12
|
-
namespace Symfony\Component\Yaml\Tag;
|
13
|
-
|
14
|
-
/**
|
15
|
-
* @author Nicolas Grekas <p@tchwork.com>
|
16
|
-
* @author Guilhem N. <egetick@gmail.com>
|
17
|
-
*/
|
18
|
-
final class TaggedValue
|
19
|
-
{
|
20
|
-
private $tag;
|
21
|
-
private $value;
|
22
|
-
|
23
|
-
public function __construct(string $tag, $value)
|
24
|
-
{
|
25
|
-
$this->tag = $tag;
|
26
|
-
$this->value = $value;
|
27
|
-
}
|
28
|
-
|
29
|
-
public function getTag(): string
|
30
|
-
{
|
31
|
-
return $this->tag;
|
32
|
-
}
|
33
|
-
|
34
|
-
public function getValue()
|
35
|
-
{
|
36
|
-
return $this->value;
|
37
|
-
}
|
38
|
-
}
|
@@ -1,132 +0,0 @@
|
|
1
|
-
<?php
|
2
|
-
|
3
|
-
/*
|
4
|
-
* This file is part of the Symfony package.
|
5
|
-
*
|
6
|
-
* (c) Fabien Potencier <fabien@symfony.com>
|
7
|
-
*
|
8
|
-
* For the full copyright and license information, please view the LICENSE
|
9
|
-
* file that was distributed with this source code.
|
10
|
-
*/
|
11
|
-
|
12
|
-
namespace Symfony\Component\Yaml;
|
13
|
-
|
14
|
-
use Symfony\Component\Yaml\Exception\ParseException;
|
15
|
-
|
16
|
-
/**
|
17
|
-
* Unescaper encapsulates unescaping rules for single and double-quoted
|
18
|
-
* YAML strings.
|
19
|
-
*
|
20
|
-
* @author Matthew Lewinski <matthew@lewinski.org>
|
21
|
-
*
|
22
|
-
* @internal
|
23
|
-
*/
|
24
|
-
class Unescaper
|
25
|
-
{
|
26
|
-
/**
|
27
|
-
* Regex fragment that matches an escaped character in a double quoted string.
|
28
|
-
*/
|
29
|
-
public const REGEX_ESCAPED_CHARACTER = '\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)';
|
30
|
-
|
31
|
-
/**
|
32
|
-
* Unescapes a single quoted string.
|
33
|
-
*
|
34
|
-
* @param string $value A single quoted string
|
35
|
-
*/
|
36
|
-
public function unescapeSingleQuotedString(string $value): string
|
37
|
-
{
|
38
|
-
return str_replace('\'\'', '\'', $value);
|
39
|
-
}
|
40
|
-
|
41
|
-
/**
|
42
|
-
* Unescapes a double quoted string.
|
43
|
-
*
|
44
|
-
* @param string $value A double quoted string
|
45
|
-
*/
|
46
|
-
public function unescapeDoubleQuotedString(string $value): string
|
47
|
-
{
|
48
|
-
$callback = function ($match) {
|
49
|
-
return $this->unescapeCharacter($match[0]);
|
50
|
-
};
|
51
|
-
|
52
|
-
// evaluate the string
|
53
|
-
return preg_replace_callback('/'.self::REGEX_ESCAPED_CHARACTER.'/u', $callback, $value);
|
54
|
-
}
|
55
|
-
|
56
|
-
/**
|
57
|
-
* Unescapes a character that was found in a double-quoted string.
|
58
|
-
*
|
59
|
-
* @param string $value An escaped character
|
60
|
-
*/
|
61
|
-
private function unescapeCharacter(string $value): string
|
62
|
-
{
|
63
|
-
switch ($value[1]) {
|
64
|
-
case '0':
|
65
|
-
return "\x0";
|
66
|
-
case 'a':
|
67
|
-
return "\x7";
|
68
|
-
case 'b':
|
69
|
-
return "\x8";
|
70
|
-
case 't':
|
71
|
-
return "\t";
|
72
|
-
case "\t":
|
73
|
-
return "\t";
|
74
|
-
case 'n':
|
75
|
-
return "\n";
|
76
|
-
case 'v':
|
77
|
-
return "\xB";
|
78
|
-
case 'f':
|
79
|
-
return "\xC";
|
80
|
-
case 'r':
|
81
|
-
return "\r";
|
82
|
-
case 'e':
|
83
|
-
return "\x1B";
|
84
|
-
case ' ':
|
85
|
-
return ' ';
|
86
|
-
case '"':
|
87
|
-
return '"';
|
88
|
-
case '/':
|
89
|
-
return '/';
|
90
|
-
case '\\':
|
91
|
-
return '\\';
|
92
|
-
case 'N':
|
93
|
-
// U+0085 NEXT LINE
|
94
|
-
return "\xC2\x85";
|
95
|
-
case '_':
|
96
|
-
// U+00A0 NO-BREAK SPACE
|
97
|
-
return "\xC2\xA0";
|
98
|
-
case 'L':
|
99
|
-
// U+2028 LINE SEPARATOR
|
100
|
-
return "\xE2\x80\xA8";
|
101
|
-
case 'P':
|
102
|
-
// U+2029 PARAGRAPH SEPARATOR
|
103
|
-
return "\xE2\x80\xA9";
|
104
|
-
case 'x':
|
105
|
-
return self::utf8chr(hexdec(substr($value, 2, 2)));
|
106
|
-
case 'u':
|
107
|
-
return self::utf8chr(hexdec(substr($value, 2, 4)));
|
108
|
-
case 'U':
|
109
|
-
return self::utf8chr(hexdec(substr($value, 2, 8)));
|
110
|
-
default:
|
111
|
-
throw new ParseException(sprintf('Found unknown escape character "%s".', $value));
|
112
|
-
}
|
113
|
-
}
|
114
|
-
|
115
|
-
/**
|
116
|
-
* Get the UTF-8 character for the given code point.
|
117
|
-
*/
|
118
|
-
private static function utf8chr(int $c): string
|
119
|
-
{
|
120
|
-
if (0x80 > $c %= 0x200000) {
|
121
|
-
return \chr($c);
|
122
|
-
}
|
123
|
-
if (0x800 > $c) {
|
124
|
-
return \chr(0xC0 | $c >> 6).\chr(0x80 | $c & 0x3F);
|
125
|
-
}
|
126
|
-
if (0x10000 > $c) {
|
127
|
-
return \chr(0xE0 | $c >> 12).\chr(0x80 | $c >> 6 & 0x3F).\chr(0x80 | $c & 0x3F);
|
128
|
-
}
|
129
|
-
|
130
|
-
return \chr(0xF0 | $c >> 18).\chr(0x80 | $c >> 12 & 0x3F).\chr(0x80 | $c >> 6 & 0x3F).\chr(0x80 | $c & 0x3F);
|
131
|
-
}
|
132
|
-
}
|
@@ -1,100 +0,0 @@
|
|
1
|
-
<?php
|
2
|
-
|
3
|
-
/*
|
4
|
-
* This file is part of the Symfony package.
|
5
|
-
*
|
6
|
-
* (c) Fabien Potencier <fabien@symfony.com>
|
7
|
-
*
|
8
|
-
* For the full copyright and license information, please view the LICENSE
|
9
|
-
* file that was distributed with this source code.
|
10
|
-
*/
|
11
|
-
|
12
|
-
namespace Symfony\Component\Yaml;
|
13
|
-
|
14
|
-
use Symfony\Component\Yaml\Exception\ParseException;
|
15
|
-
|
16
|
-
/**
|
17
|
-
* Yaml offers convenience methods to load and dump YAML.
|
18
|
-
*
|
19
|
-
* @author Fabien Potencier <fabien@symfony.com>
|
20
|
-
*
|
21
|
-
* @final
|
22
|
-
*/
|
23
|
-
class Yaml
|
24
|
-
{
|
25
|
-
public const DUMP_OBJECT = 1;
|
26
|
-
public const PARSE_EXCEPTION_ON_INVALID_TYPE = 2;
|
27
|
-
public const PARSE_OBJECT = 4;
|
28
|
-
public const PARSE_OBJECT_FOR_MAP = 8;
|
29
|
-
public const DUMP_EXCEPTION_ON_INVALID_TYPE = 16;
|
30
|
-
public const PARSE_DATETIME = 32;
|
31
|
-
public const DUMP_OBJECT_AS_MAP = 64;
|
32
|
-
public const DUMP_MULTI_LINE_LITERAL_BLOCK = 128;
|
33
|
-
public const PARSE_CONSTANT = 256;
|
34
|
-
public const PARSE_CUSTOM_TAGS = 512;
|
35
|
-
public const DUMP_EMPTY_ARRAY_AS_SEQUENCE = 1024;
|
36
|
-
public const DUMP_NULL_AS_TILDE = 2048;
|
37
|
-
|
38
|
-
/**
|
39
|
-
* Parses a YAML file into a PHP value.
|
40
|
-
*
|
41
|
-
* Usage:
|
42
|
-
*
|
43
|
-
* $array = Yaml::parseFile('config.yml');
|
44
|
-
* print_r($array);
|
45
|
-
*
|
46
|
-
* @param string $filename The path to the YAML file to be parsed
|
47
|
-
* @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
|
48
|
-
*
|
49
|
-
* @return mixed
|
50
|
-
*
|
51
|
-
* @throws ParseException If the file could not be read or the YAML is not valid
|
52
|
-
*/
|
53
|
-
public static function parseFile(string $filename, int $flags = 0)
|
54
|
-
{
|
55
|
-
$yaml = new Parser();
|
56
|
-
|
57
|
-
return $yaml->parseFile($filename, $flags);
|
58
|
-
}
|
59
|
-
|
60
|
-
/**
|
61
|
-
* Parses YAML into a PHP value.
|
62
|
-
*
|
63
|
-
* Usage:
|
64
|
-
* <code>
|
65
|
-
* $array = Yaml::parse(file_get_contents('config.yml'));
|
66
|
-
* print_r($array);
|
67
|
-
* </code>
|
68
|
-
*
|
69
|
-
* @param string $input A string containing YAML
|
70
|
-
* @param int $flags A bit field of PARSE_* constants to customize the YAML parser behavior
|
71
|
-
*
|
72
|
-
* @return mixed
|
73
|
-
*
|
74
|
-
* @throws ParseException If the YAML is not valid
|
75
|
-
*/
|
76
|
-
public static function parse(string $input, int $flags = 0)
|
77
|
-
{
|
78
|
-
$yaml = new Parser();
|
79
|
-
|
80
|
-
return $yaml->parse($input, $flags);
|
81
|
-
}
|
82
|
-
|
83
|
-
/**
|
84
|
-
* Dumps a PHP value to a YAML string.
|
85
|
-
*
|
86
|
-
* The dump method, when supplied with an array, will do its best
|
87
|
-
* to convert the array into friendly YAML.
|
88
|
-
*
|
89
|
-
* @param mixed $input The PHP value
|
90
|
-
* @param int $inline The level where you switch to inline YAML
|
91
|
-
* @param int $indent The amount of spaces to use for indentation of nested nodes
|
92
|
-
* @param int $flags A bit field of DUMP_* constants to customize the dumped YAML string
|
93
|
-
*/
|
94
|
-
public static function dump($input, int $inline = 2, int $indent = 4, int $flags = 0): string
|
95
|
-
{
|
96
|
-
$yaml = new Dumper($indent);
|
97
|
-
|
98
|
-
return $yaml->dump($input, $inline, 0, $flags);
|
99
|
-
}
|
100
|
-
}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "symfony/yaml",
|
3
|
-
"type": "library",
|
4
|
-
"description": "Loads and dumps YAML files",
|
5
|
-
"keywords": [],
|
6
|
-
"homepage": "https://symfony.com",
|
7
|
-
"license": "MIT",
|
8
|
-
"authors": [
|
9
|
-
{
|
10
|
-
"name": "Fabien Potencier",
|
11
|
-
"email": "fabien@symfony.com"
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"name": "Symfony Community",
|
15
|
-
"homepage": "https://symfony.com/contributors"
|
16
|
-
}
|
17
|
-
],
|
18
|
-
"require": {
|
19
|
-
"php": ">=7.2.5",
|
20
|
-
"symfony/deprecation-contracts": "^2.1|^3",
|
21
|
-
"symfony/polyfill-ctype": "^1.8"
|
22
|
-
},
|
23
|
-
"require-dev": {
|
24
|
-
"symfony/console": "^5.3|^6.0"
|
25
|
-
},
|
26
|
-
"conflict": {
|
27
|
-
"symfony/console": "<5.3"
|
28
|
-
},
|
29
|
-
"suggest": {
|
30
|
-
"symfony/console": "For validating YAML files using the lint command"
|
31
|
-
},
|
32
|
-
"autoload": {
|
33
|
-
"psr-4": { "Symfony\\Component\\Yaml\\": "" },
|
34
|
-
"exclude-from-classmap": [
|
35
|
-
"/Tests/"
|
36
|
-
]
|
37
|
-
},
|
38
|
-
"bin": [
|
39
|
-
"Resources/bin/yaml-lint"
|
40
|
-
],
|
41
|
-
"minimum-stability": "dev"
|
42
|
-
}
|