gitbak 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -5
- data/gitbak.gemspec +1 -1
- data/lib/gitbak.rb +2 -2
- data/lib/gitbak/misc.rb +2 -2
- data/lib/gitbak/services/bitbucket.rb +2 -2
- data/lib/gitbak/version.rb +2 -2
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2f54ab3ab2250d42a20d5eeab4223823bd51f6a
|
4
|
+
data.tar.gz: bda1f39c976635f7a1d6761590abb13b4941aaea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4e023fa39734506c6d96b82759f2533aa9b64fbe328d00c2255e232bc5b0f26927e9acac65a1aa46fefad24107dd6e7edca058c945c6a76a8796a07a05d2710
|
7
|
+
data.tar.gz: 411697fcc3501366716d32aaecd0bc4237ad0278063ad513a5413d222d5f45381f7dc2d0be4d3cd018acd62956d78d022a562fde8962526a858f032b4b82da0c
|
data/README.md
CHANGED
@@ -2,19 +2,21 @@
|
|
2
2
|
|
3
3
|
File : README
|
4
4
|
Maintainer : Felix C. Stegerman <flx@obfusk.net>
|
5
|
-
Date : 2014-
|
5
|
+
Date : 2014-07-08
|
6
6
|
|
7
7
|
Copyright : Copyright (C) 2014 Felix C. Stegerman
|
8
|
-
Version : v0.5.
|
8
|
+
Version : v0.5.1
|
9
9
|
|
10
10
|
[]: }}}1
|
11
11
|
|
12
|
+
[![Gem Version](https://badge.fury.io/rb/gitbak.png)](https://rubygems.org/gems/gitbak)
|
13
|
+
|
12
14
|
## Description
|
13
15
|
|
14
16
|
gitbak - bitbucket/github/gist backup
|
15
17
|
|
16
18
|
GitBak mirrors Bitbucket/GitHub/Gist repositories; paths, users, and
|
17
|
-
|
19
|
+
other options are specified in `~/.gitbak`.
|
18
20
|
|
19
21
|
When run, gitbak:
|
20
22
|
|
@@ -69,18 +71,25 @@ gist repo #, options...
|
|
69
71
|
user: "username" # mandatory
|
70
72
|
token: true # use token instead of user/pass (default: false)
|
71
73
|
auth: false # use authentication (default: true);
|
72
|
-
|
74
|
+
# use :github w/ gist to re-use github auth
|
73
75
|
method: :https # clone method (default: :ssh);
|
74
|
-
|
76
|
+
# NB: https auth not implemented yet
|
75
77
|
```
|
76
78
|
|
77
79
|
## TODO
|
78
80
|
|
79
81
|
Some things that may be useful/implemented at some point.
|
80
82
|
|
83
|
+
* gitlab w/ groups & server
|
84
|
+
* github organisations
|
85
|
+
* bitbucket teams
|
86
|
+
|
87
|
+
#
|
88
|
+
|
81
89
|
* ask password again on typo (^D) or auth fail
|
82
90
|
* tests?
|
83
91
|
* better error handling?
|
92
|
+
* use obfusk-util (for prompt etc.)?
|
84
93
|
|
85
94
|
#
|
86
95
|
|
data/gitbak.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
|
8
8
|
s.description = <<-END.gsub(/^ {4}/, '')
|
9
9
|
GitBak mirrors Bitbucket/GitHub/Gist repositories; paths, users,
|
10
|
-
and
|
10
|
+
and other options are specified in ~/.gitbak.
|
11
11
|
|
12
12
|
When run, gitbak:
|
13
13
|
|
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-07-08
|
6
6
|
#
|
7
7
|
# Copyright : Copyright (C) 2014 Felix C. Stegerman
|
8
8
|
# Licence : GPLv3+
|
@@ -84,7 +84,7 @@ module GitBak
|
|
84
84
|
|
85
85
|
# concatenate json
|
86
86
|
def self.cat_json(pages)
|
87
|
-
pages.map { |x| JSON.
|
87
|
+
pages.map { |x| JSON.parse x } .flatten 1
|
88
88
|
end
|
89
89
|
|
90
90
|
# --
|
data/lib/gitbak/misc.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# File : gitbak/misc.rb
|
4
4
|
# Maintainer : Felix C. Stegerman <flx@obfusk.net>
|
5
|
-
# Date : 2014-
|
5
|
+
# Date : 2014-07-08
|
6
6
|
#
|
7
7
|
# Copyright : Copyright (C) 2014 Felix C. Stegerman
|
8
8
|
# Licence : GPLv3+
|
@@ -34,7 +34,7 @@ module GitBak
|
|
34
34
|
|
35
35
|
# does file/dir or symlink exists?
|
36
36
|
def self.exists? (path)
|
37
|
-
File.
|
37
|
+
File.exist?(path) || File.symlink?(path)
|
38
38
|
end
|
39
39
|
|
40
40
|
# prompt for line; optionally hide input
|
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# File : gitbak/services/bitbucket.rb
|
4
4
|
# Maintainer : Felix C. Stegerman <flx@obfusk.net>
|
5
|
-
# Date : 2014-
|
5
|
+
# Date : 2014-07-08
|
6
6
|
#
|
7
7
|
# Copyright : Copyright (C) 2014 Felix C. Stegerman
|
8
8
|
# Licence : GPLv3+
|
@@ -20,7 +20,7 @@ module GitBak::Services
|
|
20
20
|
HTTPS = -> user, repo { "https://bitbucket.org/#{user}/#{repo}.git" }
|
21
21
|
|
22
22
|
def self.to_json(data)
|
23
|
-
JSON.
|
23
|
+
JSON.parse data
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.next_page(data)
|
data/lib/gitbak/version.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
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.1
|
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-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
GitBak mirrors Bitbucket/GitHub/Gist repositories; paths, users,
|
15
|
-
and
|
15
|
+
and other options are specified in ~/.gitbak.
|
16
16
|
|
17
17
|
When run, gitbak:
|
18
18
|
|
@@ -29,16 +29,16 @@ extra_rdoc_files: []
|
|
29
29
|
files:
|
30
30
|
- ".yardopts"
|
31
31
|
- README.md
|
32
|
+
- bin/gitbak
|
32
33
|
- gitbak.gemspec
|
34
|
+
- lib/gitbak.rb
|
35
|
+
- lib/gitbak/exec.rb
|
33
36
|
- lib/gitbak/misc.rb
|
37
|
+
- lib/gitbak/services.rb
|
34
38
|
- lib/gitbak/services/bitbucket.rb
|
35
39
|
- lib/gitbak/services/gist.rb
|
36
40
|
- lib/gitbak/services/github.rb
|
37
|
-
- lib/gitbak/services.rb
|
38
41
|
- lib/gitbak/version.rb
|
39
|
-
- lib/gitbak/exec.rb
|
40
|
-
- lib/gitbak.rb
|
41
|
-
- bin/gitbak
|
42
42
|
homepage: https://github.com/obfusk/gitbak
|
43
43
|
licenses:
|
44
44
|
- GPLv3+
|
@@ -59,8 +59,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project:
|
62
|
-
rubygems_version: 2.
|
62
|
+
rubygems_version: 2.2.2
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: bitbucket/github/gist backup
|
66
66
|
test_files: []
|
67
|
+
has_rdoc:
|