gitti 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Manifest.txt +1 -0
- data/lib/gitti/support/reposet.rb +37 -0
- data/lib/gitti/version.rb +1 -1
- data/lib/gitti.rb +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23b94ce3c7dbeb1eb816fc266a520ff277a74a06
|
4
|
+
data.tar.gz: dff2e5ff8d5d961ae46cc4da765d75a1dfb6f92e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 740f8d8ca2e1f4e24c97458e3a47e947727613a12649c18d39d7ced494cb73d3c01a5cd64b682ea01563d4eff989d40789cee16441e68cac24b0bd006c6b2f03
|
7
|
+
data.tar.gz: 1066b7918f78d9ea829e1a53fd9865df7cb3dc9a9a20b5085c2d05a1b1a1ba64b5dbb722f00bb40d104b1cae64aa62370a0171378e409d5818ccaf1fa816a344
|
data/Manifest.txt
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
module Gitti
|
4
|
+
|
5
|
+
|
6
|
+
class GitRepoSet ## todo: rename to Hash/Dict/List/Map or use GitHubRepoSet ??
|
7
|
+
|
8
|
+
def self.from_file( path )
|
9
|
+
hash = YAML.load_file( path )
|
10
|
+
self.new( hash )
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
def initialize( hash )
|
15
|
+
@hash = hash
|
16
|
+
end
|
17
|
+
|
18
|
+
def each
|
19
|
+
@hash.each do |key_with_counter,values|
|
20
|
+
|
21
|
+
## remove optional number from key e.g.
|
22
|
+
## mrhydescripts (3) => mrhydescripts
|
23
|
+
## footballjs (4) => footballjs
|
24
|
+
## etc.
|
25
|
+
|
26
|
+
key = key_with_counter.sub( /\s+\([0-9]+\)/, '' )
|
27
|
+
|
28
|
+
puts " -- #{key_with_counter} [#{key}] --"
|
29
|
+
|
30
|
+
yield( key, values )
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end ## class GitRepoSet
|
35
|
+
|
36
|
+
end ## module Gitti
|
37
|
+
|
data/lib/gitti/version.rb
CHANGED
data/lib/gitti.rb
CHANGED
@@ -16,6 +16,9 @@ require 'logutils'
|
|
16
16
|
require 'gitti/version' # note: let version always go first
|
17
17
|
require 'gitti/lib'
|
18
18
|
|
19
|
+
## todo/check: move to its own gem e.g. gitti-support later - why? why not??
|
20
|
+
require 'gitti/support/reposet'
|
21
|
+
|
19
22
|
|
20
23
|
# say hello
|
21
24
|
puts Gitti.banner if defined?($RUBYLIBS_DEBUG)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitti
|
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
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logutils
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- Rakefile
|
68
68
|
- lib/gitti.rb
|
69
69
|
- lib/gitti/lib.rb
|
70
|
+
- lib/gitti/support/reposet.rb
|
70
71
|
- lib/gitti/version.rb
|
71
72
|
homepage: https://github.com/rubylibs/gitti
|
72
73
|
licenses:
|