gitti-backup 0.1.1 → 0.2.0

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: 0c04184456762668d4904dd94bb186cfe32092f2
4
- data.tar.gz: 39a2c3d671d9c4e0f56d9841da76dda3ce7d16a6
3
+ metadata.gz: 10cb944dcd9536d4c7b558b2490db1eb0addb9ce
4
+ data.tar.gz: 4cb0022b84627722a8891d0adc4a1aa20f9935bc
5
5
  SHA512:
6
- metadata.gz: 37436bb46b397ac13ed95c22e0b70313cc002ce36edd7c623ec3e914c297d279d64eea6eb71c0d5af0ed236cb350e606ade994d89dc61c809070f9ad1f17468f
7
- data.tar.gz: 3b60bf21f3ae443d8ca853c0e93fc766e2ebdafaa4a227c694d318f46470b51d8c7eb73911311074d342fa04980d0abc9917a1d1014162f2fdb9564e0bb97a07
6
+ metadata.gz: 3a6b92b4850612350321f78a3def3fd968b1ed33b321e21dd3174d7a295930e8128f3abc80af49a22b2c752da4bfc3af45c76717c462d20f594459dff993cd0a
7
+ data.tar.gz: 2e42a28928f778f55e40cef53a7368df2b933035020fc790ea172158484c96889ca922a264f25fac0cc9041c85c8d29b736a408dfdf4d85bb67304ca8599521b
data/Manifest.txt CHANGED
@@ -5,7 +5,6 @@ Rakefile
5
5
  lib/gitti/backup.rb
6
6
  lib/gitti/backup/backup.rb
7
7
  lib/gitti/backup/repo.rb
8
- lib/gitti/backup/reposet.rb
9
8
  lib/gitti/backup/version.rb
10
9
  test/data/repos.yml
11
10
  test/helper.rb
@@ -3,8 +3,8 @@
3
3
  module GittiBackup
4
4
 
5
5
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
6
- MINOR = 1
7
- PATCH = 1
6
+ MINOR = 2
7
+ PATCH = 0
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
10
10
  def self.version
data/lib/gitti/backup.rb CHANGED
@@ -5,7 +5,6 @@ require 'gitti'
5
5
  # our own code
6
6
  require 'gitti/backup/version' # note: let version always go first
7
7
  require 'gitti/backup/repo'
8
- require 'gitti/backup/reposet' ## todo: move to gitti-support (commons) gem ??
9
8
  require 'gitti/backup/backup'
10
9
 
11
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitti-backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
@@ -68,7 +68,6 @@ files:
68
68
  - lib/gitti/backup.rb
69
69
  - lib/gitti/backup/backup.rb
70
70
  - lib/gitti/backup/repo.rb
71
- - lib/gitti/backup/reposet.rb
72
71
  - lib/gitti/backup/version.rb
73
72
  - test/data/repos.yml
74
73
  - test/helper.rb
@@ -1,36 +0,0 @@
1
- # encoding: utf-8
2
-
3
- module Gitti
4
-
5
- class GitRepoSet ## todo: rename to Hash/Dict/List/Map ??
6
-
7
- def self.from_file( path )
8
- hash = YAML.load_file( path )
9
- self.new( hash )
10
- end
11
-
12
-
13
- def initialize( hash )
14
- @hash = hash
15
- end
16
-
17
- def each
18
- @hash.each do |key_with_counter,values|
19
-
20
- ## remove optional number from key e.g.
21
- ## mrhydescripts (3) => mrhydescripts
22
- ## footballjs (4) => footballjs
23
- ## etc.
24
-
25
- key = key_with_counter.sub( /\s+\([0-9]+\)/, '' )
26
-
27
- puts " -- #{key_with_counter} [#{key}] --"
28
-
29
- yield( key, values )
30
- end
31
- end
32
-
33
- end ## class GitRepoSet
34
-
35
- end ## module Gitti
36
-