gitbak 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/gitbak.rb +6 -2
- data/lib/gitbak/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28b9980711d0269e29c82d9ee01590a978cad180
|
4
|
+
data.tar.gz: f4ed28738fbeb5114c30adc34a7efd742236bb21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bab9d21f377f2e3b6bc799bc14a55d17824a8d218377a7bb81b04a17800592cfc0f7fc18be40f726002dbe0c841489bcc491994ca8d15374d4fb3bb09fa54c9
|
7
|
+
data.tar.gz: cac08c375109cefaf17888bb1b92cba14d188d435359fae90ce6ff7e65b67d8a415acdaf3b3cbe38531babcdc708b31a44aee84441bdc639889a9ed8a34793bc
|
data/README.md
CHANGED
data/lib/gitbak.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# File : gitbak.rb
|
4
4
|
# Maintainer : Felix C. Stegerman <flx@obfusk.net>
|
5
|
-
# Date : 2014-
|
5
|
+
# Date : 2014-10-29
|
6
6
|
#
|
7
7
|
# Copyright : Copyright (C) 2014 Felix C. Stegerman
|
8
8
|
# Licence : GPLv3+
|
@@ -65,7 +65,11 @@ module GitBak
|
|
65
65
|
o = auth ? { http_basic_authentication:
|
66
66
|
[auth[:user],auth[:pass]] } : {}
|
67
67
|
begin
|
68
|
-
|
68
|
+
open(url, o.merge(opts || {})) do |t|
|
69
|
+
m = t.meta; d = t.read
|
70
|
+
d.define_singleton_method(:meta) { m } # monkey patch :-(
|
71
|
+
g[d]
|
72
|
+
end
|
69
73
|
rescue OpenURI::HTTPError => e
|
70
74
|
if e.io.status[0] == '401'
|
71
75
|
raise AuthError, "401 for #{auth[:user]} #{info}"
|
data/lib/gitbak/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitbak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix C. Stegerman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
GitBak mirrors Bitbucket/GitHub/Gist repositories; paths, users,
|