prima-twig 0.48.16 → 0.48.17

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/bin/twig-feature +11 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9d94e345635f67f01ba5cd856c012e970bdd3dd64f4f824f87fe6c40696ae54
4
- data.tar.gz: 2f08728744d0dd73b2f1ab28d0e79ae338ec66dc908364bfc2c4c12bda751f27
3
+ metadata.gz: 59862eaca36c2a563c76d17e366ef0b665144f85b81c51588fec58fdddc05665
4
+ data.tar.gz: eb7cfe7452eae181d080b3b70049a3494364c33b11f402f2a57c4a37f60fd5f2
5
5
  SHA512:
6
- metadata.gz: 7a4afa9271987e01620fedec17733a87ef82a0d4bcaeb3225578f1bbe20bb52a648c5b5f8f6313ee837a6fd7fd3527f8809221de68c5c0701b346f9aa463f330
7
- data.tar.gz: 35dd9c16e00cbd5a49a501b07bfb667e5cfc2aeff6ddb55014447143ca489e0bca4daf5f4bc221cdf9119941bfcb0b7beaecf6fee9675a1815252c861ef4afd9
6
+ metadata.gz: d0959d59f066641d253cc5ed8e8bab5e7686602971f2be259a588203341af3ecdc57b25a69779f92a614ea88b9b151c481ce57aabe9884cb8adf64cd623a4401
7
+ data.tar.gz: 0617d3b13dc88426ba850f19fff0864b793bab08fe381a9593fddc7dbb319216d294c51ce7143bb945be724dabf2bfff5b8d6fde4777dd2ba4602f9ca9482850
data/bin/twig-feature CHANGED
@@ -461,6 +461,10 @@ class Release
461
461
  `git config user.name`.gsub(/[^A-Za-z]/, '').gsub("\n", '')
462
462
  end
463
463
 
464
+ def get_git_mail()
465
+ `git config user.email`.gsub("\n", '')
466
+ end
467
+
464
468
  def qainit_deploy!(quiet = false)
465
469
  `git checkout master && git pull && git remote prune origin`
466
470
 
@@ -700,6 +704,7 @@ class Release
700
704
  end
701
705
 
702
706
  def calculate_deploy_id # TODO usare nome del branch
707
+ #hashable = `git rev-parse --abbrev-ref HEAD`
703
708
  hashable = ''
704
709
  @projects.each_key do |project_key|
705
710
  if @projects[project_key][:name]
@@ -2019,7 +2024,6 @@ class Release
2019
2024
  if @qainit
2020
2025
  exec_step 'cp docker-compose.yml docker-compose-ci.yml'
2021
2026
  exec_step 'prepare-docker-compose --directory urania && cp docker-compose-qainit.yml docker-compose.yml'
2022
- execute_command "cat docker-compose.yml"
2023
2027
  end
2024
2028
 
2025
2029
  execute_command "docker-compose build web"
@@ -2027,7 +2031,7 @@ class Release
2027
2031
  if @qainit
2028
2032
  [ "docker-compose run -w $PWD -u root -e MIX_ENV=qa --entrypoint /bin/sh web \
2029
2033
  '-c' 'mix local.hex --force && mix hex.info && \
2030
- mix deps.get && mix deps.compile && mix compile && \
2034
+ mix deps.get && mix compile && mix deps.compile && \
2031
2035
  rm -rf _build/qa/rel/ && \
2032
2036
  mix release --env=qa'"
2033
2037
  ].each do |cmd|
@@ -2895,9 +2899,12 @@ class Release
2895
2899
  menu.prompt = "Scegli il branch di #{project_name} da deployare: ".cyan
2896
2900
  menu.shell = true
2897
2901
 
2898
- branches.each do |branch|
2902
+ git_mail = get_git_mail
2903
+
2904
+ branches.each_with_index do |branch, index|
2899
2905
  title = @prima.reduce_size(branch, 100)
2900
- msg = "#{title}".light_blue
2906
+ msg = index.odd? ? title.white : title.light_yellow # uno bianco e uno giallo alternati
2907
+ msg = branch.include?(git_mail) ? msg.on_blue : msg.on_black # i branch aggiornati da chi lancia la creazione sono su sfondo blu
2901
2908
  menu.choice(msg) { branch }
2902
2909
  menu.default = branch if branch == master_branch
2903
2910
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prima-twig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.48.16
4
+ version: 0.48.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2019-07-12 00:00:00.000000000 Z
17
+ date: 2019-07-16 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: aws-sdk