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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 712aa2e91c684cebbc7d7759b84cd192f685ea90
4
- data.tar.gz: 2baf079fc43e36ac85a92f289a166a3993ad9131
3
+ metadata.gz: b525c04bc4f52d082f02d6f4ae8f1e012d24cdf5
4
+ data.tar.gz: 495278b3125c9817c0d9a498c8ecb260d5ee50d1
5
5
  SHA512:
6
- metadata.gz: 991b1c1fa20d895a596559597c92b458a84b763309860490b7dde99b00090fa6616d8a43bf5dc1390705bad0960c4a465c368fb34e077d6a861f918675706b56
7
- data.tar.gz: 5c28b392361ae59a3c15ad223d2bf4756da5d190986bc19b6b49603dd35f9fc80da1bfc36a6f18584f416d5633267cb9fde2089da65ff2a0f2f06eb8b5e309c0
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Stool
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fiend