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 +4 -4
- data/Manifest.txt +0 -1
- data/lib/gitti/backup/version.rb +2 -2
- data/lib/gitti/backup.rb +0 -1
- metadata +1 -2
- data/lib/gitti/backup/reposet.rb +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10cb944dcd9536d4c7b558b2490db1eb0addb9ce
|
4
|
+
data.tar.gz: 4cb0022b84627722a8891d0adc4a1aa20f9935bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a6b92b4850612350321f78a3def3fd968b1ed33b321e21dd3174d7a295930e8128f3abc80af49a22b2c752da4bfc3af45c76717c462d20f594459dff993cd0a
|
7
|
+
data.tar.gz: 2e42a28928f778f55e40cef53a7368df2b933035020fc790ea172158484c96889ca922a264f25fac0cc9041c85c8d29b736a408dfdf4d85bb67304ca8599521b
|
data/Manifest.txt
CHANGED
data/lib/gitti/backup/version.rb
CHANGED
data/lib/gitti/backup.rb
CHANGED
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.
|
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
|
data/lib/gitti/backup/reposet.rb
DELETED
@@ -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
|
-
|