Skip to content

Commit

Permalink
Fix documenter propagation (#2133)
Browse files Browse the repository at this point in the history
* Fix documenter specs propagation

This commit fixes a bug where the specDetails were only being passed
properly to documentation plugins if the specs directory was the default
`specs` directory.

[An end-to-end test which verifies this fix has been added to the
`gauge-confluence` plugin][1]

Fixes #2117

[1]: agilepathway/gauge-confluence#66

Signed-off-by: John Boyes <154404+johnboyes@users.noreply.github.com>

* Bump Gauge patch version (1.4.1 -> 1.4.2)

Signed-off-by: John Boyes <154404+johnboyes@users.noreply.github.com>
  • Loading branch information
johnboyes authored Oct 17, 2021
1 parent 064162f commit f080fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ func getSpecDetails(specDirs []string) *gauge_messages.SpecDetails {
sig := &infoGatherer.SpecInfoGatherer{SpecDirs: specDirs}
sig.Init()
specDetails := make([]*gauge_messages.SpecDetails_SpecDetail, 0)
for _, d := range sig.GetAvailableSpecDetails([]string{}) {
for _, d := range sig.GetAvailableSpecDetails(specDirs) {
detail := &gauge_messages.SpecDetails_SpecDetail{}
if d.HasSpec() {
detail.Spec = gauge.ConvertToProtoSpec(d.Spec)
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

// CurrentGaugeVersion represents the current version of Gauge
var CurrentGaugeVersion = &Version{1, 4, 1}
var CurrentGaugeVersion = &Version{1, 4, 2}

// BuildMetadata represents build information of current release (e.g, nightly build information)
var BuildMetadata = ""
Expand Down

0 comments on commit f080fbc

Please sign in to comment.