stool 0.2.0 → 0.2.1
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/lib/stool/Command/Lib/VersionAdd.rb +2 -6
- data/lib/stool/Core/PoolInfo.rb +6 -1
- data/lib/stool/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: b525c04bc4f52d082f02d6f4ae8f1e012d24cdf5
|
|
4
|
+
data.tar.gz: 495278b3125c9817c0d9a498c8ecb260d5ee50d1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1004aaea24f90679dc992d07e94e98392b373adb63d86a2293686dd4a33b724afc8dd0f9023b2265ea1ff65d5885cc95319527a3ae197cc51d49bd0396c6519a
|
|
7
|
+
data.tar.gz: 177b8d6477dde0766c1dc2742cf7cf6a99136cf76fe8bc3b73a78d5c5dec00e28783fffe6366b9be17decd0631dd95db0184649c404d6fc88a5a8376336db5f0
|
|
@@ -12,25 +12,21 @@ module Stool
|
|
|
12
12
|
self.arguments = [
|
|
13
13
|
CLAide::Argument.new('NAME', true),
|
|
14
14
|
]
|
|
15
|
-
|
|
16
|
-
def run
|
|
17
15
|
|
|
16
|
+
def run
|
|
18
17
|
@info.info_tos
|
|
19
|
-
|
|
20
18
|
puts '版本增加 1'
|
|
21
19
|
newVersion = StringUtile::versionUpdate(@info.version,'1')
|
|
22
|
-
|
|
23
20
|
file = File.open(@info.path + "/#{@info.name}" + ".podspec", "r+")
|
|
24
21
|
file.each_line do |line|
|
|
25
22
|
if line[/#{@info.version}/]
|
|
26
|
-
|
|
27
23
|
file.seek(-line.length, IO::SEEK_CUR)
|
|
28
|
-
|
|
29
24
|
file.write(line.sub(/#{@info.version}/, newVersion))
|
|
30
25
|
end
|
|
31
26
|
end
|
|
32
27
|
file.close
|
|
33
28
|
end
|
|
29
|
+
|
|
34
30
|
end
|
|
35
31
|
end
|
|
36
32
|
end
|
data/lib/stool/Core/PoolInfo.rb
CHANGED
|
@@ -9,10 +9,15 @@ module Stool
|
|
|
9
9
|
attr_accessor :path
|
|
10
10
|
attr_accessor :lib_gitCloneUrl
|
|
11
11
|
|
|
12
|
+
def initialize
|
|
13
|
+
@lib_gitCloneUrl = ''
|
|
14
|
+
super
|
|
15
|
+
end
|
|
16
|
+
|
|
12
17
|
def info_tos
|
|
13
18
|
puts('--' + 'name:'+ self.name)
|
|
14
19
|
puts('--' + 'path:'+ self.path)
|
|
15
|
-
puts('--' + 'path:'+ self.lib_gitCloneUrl)
|
|
20
|
+
puts('--' + 'path:'+ self.lib_gitCloneUrl.to_s)
|
|
16
21
|
puts('--' + 'libs:')
|
|
17
22
|
subDirs.sort.each do |f|
|
|
18
23
|
unless f['.']
|
data/lib/stool/version.rb
CHANGED