GyyTest1 0.0.4 → 0.0.5
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/bin/gyyTest1 +14 -2
- 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: 6e873528a819138f4b17ad61e35fa2cd6ac8c526
|
4
|
+
data.tar.gz: 75d2424dc434e6e47ed4818ca31cc334a45c3629
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22d9e3237cdad2e2ec6ed4ac16fa39abdc1c35201c623fd4b359bc5360c92092f041d7e5159e696301330734331d767ce5531313405a9777591c97a1f20840ba
|
7
|
+
data.tar.gz: 0d01b2df4c1d74eeac32e765b88e3185838c99bec978da895e797874c8aea1e01a1128642ae1ab0ac0287b836901bd8efe22b11be1b6c734f82364cef690142f
|
data/bin/gyyTest1
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
require "rubygems"
|
2
3
|
|
3
|
-
system 'sudo gem update GyyTest1'
|
4
4
|
|
5
|
-
|
5
|
+
newVersionStr = `sudo gem search GyyTest1`
|
6
|
+
newVersionList = newVersionStr.split(' ')[1].delete!("(").delete!(")").split(' ')
|
7
|
+
newVersionList.map { |item| item.delete!(",") }
|
8
|
+
newVersion = newVersionList[0]
|
9
|
+
|
10
|
+
spec = Gem::Specification::load("ShowMeCrashs.gemspec")
|
11
|
+
oldVersion = spec.version.to_s
|
12
|
+
|
13
|
+
if newVersion > oldVersion
|
14
|
+
system 'gem update ShowMeCrashs'
|
15
|
+
else
|
16
|
+
puts oldVersion
|
17
|
+
end
|