rugged 0.26.0b5 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/ext/rugged/rugged.c +24 -0
  3. data/ext/rugged/rugged.h +2 -0
  4. data/ext/rugged/rugged_signature.c +15 -2
  5. data/lib/rugged/version.rb +1 -1
  6. data/vendor/libgit2/CMakeLists.txt +9 -8
  7. data/vendor/libgit2/include/git2/common.h +29 -0
  8. data/vendor/libgit2/include/git2/errors.h +2 -0
  9. data/vendor/libgit2/include/git2/global.h +1 -1
  10. data/vendor/libgit2/include/git2/odb.h +2 -2
  11. data/vendor/libgit2/include/git2/odb_backend.h +1 -1
  12. data/vendor/libgit2/include/git2/remote.h +3 -3
  13. data/vendor/libgit2/include/git2/repository.h +2 -2
  14. data/vendor/libgit2/include/git2/sys/filter.h +11 -0
  15. data/vendor/libgit2/include/git2/sys/merge.h +5 -5
  16. data/vendor/libgit2/include/git2/sys/transport.h +10 -0
  17. data/vendor/libgit2/include/git2/transport.h +6 -6
  18. data/vendor/libgit2/include/git2/version.h +3 -3
  19. data/vendor/libgit2/include/git2/worktree.h +69 -10
  20. data/vendor/libgit2/libgit2.pc.in +2 -2
  21. data/vendor/libgit2/src/attr_file.c +6 -2
  22. data/vendor/libgit2/src/attrcache.c +7 -5
  23. data/vendor/libgit2/src/blame_git.c +12 -8
  24. data/vendor/libgit2/src/branch.c +17 -48
  25. data/vendor/libgit2/src/buffer.c +11 -12
  26. data/vendor/libgit2/src/buffer.h +2 -2
  27. data/vendor/libgit2/src/checkout.c +3 -6
  28. data/vendor/libgit2/src/config.c +42 -35
  29. data/vendor/libgit2/src/config_cache.c +1 -0
  30. data/vendor/libgit2/src/config_file.c +19 -11
  31. data/vendor/libgit2/src/config_file.h +1 -0
  32. data/vendor/libgit2/src/diff.c +35 -0
  33. data/vendor/libgit2/src/diff_parse.c +7 -1
  34. data/vendor/libgit2/src/filebuf.c +12 -1
  35. data/vendor/libgit2/src/filebuf.h +3 -1
  36. data/vendor/libgit2/src/fileops.c +83 -22
  37. data/vendor/libgit2/src/fileops.h +25 -0
  38. data/vendor/libgit2/src/filter.c +30 -14
  39. data/vendor/libgit2/src/global.c +1 -1
  40. data/vendor/libgit2/src/hash/hash_collisiondetect.h +1 -11
  41. data/vendor/libgit2/src/hash/sha1dc/sha1.c +894 -187
  42. data/vendor/libgit2/src/hash/sha1dc/sha1.h +69 -53
  43. data/vendor/libgit2/src/hash/sha1dc/ubc_check.c +13 -2
  44. data/vendor/libgit2/src/hash/sha1dc/ubc_check.h +20 -3
  45. data/vendor/libgit2/src/idxmap.c +1 -1
  46. data/vendor/libgit2/src/idxmap.h +1 -2
  47. data/vendor/libgit2/src/index.c +75 -42
  48. data/vendor/libgit2/src/indexer.c +31 -11
  49. data/vendor/libgit2/src/indexer.h +12 -0
  50. data/vendor/libgit2/src/merge.c +20 -0
  51. data/vendor/libgit2/src/merge_driver.c +29 -0
  52. data/vendor/libgit2/src/odb.c +96 -19
  53. data/vendor/libgit2/src/odb.h +25 -0
  54. data/vendor/libgit2/src/odb_loose.c +20 -6
  55. data/vendor/libgit2/src/odb_pack.c +1 -1
  56. data/vendor/libgit2/src/offmap.c +1 -1
  57. data/vendor/libgit2/src/offmap.h +1 -2
  58. data/vendor/libgit2/src/oidmap.c +1 -1
  59. data/vendor/libgit2/src/oidmap.h +1 -2
  60. data/vendor/libgit2/src/openssl_stream.c +11 -4
  61. data/vendor/libgit2/src/pack-objects.c +4 -0
  62. data/vendor/libgit2/src/pack-objects.h +1 -0
  63. data/vendor/libgit2/src/pack.c +5 -3
  64. data/vendor/libgit2/src/patch_generate.c +8 -79
  65. data/vendor/libgit2/src/patch_parse.c +5 -4
  66. data/vendor/libgit2/src/path.c +9 -7
  67. data/vendor/libgit2/src/posix.c +2 -0
  68. data/vendor/libgit2/src/posix.h +10 -0
  69. data/vendor/libgit2/src/rebase.c +12 -10
  70. data/vendor/libgit2/src/refdb_fs.c +33 -10
  71. data/vendor/libgit2/src/refs.c +89 -8
  72. data/vendor/libgit2/src/refs.h +14 -0
  73. data/vendor/libgit2/src/remote.c +9 -10
  74. data/vendor/libgit2/src/repository.c +178 -146
  75. data/vendor/libgit2/src/repository.h +25 -0
  76. data/vendor/libgit2/src/revparse.c +22 -3
  77. data/vendor/libgit2/src/revwalk.c +6 -3
  78. data/vendor/libgit2/src/settings.c +22 -1
  79. data/vendor/libgit2/src/signature.c +4 -1
  80. data/vendor/libgit2/src/socket_stream.c +2 -4
  81. data/vendor/libgit2/src/strmap.c +1 -1
  82. data/vendor/libgit2/src/strmap.h +1 -3
  83. data/vendor/libgit2/src/submodule.c +27 -7
  84. data/vendor/libgit2/src/sysdir.c +11 -0
  85. data/vendor/libgit2/src/sysdir.h +12 -0
  86. data/vendor/libgit2/src/transports/http.c +3 -0
  87. data/vendor/libgit2/src/transports/smart.c +6 -0
  88. data/vendor/libgit2/src/transports/smart_protocol.c +2 -1
  89. data/vendor/libgit2/src/transports/ssh.c +13 -1
  90. data/vendor/libgit2/src/transports/winhttp.c +1 -2
  91. data/vendor/libgit2/src/tree.c +13 -11
  92. data/vendor/libgit2/src/unix/posix.h +6 -1
  93. data/vendor/libgit2/src/varint.c +1 -1
  94. data/vendor/libgit2/src/win32/posix.h +3 -0
  95. data/vendor/libgit2/src/win32/posix_w32.c +334 -111
  96. data/vendor/libgit2/src/worktree.c +174 -48
  97. data/vendor/libgit2/src/worktree.h +1 -1
  98. metadata +77 -76
@@ -14,11 +14,20 @@
14
14
  #include "repository.h"
15
15
  #include "worktree.h"
16
16
 
17
- static bool is_worktree_dir(git_buf *dir)
17
+ static bool is_worktree_dir(const char *dir)
18
18
  {
19
- return git_path_contains_file(dir, "commondir")
20
- && git_path_contains_file(dir, "gitdir")
21
- && git_path_contains_file(dir, "HEAD");
19
+ git_buf buf = GIT_BUF_INIT;
20
+ int error;
21
+
22
+ if (git_buf_sets(&buf, dir) < 0)
23
+ return -1;
24
+
25
+ error = git_path_contains_file(&buf, "commondir")
26
+ && git_path_contains_file(&buf, "gitdir")
27
+ && git_path_contains_file(&buf, "HEAD");
28
+
29
+ git_buf_free(&buf);
30
+ return error;
22
31
  }
23
32
 
24
33
  int git_worktree_list(git_strarray *wts, git_repository *repo)
@@ -47,7 +56,7 @@ int git_worktree_list(git_strarray *wts, git_repository *repo)
47
56
  git_buf_truncate(&path, len);
48
57
  git_buf_puts(&path, worktree);
49
58
 
50
- if (!is_worktree_dir(&path)) {
59
+ if (!is_worktree_dir(path.ptr)) {
51
60
  git_vector_remove(&worktrees, i);
52
61
  git__free(worktree);
53
62
  }
@@ -112,40 +121,61 @@ out:
112
121
  return err;
113
122
  }
114
123
 
115
- int git_worktree_lookup(git_worktree **out, git_repository *repo, const char *name)
124
+ static int open_worktree_dir(git_worktree **out, const char *parent, const char *dir, const char *name)
116
125
  {
117
- git_buf path = GIT_BUF_INIT;
126
+ git_buf gitdir = GIT_BUF_INIT;
118
127
  git_worktree *wt = NULL;
119
- int error;
128
+ int error = 0;
120
129
 
121
- assert(repo && name);
122
-
123
- *out = NULL;
124
-
125
- if ((error = git_buf_printf(&path, "%s/worktrees/%s", repo->commondir, name)) < 0)
126
- goto out;
127
-
128
- if (!is_worktree_dir(&path)) {
130
+ if (!is_worktree_dir(dir)) {
129
131
  error = -1;
130
132
  goto out;
131
133
  }
132
134
 
133
- if ((wt = git__malloc(sizeof(struct git_repository))) == NULL) {
135
+ if ((wt = git__calloc(1, sizeof(struct git_repository))) == NULL) {
134
136
  error = -1;
135
137
  goto out;
136
138
  }
137
139
 
138
140
  if ((wt->name = git__strdup(name)) == NULL
139
- || (wt->commondir_path = git_worktree__read_link(path.ptr, "commondir")) == NULL
140
- || (wt->gitlink_path = git_worktree__read_link(path.ptr, "gitdir")) == NULL
141
- || (wt->parent_path = git__strdup(git_repository_path(repo))) == NULL) {
141
+ || (wt->commondir_path = git_worktree__read_link(dir, "commondir")) == NULL
142
+ || (wt->gitlink_path = git_worktree__read_link(dir, "gitdir")) == NULL
143
+ || (wt->parent_path = git__strdup(parent)) == NULL) {
142
144
  error = -1;
143
145
  goto out;
144
146
  }
145
- wt->gitdir_path = git_buf_detach(&path);
147
+
148
+ if ((error = git_path_prettify_dir(&gitdir, dir, NULL)) < 0)
149
+ goto out;
150
+ wt->gitdir_path = git_buf_detach(&gitdir);
151
+
146
152
  wt->locked = !!git_worktree_is_locked(NULL, wt);
147
153
 
148
- (*out) = wt;
154
+ *out = wt;
155
+
156
+ out:
157
+ if (error)
158
+ git_worktree_free(wt);
159
+ git_buf_free(&gitdir);
160
+
161
+ return error;
162
+ }
163
+
164
+ int git_worktree_lookup(git_worktree **out, git_repository *repo, const char *name)
165
+ {
166
+ git_buf path = GIT_BUF_INIT;
167
+ git_worktree *wt = NULL;
168
+ int error;
169
+
170
+ assert(repo && name);
171
+
172
+ *out = NULL;
173
+
174
+ if ((error = git_buf_printf(&path, "%s/worktrees/%s", repo->commondir, name)) < 0)
175
+ goto out;
176
+
177
+ if ((error = (open_worktree_dir(out, git_repository_workdir(repo), path.ptr, name))) < 0)
178
+ goto out;
149
179
 
150
180
  out:
151
181
  git_buf_free(&path);
@@ -156,6 +186,38 @@ out:
156
186
  return error;
157
187
  }
158
188
 
189
+ int git_worktree_open_from_repository(git_worktree **out, git_repository *repo)
190
+ {
191
+ git_buf parent = GIT_BUF_INIT;
192
+ const char *gitdir, *commondir;
193
+ char *name = NULL;
194
+ int error = 0;
195
+
196
+ if (!git_repository_is_worktree(repo)) {
197
+ giterr_set(GITERR_WORKTREE, "cannot open worktree of a non-worktree repo");
198
+ error = -1;
199
+ goto out;
200
+ }
201
+
202
+ gitdir = git_repository_path(repo);
203
+ commondir = git_repository_commondir(repo);
204
+
205
+ if ((error = git_path_prettify_dir(&parent, "..", commondir)) < 0)
206
+ goto out;
207
+
208
+ /* The name is defined by the last component in '.git/worktree/%s' */
209
+ name = git_path_basename(gitdir);
210
+
211
+ if ((error = open_worktree_dir(out, parent.ptr, gitdir, name)) < 0)
212
+ goto out;
213
+
214
+ out:
215
+ git__free(name);
216
+ git_buf_free(&parent);
217
+
218
+ return error;
219
+ }
220
+
159
221
  void git_worktree_free(git_worktree *wt)
160
222
  {
161
223
  if (!wt)
@@ -177,7 +239,7 @@ int git_worktree_validate(const git_worktree *wt)
177
239
  assert(wt);
178
240
 
179
241
  git_buf_puts(&buf, wt->gitdir_path);
180
- if (!is_worktree_dir(&buf)) {
242
+ if (!is_worktree_dir(buf.ptr)) {
181
243
  giterr_set(GITERR_WORKTREE,
182
244
  "Worktree gitdir ('%s') is not valid",
183
245
  wt->gitlink_path);
@@ -207,48 +269,84 @@ out:
207
269
  return err;
208
270
  }
209
271
 
210
- int git_worktree_add(git_worktree **out, git_repository *repo, const char *name, const char *worktree)
272
+ int git_worktree_add_init_options(git_worktree_add_options *opts,
273
+ unsigned int version)
211
274
  {
212
- git_buf path = GIT_BUF_INIT, buf = GIT_BUF_INIT;
275
+ GIT_INIT_STRUCTURE_FROM_TEMPLATE(opts, version,
276
+ git_worktree_add_options, GIT_WORKTREE_ADD_OPTIONS_INIT);
277
+ return 0;
278
+ }
279
+
280
+ int git_worktree_add(git_worktree **out, git_repository *repo,
281
+ const char *name, const char *worktree,
282
+ const git_worktree_add_options *opts)
283
+ {
284
+ git_buf gitdir = GIT_BUF_INIT, wddir = GIT_BUF_INIT, buf = GIT_BUF_INIT;
213
285
  git_reference *ref = NULL, *head = NULL;
214
286
  git_commit *commit = NULL;
215
287
  git_repository *wt = NULL;
216
288
  git_checkout_options coopts = GIT_CHECKOUT_OPTIONS_INIT;
289
+ git_worktree_add_options wtopts = GIT_WORKTREE_ADD_OPTIONS_INIT;
217
290
  int err;
218
291
 
292
+ GITERR_CHECK_VERSION(
293
+ opts, GIT_WORKTREE_ADD_OPTIONS_VERSION, "git_worktree_add_options");
294
+
295
+ if (opts)
296
+ memcpy(&wtopts, opts, sizeof(wtopts));
297
+
219
298
  assert(out && repo && name && worktree);
220
299
 
221
300
  *out = NULL;
222
301
 
223
- /* Create worktree related files in commondir */
224
- if ((err = git_buf_joinpath(&path, repo->commondir, "worktrees")) < 0)
302
+ /* Create gitdir directory ".git/worktrees/<name>" */
303
+ if ((err = git_buf_joinpath(&gitdir, repo->commondir, "worktrees")) < 0)
225
304
  goto out;
226
- if (!git_path_exists(path.ptr))
227
- if ((err = git_futils_mkdir(path.ptr, 0755, GIT_MKDIR_EXCL)) < 0)
305
+ if (!git_path_exists(gitdir.ptr))
306
+ if ((err = git_futils_mkdir(gitdir.ptr, 0755, GIT_MKDIR_EXCL)) < 0)
228
307
  goto out;
229
- if ((err = git_buf_joinpath(&path, path.ptr, name)) < 0)
308
+ if ((err = git_buf_joinpath(&gitdir, gitdir.ptr, name)) < 0)
309
+ goto out;
310
+ if ((err = git_futils_mkdir(gitdir.ptr, 0755, GIT_MKDIR_EXCL)) < 0)
230
311
  goto out;
231
- if ((err = git_futils_mkdir(path.ptr, 0755, GIT_MKDIR_EXCL)) < 0)
312
+ if ((err = git_path_prettify_dir(&gitdir, gitdir.ptr, NULL)) < 0)
232
313
  goto out;
233
314
 
234
315
  /* Create worktree work dir */
235
316
  if ((err = git_futils_mkdir(worktree, 0755, GIT_MKDIR_EXCL)) < 0)
236
317
  goto out;
318
+ if ((err = git_path_prettify_dir(&wddir, worktree, NULL)) < 0)
319
+ goto out;
320
+
321
+ if (wtopts.lock) {
322
+ int fd;
323
+
324
+ if ((err = git_buf_joinpath(&buf, gitdir.ptr, "locked")) < 0)
325
+ goto out;
326
+
327
+ if ((fd = p_creat(buf.ptr, 0644)) < 0) {
328
+ err = fd;
329
+ goto out;
330
+ }
331
+
332
+ p_close(fd);
333
+ git_buf_clear(&buf);
334
+ }
237
335
 
238
336
  /* Create worktree .git file */
239
- if ((err = git_buf_printf(&buf, "gitdir: %s\n", path.ptr)) < 0)
337
+ if ((err = git_buf_printf(&buf, "gitdir: %s\n", gitdir.ptr)) < 0)
240
338
  goto out;
241
- if ((err = write_wtfile(worktree, ".git", &buf)) < 0)
339
+ if ((err = write_wtfile(wddir.ptr, ".git", &buf)) < 0)
242
340
  goto out;
243
341
 
244
- /* Create commondir files */
245
- if ((err = git_buf_sets(&buf, repo->commondir)) < 0
342
+ /* Create gitdir files */
343
+ if ((err = git_path_prettify_dir(&buf, repo->commondir, NULL) < 0)
246
344
  || (err = git_buf_putc(&buf, '\n')) < 0
247
- || (err = write_wtfile(path.ptr, "commondir", &buf)) < 0)
345
+ || (err = write_wtfile(gitdir.ptr, "commondir", &buf)) < 0)
248
346
  goto out;
249
- if ((err = git_buf_joinpath(&buf, worktree, ".git")) < 0
347
+ if ((err = git_buf_joinpath(&buf, wddir.ptr, ".git")) < 0
250
348
  || (err = git_buf_putc(&buf, '\n')) < 0
251
- || (err = write_wtfile(path.ptr, "gitdir", &buf)) < 0)
349
+ || (err = write_wtfile(gitdir.ptr, "gitdir", &buf)) < 0)
252
350
  goto out;
253
351
 
254
352
  /* Create new branch */
@@ -260,9 +358,9 @@ int git_worktree_add(git_worktree **out, git_repository *repo, const char *name,
260
358
  goto out;
261
359
 
262
360
  /* Set worktree's HEAD */
263
- if ((err = git_repository_create_head(path.ptr, name)) < 0)
361
+ if ((err = git_repository_create_head(gitdir.ptr, git_reference_name(ref))) < 0)
264
362
  goto out;
265
- if ((err = git_repository_open(&wt, worktree)) < 0)
363
+ if ((err = git_repository_open(&wt, wddir.ptr)) < 0)
266
364
  goto out;
267
365
 
268
366
  /* Checkout worktree's HEAD */
@@ -275,7 +373,8 @@ int git_worktree_add(git_worktree **out, git_repository *repo, const char *name,
275
373
  goto out;
276
374
 
277
375
  out:
278
- git_buf_free(&path);
376
+ git_buf_free(&gitdir);
377
+ git_buf_free(&wddir);
279
378
  git_buf_free(&buf);
280
379
  git_reference_free(ref);
281
380
  git_reference_free(head);
@@ -357,11 +456,29 @@ out:
357
456
  return ret;
358
457
  }
359
458
 
360
- int git_worktree_is_prunable(git_worktree *wt, unsigned flags)
459
+ int git_worktree_prune_init_options(
460
+ git_worktree_prune_options *opts,
461
+ unsigned int version)
462
+ {
463
+ GIT_INIT_STRUCTURE_FROM_TEMPLATE(opts, version,
464
+ git_worktree_prune_options, GIT_WORKTREE_PRUNE_OPTIONS_INIT);
465
+ return 0;
466
+ }
467
+
468
+ int git_worktree_is_prunable(git_worktree *wt,
469
+ git_worktree_prune_options *opts)
361
470
  {
362
471
  git_buf reason = GIT_BUF_INIT;
472
+ git_worktree_prune_options popts = GIT_WORKTREE_PRUNE_OPTIONS_INIT;
473
+
474
+ GITERR_CHECK_VERSION(
475
+ opts, GIT_WORKTREE_PRUNE_OPTIONS_VERSION,
476
+ "git_worktree_prune_options");
477
+
478
+ if (opts)
479
+ memcpy(&popts, opts, sizeof(popts));
363
480
 
364
- if ((flags & GIT_WORKTREE_PRUNE_LOCKED) == 0 &&
481
+ if ((popts.flags & GIT_WORKTREE_PRUNE_LOCKED) == 0 &&
365
482
  git_worktree_is_locked(&reason, wt))
366
483
  {
367
484
  if (!reason.size)
@@ -372,7 +489,7 @@ int git_worktree_is_prunable(git_worktree *wt, unsigned flags)
372
489
  return 0;
373
490
  }
374
491
 
375
- if ((flags & GIT_WORKTREE_PRUNE_VALID) == 0 &&
492
+ if ((popts.flags & GIT_WORKTREE_PRUNE_VALID) == 0 &&
376
493
  git_worktree_validate(wt) == 0)
377
494
  {
378
495
  giterr_set(GITERR_WORKTREE, "Not pruning valid working tree");
@@ -382,19 +499,28 @@ int git_worktree_is_prunable(git_worktree *wt, unsigned flags)
382
499
  return 1;
383
500
  }
384
501
 
385
- int git_worktree_prune(git_worktree *wt, unsigned flags)
502
+ int git_worktree_prune(git_worktree *wt,
503
+ git_worktree_prune_options *opts)
386
504
  {
505
+ git_worktree_prune_options popts = GIT_WORKTREE_PRUNE_OPTIONS_INIT;
387
506
  git_buf path = GIT_BUF_INIT;
388
507
  char *wtpath;
389
508
  int err;
390
509
 
391
- if (!git_worktree_is_prunable(wt, flags)) {
510
+ GITERR_CHECK_VERSION(
511
+ opts, GIT_WORKTREE_PRUNE_OPTIONS_VERSION,
512
+ "git_worktree_prune_options");
513
+
514
+ if (opts)
515
+ memcpy(&popts, opts, sizeof(popts));
516
+
517
+ if (!git_worktree_is_prunable(wt, &popts)) {
392
518
  err = -1;
393
519
  goto out;
394
520
  }
395
521
 
396
522
  /* Delete gitdir in parent repository */
397
- if ((err = git_buf_printf(&path, "%s/worktrees/%s", wt->parent_path, wt->name)) < 0)
523
+ if ((err = git_buf_printf(&path, "%s/worktrees/%s", wt->commondir_path, wt->name)) < 0)
398
524
  goto out;
399
525
  if (!git_path_exists(path.ptr))
400
526
  {
@@ -407,7 +533,7 @@ int git_worktree_prune(git_worktree *wt, unsigned flags)
407
533
 
408
534
  /* Skip deletion of the actual working tree if it does
409
535
  * not exist or deletion was not requested */
410
- if ((flags & GIT_WORKTREE_PRUNE_WORKING_TREE) == 0 ||
536
+ if ((popts.flags & GIT_WORKTREE_PRUNE_WORKING_TREE) == 0 ||
411
537
  !git_path_exists(wt->gitlink_path))
412
538
  {
413
539
  goto out;
@@ -24,7 +24,7 @@ struct git_worktree {
24
24
  /* Path to the common directory contained in the parent
25
25
  * repository */
26
26
  char *commondir_path;
27
- /* Path to the parent's .git directory */
27
+ /* Path to the parent's working directory */
28
28
  char *parent_path;
29
29
 
30
30
  int locked:1;
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.26.0b5
4
+ version: 0.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon
@@ -9,48 +9,48 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-08 00:00:00.000000000 Z
12
+ date: 2017-07-07 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
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
55
  version: '5.0'
56
56
  description: |
@@ -62,30 +62,9 @@ extensions:
62
62
  - ext/rugged/extconf.rb
63
63
  extra_rdoc_files: []
64
64
  files:
65
- - README.md
66
65
  - 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
66
+ - README.md
67
+ - ext/rugged/extconf.rb
89
68
  - ext/rugged/rugged.c
90
69
  - ext/rugged/rugged.h
91
70
  - ext/rugged/rugged_backend.c
@@ -118,12 +97,71 @@ files:
118
97
  - ext/rugged/rugged_tag.c
119
98
  - ext/rugged/rugged_tag_collection.c
120
99
  - 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
121
125
  - vendor/libgit2/cmake/Modules/AddCFlagIfSupported.cmake
122
126
  - vendor/libgit2/cmake/Modules/FindCoreFoundation.cmake
123
127
  - vendor/libgit2/cmake/Modules/FindGSSAPI.cmake
124
128
  - vendor/libgit2/cmake/Modules/FindHTTP_Parser.cmake
125
129
  - vendor/libgit2/cmake/Modules/FindIconv.cmake
126
130
  - vendor/libgit2/cmake/Modules/FindSecurity.cmake
131
+ - vendor/libgit2/deps/http-parser/LICENSE-MIT
132
+ - vendor/libgit2/deps/http-parser/http_parser.c
133
+ - vendor/libgit2/deps/http-parser/http_parser.h
134
+ - vendor/libgit2/deps/regex/config.h
135
+ - vendor/libgit2/deps/regex/regcomp.c
136
+ - vendor/libgit2/deps/regex/regex.c
137
+ - vendor/libgit2/deps/regex/regex.h
138
+ - vendor/libgit2/deps/regex/regex_internal.c
139
+ - vendor/libgit2/deps/regex/regex_internal.h
140
+ - vendor/libgit2/deps/regex/regexec.c
141
+ - vendor/libgit2/deps/winhttp/urlmon.h
142
+ - vendor/libgit2/deps/winhttp/winhttp.def
143
+ - vendor/libgit2/deps/winhttp/winhttp.h
144
+ - vendor/libgit2/deps/winhttp/winhttp64.def
145
+ - vendor/libgit2/deps/zlib/adler32.c
146
+ - vendor/libgit2/deps/zlib/crc32.c
147
+ - vendor/libgit2/deps/zlib/crc32.h
148
+ - vendor/libgit2/deps/zlib/deflate.c
149
+ - vendor/libgit2/deps/zlib/deflate.h
150
+ - vendor/libgit2/deps/zlib/infback.c
151
+ - vendor/libgit2/deps/zlib/inffast.c
152
+ - vendor/libgit2/deps/zlib/inffast.h
153
+ - vendor/libgit2/deps/zlib/inffixed.h
154
+ - vendor/libgit2/deps/zlib/inflate.c
155
+ - vendor/libgit2/deps/zlib/inflate.h
156
+ - vendor/libgit2/deps/zlib/inftrees.c
157
+ - vendor/libgit2/deps/zlib/inftrees.h
158
+ - vendor/libgit2/deps/zlib/trees.c
159
+ - vendor/libgit2/deps/zlib/trees.h
160
+ - vendor/libgit2/deps/zlib/zconf.h
161
+ - vendor/libgit2/deps/zlib/zlib.h
162
+ - vendor/libgit2/deps/zlib/zutil.c
163
+ - vendor/libgit2/deps/zlib/zutil.h
164
+ - vendor/libgit2/include/git2.h
127
165
  - vendor/libgit2/include/git2/annotated_commit.h
128
166
  - vendor/libgit2/include/git2/attr.h
129
167
  - vendor/libgit2/include/git2/blame.h
@@ -203,7 +241,7 @@ files:
203
241
  - vendor/libgit2/include/git2/types.h
204
242
  - vendor/libgit2/include/git2/version.h
205
243
  - vendor/libgit2/include/git2/worktree.h
206
- - vendor/libgit2/include/git2.h
244
+ - vendor/libgit2/libgit2.pc.in
207
245
  - vendor/libgit2/src/annotated_commit.c
208
246
  - vendor/libgit2/src/annotated_commit.h
209
247
  - vendor/libgit2/src/apply.c
@@ -285,6 +323,8 @@ files:
285
323
  - vendor/libgit2/src/global.c
286
324
  - vendor/libgit2/src/global.h
287
325
  - vendor/libgit2/src/graph.c
326
+ - vendor/libgit2/src/hash.c
327
+ - vendor/libgit2/src/hash.h
288
328
  - vendor/libgit2/src/hash/hash_collisiondetect.h
289
329
  - vendor/libgit2/src/hash/hash_common_crypto.h
290
330
  - vendor/libgit2/src/hash/hash_generic.c
@@ -296,8 +336,6 @@ files:
296
336
  - vendor/libgit2/src/hash/sha1dc/sha1.h
297
337
  - vendor/libgit2/src/hash/sha1dc/ubc_check.c
298
338
  - vendor/libgit2/src/hash/sha1dc/ubc_check.h
299
- - vendor/libgit2/src/hash.c
300
- - vendor/libgit2/src/hash.h
301
339
  - vendor/libgit2/src/hashsig.c
302
340
  - vendor/libgit2/src/ident.c
303
341
  - vendor/libgit2/src/idxmap.c
@@ -307,6 +345,7 @@ files:
307
345
  - vendor/libgit2/src/index.c
308
346
  - vendor/libgit2/src/index.h
309
347
  - vendor/libgit2/src/indexer.c
348
+ - vendor/libgit2/src/indexer.h
310
349
  - vendor/libgit2/src/integer.h
311
350
  - vendor/libgit2/src/iterator.c
312
351
  - vendor/libgit2/src/iterator.h
@@ -504,44 +543,6 @@ files:
504
543
  - vendor/libgit2/src/xdiff/xutils.h
505
544
  - vendor/libgit2/src/zstream.c
506
545
  - vendor/libgit2/src/zstream.h
507
- - vendor/libgit2/deps/http-parser/http_parser.c
508
- - vendor/libgit2/deps/http-parser/http_parser.h
509
- - vendor/libgit2/deps/http-parser/LICENSE-MIT
510
- - vendor/libgit2/deps/regex/config.h
511
- - vendor/libgit2/deps/regex/regcomp.c
512
- - vendor/libgit2/deps/regex/regex.c
513
- - vendor/libgit2/deps/regex/regex.h
514
- - vendor/libgit2/deps/regex/regex_internal.c
515
- - vendor/libgit2/deps/regex/regex_internal.h
516
- - vendor/libgit2/deps/regex/regexec.c
517
- - vendor/libgit2/deps/winhttp/urlmon.h
518
- - vendor/libgit2/deps/winhttp/winhttp.def
519
- - vendor/libgit2/deps/winhttp/winhttp.h
520
- - vendor/libgit2/deps/winhttp/winhttp64.def
521
- - vendor/libgit2/deps/zlib/adler32.c
522
- - vendor/libgit2/deps/zlib/crc32.c
523
- - vendor/libgit2/deps/zlib/crc32.h
524
- - vendor/libgit2/deps/zlib/deflate.c
525
- - vendor/libgit2/deps/zlib/deflate.h
526
- - vendor/libgit2/deps/zlib/infback.c
527
- - vendor/libgit2/deps/zlib/inffast.c
528
- - vendor/libgit2/deps/zlib/inffast.h
529
- - vendor/libgit2/deps/zlib/inffixed.h
530
- - vendor/libgit2/deps/zlib/inflate.c
531
- - vendor/libgit2/deps/zlib/inflate.h
532
- - vendor/libgit2/deps/zlib/inftrees.c
533
- - vendor/libgit2/deps/zlib/inftrees.h
534
- - vendor/libgit2/deps/zlib/trees.c
535
- - vendor/libgit2/deps/zlib/trees.h
536
- - vendor/libgit2/deps/zlib/zconf.h
537
- - vendor/libgit2/deps/zlib/zlib.h
538
- - vendor/libgit2/deps/zlib/zutil.c
539
- - vendor/libgit2/deps/zlib/zutil.h
540
- - vendor/libgit2/CMakeLists.txt
541
- - vendor/libgit2/AUTHORS
542
- - vendor/libgit2/COPYING
543
- - vendor/libgit2/libgit2.pc.in
544
- - ext/rugged/extconf.rb
545
546
  homepage: https://github.com/libgit2/rugged
546
547
  licenses:
547
548
  - MIT
@@ -552,17 +553,17 @@ require_paths:
552
553
  - lib
553
554
  required_ruby_version: !ruby/object:Gem::Requirement
554
555
  requirements:
555
- - - '>='
556
+ - - ">="
556
557
  - !ruby/object:Gem::Version
557
558
  version: 1.9.3
558
559
  required_rubygems_version: !ruby/object:Gem::Requirement
559
560
  requirements:
560
- - - '>'
561
+ - - ">="
561
562
  - !ruby/object:Gem::Version
562
- version: 1.3.1
563
+ version: '0'
563
564
  requirements: []
564
565
  rubyforge_project:
565
- rubygems_version: 2.0.14.1
566
+ rubygems_version: 2.5.2
566
567
  signing_key:
567
568
  specification_version: 4
568
569
  summary: Rugged is a Ruby binding to the libgit2 linkable library