mgit 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mgit/registry.rb +7 -3
- data/lib/mgit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 522c90f1b3a1838184ab1732822d42c9620680e7
|
4
|
+
data.tar.gz: 64747029b401daf6e77793068a3dcac64ff17915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec1440f74ea09f063c36c8b40bf40948446a5c9f2898d5b172e66793c52635745ac200d6458e864442ee8c555d68a99482095f954c86cbbad08086af1b1839c8
|
7
|
+
data.tar.gz: 818b07fa2a1761bfae74b78672c27b34834d4140cd182a27410b6bd15c971dae58cc446cabe747f90ffb65d995ffb9ab9099186ce335a017501c660a3e5189e3
|
data/lib/mgit/registry.rb
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
module MGit
|
2
2
|
module Registry
|
3
3
|
def self.all
|
4
|
-
self.load.map { |name, path| Repository.new(name, path) }.sort_by(&:path)
|
4
|
+
self.load.map { |name, path| Repository.new(name, path) }.sort_by(&:path)
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.available
|
8
|
+
self.all.select(&:available?)
|
5
9
|
end
|
6
10
|
|
7
11
|
def self.each(&block)
|
8
|
-
self.
|
12
|
+
self.available.each(&block)
|
9
13
|
end
|
10
14
|
|
11
15
|
def self.chdir_each
|
12
|
-
self.
|
16
|
+
self.available.select(&:available?).each do |repo|
|
13
17
|
Dir.chdir(repo.path) do
|
14
18
|
yield repo
|
15
19
|
end
|
data/lib/mgit/version.rb
CHANGED