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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47d89819b39043972c9b7eb001c6295640482f6f
4
- data.tar.gz: 9ab6759b243dd50d6bf6cc84f598f013a896e838
3
+ metadata.gz: 23b94ce3c7dbeb1eb816fc266a520ff277a74a06
4
+ data.tar.gz: dff2e5ff8d5d961ae46cc4da765d75a1dfb6f92e
5
5
  SHA512:
6
- metadata.gz: 6f345ee2b66cd374cd1e7969235ed65324a1c34e814f40126e7f8be9ff7eab29dc3c484fc5eb95cc4aaf88ab4989b48f4cee8f68f28fb623ff1de9a5f5660d7e
7
- data.tar.gz: c8657d76b2919817ce5f90fa34b31d4a595ee8ac3db39d6398ee5c4d700e6ef993a7adc33001f489267da781446e7c62824e0f946977ce041ffb5126377ed507
6
+ metadata.gz: 740f8d8ca2e1f4e24c97458e3a47e947727613a12649c18d39d7ced494cb73d3c01a5cd64b682ea01563d4eff989d40789cee16441e68cac24b0bd006c6b2f03
7
+ data.tar.gz: 1066b7918f78d9ea829e1a53fd9865df7cb3dc9a9a20b5085c2d05a1b1a1ba64b5dbb722f00bb40d104b1cae64aa62370a0171378e409d5818ccaf1fa816a344
data/Manifest.txt CHANGED
@@ -4,4 +4,5 @@ README.md
4
4
  Rakefile
5
5
  lib/gitti.rb
6
6
  lib/gitti/lib.rb
7
+ lib/gitti/support/reposet.rb
7
8
  lib/gitti/version.rb
@@ -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
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Gitti
4
4
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
5
- MINOR = 1
5
+ MINOR = 2
6
6
  PATCH = 0
7
7
  VERSION = [MAJOR,MINOR,PATCH].join('.')
8
8
 
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.1.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-17 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: 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: