This repository has been archived by the owner on Mar 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from gobuffalo/development
v0.18.6
- Loading branch information
Showing
9 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,59 @@ | ||
package plugdeps | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/gobuffalo/meta" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestNewPlugin_NoVersionNoTag(t *testing.T) { | ||
r := require.New(t) | ||
|
||
p := NewPlugin("example.com/user/buffalo-awesome") | ||
r.Equal("buffalo-awesome", p.key()) | ||
r.Equal("buffalo-awesome", p.Binary) | ||
r.Equal("example.com/user/buffalo-awesome@latest", p.GoGet) | ||
|
||
r.Equal(meta.BuildTags(nil), p.Tags) | ||
r.Equal(`{"binary":"buffalo-awesome","go_get":"example.com/user/buffalo-awesome@latest"}`, p.String()) | ||
} | ||
|
||
func TestNewPlugin_BuildTags(t *testing.T) { | ||
r := require.New(t) | ||
|
||
p := NewPlugin("example.com/user/buffalo-awesome", meta.BuildTags{"sqlite", "awesome"}) | ||
r.Equal("buffalo-awesome", p.key()) | ||
r.Equal("buffalo-awesome", p.Binary) | ||
r.Equal("example.com/user/buffalo-awesome@latest", p.GoGet) | ||
|
||
r.Equal(meta.BuildTags{"sqlite", "awesome"}, p.Tags) | ||
r.Equal(`{"binary":"buffalo-awesome","go_get":"example.com/user/buffalo-awesome@latest","tags":["sqlite","awesome"]}`, p.String()) | ||
} | ||
|
||
func TestNewPlugin_NoVersionTag(t *testing.T) { | ||
r := require.New(t) | ||
|
||
p := NewPlugin("example.com/user/buffalo-awesome@v3.1") | ||
r.Equal("buffalo-awesome", p.key()) | ||
r.Equal("buffalo-awesome", p.Binary) | ||
r.Equal("example.com/user/buffalo-awesome@v3.1", p.GoGet) | ||
} | ||
|
||
func TestNewPlugin_VersionNoTag(t *testing.T) { | ||
r := require.New(t) | ||
|
||
p := NewPlugin("example.com/user/buffalo-awesome/v3") | ||
r.Equal("buffalo-awesome", p.key()) | ||
r.Equal("buffalo-awesome", p.Binary) | ||
r.Equal("example.com/user/buffalo-awesome/v3@latest", p.GoGet) | ||
} | ||
|
||
func TestNewPlugin_VersionTag(t *testing.T) { | ||
r := require.New(t) | ||
|
||
p := NewPlugin("example.com/user/buffalo-awesome/v3@v3.1") | ||
r.Equal("buffalo-awesome", p.key()) | ||
r.Equal("buffalo-awesome", p.Binary) | ||
r.Equal("example.com/user/buffalo-awesome/v3@v3.1", p.GoGet) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package runtime | ||
|
||
// Version is the current version of the buffalo binary | ||
var Version = "v0.18.4" | ||
var Version = "v0.18.6" |