stool 0.2.1 → 0.2.11

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: b525c04bc4f52d082f02d6f4ae8f1e012d24cdf5
4
- data.tar.gz: 495278b3125c9817c0d9a498c8ecb260d5ee50d1
3
+ metadata.gz: b28ce3777893850a4af90911b7537dd6cd0bccdf
4
+ data.tar.gz: a6a773479e7f8167b874ecbf2512ccaf3f2848a3
5
5
  SHA512:
6
- metadata.gz: 1004aaea24f90679dc992d07e94e98392b373adb63d86a2293686dd4a33b724afc8dd0f9023b2265ea1ff65d5885cc95319527a3ae197cc51d49bd0396c6519a
7
- data.tar.gz: 177b8d6477dde0766c1dc2742cf7cf6a99136cf76fe8bc3b73a78d5c5dec00e28783fffe6366b9be17decd0631dd95db0184649c404d6fc88a5a8376336db5f0
6
+ metadata.gz: 443dc5cf0cc4edfbb47be9ef5d1d9eb291d1b5788bba4e3e74c1316a8972aecf20f53ad492bdca0433d404965199939cf3bc09128a52162895196cb57958aadb
7
+ data.tar.gz: 5dede2ae8160954c9252d7907b1b6aa2264350c39de2adf69633951f214282225300437476181ed8f30d0dc9bcd7e6907945d550bfb47e3a40babadc1692afdb
@@ -40,6 +40,16 @@ module Stool
40
40
  }
41
41
  end
42
42
 
43
+ #获取所有repo除master
44
+ def self.getAllRepos
45
+ path = @@config.repoCachePath
46
+ arr = Dir.entries(path).delete_if{|file|
47
+ if file['.'] || file.eql?('master')
48
+ 1
49
+ end
50
+ }
51
+ end
52
+
43
53
  end
44
54
  end
45
55
  end
@@ -53,12 +53,7 @@ module Stool
53
53
  def getAllRepos
54
54
  arr = []
55
55
  if @info.repos.count == 0
56
- path = @@config.repoCachePath
57
- arr = Dir.entries(path).delete_if{|file|
58
- if file['.'] || file.eql?('master')
59
- 1
60
- end
61
- }
56
+ arr = Repo::getAllRepos
62
57
  else
63
58
  arr = @info.repos
64
59
  end
@@ -18,22 +18,5 @@ module Stool
18
18
  puts('')
19
19
  end
20
20
 
21
- #本地搜索一个lib
22
- def searchLib(name)
23
- libInfo = nil
24
- if subDirs.include?(name)
25
- libInfo = LibInfo::loadFromPath(File.join(@path,name))
26
- end
27
- libInfo
28
- end
29
-
30
- def subDirs
31
- arr = []
32
- if @path
33
- arr = Dir.entries(@path)
34
- end
35
- arr
36
- end
37
-
38
21
  end
39
22
  end
data/lib/stool/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Stool
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fiend