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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8174b6f645364ef888f498ffa24274882cf9dd39
4
- data.tar.gz: b6752daa7ac077dae28c7c46a47785e05b5b430a
3
+ metadata.gz: 522c90f1b3a1838184ab1732822d42c9620680e7
4
+ data.tar.gz: 64747029b401daf6e77793068a3dcac64ff17915
5
5
  SHA512:
6
- metadata.gz: b4d6463d5a85e932aaa3d575b5c440b2a1b13f352a2efc3a2e366afe6cc81ac782ab66a2efb60e4cf62ddafaa21fdc3cb1d02ef3cc8ee8dc5fc7c85f52f2d671
7
- data.tar.gz: fbc6b246c055889649963d7b06d1f82618068d8f27817af27aa6a03394b2ae3fd0f99bc13a912e7d70997b76a9a1f359cc5879df31f114e33d84befdfadd4799
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).select(&:available?)
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.all.each(&block)
12
+ self.available.each(&block)
9
13
  end
10
14
 
11
15
  def self.chdir_each
12
- self.all.each do |repo|
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
@@ -1,3 +1,3 @@
1
1
  module MGit
2
- VERSION = '0.3.3'
2
+ VERSION = '0.3.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mgit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - FlavourSys Technology GmbH