releasehx 0.1.0 → 0.1.1

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +1 -1
  3. data/lib/releasehx/generated.rb +1 -1
  4. data/lib/releasehx/rhyml/templates/changelog.adoc.liquid +14 -0
  5. data/lib/releasehx/rhyml/templates/changelog.html.liquid +14 -0
  6. data/lib/releasehx/rhyml/templates/changelog.md.liquid +11 -0
  7. data/lib/releasehx/rhyml/templates/changes-sorter.liquid +64 -0
  8. data/lib/releasehx/rhyml/templates/config-cascade.liquid +61 -0
  9. data/lib/releasehx/rhyml/templates/entry.adoc.liquid +26 -0
  10. data/lib/releasehx/rhyml/templates/entry.html.liquid +38 -0
  11. data/lib/releasehx/rhyml/templates/entry.md.liquid +25 -0
  12. data/lib/releasehx/rhyml/templates/groupby.liquid +12 -0
  13. data/lib/releasehx/rhyml/templates/groupings.liquid +97 -0
  14. data/lib/releasehx/rhyml/templates/groups-parser.liquid +60 -0
  15. data/lib/releasehx/rhyml/templates/head-parser.liquid +34 -0
  16. data/lib/releasehx/rhyml/templates/header.liquid +17 -0
  17. data/lib/releasehx/rhyml/templates/history.adoc.liquid +11 -0
  18. data/lib/releasehx/rhyml/templates/history.html.liquid +54 -0
  19. data/lib/releasehx/rhyml/templates/history.md.liquid +16 -0
  20. data/lib/releasehx/rhyml/templates/item.liquid +35 -0
  21. data/lib/releasehx/rhyml/templates/metadata-entry.adoc.liquid +56 -0
  22. data/lib/releasehx/rhyml/templates/metadata-entry.html.liquid +2 -0
  23. data/lib/releasehx/rhyml/templates/metadata-entry.md.liquid +130 -0
  24. data/lib/releasehx/rhyml/templates/metadata-note.adoc.liquid +56 -0
  25. data/lib/releasehx/rhyml/templates/metadata-note.html.liquid +36 -0
  26. data/lib/releasehx/rhyml/templates/metadata-note.md.liquid +30 -0
  27. data/lib/releasehx/rhyml/templates/note.adoc.liquid +52 -0
  28. data/lib/releasehx/rhyml/templates/note.html.liquid +25 -0
  29. data/lib/releasehx/rhyml/templates/note.md.liquid +37 -0
  30. data/lib/releasehx/rhyml/templates/parts-listing.liquid +61 -0
  31. data/lib/releasehx/rhyml/templates/release-notes.adoc.liquid +14 -0
  32. data/lib/releasehx/rhyml/templates/release-notes.html.liquid +14 -0
  33. data/lib/releasehx/rhyml/templates/release-notes.md.liquid +14 -0
  34. data/lib/releasehx/rhyml/templates/release.adoc.liquid +16 -0
  35. data/lib/releasehx/rhyml/templates/release.html.liquid +20 -0
  36. data/lib/releasehx/rhyml/templates/release.md.liquid +20 -0
  37. data/lib/releasehx/rhyml/templates/rhyml-change-append.yaml.liquid +7 -0
  38. data/lib/releasehx/rhyml/templates/rhyml-change.yaml.liquid +39 -0
  39. data/lib/releasehx/rhyml/templates/rhyml.yaml.liquid +14 -0
  40. data/lib/releasehx/rhyml/templates/section-text.liquid +9 -0
  41. data/lib/releasehx/rhyml/templates/sections.liquid +47 -0
  42. data/lib/releasehx/rhyml/templates/tags-listing.liquid +61 -0
  43. metadata +40 -1
@@ -0,0 +1,39 @@
1
+ {%- assign change = include.change %}
2
+ {%- assign config = include.config %}
3
+ - chid: {{ change.chid }}
4
+ {%- if change.tick %}
5
+ tick: {{ change.tick }}
6
+ {%- endif %}
7
+ {%- if change.type %}
8
+ type: {{ change.type }}
9
+ {%- endif %}
10
+ {%- if change.parts.size > 0 %}
11
+ {%- if change.parts.size == 1 %}
12
+ part: {{ change.parts[0] }}
13
+ {%- else %}
14
+ parts:
15
+ {%- for part in change.parts %}
16
+ - {{ part }}
17
+ {%- endfor %}
18
+ {%- endif %}
19
+ {%- endif %}
20
+ {%- if change.hash %}
21
+ hash: {{ change.hash }}
22
+ {%- endif %}
23
+ summ: {{ change.summ }}
24
+ {%- if change.head %}
25
+ head: {{ change.head }}
26
+ {%- endif %}
27
+ {%- if change.note and change.note.strip != "" %}
28
+ note: |
29
+ {{ change.note | indent: 6 }}
30
+ {%- endif %}
31
+ {%- if change.tags.size > 0 %}
32
+ tags:
33
+ {%- for tag in change.tags %}
34
+ - {{ tag }}
35
+ {%- endfor %}
36
+ {%- endif %}
37
+ {%- if change.lead %}
38
+ lead: {{ change.lead }}
39
+ {%- endif %}
@@ -0,0 +1,14 @@
1
+ {%- assign config = vars.config %}
2
+ {%- assign release = vars.release %}
3
+ {%- assign changes = vars.changes -%}
4
+ code: "{{ release.code }}"
5
+ date: {{ release.date | date: "%Y-%m-%d" }}
6
+ memo: {%- if release.memo %}|
7
+ {{ release.memo | indent: 2 }}
8
+ {%- endif %}
9
+ changes:
10
+ {%- for change in changes %}
11
+ {% include rhyml-change.yaml.liquid
12
+ change=change
13
+ config=config %}
14
+ {%- endfor %}
@@ -0,0 +1,9 @@
1
+ {%- if content_config.text %}
2
+
3
+ {% if format == "asciidoc" and config['$meta']['markup'] == "markdown" %}
4
+ {{ content_config.text | md_to_adoc }}
5
+ {% else %}
6
+ {{ content_config.text }}
7
+ {% endif %}
8
+
9
+ {%- endif %}
@@ -0,0 +1,47 @@
1
+ {%- if changelog_spot and changelog_spot == 1 %}
2
+ {%- assign section_type = "changelog" %}
3
+ {%- case format %}
4
+ {%- when "asciidoc" %}
5
+ {%- embed changelog.adoc.liquid %}
6
+ {%- when "markdown" %}
7
+ {%- embed changelog.md.liquid %}
8
+ {%- when "html" %}
9
+ {%- embed changelog.html.liquid %}
10
+ {%- endcase %}
11
+ {%- endif %}
12
+
13
+ {%- if release_notes_spot and release_notes_spot == 1 %}
14
+ {%- assign section_type = "notes" %}
15
+ {%- case format %}
16
+ {%- when "asciidoc" %}
17
+ {%- embed release-notes.adoc.liquid %}
18
+ {%- when "markdown" %}
19
+ {%- embed release-notes.md.liquid %}
20
+ {%- when "html" %}
21
+ {%- embed release-notes.html.liquid %}
22
+ {%- endcase %}
23
+ {%- endif %}
24
+
25
+ {%- if config.changelog and config.changelog.spot == 2 %}
26
+ {%- assign section_type = "changelog" %}
27
+ {%- case format %}
28
+ {%- when "asciidoc" %}
29
+ {%- embed changelog.adoc.liquid %}
30
+ {%- when "markdown" %}
31
+ {%- embed changelog.md.liquid %}
32
+ {%- when "html" %}
33
+ {%- embed changelog.html.liquid %}
34
+ {%- endcase %}
35
+ {%- endif %}
36
+
37
+ {%- if release_notes_spot and release_notes_spot == 2 %}
38
+ {%- assign section_type = "notes" %}
39
+ {%- case format %}
40
+ {%- when "asciidoc" %}
41
+ {%- embed release-notes.adoc.liquid %}
42
+ {%- when "markdown" %}
43
+ {%- embed release-notes.md.liquid %}
44
+ {%- when "html" %}
45
+ {%- embed release-notes.html.liquid %}
46
+ {%- endcase %}
47
+ {%- endif %}
@@ -0,0 +1,61 @@
1
+ {%- assign tags_listing = "" %}
2
+ {%- assign tags_count = 0 %}
3
+ {%- for tag in change.tags %}
4
+ {%- assign skip_tag = false %}
5
+ {%- if tag == "changelog" or tag == "release_note_needed" %}
6
+ {%- assign skip_tag = true %}
7
+ {%- elsif tag == group1_slug or tag == group2_slug %}
8
+ {%- assign skip_tag = true %}
9
+ {%- elsif config.tags[tag] == nil %}
10
+ {%- assign skip_tag = true %}
11
+ {%- endif %}
12
+ {%- unless skip_tag %}
13
+ {%- assign tags_count = tags_count | plus: 1 %}
14
+ {%- endunless %}
15
+ {%- endfor %}
16
+
17
+ {%- if tags_count > 0 %}
18
+ {%- capture tags_listing -%}
19
+ {%- if show_labels -%}
20
+ {%- if format == "asciidoc" -%}
21
+ {%- if labeling_singularize_labels and tags_count == 1 -%}
22
+ [.meta-label.tags-label]*{{ labeling_tag_label }}:*{%- else -%}[.meta-label.tags-label]*{{ labeling_tags_label }}:*{%- endif -%}
23
+ {%- elsif format == "markdown" -%}
24
+ {%- if labeling_singularize_labels and tags_count == 1 -%}
25
+ {{ labeling_tag_label }}: {%- else -%}{{ labeling_tags_label }}: {%- endif -%}
26
+ {%- endif -%}
27
+ {%- endif -%}
28
+ {%- assign tag_texts = "" | split: "," -%}
29
+ {%- for tag in change.tags -%}
30
+ {%- assign skip_tag = false -%}
31
+ {%- if tag == "changelog" or tag == "release_note_needed" -%}
32
+ {%- assign skip_tag = true -%}
33
+ {%- elsif tag == group1_slug or tag == group2_slug -%}
34
+ {%- assign skip_tag = true -%}
35
+ {%- elsif config.tags[tag] == nil -%}
36
+ {%- assign skip_tag = true -%}
37
+ {%- endif -%}
38
+ {%- unless skip_tag -%}
39
+ {%- capture tag_text -%}
40
+ {%- if config.tags[tag].icon and show_icons and show_icons == "before" -%}
41
+ {%- if format == "asciidoc" -%}icon:{{ config.tags[tag].icon }}[] {%- endif -%}
42
+ {%- endif -%}
43
+ {%- if format == "asciidoc" -%}
44
+ {{ config.tags[tag]['text'] | default: tag }}{%- elsif format == "markdown" -%}{{ config.tags[tag]['text'] | default: tag }}{%- endif -%}
45
+ {%- if config.tags[tag].icon and show_icons and show_icons == "after" -%}
46
+ {%- if format == "asciidoc" -%} icon:{{ config.tags[tag].icon }}[]{%- endif -%}
47
+ {%- endif -%}
48
+ {%- endcapture -%}
49
+ {%- assign tag_texts = tag_texts | push: tag_text -%}
50
+ {%- endunless -%}
51
+ {%- endfor -%}
52
+ {%- if tag_texts.size > 0 -%}
53
+ {%- if format == "asciidoc" -%}
54
+ {%- for tag_text in tag_texts -%}
55
+ {{ tag_text }}{%- unless forloop.last %} {%- endunless -%}
56
+ {%- endfor -%}
57
+ {%- elsif format == "markdown" -%}
58
+ {{ tag_texts | join: ", " }}{%- endif -%}
59
+ {%- endif -%}
60
+ {%- endcapture -%}
61
+ {%- endif -%}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: releasehx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DocOpsLab
@@ -319,6 +319,45 @@ files:
319
319
  - lib/releasehx/rhyml/mappings/jira.yaml
320
320
  - lib/releasehx/rhyml/mappings/verb_past_tenses.yml
321
321
  - lib/releasehx/rhyml/release.rb
322
+ - lib/releasehx/rhyml/templates/changelog.adoc.liquid
323
+ - lib/releasehx/rhyml/templates/changelog.html.liquid
324
+ - lib/releasehx/rhyml/templates/changelog.md.liquid
325
+ - lib/releasehx/rhyml/templates/changes-sorter.liquid
326
+ - lib/releasehx/rhyml/templates/config-cascade.liquid
327
+ - lib/releasehx/rhyml/templates/entry.adoc.liquid
328
+ - lib/releasehx/rhyml/templates/entry.html.liquid
329
+ - lib/releasehx/rhyml/templates/entry.md.liquid
330
+ - lib/releasehx/rhyml/templates/groupby.liquid
331
+ - lib/releasehx/rhyml/templates/groupings.liquid
332
+ - lib/releasehx/rhyml/templates/groups-parser.liquid
333
+ - lib/releasehx/rhyml/templates/head-parser.liquid
334
+ - lib/releasehx/rhyml/templates/header.liquid
335
+ - lib/releasehx/rhyml/templates/history.adoc.liquid
336
+ - lib/releasehx/rhyml/templates/history.html.liquid
337
+ - lib/releasehx/rhyml/templates/history.md.liquid
338
+ - lib/releasehx/rhyml/templates/item.liquid
339
+ - lib/releasehx/rhyml/templates/metadata-entry.adoc.liquid
340
+ - lib/releasehx/rhyml/templates/metadata-entry.html.liquid
341
+ - lib/releasehx/rhyml/templates/metadata-entry.md.liquid
342
+ - lib/releasehx/rhyml/templates/metadata-note.adoc.liquid
343
+ - lib/releasehx/rhyml/templates/metadata-note.html.liquid
344
+ - lib/releasehx/rhyml/templates/metadata-note.md.liquid
345
+ - lib/releasehx/rhyml/templates/note.adoc.liquid
346
+ - lib/releasehx/rhyml/templates/note.html.liquid
347
+ - lib/releasehx/rhyml/templates/note.md.liquid
348
+ - lib/releasehx/rhyml/templates/parts-listing.liquid
349
+ - lib/releasehx/rhyml/templates/release-notes.adoc.liquid
350
+ - lib/releasehx/rhyml/templates/release-notes.html.liquid
351
+ - lib/releasehx/rhyml/templates/release-notes.md.liquid
352
+ - lib/releasehx/rhyml/templates/release.adoc.liquid
353
+ - lib/releasehx/rhyml/templates/release.html.liquid
354
+ - lib/releasehx/rhyml/templates/release.md.liquid
355
+ - lib/releasehx/rhyml/templates/rhyml-change-append.yaml.liquid
356
+ - lib/releasehx/rhyml/templates/rhyml-change.yaml.liquid
357
+ - lib/releasehx/rhyml/templates/rhyml.yaml.liquid
358
+ - lib/releasehx/rhyml/templates/section-text.liquid
359
+ - lib/releasehx/rhyml/templates/sections.liquid
360
+ - lib/releasehx/rhyml/templates/tags-listing.liquid
322
361
  - lib/releasehx/sgyml/helpers.rb
323
362
  - lib/releasehx/transforms/adf_to_markdown.rb
324
363
  - lib/releasehx/version.rb