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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2f54ab3ab2250d42a20d5eeab4223823bd51f6a
4
- data.tar.gz: bda1f39c976635f7a1d6761590abb13b4941aaea
3
+ metadata.gz: 28b9980711d0269e29c82d9ee01590a978cad180
4
+ data.tar.gz: f4ed28738fbeb5114c30adc34a7efd742236bb21
5
5
  SHA512:
6
- metadata.gz: c4e023fa39734506c6d96b82759f2533aa9b64fbe328d00c2255e232bc5b0f26927e9acac65a1aa46fefad24107dd6e7edca058c945c6a76a8796a07a05d2710
7
- data.tar.gz: 411697fcc3501366716d32aaecd0bc4237ad0278063ad513a5413d222d5f45381f7dc2d0be4d3cd018acd62956d78d022a562fde8962526a858f032b4b82da0c
6
+ metadata.gz: 4bab9d21f377f2e3b6bc799bc14a55d17824a8d218377a7bb81b04a17800592cfc0f7fc18be40f726002dbe0c841489bcc491994ca8d15374d4fb3bb09fa54c9
7
+ data.tar.gz: cac08c375109cefaf17888bb1b92cba14d188d435359fae90ce6ff7e65b67d8a415acdaf3b3cbe38531babcdc708b31a44aee84441bdc639889a9ed8a34793bc
data/README.md CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  File : README
4
4
  Maintainer : Felix C. Stegerman <flx@obfusk.net>
5
- Date : 2014-07-08
5
+ Date : 2014-10-29
6
6
 
7
7
  Copyright : Copyright (C) 2014 Felix C. Stegerman
8
- Version : v0.5.1
8
+ Version : v0.5.2
9
9
 
10
10
  []: }}}1
11
11
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # File : gitbak.rb
4
4
  # Maintainer : Felix C. Stegerman <flx@obfusk.net>
5
- # Date : 2014-07-08
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
- g[open url, o.merge(opts || {})]
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}"
@@ -1,7 +1,7 @@
1
1
  module GitBak
2
2
  # version and ...
3
- VERSION = '0.5.1'
3
+ VERSION = '0.5.2'
4
4
 
5
5
  # ... date (for gemspec) ;-)
6
- DATE = '2014-07-08'
6
+ DATE = '2014-10-29'
7
7
  end
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.1
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-07-08 00:00:00.000000000 Z
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,