rugged 0.23.1.6.g1346734.pre → 0.23.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- N2VlYTdkMDI3N2M5YTFmYjJjYjI3MDNmZjNlODA0OTI2N2FjODQ5Yw==
5
- data.tar.gz: !binary |-
6
- NTVjN2M4OTRjMTMxN2QwZGE2YTFkNTNhNzg2MzFkMjc5M2UzZDA3ZA==
2
+ SHA1:
3
+ metadata.gz: 1c8a9803d3706b67799a0f51ef3d2f92ad722510
4
+ data.tar.gz: 48c5339cad9977aec187c1d5b5527ef81fe1d072
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NjlhODRiNmI5MzQwOTYyMmU3MjUwYTZmNDA1MTdiYTAwYzRiZmYyMjRmNjYz
10
- NDY0OGZmZmRkZTU5NzRmOTE1NGQ3MGU5ZTgxYmMxODM4ZjgzYTgwMGYyZDIx
11
- YTJjZWRjNzdjNWU3MTIxMDRlODBlNWU2Nzc1ZWRkMGQ2MzdlN2U=
12
- data.tar.gz: !binary |-
13
- ZTIyYjBkMmExNmVlMWEyZjIwY2QyMTcxMmYxZDEyNGEwZTA5MjFkZDYyODRl
14
- MWY3YWQ2ZGM4Mzc5MjEzM2UwNjJjY2NkYmViMTc3NmQ5OTJlZTIxYWRmNDIw
15
- ZmNkNTU1MTEyNzI3NDExNDdkYmU4NDVhZDgzNjNhY2UwODc2NzA=
6
+ metadata.gz: 9cb10510ef6d1a4441c90a743237c36583f6c867a5560fb172a79123ede5f162632b03caa64fe1be24bc23041e4ee0732f8785e105629ff271e01ad29b31c23a
7
+ data.tar.gz: 89dfecb8124b9e3817e36970fac8de796c216580b3b251dba7ec1844545ecd74703e8cf483f130a2e4112ff3c132a2e3c30c1073f876d216ffd8b8e46977f801
@@ -1,4 +1,3 @@
1
1
  module Rugged
2
- # This file is automatically overwritten during a deployment from Travis.
3
- Version = VERSION = "#{`git describe --tags --first-parent | tail -c +2 | tr '-' '.'`.strip}.pre" rescue "0.0.0.dev"
2
+ Version = VERSION = '0.23.2'
4
3
  end
@@ -286,7 +286,7 @@ IF (LIBSSH2_FOUND)
286
286
  #SET(LIBGIT2_PC_LIBS "${LIBGIT2_PC_LIBS} ${LIBSSH2_LDFLAGS}")
287
287
  SET(SSH_LIBRARIES ${LIBSSH2_LIBRARIES})
288
288
 
289
- CHECK_LIBRARY_EXISTS("${LIBSSH2_LIBRARIES}" libssh2_userauth_publickey_frommemory "" HAVE_LIBSSH2_MEMORY_CREDENTIALS)
289
+ CHECK_LIBRARY_EXISTS("${LIBSSH2_LIBRARIES}" libssh2_userauth_publickey_frommemory "${LIBSSH2_LIBRARY_DIRS}" HAVE_LIBSSH2_MEMORY_CREDENTIALS)
290
290
  IF (HAVE_LIBSSH2_MEMORY_CREDENTIALS)
291
291
  ADD_DEFINITIONS(-DGIT_SSH_MEMORY_CREDENTIALS)
292
292
  ENDIF()
@@ -1334,11 +1334,13 @@ static int update_tips_for_spec(
1334
1334
  for (; i < refs->length; ++i) {
1335
1335
  head = git_vector_get(refs, i);
1336
1336
  autotag = 0;
1337
+ git_buf_clear(&refname);
1337
1338
 
1338
1339
  /* Ignore malformed ref names (which also saves us from tag^{} */
1339
1340
  if (!git_reference_is_valid_name(head->name))
1340
1341
  continue;
1341
1342
 
1343
+ /* If we have a tag, see if the auto-follow rules say to update it */
1342
1344
  if (git_refspec_src_matches(&tagspec, head->name)) {
1343
1345
  if (tagopt != GIT_REMOTE_DOWNLOAD_TAGS_NONE) {
1344
1346
 
@@ -1348,10 +1350,11 @@ static int update_tips_for_spec(
1348
1350
  git_buf_clear(&refname);
1349
1351
  if (git_buf_puts(&refname, head->name) < 0)
1350
1352
  goto on_error;
1351
- } else {
1352
- continue;
1353
1353
  }
1354
- } else if (git_refspec_src_matches(spec, head->name)) {
1354
+ }
1355
+
1356
+ /* If we didn't want to auto-follow the tag, check if the refspec matches */
1357
+ if (!autotag && git_refspec_src_matches(spec, head->name)) {
1355
1358
  if (spec->dst) {
1356
1359
  if (git_refspec_transform(&refname, spec, head->name) < 0)
1357
1360
  goto on_error;
@@ -1365,7 +1368,10 @@ static int update_tips_for_spec(
1365
1368
 
1366
1369
  continue;
1367
1370
  }
1368
- } else {
1371
+ }
1372
+
1373
+ /* If we still don't have a refname, we don't want it */
1374
+ if (git_buf_len(&refname) == 0) {
1369
1375
  continue;
1370
1376
  }
1371
1377
 
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.23.1.6.g1346734.pre
4
+ version: 0.23.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon
@@ -15,28 +15,28 @@ dependencies:
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
@@ -53,21 +53,39 @@ dependencies:
53
53
  - - ~>
54
54
  - !ruby/object:Gem::Version
55
55
  version: '3.0'
56
- description: ! 'Rugged is a Ruby bindings to the libgit2 linkable C Git library. This
57
- is
58
-
56
+ description: |
57
+ Rugged is a Ruby bindings to the libgit2 linkable C Git library. This is
59
58
  for testing and using the libgit2 library in a language that is awesome.
60
-
61
- '
62
59
  email: schacon@gmail.com
63
60
  executables: []
64
61
  extensions:
65
62
  - ext/rugged/extconf.rb
66
63
  extra_rdoc_files: []
67
64
  files:
68
- - LICENSE
69
65
  - README.md
70
- - 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
71
89
  - ext/rugged/rugged.c
72
90
  - ext/rugged/rugged.h
73
91
  - ext/rugged/rugged_backend.c
@@ -99,72 +117,12 @@ files:
99
117
  - ext/rugged/rugged_tag.c
100
118
  - ext/rugged/rugged_tag_collection.c
101
119
  - ext/rugged/rugged_tree.c
102
- - lib/rugged.rb
103
- - lib/rugged/attributes.rb
104
- - lib/rugged/blob.rb
105
- - lib/rugged/branch.rb
106
- - lib/rugged/commit.rb
107
- - lib/rugged/console.rb
108
- - lib/rugged/credentials.rb
109
- - lib/rugged/diff.rb
110
- - lib/rugged/diff/delta.rb
111
- - lib/rugged/diff/hunk.rb
112
- - lib/rugged/diff/line.rb
113
- - lib/rugged/index.rb
114
- - lib/rugged/object.rb
115
- - lib/rugged/patch.rb
116
- - lib/rugged/reference.rb
117
- - lib/rugged/remote.rb
118
- - lib/rugged/repository.rb
119
- - lib/rugged/submodule_collection.rb
120
- - lib/rugged/tag.rb
121
- - lib/rugged/tree.rb
122
- - lib/rugged/version.rb
123
- - lib/rugged/walker.rb
124
- - vendor/libgit2/AUTHORS
125
- - vendor/libgit2/CMakeLists.txt
126
- - vendor/libgit2/COPYING
127
- - vendor/libgit2/Makefile.embed
128
120
  - vendor/libgit2/cmake/Modules/AddCFlagIfSupported.cmake
129
121
  - vendor/libgit2/cmake/Modules/FindCoreFoundation.cmake
130
122
  - vendor/libgit2/cmake/Modules/FindGSSAPI.cmake
131
123
  - vendor/libgit2/cmake/Modules/FindHTTP_Parser.cmake
132
124
  - vendor/libgit2/cmake/Modules/FindIconv.cmake
133
125
  - vendor/libgit2/cmake/Modules/FindSecurity.cmake
134
- - vendor/libgit2/deps/http-parser/LICENSE-MIT
135
- - vendor/libgit2/deps/http-parser/http_parser.c
136
- - vendor/libgit2/deps/http-parser/http_parser.h
137
- - vendor/libgit2/deps/regex/config.h
138
- - vendor/libgit2/deps/regex/regcomp.c
139
- - vendor/libgit2/deps/regex/regex.c
140
- - vendor/libgit2/deps/regex/regex.h
141
- - vendor/libgit2/deps/regex/regex_internal.c
142
- - vendor/libgit2/deps/regex/regex_internal.h
143
- - vendor/libgit2/deps/regex/regexec.c
144
- - vendor/libgit2/deps/winhttp/urlmon.h
145
- - vendor/libgit2/deps/winhttp/winhttp.def
146
- - vendor/libgit2/deps/winhttp/winhttp.h
147
- - vendor/libgit2/deps/winhttp/winhttp64.def
148
- - vendor/libgit2/deps/zlib/adler32.c
149
- - vendor/libgit2/deps/zlib/crc32.c
150
- - vendor/libgit2/deps/zlib/crc32.h
151
- - vendor/libgit2/deps/zlib/deflate.c
152
- - vendor/libgit2/deps/zlib/deflate.h
153
- - vendor/libgit2/deps/zlib/infback.c
154
- - vendor/libgit2/deps/zlib/inffast.c
155
- - vendor/libgit2/deps/zlib/inffast.h
156
- - vendor/libgit2/deps/zlib/inffixed.h
157
- - vendor/libgit2/deps/zlib/inflate.c
158
- - vendor/libgit2/deps/zlib/inflate.h
159
- - vendor/libgit2/deps/zlib/inftrees.c
160
- - vendor/libgit2/deps/zlib/inftrees.h
161
- - vendor/libgit2/deps/zlib/trees.c
162
- - vendor/libgit2/deps/zlib/trees.h
163
- - vendor/libgit2/deps/zlib/zconf.h
164
- - vendor/libgit2/deps/zlib/zlib.h
165
- - vendor/libgit2/deps/zlib/zutil.c
166
- - vendor/libgit2/deps/zlib/zutil.h
167
- - vendor/libgit2/include/git2.h
168
126
  - vendor/libgit2/include/git2/annotated_commit.h
169
127
  - vendor/libgit2/include/git2/attr.h
170
128
  - vendor/libgit2/include/git2/blame.h
@@ -239,7 +197,7 @@ files:
239
197
  - vendor/libgit2/include/git2/tree.h
240
198
  - vendor/libgit2/include/git2/types.h
241
199
  - vendor/libgit2/include/git2/version.h
242
- - vendor/libgit2/libgit2.pc.in
200
+ - vendor/libgit2/include/git2.h
243
201
  - vendor/libgit2/src/annotated_commit.c
244
202
  - vendor/libgit2/src/annotated_commit.h
245
203
  - vendor/libgit2/src/array.h
@@ -318,14 +276,14 @@ files:
318
276
  - vendor/libgit2/src/global.c
319
277
  - vendor/libgit2/src/global.h
320
278
  - vendor/libgit2/src/graph.c
321
- - vendor/libgit2/src/hash.c
322
- - vendor/libgit2/src/hash.h
323
279
  - vendor/libgit2/src/hash/hash_common_crypto.h
324
280
  - vendor/libgit2/src/hash/hash_generic.c
325
281
  - vendor/libgit2/src/hash/hash_generic.h
326
282
  - vendor/libgit2/src/hash/hash_openssl.h
327
283
  - vendor/libgit2/src/hash/hash_win32.c
328
284
  - vendor/libgit2/src/hash/hash_win32.h
285
+ - vendor/libgit2/src/hash.c
286
+ - vendor/libgit2/src/hash.h
329
287
  - vendor/libgit2/src/hashsig.c
330
288
  - vendor/libgit2/src/ident.c
331
289
  - vendor/libgit2/src/ignore.c
@@ -511,6 +469,45 @@ files:
511
469
  - vendor/libgit2/src/xdiff/xutils.h
512
470
  - vendor/libgit2/src/zstream.c
513
471
  - vendor/libgit2/src/zstream.h
472
+ - vendor/libgit2/deps/http-parser/http_parser.c
473
+ - vendor/libgit2/deps/http-parser/http_parser.h
474
+ - vendor/libgit2/deps/http-parser/LICENSE-MIT
475
+ - vendor/libgit2/deps/regex/config.h
476
+ - vendor/libgit2/deps/regex/regcomp.c
477
+ - vendor/libgit2/deps/regex/regex.c
478
+ - vendor/libgit2/deps/regex/regex.h
479
+ - vendor/libgit2/deps/regex/regex_internal.c
480
+ - vendor/libgit2/deps/regex/regex_internal.h
481
+ - vendor/libgit2/deps/regex/regexec.c
482
+ - vendor/libgit2/deps/winhttp/urlmon.h
483
+ - vendor/libgit2/deps/winhttp/winhttp.def
484
+ - vendor/libgit2/deps/winhttp/winhttp.h
485
+ - vendor/libgit2/deps/winhttp/winhttp64.def
486
+ - vendor/libgit2/deps/zlib/adler32.c
487
+ - vendor/libgit2/deps/zlib/crc32.c
488
+ - vendor/libgit2/deps/zlib/crc32.h
489
+ - vendor/libgit2/deps/zlib/deflate.c
490
+ - vendor/libgit2/deps/zlib/deflate.h
491
+ - vendor/libgit2/deps/zlib/infback.c
492
+ - vendor/libgit2/deps/zlib/inffast.c
493
+ - vendor/libgit2/deps/zlib/inffast.h
494
+ - vendor/libgit2/deps/zlib/inffixed.h
495
+ - vendor/libgit2/deps/zlib/inflate.c
496
+ - vendor/libgit2/deps/zlib/inflate.h
497
+ - vendor/libgit2/deps/zlib/inftrees.c
498
+ - vendor/libgit2/deps/zlib/inftrees.h
499
+ - vendor/libgit2/deps/zlib/trees.c
500
+ - vendor/libgit2/deps/zlib/trees.h
501
+ - vendor/libgit2/deps/zlib/zconf.h
502
+ - vendor/libgit2/deps/zlib/zlib.h
503
+ - vendor/libgit2/deps/zlib/zutil.c
504
+ - vendor/libgit2/deps/zlib/zutil.h
505
+ - vendor/libgit2/CMakeLists.txt
506
+ - vendor/libgit2/Makefile.embed
507
+ - vendor/libgit2/AUTHORS
508
+ - vendor/libgit2/COPYING
509
+ - vendor/libgit2/libgit2.pc.in
510
+ - ext/rugged/extconf.rb
514
511
  homepage: https://github.com/libgit2/rugged
515
512
  licenses:
516
513
  - MIT
@@ -521,17 +518,17 @@ require_paths:
521
518
  - lib
522
519
  required_ruby_version: !ruby/object:Gem::Requirement
523
520
  requirements:
524
- - - ! '>='
521
+ - - '>='
525
522
  - !ruby/object:Gem::Version
526
523
  version: 1.9.3
527
524
  required_rubygems_version: !ruby/object:Gem::Requirement
528
525
  requirements:
529
- - - ! '>'
526
+ - - '>='
530
527
  - !ruby/object:Gem::Version
531
- version: 1.3.1
528
+ version: '0'
532
529
  requirements: []
533
530
  rubyforge_project:
534
- rubygems_version: 2.4.5
531
+ rubygems_version: 2.0.14
535
532
  signing_key:
536
533
  specification_version: 4
537
534
  summary: Rugged is a Ruby binding to the libgit2 linkable library