rugged 0.24.6.1 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/ext/rugged/extconf.rb +9 -2
  4. data/ext/rugged/rugged.c +85 -21
  5. data/ext/rugged/rugged.h +7 -21
  6. data/ext/rugged/rugged_backend.c +3 -20
  7. data/ext/rugged/rugged_blame.c +7 -24
  8. data/ext/rugged/rugged_blob.c +136 -59
  9. data/ext/rugged/rugged_branch.c +3 -20
  10. data/ext/rugged/rugged_branch_collection.c +3 -20
  11. data/ext/rugged/rugged_commit.c +251 -101
  12. data/ext/rugged/rugged_config.c +3 -20
  13. data/ext/rugged/rugged_cred.c +3 -20
  14. data/ext/rugged/rugged_diff.c +3 -20
  15. data/ext/rugged/rugged_diff_delta.c +3 -20
  16. data/ext/rugged/rugged_diff_hunk.c +3 -20
  17. data/ext/rugged/rugged_diff_line.c +3 -20
  18. data/ext/rugged/rugged_index.c +46 -229
  19. data/ext/rugged/rugged_note.c +3 -20
  20. data/ext/rugged/rugged_object.c +3 -20
  21. data/ext/rugged/rugged_patch.c +192 -34
  22. data/ext/rugged/rugged_rebase.c +90 -48
  23. data/ext/rugged/rugged_reference.c +4 -21
  24. data/ext/rugged/rugged_reference_collection.c +3 -20
  25. data/ext/rugged/rugged_remote.c +70 -42
  26. data/ext/rugged/rugged_remote_collection.c +3 -20
  27. data/ext/rugged/rugged_repo.c +50 -59
  28. data/ext/rugged/rugged_revwalk.c +4 -21
  29. data/ext/rugged/rugged_settings.c +3 -20
  30. data/ext/rugged/rugged_signature.c +3 -20
  31. data/ext/rugged/rugged_submodule.c +4 -21
  32. data/ext/rugged/rugged_submodule_collection.c +3 -20
  33. data/ext/rugged/rugged_tag.c +3 -20
  34. data/ext/rugged/rugged_tag_collection.c +3 -20
  35. data/ext/rugged/rugged_tree.c +189 -184
  36. data/lib/rugged/attributes.rb +5 -0
  37. data/lib/rugged/blob.rb +5 -0
  38. data/lib/rugged/branch.rb +6 -1
  39. data/lib/rugged/commit.rb +5 -0
  40. data/lib/rugged/console.rb +5 -0
  41. data/lib/rugged/credentials.rb +5 -0
  42. data/lib/rugged/diff/delta.rb +5 -0
  43. data/lib/rugged/diff/hunk.rb +5 -0
  44. data/lib/rugged/diff/line.rb +5 -0
  45. data/lib/rugged/diff.rb +5 -0
  46. data/lib/rugged/index.rb +120 -0
  47. data/lib/rugged/object.rb +5 -0
  48. data/lib/rugged/patch.rb +5 -0
  49. data/lib/rugged/reference.rb +5 -0
  50. data/lib/rugged/remote.rb +5 -0
  51. data/lib/rugged/repository.rb +9 -4
  52. data/lib/rugged/submodule_collection.rb +5 -0
  53. data/lib/rugged/tag.rb +5 -0
  54. data/lib/rugged/tree.rb +156 -1
  55. data/lib/rugged/version.rb +6 -1
  56. data/lib/rugged/walker.rb +5 -0
  57. data/lib/rugged.rb +5 -0
  58. data/vendor/libgit2/CMakeLists.txt +12 -2
  59. data/vendor/libgit2/include/git2/blob.h +39 -28
  60. data/vendor/libgit2/include/git2/commit.h +76 -0
  61. data/vendor/libgit2/include/git2/common.h +21 -1
  62. data/vendor/libgit2/include/git2/describe.h +5 -2
  63. data/vendor/libgit2/include/git2/diff.h +62 -7
  64. data/vendor/libgit2/include/git2/errors.h +2 -1
  65. data/vendor/libgit2/include/git2/index.h +25 -0
  66. data/vendor/libgit2/include/git2/merge.h +10 -1
  67. data/vendor/libgit2/include/git2/odb.h +47 -1
  68. data/vendor/libgit2/include/git2/pack.h +4 -4
  69. data/vendor/libgit2/include/git2/patch.h +1 -1
  70. data/vendor/libgit2/include/git2/proxy.h +92 -0
  71. data/vendor/libgit2/include/git2/refs.h +11 -0
  72. data/vendor/libgit2/include/git2/remote.h +21 -8
  73. data/vendor/libgit2/include/git2/repository.h +20 -1
  74. data/vendor/libgit2/include/git2/revwalk.h +4 -6
  75. data/vendor/libgit2/include/git2/signature.h +13 -0
  76. data/vendor/libgit2/include/git2/submodule.h +11 -3
  77. data/vendor/libgit2/include/git2/sys/merge.h +177 -0
  78. data/vendor/libgit2/include/git2/sys/odb_backend.h +11 -0
  79. data/vendor/libgit2/include/git2/sys/remote.h +16 -0
  80. data/vendor/libgit2/include/git2/sys/stream.h +2 -1
  81. data/vendor/libgit2/include/git2/sys/time.h +31 -0
  82. data/vendor/libgit2/include/git2/sys/transport.h +3 -1
  83. data/vendor/libgit2/include/git2/tag.h +9 -0
  84. data/vendor/libgit2/include/git2/transaction.h +9 -0
  85. data/vendor/libgit2/include/git2/tree.h +55 -0
  86. data/vendor/libgit2/include/git2/version.h +4 -4
  87. data/vendor/libgit2/include/git2.h +1 -0
  88. data/vendor/libgit2/src/annotated_commit.c +99 -80
  89. data/vendor/libgit2/src/annotated_commit.h +5 -2
  90. data/vendor/libgit2/src/apply.c +377 -0
  91. data/vendor/libgit2/src/apply.h +21 -0
  92. data/vendor/libgit2/src/array.h +0 -1
  93. data/vendor/libgit2/src/blob.c +71 -39
  94. data/vendor/libgit2/src/branch.c +7 -5
  95. data/vendor/libgit2/src/buffer.c +252 -20
  96. data/vendor/libgit2/src/buffer.h +8 -0
  97. data/vendor/libgit2/src/checkout.c +69 -42
  98. data/vendor/libgit2/src/clone.c +0 -8
  99. data/vendor/libgit2/src/commit.c +193 -49
  100. data/vendor/libgit2/src/commit_list.c +8 -3
  101. data/vendor/libgit2/src/commit_list.h +1 -0
  102. data/vendor/libgit2/src/common.h +2 -1
  103. data/vendor/libgit2/src/config.c +3 -3
  104. data/vendor/libgit2/src/config_file.c +20 -10
  105. data/vendor/libgit2/src/crlf.c +1 -0
  106. data/vendor/libgit2/src/curl_stream.c +106 -6
  107. data/vendor/libgit2/src/delta.c +238 -62
  108. data/vendor/libgit2/src/delta.h +79 -58
  109. data/vendor/libgit2/src/describe.c +1 -1
  110. data/vendor/libgit2/src/diff.c +32 -1554
  111. data/vendor/libgit2/src/diff.h +14 -122
  112. data/vendor/libgit2/src/diff_driver.c +4 -6
  113. data/vendor/libgit2/src/diff_file.c +3 -0
  114. data/vendor/libgit2/src/diff_generate.c +1613 -0
  115. data/vendor/libgit2/src/diff_generate.h +123 -0
  116. data/vendor/libgit2/src/diff_parse.c +101 -0
  117. data/vendor/libgit2/src/diff_parse.h +18 -0
  118. data/vendor/libgit2/src/diff_print.c +263 -144
  119. data/vendor/libgit2/src/diff_stats.c +21 -12
  120. data/vendor/libgit2/src/diff_tform.c +1 -0
  121. data/vendor/libgit2/src/diff_tform.h +22 -0
  122. data/vendor/libgit2/src/diff_xdiff.c +9 -9
  123. data/vendor/libgit2/src/diff_xdiff.h +5 -5
  124. data/vendor/libgit2/src/fetchhead.c +8 -8
  125. data/vendor/libgit2/src/filebuf.c +6 -1
  126. data/vendor/libgit2/src/filebuf.h +1 -0
  127. data/vendor/libgit2/src/fileops.c +22 -1
  128. data/vendor/libgit2/src/fileops.h +8 -2
  129. data/vendor/libgit2/src/fnmatch.c +18 -5
  130. data/vendor/libgit2/src/global.c +21 -4
  131. data/vendor/libgit2/src/global.h +6 -0
  132. data/vendor/libgit2/src/graph.c +1 -1
  133. data/vendor/libgit2/src/index.c +159 -46
  134. data/vendor/libgit2/src/index.h +2 -0
  135. data/vendor/libgit2/src/iterator.c +1573 -1468
  136. data/vendor/libgit2/src/iterator.h +52 -69
  137. data/vendor/libgit2/src/merge.c +163 -64
  138. data/vendor/libgit2/src/merge.h +61 -2
  139. data/vendor/libgit2/src/merge_driver.c +397 -0
  140. data/vendor/libgit2/src/merge_driver.h +60 -0
  141. data/vendor/libgit2/src/merge_file.c +11 -49
  142. data/vendor/libgit2/src/netops.c +12 -10
  143. data/vendor/libgit2/src/object_api.c +19 -1
  144. data/vendor/libgit2/src/odb.c +228 -52
  145. data/vendor/libgit2/src/odb_loose.c +19 -1
  146. data/vendor/libgit2/src/odb_mempack.c +1 -1
  147. data/vendor/libgit2/src/odb_pack.c +27 -1
  148. data/vendor/libgit2/src/openssl_stream.c +4 -5
  149. data/vendor/libgit2/src/pack-objects.c +105 -76
  150. data/vendor/libgit2/src/pack-objects.h +13 -12
  151. data/vendor/libgit2/src/pack.c +16 -10
  152. data/vendor/libgit2/src/pack.h +2 -0
  153. data/vendor/libgit2/src/patch.c +216 -0
  154. data/vendor/libgit2/src/patch.h +66 -0
  155. data/vendor/libgit2/src/{diff_patch.c → patch_generate.c} +203 -376
  156. data/vendor/libgit2/src/patch_generate.h +68 -0
  157. data/vendor/libgit2/src/patch_parse.c +1159 -0
  158. data/vendor/libgit2/src/patch_parse.h +56 -0
  159. data/vendor/libgit2/src/path.c +38 -2
  160. data/vendor/libgit2/src/path.h +18 -0
  161. data/vendor/libgit2/src/pathspec.c +1 -1
  162. data/vendor/libgit2/src/pool.h +5 -0
  163. data/vendor/libgit2/src/pqueue.c +12 -5
  164. data/vendor/libgit2/src/pqueue.h +1 -0
  165. data/vendor/libgit2/src/proxy.c +32 -0
  166. data/vendor/libgit2/src/proxy.h +14 -0
  167. data/vendor/libgit2/src/push.c +1 -1
  168. data/vendor/libgit2/src/rebase.c +63 -36
  169. data/vendor/libgit2/src/refdb.c +4 -2
  170. data/vendor/libgit2/src/refdb_fs.c +82 -54
  171. data/vendor/libgit2/src/refs.c +13 -1
  172. data/vendor/libgit2/src/remote.c +20 -81
  173. data/vendor/libgit2/src/repository.c +212 -29
  174. data/vendor/libgit2/src/reset.c +1 -1
  175. data/vendor/libgit2/src/revparse.c +1 -1
  176. data/vendor/libgit2/src/revwalk.c +260 -184
  177. data/vendor/libgit2/src/settings.c +11 -3
  178. data/vendor/libgit2/src/signature.c +27 -2
  179. data/vendor/libgit2/src/sortedcache.c +14 -5
  180. data/vendor/libgit2/src/stash.c +1 -0
  181. data/vendor/libgit2/src/status.c +1 -0
  182. data/vendor/libgit2/src/stransport_stream.c +4 -2
  183. data/vendor/libgit2/src/stream.h +2 -2
  184. data/vendor/libgit2/src/submodule.c +16 -4
  185. data/vendor/libgit2/src/sysdir.c +1 -1
  186. data/vendor/libgit2/src/transport.c +3 -5
  187. data/vendor/libgit2/src/transports/http.c +38 -13
  188. data/vendor/libgit2/src/transports/local.c +4 -1
  189. data/vendor/libgit2/src/transports/smart.c +6 -0
  190. data/vendor/libgit2/src/transports/smart.h +1 -0
  191. data/vendor/libgit2/src/transports/smart_pkt.c +5 -13
  192. data/vendor/libgit2/src/transports/smart_protocol.c +22 -7
  193. data/vendor/libgit2/src/transports/winhttp.c +144 -11
  194. data/vendor/libgit2/src/tree.c +267 -2
  195. data/vendor/libgit2/src/unix/posix.h +10 -0
  196. data/vendor/libgit2/src/unix/pthread.h +2 -0
  197. data/vendor/libgit2/src/util.c +25 -2
  198. data/vendor/libgit2/src/util.h +10 -0
  199. data/vendor/libgit2/src/varint.c +44 -0
  200. data/vendor/libgit2/src/varint.h +15 -0
  201. data/vendor/libgit2/src/vector.c +58 -0
  202. data/vendor/libgit2/src/vector.h +8 -0
  203. data/vendor/libgit2/src/win32/posix.h +3 -0
  204. data/vendor/libgit2/src/win32/thread.c +18 -0
  205. data/vendor/libgit2/src/win32/thread.h +2 -0
  206. data/vendor/libgit2/src/win32/w32_util.h +1 -1
  207. data/vendor/libgit2/src/zstream.c +37 -8
  208. data/vendor/libgit2/src/zstream.h +8 -1
  209. metadata +100 -82
  210. data/vendor/libgit2/Makefile.embed +0 -60
  211. data/vendor/libgit2/src/delta-apply.c +0 -166
  212. data/vendor/libgit2/src/delta-apply.h +0 -62
  213. data/vendor/libgit2/src/diff_patch.h +0 -83
@@ -21,27 +21,38 @@ static int zstream_seterr(git_zstream *zs)
21
21
  if (zs->zerr == Z_MEM_ERROR)
22
22
  giterr_set_oom();
23
23
  else if (zs->z.msg)
24
- giterr_set(GITERR_ZLIB, zs->z.msg);
24
+ giterr_set_str(GITERR_ZLIB, zs->z.msg);
25
25
  else
26
26
  giterr_set(GITERR_ZLIB, "Unknown compression error");
27
27
 
28
28
  return -1;
29
29
  }
30
30
 
31
- int git_zstream_init(git_zstream *zstream)
31
+ int git_zstream_init(git_zstream *zstream, git_zstream_t type)
32
32
  {
33
- zstream->zerr = deflateInit(&zstream->z, Z_DEFAULT_COMPRESSION);
33
+ zstream->type = type;
34
+
35
+ if (zstream->type == GIT_ZSTREAM_INFLATE)
36
+ zstream->zerr = inflateInit(&zstream->z);
37
+ else
38
+ zstream->zerr = deflateInit(&zstream->z, Z_DEFAULT_COMPRESSION);
34
39
  return zstream_seterr(zstream);
35
40
  }
36
41
 
37
42
  void git_zstream_free(git_zstream *zstream)
38
43
  {
39
- deflateEnd(&zstream->z);
44
+ if (zstream->type == GIT_ZSTREAM_INFLATE)
45
+ inflateEnd(&zstream->z);
46
+ else
47
+ deflateEnd(&zstream->z);
40
48
  }
41
49
 
42
50
  void git_zstream_reset(git_zstream *zstream)
43
51
  {
44
- deflateReset(&zstream->z);
52
+ if (zstream->type == GIT_ZSTREAM_INFLATE)
53
+ inflateReset(&zstream->z);
54
+ else
55
+ deflateReset(&zstream->z);
45
56
  zstream->in = NULL;
46
57
  zstream->in_len = 0;
47
58
  zstream->zerr = Z_STREAM_END;
@@ -75,6 +86,11 @@ int git_zstream_get_output(void *out, size_t *out_len, git_zstream *zstream)
75
86
  int zflush = Z_FINISH;
76
87
  size_t out_remain = *out_len;
77
88
 
89
+ if (zstream->in_len && zstream->zerr == Z_STREAM_END) {
90
+ giterr_set(GITERR_ZLIB, "zlib input had trailing garbage");
91
+ return -1;
92
+ }
93
+
78
94
  while (out_remain > 0 && zstream->zerr != Z_STREAM_END) {
79
95
  size_t out_queued, in_queued, out_used, in_used;
80
96
 
@@ -97,7 +113,10 @@ int git_zstream_get_output(void *out, size_t *out_len, git_zstream *zstream)
97
113
  out_queued = (size_t)zstream->z.avail_out;
98
114
 
99
115
  /* compress next chunk */
100
- zstream->zerr = deflate(&zstream->z, zflush);
116
+ if (zstream->type == GIT_ZSTREAM_INFLATE)
117
+ zstream->zerr = inflate(&zstream->z, zflush);
118
+ else
119
+ zstream->zerr = deflate(&zstream->z, zflush);
101
120
 
102
121
  if (zstream->zerr == Z_STREAM_ERROR)
103
122
  return zstream_seterr(zstream);
@@ -120,12 +139,12 @@ int git_zstream_get_output(void *out, size_t *out_len, git_zstream *zstream)
120
139
  return 0;
121
140
  }
122
141
 
123
- int git_zstream_deflatebuf(git_buf *out, const void *in, size_t in_len)
142
+ static int zstream_buf(git_buf *out, const void *in, size_t in_len, git_zstream_t type)
124
143
  {
125
144
  git_zstream zs = GIT_ZSTREAM_INIT;
126
145
  int error = 0;
127
146
 
128
- if ((error = git_zstream_init(&zs)) < 0)
147
+ if ((error = git_zstream_init(&zs, type)) < 0)
129
148
  return error;
130
149
 
131
150
  if ((error = git_zstream_set_input(&zs, in, in_len)) < 0)
@@ -154,3 +173,13 @@ done:
154
173
  git_zstream_free(&zs);
155
174
  return error;
156
175
  }
176
+
177
+ int git_zstream_deflatebuf(git_buf *out, const void *in, size_t in_len)
178
+ {
179
+ return zstream_buf(out, in, in_len, GIT_ZSTREAM_DEFLATE);
180
+ }
181
+
182
+ int git_zstream_inflatebuf(git_buf *out, const void *in, size_t in_len)
183
+ {
184
+ return zstream_buf(out, in, in_len, GIT_ZSTREAM_INFLATE);
185
+ }
@@ -12,8 +12,14 @@
12
12
  #include "common.h"
13
13
  #include "buffer.h"
14
14
 
15
+ typedef enum {
16
+ GIT_ZSTREAM_INFLATE,
17
+ GIT_ZSTREAM_DEFLATE,
18
+ } git_zstream_t;
19
+
15
20
  typedef struct {
16
21
  z_stream z;
22
+ git_zstream_t type;
17
23
  const char *in;
18
24
  size_t in_len;
19
25
  int zerr;
@@ -21,7 +27,7 @@ typedef struct {
21
27
 
22
28
  #define GIT_ZSTREAM_INIT {{0}}
23
29
 
24
- int git_zstream_init(git_zstream *zstream);
30
+ int git_zstream_init(git_zstream *zstream, git_zstream_t type);
25
31
  void git_zstream_free(git_zstream *zstream);
26
32
 
27
33
  int git_zstream_set_input(git_zstream *zstream, const void *in, size_t in_len);
@@ -35,5 +41,6 @@ bool git_zstream_done(git_zstream *zstream);
35
41
  void git_zstream_reset(git_zstream *zstream);
36
42
 
37
43
  int git_zstream_deflatebuf(git_buf *out, const void *in, size_t in_len);
44
+ int git_zstream_inflatebuf(git_buf *out, const void *in, size_t in_len);
38
45
 
39
46
  #endif /* INCLUDE_zstream_h__ */
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rugged
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.6.1
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon
@@ -9,50 +9,50 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-12 00:00:00.000000000 Z
12
+ date: 2017-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake-compiler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - '>='
19
19
  - !ruby/object:Gem::Version
20
20
  version: 0.9.0
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">="
25
+ - - '>='
26
26
  - !ruby/object:Gem::Version
27
27
  version: 0.9.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: pry
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - '>='
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - '>='
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: minitest
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ~>
47
47
  - !ruby/object:Gem::Version
48
- version: '3.0'
48
+ version: '5.0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: '3.0'
55
+ version: '5.0'
56
56
  description: |
57
57
  Rugged is a Ruby bindings to the libgit2 linkable C Git library. This is
58
58
  for testing and using the libgit2 library in a language that is awesome.
@@ -62,9 +62,30 @@ extensions:
62
62
  - ext/rugged/extconf.rb
63
63
  extra_rdoc_files: []
64
64
  files:
65
- - LICENSE
66
65
  - README.md
67
- - ext/rugged/extconf.rb
66
+ - LICENSE
67
+ - lib/rugged/attributes.rb
68
+ - lib/rugged/blob.rb
69
+ - lib/rugged/branch.rb
70
+ - lib/rugged/commit.rb
71
+ - lib/rugged/console.rb
72
+ - lib/rugged/credentials.rb
73
+ - lib/rugged/diff/delta.rb
74
+ - lib/rugged/diff/hunk.rb
75
+ - lib/rugged/diff/line.rb
76
+ - lib/rugged/diff.rb
77
+ - lib/rugged/index.rb
78
+ - lib/rugged/object.rb
79
+ - lib/rugged/patch.rb
80
+ - lib/rugged/reference.rb
81
+ - lib/rugged/remote.rb
82
+ - lib/rugged/repository.rb
83
+ - lib/rugged/submodule_collection.rb
84
+ - lib/rugged/tag.rb
85
+ - lib/rugged/tree.rb
86
+ - lib/rugged/version.rb
87
+ - lib/rugged/walker.rb
88
+ - lib/rugged.rb
68
89
  - ext/rugged/rugged.c
69
90
  - ext/rugged/rugged.h
70
91
  - ext/rugged/rugged_backend.c
@@ -97,72 +118,12 @@ files:
97
118
  - ext/rugged/rugged_tag.c
98
119
  - ext/rugged/rugged_tag_collection.c
99
120
  - ext/rugged/rugged_tree.c
100
- - lib/rugged.rb
101
- - lib/rugged/attributes.rb
102
- - lib/rugged/blob.rb
103
- - lib/rugged/branch.rb
104
- - lib/rugged/commit.rb
105
- - lib/rugged/console.rb
106
- - lib/rugged/credentials.rb
107
- - lib/rugged/diff.rb
108
- - lib/rugged/diff/delta.rb
109
- - lib/rugged/diff/hunk.rb
110
- - lib/rugged/diff/line.rb
111
- - lib/rugged/index.rb
112
- - lib/rugged/object.rb
113
- - lib/rugged/patch.rb
114
- - lib/rugged/reference.rb
115
- - lib/rugged/remote.rb
116
- - lib/rugged/repository.rb
117
- - lib/rugged/submodule_collection.rb
118
- - lib/rugged/tag.rb
119
- - lib/rugged/tree.rb
120
- - lib/rugged/version.rb
121
- - lib/rugged/walker.rb
122
- - vendor/libgit2/AUTHORS
123
- - vendor/libgit2/CMakeLists.txt
124
- - vendor/libgit2/COPYING
125
- - vendor/libgit2/Makefile.embed
126
121
  - vendor/libgit2/cmake/Modules/AddCFlagIfSupported.cmake
127
122
  - vendor/libgit2/cmake/Modules/FindCoreFoundation.cmake
128
123
  - vendor/libgit2/cmake/Modules/FindGSSAPI.cmake
129
124
  - vendor/libgit2/cmake/Modules/FindHTTP_Parser.cmake
130
125
  - vendor/libgit2/cmake/Modules/FindIconv.cmake
131
126
  - vendor/libgit2/cmake/Modules/FindSecurity.cmake
132
- - vendor/libgit2/deps/http-parser/LICENSE-MIT
133
- - vendor/libgit2/deps/http-parser/http_parser.c
134
- - vendor/libgit2/deps/http-parser/http_parser.h
135
- - vendor/libgit2/deps/regex/config.h
136
- - vendor/libgit2/deps/regex/regcomp.c
137
- - vendor/libgit2/deps/regex/regex.c
138
- - vendor/libgit2/deps/regex/regex.h
139
- - vendor/libgit2/deps/regex/regex_internal.c
140
- - vendor/libgit2/deps/regex/regex_internal.h
141
- - vendor/libgit2/deps/regex/regexec.c
142
- - vendor/libgit2/deps/winhttp/urlmon.h
143
- - vendor/libgit2/deps/winhttp/winhttp.def
144
- - vendor/libgit2/deps/winhttp/winhttp.h
145
- - vendor/libgit2/deps/winhttp/winhttp64.def
146
- - vendor/libgit2/deps/zlib/adler32.c
147
- - vendor/libgit2/deps/zlib/crc32.c
148
- - vendor/libgit2/deps/zlib/crc32.h
149
- - vendor/libgit2/deps/zlib/deflate.c
150
- - vendor/libgit2/deps/zlib/deflate.h
151
- - vendor/libgit2/deps/zlib/infback.c
152
- - vendor/libgit2/deps/zlib/inffast.c
153
- - vendor/libgit2/deps/zlib/inffast.h
154
- - vendor/libgit2/deps/zlib/inffixed.h
155
- - vendor/libgit2/deps/zlib/inflate.c
156
- - vendor/libgit2/deps/zlib/inflate.h
157
- - vendor/libgit2/deps/zlib/inftrees.c
158
- - vendor/libgit2/deps/zlib/inftrees.h
159
- - vendor/libgit2/deps/zlib/trees.c
160
- - vendor/libgit2/deps/zlib/trees.h
161
- - vendor/libgit2/deps/zlib/zconf.h
162
- - vendor/libgit2/deps/zlib/zlib.h
163
- - vendor/libgit2/deps/zlib/zutil.c
164
- - vendor/libgit2/deps/zlib/zutil.h
165
- - vendor/libgit2/include/git2.h
166
127
  - vendor/libgit2/include/git2/annotated_commit.h
167
128
  - vendor/libgit2/include/git2/attr.h
168
129
  - vendor/libgit2/include/git2/blame.h
@@ -198,6 +159,7 @@ files:
198
159
  - vendor/libgit2/include/git2/pack.h
199
160
  - vendor/libgit2/include/git2/patch.h
200
161
  - vendor/libgit2/include/git2/pathspec.h
162
+ - vendor/libgit2/include/git2/proxy.h
201
163
  - vendor/libgit2/include/git2/rebase.h
202
164
  - vendor/libgit2/include/git2/refdb.h
203
165
  - vendor/libgit2/include/git2/reflog.h
@@ -222,13 +184,16 @@ files:
222
184
  - vendor/libgit2/include/git2/sys/hashsig.h
223
185
  - vendor/libgit2/include/git2/sys/index.h
224
186
  - vendor/libgit2/include/git2/sys/mempack.h
187
+ - vendor/libgit2/include/git2/sys/merge.h
225
188
  - vendor/libgit2/include/git2/sys/odb_backend.h
226
189
  - vendor/libgit2/include/git2/sys/openssl.h
227
190
  - vendor/libgit2/include/git2/sys/refdb_backend.h
228
191
  - vendor/libgit2/include/git2/sys/reflog.h
229
192
  - vendor/libgit2/include/git2/sys/refs.h
193
+ - vendor/libgit2/include/git2/sys/remote.h
230
194
  - vendor/libgit2/include/git2/sys/repository.h
231
195
  - vendor/libgit2/include/git2/sys/stream.h
196
+ - vendor/libgit2/include/git2/sys/time.h
232
197
  - vendor/libgit2/include/git2/sys/transport.h
233
198
  - vendor/libgit2/include/git2/tag.h
234
199
  - vendor/libgit2/include/git2/trace.h
@@ -237,9 +202,11 @@ files:
237
202
  - vendor/libgit2/include/git2/tree.h
238
203
  - vendor/libgit2/include/git2/types.h
239
204
  - vendor/libgit2/include/git2/version.h
240
- - vendor/libgit2/libgit2.pc.in
205
+ - vendor/libgit2/include/git2.h
241
206
  - vendor/libgit2/src/annotated_commit.c
242
207
  - vendor/libgit2/src/annotated_commit.h
208
+ - vendor/libgit2/src/apply.c
209
+ - vendor/libgit2/src/apply.h
243
210
  - vendor/libgit2/src/array.h
244
211
  - vendor/libgit2/src/attr.c
245
212
  - vendor/libgit2/src/attr.h
@@ -282,8 +249,6 @@ files:
282
249
  - vendor/libgit2/src/curl_stream.c
283
250
  - vendor/libgit2/src/curl_stream.h
284
251
  - vendor/libgit2/src/date.c
285
- - vendor/libgit2/src/delta-apply.c
286
- - vendor/libgit2/src/delta-apply.h
287
252
  - vendor/libgit2/src/delta.c
288
253
  - vendor/libgit2/src/delta.h
289
254
  - vendor/libgit2/src/describe.c
@@ -293,11 +258,14 @@ files:
293
258
  - vendor/libgit2/src/diff_driver.h
294
259
  - vendor/libgit2/src/diff_file.c
295
260
  - vendor/libgit2/src/diff_file.h
296
- - vendor/libgit2/src/diff_patch.c
297
- - vendor/libgit2/src/diff_patch.h
261
+ - vendor/libgit2/src/diff_generate.c
262
+ - vendor/libgit2/src/diff_generate.h
263
+ - vendor/libgit2/src/diff_parse.c
264
+ - vendor/libgit2/src/diff_parse.h
298
265
  - vendor/libgit2/src/diff_print.c
299
266
  - vendor/libgit2/src/diff_stats.c
300
267
  - vendor/libgit2/src/diff_tform.c
268
+ - vendor/libgit2/src/diff_tform.h
301
269
  - vendor/libgit2/src/diff_xdiff.c
302
270
  - vendor/libgit2/src/diff_xdiff.h
303
271
  - vendor/libgit2/src/errors.c
@@ -316,14 +284,14 @@ files:
316
284
  - vendor/libgit2/src/global.c
317
285
  - vendor/libgit2/src/global.h
318
286
  - vendor/libgit2/src/graph.c
319
- - vendor/libgit2/src/hash.c
320
- - vendor/libgit2/src/hash.h
321
287
  - vendor/libgit2/src/hash/hash_common_crypto.h
322
288
  - vendor/libgit2/src/hash/hash_generic.c
323
289
  - vendor/libgit2/src/hash/hash_generic.h
324
290
  - vendor/libgit2/src/hash/hash_openssl.h
325
291
  - vendor/libgit2/src/hash/hash_win32.c
326
292
  - vendor/libgit2/src/hash/hash_win32.h
293
+ - vendor/libgit2/src/hash.c
294
+ - vendor/libgit2/src/hash.h
327
295
  - vendor/libgit2/src/hashsig.c
328
296
  - vendor/libgit2/src/ident.c
329
297
  - vendor/libgit2/src/idxmap.h
@@ -339,6 +307,8 @@ files:
339
307
  - vendor/libgit2/src/map.h
340
308
  - vendor/libgit2/src/merge.c
341
309
  - vendor/libgit2/src/merge.h
310
+ - vendor/libgit2/src/merge_driver.c
311
+ - vendor/libgit2/src/merge_driver.h
342
312
  - vendor/libgit2/src/merge_file.c
343
313
  - vendor/libgit2/src/message.c
344
314
  - vendor/libgit2/src/message.h
@@ -368,6 +338,12 @@ files:
368
338
  - vendor/libgit2/src/pack-objects.h
369
339
  - vendor/libgit2/src/pack.c
370
340
  - vendor/libgit2/src/pack.h
341
+ - vendor/libgit2/src/patch.c
342
+ - vendor/libgit2/src/patch.h
343
+ - vendor/libgit2/src/patch_generate.c
344
+ - vendor/libgit2/src/patch_generate.h
345
+ - vendor/libgit2/src/patch_parse.c
346
+ - vendor/libgit2/src/patch_parse.h
371
347
  - vendor/libgit2/src/path.c
372
348
  - vendor/libgit2/src/path.h
373
349
  - vendor/libgit2/src/pathspec.c
@@ -378,6 +354,8 @@ files:
378
354
  - vendor/libgit2/src/posix.h
379
355
  - vendor/libgit2/src/pqueue.c
380
356
  - vendor/libgit2/src/pqueue.h
357
+ - vendor/libgit2/src/proxy.c
358
+ - vendor/libgit2/src/proxy.h
381
359
  - vendor/libgit2/src/push.c
382
360
  - vendor/libgit2/src/push.h
383
361
  - vendor/libgit2/src/rebase.c
@@ -463,6 +441,8 @@ files:
463
441
  - vendor/libgit2/src/userdiff.h
464
442
  - vendor/libgit2/src/util.c
465
443
  - vendor/libgit2/src/util.h
444
+ - vendor/libgit2/src/varint.c
445
+ - vendor/libgit2/src/varint.h
466
446
  - vendor/libgit2/src/vector.c
467
447
  - vendor/libgit2/src/vector.h
468
448
  - vendor/libgit2/src/win32/dir.c
@@ -513,6 +493,44 @@ files:
513
493
  - vendor/libgit2/src/xdiff/xutils.h
514
494
  - vendor/libgit2/src/zstream.c
515
495
  - vendor/libgit2/src/zstream.h
496
+ - vendor/libgit2/deps/http-parser/http_parser.c
497
+ - vendor/libgit2/deps/http-parser/http_parser.h
498
+ - vendor/libgit2/deps/http-parser/LICENSE-MIT
499
+ - vendor/libgit2/deps/regex/config.h
500
+ - vendor/libgit2/deps/regex/regcomp.c
501
+ - vendor/libgit2/deps/regex/regex.c
502
+ - vendor/libgit2/deps/regex/regex.h
503
+ - vendor/libgit2/deps/regex/regex_internal.c
504
+ - vendor/libgit2/deps/regex/regex_internal.h
505
+ - vendor/libgit2/deps/regex/regexec.c
506
+ - vendor/libgit2/deps/winhttp/urlmon.h
507
+ - vendor/libgit2/deps/winhttp/winhttp.def
508
+ - vendor/libgit2/deps/winhttp/winhttp.h
509
+ - vendor/libgit2/deps/winhttp/winhttp64.def
510
+ - vendor/libgit2/deps/zlib/adler32.c
511
+ - vendor/libgit2/deps/zlib/crc32.c
512
+ - vendor/libgit2/deps/zlib/crc32.h
513
+ - vendor/libgit2/deps/zlib/deflate.c
514
+ - vendor/libgit2/deps/zlib/deflate.h
515
+ - vendor/libgit2/deps/zlib/infback.c
516
+ - vendor/libgit2/deps/zlib/inffast.c
517
+ - vendor/libgit2/deps/zlib/inffast.h
518
+ - vendor/libgit2/deps/zlib/inffixed.h
519
+ - vendor/libgit2/deps/zlib/inflate.c
520
+ - vendor/libgit2/deps/zlib/inflate.h
521
+ - vendor/libgit2/deps/zlib/inftrees.c
522
+ - vendor/libgit2/deps/zlib/inftrees.h
523
+ - vendor/libgit2/deps/zlib/trees.c
524
+ - vendor/libgit2/deps/zlib/trees.h
525
+ - vendor/libgit2/deps/zlib/zconf.h
526
+ - vendor/libgit2/deps/zlib/zlib.h
527
+ - vendor/libgit2/deps/zlib/zutil.c
528
+ - vendor/libgit2/deps/zlib/zutil.h
529
+ - vendor/libgit2/CMakeLists.txt
530
+ - vendor/libgit2/AUTHORS
531
+ - vendor/libgit2/COPYING
532
+ - vendor/libgit2/libgit2.pc.in
533
+ - ext/rugged/extconf.rb
516
534
  homepage: https://github.com/libgit2/rugged
517
535
  licenses:
518
536
  - MIT
@@ -523,17 +541,17 @@ require_paths:
523
541
  - lib
524
542
  required_ruby_version: !ruby/object:Gem::Requirement
525
543
  requirements:
526
- - - ">="
544
+ - - '>='
527
545
  - !ruby/object:Gem::Version
528
546
  version: 1.9.3
529
547
  required_rubygems_version: !ruby/object:Gem::Requirement
530
548
  requirements:
531
- - - ">="
549
+ - - '>='
532
550
  - !ruby/object:Gem::Version
533
551
  version: '0'
534
552
  requirements: []
535
553
  rubyforge_project:
536
- rubygems_version: 2.6.8
554
+ rubygems_version: 2.0.14.1
537
555
  signing_key:
538
556
  specification_version: 4
539
557
  summary: Rugged is a Ruby binding to the libgit2 linkable library
@@ -1,60 +0,0 @@
1
- PLATFORM=$(shell uname -s)
2
-
3
- ifneq (,$(CROSS_COMPILE))
4
- PREFIX=$(CROSS_COMPILE)-
5
- else
6
- PREFIX=
7
- endif
8
-
9
- MINGW=0
10
- ifneq (,$(findstring MINGW32,$(PLATFORM)))
11
- MINGW=1
12
- endif
13
- ifneq (,$(findstring mingw,$(CROSS_COMPILE)))
14
- MINGW=1
15
- endif
16
-
17
- rm=rm -f
18
- AR=$(PREFIX)ar cq
19
- RANLIB=$(PREFIX)ranlib
20
-
21
- LIBNAME=libgit2.a
22
-
23
- ifeq ($(MINGW),1)
24
- CC=gcc
25
- else
26
- CC=cc
27
- endif
28
-
29
- CC:=$(PREFIX)$(CC)
30
-
31
- INCLUDES= -I. -Isrc -Iinclude -Ideps/http-parser -Ideps/zlib
32
-
33
- DEFINES= $(INCLUDES) -DNO_VIZ -DSTDC -DNO_GZIP -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $(EXTRA_DEFINES)
34
- CFLAGS= -g $(DEFINES) -Wall -Wextra -Wno-missing-field-initializers -O2 $(EXTRA_CFLAGS)
35
-
36
- SRCS = $(wildcard src/*.c) $(wildcard src/transports/*.c) $(wildcard src/xdiff/*.c) $(wildcard deps/http-parser/*.c) $(wildcard deps/zlib/*.c) src/hash/hash_generic.c
37
-
38
- ifeq ($(MINGW),1)
39
- SRCS += $(wildcard src/win32/*.c) $(wildcard src/compat/*.c) deps/regex/regex.c
40
- INCLUDES += -Ideps/regex
41
- DEFINES += -DWIN32 -D_WIN32_WINNT=0x0501 -D__USE_MINGW_ANSI_STDIO=1
42
- else
43
- SRCS += $(wildcard src/unix/*.c)
44
- CFLAGS += -fPIC
45
- endif
46
-
47
- OBJS = $(patsubst %.c,%.o,$(SRCS))
48
-
49
- %.c.o:
50
- $(CC) $(CFLAGS) -c $*.c
51
-
52
- all: $(LIBNAME)
53
-
54
- $(LIBNAME): $(OBJS)
55
- $(rm) $@
56
- $(AR) $@ $(OBJS)
57
- $(RANLIB) $@
58
-
59
- clean:
60
- $(rm) $(OBJS) $(LIBNAME)