atome 0.5.7.1.7 → 0.5.7.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/atome +27 -5
- data/lib/atome/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0584500fbf0b3f088007209b206d7b6200985b6a7b03c40bddb9ee781bb6697a'
|
4
|
+
data.tar.gz: f0ceedb97e2382612a63a26e00f12eda52e543a84c4d6346c4497ffac9b157fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6265f34e1c06296bd11fcb639a8dcf2553217d6200253617700fc21243bcf6a6c51b82835b7c7318a0bb95558a485eb8a2e28832bd3e3f9d2552d6897409cfa3
|
7
|
+
data.tar.gz: 0d0e50b7c4cb0ef7afd41aaf5a75a1457d63ce9eaabc70b3443af9e2ef75af610b1c86ba0b98dea34b74ce99475827aee86ecf6d1b5bd42896b3c5eaec848b7f
|
data/exe/atome
CHANGED
@@ -577,10 +577,32 @@ if ARGV.include?('update')
|
|
577
577
|
|
578
578
|
gem_name = 'atome'
|
579
579
|
local_gem_spec = Gem::Specification.find_by_name(gem_name) rescue nil
|
580
|
-
if local_gem_spec.nil?
|
581
|
-
|
580
|
+
# if local_gem_spec.nil?
|
581
|
+
# puts :case1
|
582
|
+
# puts " #{gem_name} gem is not install will install from distant server"
|
583
|
+
# system("gem update #{gem_name}")
|
584
|
+
# else
|
585
|
+
# puts :case2
|
586
|
+
#
|
587
|
+
# available_versions = Gem::Specification.find_all_by_name(gem_name).map(&:version)
|
588
|
+
#
|
589
|
+
# latest_version = available_versions.max
|
590
|
+
#
|
591
|
+
# if latest_version > local_gem_spec.version
|
592
|
+
# puts "update availlable: #{local_gem_spec.version} -> #{latest_version}"
|
593
|
+
# system("gem update #{gem_name}")
|
594
|
+
# else
|
595
|
+
# puts "No update necessary '#{gem_name}'. current version : #{local_gem_spec.version}"
|
596
|
+
# end
|
597
|
+
# end
|
598
|
+
#########
|
599
|
+
# if local_gem_spec.nil?
|
600
|
+
# puts :case1
|
601
|
+
# puts " #{gem_name} gem is not install will install from distant server"
|
582
602
|
system("gem update #{gem_name}")
|
583
|
-
else
|
603
|
+
# else
|
604
|
+
# puts :case2
|
605
|
+
|
584
606
|
available_versions = Gem::Specification.find_all_by_name(gem_name).map(&:version)
|
585
607
|
|
586
608
|
latest_version = available_versions.max
|
@@ -591,9 +613,9 @@ if ARGV.include?('update')
|
|
591
613
|
else
|
592
614
|
puts "No update necessary '#{gem_name}'. current version : #{local_gem_spec.version}"
|
593
615
|
end
|
594
|
-
end
|
595
|
-
|
616
|
+
# end
|
596
617
|
|
618
|
+
########
|
597
619
|
# TODO: also update index.html and all other files except the application folder
|
598
620
|
# we check we are in atome app
|
599
621
|
if Dir.exist?("#{destination}/application") && !Dir.exist?("#{destination}/vendor")
|
data/lib/atome/version.rb
CHANGED