rugged 1.9.4 → 1.9.5.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.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rugged/version.rb +1 -1
  3. data/vendor/libgit2/CMakeLists.txt +1 -1
  4. data/vendor/libgit2/COPYING +83 -11
  5. data/vendor/libgit2/cmake/SelectRegex.cmake +8 -3
  6. data/vendor/libgit2/deps/pcre2/CMakeLists.txt +110 -0
  7. data/vendor/libgit2/deps/pcre2/LICENCE.md +104 -0
  8. data/vendor/libgit2/deps/pcre2/config.h.in +54 -0
  9. data/vendor/libgit2/deps/pcre2/pcre2.h +1079 -0
  10. data/vendor/libgit2/deps/pcre2/pcre2_auto_possess.c +1416 -0
  11. data/vendor/libgit2/deps/{pcre/pcre_chartables.c → pcre2/pcre2_chartables.c} +41 -47
  12. data/vendor/libgit2/deps/{pcre/pcre_ord2utf8.c → pcre2/pcre2_chkdint.c} +36 -36
  13. data/vendor/libgit2/deps/pcre2/pcre2_compile.c +11345 -0
  14. data/vendor/libgit2/deps/pcre2/pcre2_compile.h +356 -0
  15. data/vendor/libgit2/deps/pcre2/pcre2_compile_cgroup.c +632 -0
  16. data/vendor/libgit2/deps/pcre2/pcre2_compile_class.c +2777 -0
  17. data/vendor/libgit2/deps/pcre2/pcre2_config.c +250 -0
  18. data/vendor/libgit2/deps/pcre2/pcre2_context.c +557 -0
  19. data/vendor/libgit2/deps/pcre2/pcre2_convert.c +1263 -0
  20. data/vendor/libgit2/deps/{pcre/pcre_dfa_exec.c → pcre2/pcre2_dfa_match.c} +1402 -943
  21. data/vendor/libgit2/deps/pcre2/pcre2_error.c +384 -0
  22. data/vendor/libgit2/deps/pcre2/pcre2_extuni.c +159 -0
  23. data/vendor/libgit2/deps/pcre2/pcre2_find_bracket.c +217 -0
  24. data/vendor/libgit2/deps/pcre2/pcre2_fuzzsupport.c +844 -0
  25. data/vendor/libgit2/deps/pcre2/pcre2_internal.h +2353 -0
  26. data/vendor/libgit2/deps/pcre2/pcre2_intmodedep.h +1044 -0
  27. data/vendor/libgit2/deps/pcre2/pcre2_maketables.c +177 -0
  28. data/vendor/libgit2/deps/pcre2/pcre2_match.c +8244 -0
  29. data/vendor/libgit2/deps/pcre2/pcre2_match_data.c +184 -0
  30. data/vendor/libgit2/deps/pcre2/pcre2_match_next.c +171 -0
  31. data/vendor/libgit2/deps/{pcre/pcre_newline.c → pcre2/pcre2_newline.c} +92 -63
  32. data/vendor/libgit2/deps/{pcre/pcre_refcount.c → pcre2/pcre2_ord2utf.c} +64 -38
  33. data/vendor/libgit2/deps/pcre2/pcre2_pattern_info.c +430 -0
  34. data/vendor/libgit2/deps/pcre2/pcre2_printint_inc.h +1098 -0
  35. data/vendor/libgit2/deps/pcre2/pcre2_script_run.c +344 -0
  36. data/vendor/libgit2/deps/pcre2/pcre2_serialize.c +284 -0
  37. data/vendor/libgit2/deps/pcre2/pcre2_string_utils.c +199 -0
  38. data/vendor/libgit2/deps/pcre2/pcre2_study.c +2087 -0
  39. data/vendor/libgit2/deps/pcre2/pcre2_substitute.c +1761 -0
  40. data/vendor/libgit2/deps/pcre2/pcre2_substring.c +553 -0
  41. data/vendor/libgit2/deps/pcre2/pcre2_tables.c +310 -0
  42. data/vendor/libgit2/deps/pcre2/pcre2_ucd.c +5805 -0
  43. data/vendor/libgit2/deps/pcre2/pcre2_ucp.h +408 -0
  44. data/vendor/libgit2/deps/pcre2/pcre2_ucptables_inc.h +1596 -0
  45. data/vendor/libgit2/deps/pcre2/pcre2_util.h +179 -0
  46. data/vendor/libgit2/deps/pcre2/pcre2_valid_utf.c +397 -0
  47. data/vendor/libgit2/deps/pcre2/pcre2_xclass.c +547 -0
  48. data/vendor/libgit2/include/git2/common.h +13 -1
  49. data/vendor/libgit2/include/git2/version.h +2 -2
  50. data/vendor/libgit2/src/libgit2/blame.c +6 -0
  51. data/vendor/libgit2/src/libgit2/delta.c +8 -0
  52. data/vendor/libgit2/src/libgit2/indexer.c +3 -2
  53. data/vendor/libgit2/src/libgit2/settings.c +9 -0
  54. data/vendor/libgit2/src/libgit2/streams/openssl.c +4 -1
  55. data/vendor/libgit2/src/libgit2/submodule.c +77 -12
  56. data/vendor/libgit2/src/libgit2/transports/http.c +4 -4
  57. data/vendor/libgit2/src/libgit2/transports/smart_pkt.c +2 -1
  58. data/vendor/libgit2/src/util/fs_path.h +10 -10
  59. data/vendor/libgit2/src/util/regexp.c +27 -12
  60. data/vendor/libgit2/src/util/regexp.h +7 -2
  61. metadata +44 -37
  62. data/vendor/libgit2/deps/pcre/CMakeLists.txt +0 -140
  63. data/vendor/libgit2/deps/pcre/COPYING +0 -5
  64. data/vendor/libgit2/deps/pcre/LICENCE +0 -93
  65. data/vendor/libgit2/deps/pcre/cmake/COPYING-CMAKE-SCRIPTS +0 -22
  66. data/vendor/libgit2/deps/pcre/cmake/FindEditline.cmake +0 -17
  67. data/vendor/libgit2/deps/pcre/cmake/FindPackageHandleStandardArgs.cmake +0 -58
  68. data/vendor/libgit2/deps/pcre/cmake/FindReadline.cmake +0 -29
  69. data/vendor/libgit2/deps/pcre/config.h.in +0 -57
  70. data/vendor/libgit2/deps/pcre/pcre.h +0 -641
  71. data/vendor/libgit2/deps/pcre/pcre_byte_order.c +0 -319
  72. data/vendor/libgit2/deps/pcre/pcre_compile.c +0 -9815
  73. data/vendor/libgit2/deps/pcre/pcre_config.c +0 -190
  74. data/vendor/libgit2/deps/pcre/pcre_exec.c +0 -7173
  75. data/vendor/libgit2/deps/pcre/pcre_fullinfo.c +0 -245
  76. data/vendor/libgit2/deps/pcre/pcre_get.c +0 -669
  77. data/vendor/libgit2/deps/pcre/pcre_globals.c +0 -86
  78. data/vendor/libgit2/deps/pcre/pcre_internal.h +0 -2787
  79. data/vendor/libgit2/deps/pcre/pcre_jit_compile.c +0 -11913
  80. data/vendor/libgit2/deps/pcre/pcre_maketables.c +0 -156
  81. data/vendor/libgit2/deps/pcre/pcre_printint.c +0 -834
  82. data/vendor/libgit2/deps/pcre/pcre_string_utils.c +0 -211
  83. data/vendor/libgit2/deps/pcre/pcre_study.c +0 -1686
  84. data/vendor/libgit2/deps/pcre/pcre_tables.c +0 -727
  85. data/vendor/libgit2/deps/pcre/pcre_ucd.c +0 -3644
  86. data/vendor/libgit2/deps/pcre/pcre_valid_utf8.c +0 -301
  87. data/vendor/libgit2/deps/pcre/pcre_version.c +0 -98
  88. data/vendor/libgit2/deps/pcre/pcre_xclass.c +0 -268
  89. data/vendor/libgit2/deps/pcre/pcreposix.c +0 -420
  90. data/vendor/libgit2/deps/pcre/pcreposix.h +0 -117
  91. data/vendor/libgit2/deps/pcre/ucp.h +0 -224
@@ -1,211 +0,0 @@
1
- /*************************************************
2
- * Perl-Compatible Regular Expressions *
3
- *************************************************/
4
-
5
- /* PCRE is a library of functions to support regular expressions whose syntax
6
- and semantics are as close as possible to those of the Perl 5 language.
7
-
8
- Written by Philip Hazel
9
- Copyright (c) 1997-2014 University of Cambridge
10
-
11
- -----------------------------------------------------------------------------
12
- Redistribution and use in source and binary forms, with or without
13
- modification, are permitted provided that the following conditions are met:
14
-
15
- * Redistributions of source code must retain the above copyright notice,
16
- this list of conditions and the following disclaimer.
17
-
18
- * Redistributions in binary form must reproduce the above copyright
19
- notice, this list of conditions and the following disclaimer in the
20
- documentation and/or other materials provided with the distribution.
21
-
22
- * Neither the name of the University of Cambridge nor the names of its
23
- contributors may be used to endorse or promote products derived from
24
- this software without specific prior written permission.
25
-
26
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36
- POSSIBILITY OF SUCH DAMAGE.
37
- -----------------------------------------------------------------------------
38
- */
39
-
40
-
41
- /* This module contains internal functions for comparing and finding the length
42
- of strings for different data item sizes. */
43
-
44
-
45
- #ifdef HAVE_CONFIG_H
46
- #include "config.h"
47
- #endif
48
-
49
- #include "pcre_internal.h"
50
-
51
- #ifndef COMPILE_PCRE8
52
-
53
- /*************************************************
54
- * Compare string utilities *
55
- *************************************************/
56
-
57
- /* The following two functions compares two strings. Basically a strcmp
58
- for non 8 bit characters.
59
-
60
- Arguments:
61
- str1 first string
62
- str2 second string
63
-
64
- Returns: 0 if both string are equal (like strcmp), 1 otherwise
65
- */
66
-
67
- int
68
- PRIV(strcmp_uc_uc)(const pcre_uchar *str1, const pcre_uchar *str2)
69
- {
70
- pcre_uchar c1;
71
- pcre_uchar c2;
72
-
73
- while (*str1 != '\0' || *str2 != '\0')
74
- {
75
- c1 = *str1++;
76
- c2 = *str2++;
77
- if (c1 != c2)
78
- return ((c1 > c2) << 1) - 1;
79
- }
80
- /* Both length and characters must be equal. */
81
- return 0;
82
- }
83
-
84
- #ifdef COMPILE_PCRE32
85
-
86
- int
87
- PRIV(strcmp_uc_uc_utf)(const pcre_uchar *str1, const pcre_uchar *str2)
88
- {
89
- pcre_uchar c1;
90
- pcre_uchar c2;
91
-
92
- while (*str1 != '\0' || *str2 != '\0')
93
- {
94
- c1 = UCHAR21INC(str1);
95
- c2 = UCHAR21INC(str2);
96
- if (c1 != c2)
97
- return ((c1 > c2) << 1) - 1;
98
- }
99
- /* Both length and characters must be equal. */
100
- return 0;
101
- }
102
-
103
- #endif /* COMPILE_PCRE32 */
104
-
105
- int
106
- PRIV(strcmp_uc_c8)(const pcre_uchar *str1, const char *str2)
107
- {
108
- const pcre_uint8 *ustr2 = (pcre_uint8 *)str2;
109
- pcre_uchar c1;
110
- pcre_uchar c2;
111
-
112
- while (*str1 != '\0' || *ustr2 != '\0')
113
- {
114
- c1 = *str1++;
115
- c2 = (pcre_uchar)*ustr2++;
116
- if (c1 != c2)
117
- return ((c1 > c2) << 1) - 1;
118
- }
119
- /* Both length and characters must be equal. */
120
- return 0;
121
- }
122
-
123
- #ifdef COMPILE_PCRE32
124
-
125
- int
126
- PRIV(strcmp_uc_c8_utf)(const pcre_uchar *str1, const char *str2)
127
- {
128
- const pcre_uint8 *ustr2 = (pcre_uint8 *)str2;
129
- pcre_uchar c1;
130
- pcre_uchar c2;
131
-
132
- while (*str1 != '\0' || *ustr2 != '\0')
133
- {
134
- c1 = UCHAR21INC(str1);
135
- c2 = (pcre_uchar)*ustr2++;
136
- if (c1 != c2)
137
- return ((c1 > c2) << 1) - 1;
138
- }
139
- /* Both length and characters must be equal. */
140
- return 0;
141
- }
142
-
143
- #endif /* COMPILE_PCRE32 */
144
-
145
- /* The following two functions compares two, fixed length
146
- strings. Basically an strncmp for non 8 bit characters.
147
-
148
- Arguments:
149
- str1 first string
150
- str2 second string
151
- num size of the string
152
-
153
- Returns: 0 if both string are equal (like strcmp), 1 otherwise
154
- */
155
-
156
- int
157
- PRIV(strncmp_uc_uc)(const pcre_uchar *str1, const pcre_uchar *str2, unsigned int num)
158
- {
159
- pcre_uchar c1;
160
- pcre_uchar c2;
161
-
162
- while (num-- > 0)
163
- {
164
- c1 = *str1++;
165
- c2 = *str2++;
166
- if (c1 != c2)
167
- return ((c1 > c2) << 1) - 1;
168
- }
169
- /* Both length and characters must be equal. */
170
- return 0;
171
- }
172
-
173
- int
174
- PRIV(strncmp_uc_c8)(const pcre_uchar *str1, const char *str2, unsigned int num)
175
- {
176
- const pcre_uint8 *ustr2 = (pcre_uint8 *)str2;
177
- pcre_uchar c1;
178
- pcre_uchar c2;
179
-
180
- while (num-- > 0)
181
- {
182
- c1 = *str1++;
183
- c2 = (pcre_uchar)*ustr2++;
184
- if (c1 != c2)
185
- return ((c1 > c2) << 1) - 1;
186
- }
187
- /* Both length and characters must be equal. */
188
- return 0;
189
- }
190
-
191
- /* The following function returns with the length of
192
- a zero terminated string. Basically an strlen for non 8 bit characters.
193
-
194
- Arguments:
195
- str string
196
-
197
- Returns: length of the string
198
- */
199
-
200
- unsigned int
201
- PRIV(strlen_uc)(const pcre_uchar *str)
202
- {
203
- unsigned int len = 0;
204
- while (*str++ != 0)
205
- len++;
206
- return len;
207
- }
208
-
209
- #endif /* !COMPILE_PCRE8 */
210
-
211
- /* End of pcre_string_utils.c */