socotra-build 0.2.3 → 0.3.0
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/socotra-build-update.rb +10 -7
- 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: 8a222cc0004eca6ae9d532b4c1518f6b44f64319
|
|
4
|
+
data.tar.gz: 5b7fd2731bd81c44dcb248d58b8a48d8c50c90b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae8894e1aea9afd54c39f9c64d9ee353751c2fe01431b3eabb064d7b38c0c5792de7bca5dbf21113f479801a0c0e17d0c5789e5c9b95816d97a168be39f94f41
|
|
7
|
+
data.tar.gz: 4a3974caeb31fbe801df3f77e077455a0b88614ac6f71d6c36bdf7f4008e3560eb913f0fca0e7420ff80fea550a31b44deab535075f691917303876fc859cb43
|
data/lib/socotra-build-update.rb
CHANGED
|
@@ -4,14 +4,17 @@ BEGIN {
|
|
|
4
4
|
version_installed = output.split('(')[1].split()[0].split(',')[0]
|
|
5
5
|
|
|
6
6
|
if version_installed != version_to_install
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
files_in_module.each do |module_file|
|
|
10
|
-
unless module_file.include? "socotra-build-update.rb"
|
|
11
|
-
load module_file
|
|
12
|
-
end
|
|
13
|
-
end
|
|
7
|
+
version = version_to_install
|
|
8
|
+
gem_install_output = `gem install socotra-build -v #{version}`
|
|
14
9
|
else
|
|
15
10
|
puts "Not upgrading socotra-build"
|
|
11
|
+
version = version_installed
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
files_in_module = `gem contents socotra-build -v #{version}`.split
|
|
15
|
+
files_in_module.each do |module_file|
|
|
16
|
+
unless module_file.include? "socotra-build-update.rb"
|
|
17
|
+
load module_file
|
|
18
|
+
end
|
|
16
19
|
end
|
|
17
20
|
}
|