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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e3a5e41025ca2744190c8babdc5bac3247a007b
4
- data.tar.gz: 65f8655194b5bf74dbc6d5e488e166f6870bc700
3
+ metadata.gz: a2f54ab3ab2250d42a20d5eeab4223823bd51f6a
4
+ data.tar.gz: bda1f39c976635f7a1d6761590abb13b4941aaea
5
5
  SHA512:
6
- metadata.gz: ddee8e238c06d24f9db78c23c2b896d886b9ab29bda530d449f6a6e6b6698cded0b86919aafb7bbde3e079bf710b06d6a1788a8b651815a41584221856e4ffcb
7
- data.tar.gz: 92627c7bd07aeaf46896e92d40a0567815d5c216f577ca6571c45311654dd9f3ada2cc2230ea348c8377085b418b93c414de693f935762a0bb13aed8c7cb6552
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-02-19
5
+ Date : 2014-07-08
6
6
 
7
7
  Copyright : Copyright (C) 2014 Felix C. Stegerman
8
- Version : v0.5.0
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
- authentication are specified in ~/.gitbak.
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
- use :github w/ gist to re-use github auth
74
+ # use :github w/ gist to re-use github auth
73
75
  method: :https # clone method (default: :ssh);
74
- NB: https auth not implemented yet
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
 
@@ -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 authentication are specified in ~/.gitbak.
10
+ and other options are specified in ~/.gitbak.
11
11
 
12
12
  When run, gitbak:
13
13
 
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # File : gitbak.rb
4
4
  # Maintainer : Felix C. Stegerman <flx@obfusk.net>
5
- # Date : 2014-02-19
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.load x } .flatten 1
87
+ pages.map { |x| JSON.parse x } .flatten 1
88
88
  end
89
89
 
90
90
  # --
@@ -2,7 +2,7 @@
2
2
  #
3
3
  # File : gitbak/misc.rb
4
4
  # Maintainer : Felix C. Stegerman <flx@obfusk.net>
5
- # Date : 2014-02-19
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.exists?(path) || File.symlink?(path)
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-02-19
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.load data
23
+ JSON.parse data
24
24
  end
25
25
 
26
26
  def self.next_page(data)
@@ -1,7 +1,7 @@
1
1
  module GitBak
2
2
  # version and ...
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
 
5
5
  # ... date (for gemspec) ;-)
6
- DATE = '2014-02-19'
6
+ DATE = '2014-07-08'
7
7
  end
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.0
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-02-19 00:00:00.000000000 Z
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 authentication are specified in ~/.gitbak.
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.0.14
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: