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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/socotra-build-update.rb +10 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb0d2a992034a0c5412c6b592ee511888a1b2606
4
- data.tar.gz: 3c4091ad6547ba466a7463884974c60100bf4a8b
3
+ metadata.gz: 8a222cc0004eca6ae9d532b4c1518f6b44f64319
4
+ data.tar.gz: 5b7fd2731bd81c44dcb248d58b8a48d8c50c90b4
5
5
  SHA512:
6
- metadata.gz: 68f8c89e1403fe2ed67bdc9df8235d9e4c63ec2b198ad2df7945d86b28472d45d6c5f011d1f517858a4f7254e54f70739e958c1155af3ac2d3c5637cfd130bb2
7
- data.tar.gz: 59acf30be18cc7743cead5215e4268f46e34bd620bddd6f4ee3333352ffa30eb4ed0053307b83a5f4d6007a67ee0aa3744f6738e51da0ed1759aeb94636c6f45
6
+ metadata.gz: ae8894e1aea9afd54c39f9c64d9ee353751c2fe01431b3eabb064d7b38c0c5792de7bca5dbf21113f479801a0c0e17d0c5789e5c9b95816d97a168be39f94f41
7
+ data.tar.gz: 4a3974caeb31fbe801df3f77e077455a0b88614ac6f71d6c36bdf7f4008e3560eb913f0fca0e7420ff80fea550a31b44deab535075f691917303876fc859cb43
@@ -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
- gem_install_output = `gem install socotra-build -v #{version_to_install}`
8
- files_in_module = `gem contents socotra-build -v #{version_to_install}`.split
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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socotra-build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Antenesse