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.
- checksums.yaml +4 -4
- data/bin/twig-feature +10 -16
- 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: c2c93ecf0de3c9a33bc97d6b2b39548061da25525a868398043215132ec4434b
|
4
|
+
data.tar.gz: ebdf1d4ac395f50c4db2abd62b43e619236d2700a965fa9c83e234d3f5f76044
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 738e6da8acac0cb5883ea358828b3c9cf22604fd193aa5d6107199d88954fde7b5dd9abc8c67446f0602e4544e8fe4386a1daf7821967ef705b3d9910b41de2f
|
7
|
+
data.tar.gz: d0fe273d2e3c13485f0a8edc3bfea9328b12632a95140a791a807b7c5d813f7a5d990ed28110eed91ec42bc194fd2e5ad946adddd77dae3afe5866b8ca6b3bd3
|
data/bin/twig-feature
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|