prima-twig 0.53.34 → 0.53.36

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 +10 -16
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 698ada9cb02f767bdc8676488c7de698ca26539b46d866be88087f33724219a6
4
- data.tar.gz: 1088d2c9559d908befe686d944671916110f6cea5d9251ce5e625c4722e37f7e
3
+ metadata.gz: c2c93ecf0de3c9a33bc97d6b2b39548061da25525a868398043215132ec4434b
4
+ data.tar.gz: ebdf1d4ac395f50c4db2abd62b43e619236d2700a965fa9c83e234d3f5f76044
5
5
  SHA512:
6
- metadata.gz: bac02bc639fef9e6a2451b0ba46ec4c9f3e2f5c119b7a28eb3697345083a88aac6fc4a0e6acffc55fd2b5021466d335a208421733fc28296c9f47ccccca9a71a
7
- data.tar.gz: 78be5c3cbb43cb13482121447865846e85e7a3fc80f830f3b7970b6ab222921fe3051e511c4c00661b2e2d72471c0f0a3b5c463270faf9e6d80efea4fcfe7449
6
+ metadata.gz: 738e6da8acac0cb5883ea358828b3c9cf22604fd193aa5d6107199d88954fde7b5dd9abc8c67446f0602e4544e8fe4386a1daf7821967ef705b3d9910b41de2f
7
+ data.tar.gz: d0fe273d2e3c13485f0a8edc3bfea9328b12632a95140a791a807b7c5d813f7a5d990ed28110eed91ec42bc194fd2e5ad946adddd77dae3afe5866b8ca6b3bd3
@@ -526,7 +526,7 @@ class Release
526
526
  # così recupero le informazioni sul branch, poi vado a scrivere il file branch_names con una sola riga
527
527
  branch = "#{project}:#{project_definition[:name]}:#{project_definition[:revision]}:#{project_definition[:default_branch]}"
528
528
 
529
- File.open('branch_names', 'w') { |file| file.write(branch) }
529
+ File.open('branch_names', 'w') { |file| file.write(JSON.generate(branch)) }
530
530
 
531
531
  `git add projects && \
532
532
  git add branch_names && \
@@ -571,15 +571,7 @@ class Release
571
571
  @projects[key][:default_branch] = project['default_branch']
572
572
  end
573
573
 
574
- branches = ''
575
-
576
- @projects.each_key do |project_key|
577
- if @projects[project_key][:revision]
578
- branches += "#{project_key}:#{@projects[project_key][:name]}:#{@projects[project_key][:revision]}:#{@projects[project_key][:default_branch]}"
579
- end
580
- end
581
-
582
- File.open('branch_names', 'w') { |file| file.write(branches) }
574
+ File.open('branch_names', 'w') { |file| file.write(JSON.generate(@projects)) }
583
575
 
584
576
  if `git log -1` =~ /minimal_/
585
577
  `git commit -am 'minimal_update'`
@@ -675,16 +667,18 @@ class Release
675
667
  end
676
668
 
677
669
  def qainit_read_config!(action)
670
+ projects = ''
671
+
678
672
  File.open('branch_names', 'r') do |file|
679
673
  file.each_line do |line|
680
- project = line.gsub("\n", '').split(':')
681
- if project[3] == 'true'
682
- @projects[project[0]] = {:name=> project[1], :revision=> project[2], :default_branch=> true}
683
- elsif project[3] == 'false'
684
- @projects[project[0]] = {:name=> project[1], :revision=> project[2], :default_branch=> false}
685
- end
674
+ projects = JSON.parse(line)
686
675
  end
687
676
  end
677
+
678
+ projects.each do |key, project|
679
+ @projects[key] = project
680
+ end
681
+
688
682
  get_s3_config_files
689
683
  @qainit = true
690
684
  case action
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.53.34
4
+ version: 0.53.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matteo Giachino