gitti-backup 0.1.0 → 0.1.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: a438558dd2333adfe3211959e6b62a9a1bb65458
4
- data.tar.gz: 57e3aa5153a0d087adaef5f4b170b49acfd7c00b
3
+ metadata.gz: 0c04184456762668d4904dd94bb186cfe32092f2
4
+ data.tar.gz: 39a2c3d671d9c4e0f56d9841da76dda3ce7d16a6
5
5
  SHA512:
6
- metadata.gz: 7ea1bb3df6a888a1685943f1d0f029b6a4e88a1fce7e488101ca22aa0466d84f51270f11025df19a309c48c805356a64ef85f48174e4950c6ddd10ec6ce05b19
7
- data.tar.gz: 7c73898fbc3ec21cbbf54fa971d1a960f1c04396a4409c7dd7bee781bb16ef68352e7603addb5ce8ccdf4109220469ceccb3f56c27c74288528987246a3eb5e8
6
+ metadata.gz: 37436bb46b397ac13ed95c22e0b70313cc002ce36edd7c623ec3e914c297d279d64eea6eb71c0d5af0ed236cb350e606ade994d89dc61c809070f9ad1f17468f
7
+ data.tar.gz: 3b60bf21f3ae443d8ca853c0e93fc766e2ebdafaa4a227c694d318f46470b51d8c7eb73911311074d342fa04980d0abc9917a1d1014162f2fdb9564e0bb97a07
data/Manifest.txt CHANGED
@@ -7,3 +7,6 @@ lib/gitti/backup/backup.rb
7
7
  lib/gitti/backup/repo.rb
8
8
  lib/gitti/backup/reposet.rb
9
9
  lib/gitti/backup/version.rb
10
+ test/data/repos.yml
11
+ test/helper.rb
12
+ test/test_backup.rb
@@ -50,3 +50,4 @@ class GitBackup
50
50
 
51
51
  end ## GitBackup
52
52
 
53
+ end ## module Gitti
@@ -4,7 +4,7 @@ module GittiBackup
4
4
 
5
5
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
6
6
  MINOR = 1
7
- PATCH = 0
7
+ PATCH = 1
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
10
10
  def self.version
@@ -0,0 +1,16 @@
1
+ ##########################
2
+ # some repos
3
+
4
+ openbeer (2):
5
+ - at-austria
6
+ - be-belgium
7
+
8
+ openfootball (3):
9
+ - at-austria
10
+ - br-brazil
11
+ - world-cup
12
+
13
+ openmundi (2):
14
+ - austria.db
15
+ - world.db
16
+
data/test/helper.rb ADDED
@@ -0,0 +1,13 @@
1
+ # encoding: utf-8
2
+
3
+ ## $:.unshift(File.dirname(__FILE__))
4
+
5
+ ## minitest setup
6
+ require 'minitest/autorun'
7
+
8
+
9
+ $RUBYLIBS_DEBUG = true
10
+
11
+ ## our own code
12
+ require 'gitti/backup'
13
+
@@ -0,0 +1,27 @@
1
+ # encoding: utf-8
2
+
3
+ ###
4
+ # to run use
5
+ # ruby -I ./lib -I ./test test/test_backup.rb
6
+
7
+
8
+ require 'helper'
9
+
10
+
11
+ class TestBackup < MiniTest::Test
12
+
13
+
14
+ def test_backup
15
+
16
+ repos = Gitti::GitRepoSet.from_file( "#{GittiBackup.root}/test/data/repos.yml" )
17
+ pp repos
18
+
19
+ backup = Gitti::GitBackup.new
20
+ backup.backup( repos )
21
+
22
+ assert true
23
+ ## assume everything ok if get here
24
+ end
25
+
26
+ end # class TestBackup
27
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitti-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-20 00:00:00.000000000 Z
11
+ date: 2015-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitti
@@ -70,6 +70,9 @@ files:
70
70
  - lib/gitti/backup/repo.rb
71
71
  - lib/gitti/backup/reposet.rb
72
72
  - lib/gitti/backup/version.rb
73
+ - test/data/repos.yml
74
+ - test/helper.rb
75
+ - test/test_backup.rb
73
76
  homepage: https://github.com/rubylibs/gitti
74
77
  licenses:
75
78
  - Public Domain