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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/atome +27 -5
  3. data/lib/atome/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49d9ecf130f643cc65b60e7a935dd513871f3ecf0afca6b97476b57650ac0fee
4
- data.tar.gz: 60843a34a863fc4ed3b324d0ae29913c58355eb69c7a8a732eb9445c933d256e
3
+ metadata.gz: '0584500fbf0b3f088007209b206d7b6200985b6a7b03c40bddb9ee781bb6697a'
4
+ data.tar.gz: f0ceedb97e2382612a63a26e00f12eda52e543a84c4d6346c4497ffac9b157fd
5
5
  SHA512:
6
- metadata.gz: e599f47ecf7ab87cf472fe12d95ac2991ad3e192b85e74252304b738537ec0c513bbda6371331912ffaee9fa33be66795a2ba31ca3607296d4e910bd4b06d0b9
7
- data.tar.gz: 5041dfd0b3600ec8b406f7a3d9bfbdc6e9e66c3e8b002ba576292d01e6277f379040d1f0f945922a21e33bcc09e8037f8889fb62caf4cb06472bad0109bba827
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
- puts " #{gem_name} gem is not install will install from distant server"
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  # return atome version
4
4
  class Atome
5
- VERSION = '0.5.7.1.7'
5
+ VERSION = '0.5.7.1.8'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7.1.7
4
+ version: 0.5.7.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Eric Godard