From c842897ff7d466e07a27609eea3d0448048c2f1f Mon Sep 17 00:00:00 2001 From: Yonghwan SO Date: Wed, 15 Feb 2023 23:06:27 +0900 Subject: [PATCH] integrated with a new middleware module --- README.md | 4 ++-- SHOULDERS.md | 5 ++++- go.mod | 2 +- go.sum | 8 ++++++-- suite.go | 2 +- version.go | 2 +- 6 files changed, 15 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7bcc563..bc685b4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ - # Suite -![Tests](https://github.com/gobuffalo/suite/workflows/Tests/badge.svg) +[![Standard Test](https://github.com/gobuffalo/suite/actions/workflows/standard-go-test.yml/badge.svg)](https://github.com/gobuffalo/suite/actions/workflows/standard-go-test.yml) +[![Go Reference](https://pkg.go.dev/badge/github.com/gobuffalo/suite/v4.svg)](https://pkg.go.dev/github.com/gobuffalo/suite/v4) Suite is a package meant to make testing [gobuffalo.io](http://gobuffalo.io) applications easier. diff --git a/SHOULDERS.md b/SHOULDERS.md index bbaa301..c404a4e 100644 --- a/SHOULDERS.md +++ b/SHOULDERS.md @@ -35,7 +35,7 @@ Thank you to the following **GIANTS**: * [github.com/gobuffalo/httptest](https://godoc.org/github.com/gobuffalo/httptest) * [github.com/gobuffalo/logger](https://godoc.org/github.com/gobuffalo/logger) * [github.com/gobuffalo/meta](https://godoc.org/github.com/gobuffalo/meta) -* [github.com/gobuffalo/mw-csrf](https://godoc.org/github.com/gobuffalo/mw-csrf) +* [github.com/gobuffalo/middleware](https://godoc.org/github.com/gobuffalo/middleware) * [github.com/gobuffalo/nulls](https://godoc.org/github.com/gobuffalo/nulls) * [github.com/gobuffalo/packd](https://godoc.org/github.com/gobuffalo/packd) * [github.com/gobuffalo/plush/v4](https://godoc.org/github.com/gobuffalo/plush/v4) @@ -80,6 +80,8 @@ Thank you to the following **GIANTS**: * [github.com/microcosm-cc/bluemonday](https://godoc.org/github.com/microcosm-cc/bluemonday) * [github.com/mitchellh/go-homedir](https://godoc.org/github.com/mitchellh/go-homedir) * [github.com/monoculum/formam](https://godoc.org/github.com/monoculum/formam) +* [github.com/nicksnyder/go-i18n](https://godoc.org/github.com/nicksnyder/go-i18n) +* [github.com/pelletier/go-toml](https://godoc.org/github.com/pelletier/go-toml) * [github.com/pkg/diff](https://godoc.org/github.com/pkg/diff) * [github.com/pkg/errors](https://godoc.org/github.com/pkg/errors) * [github.com/pmezard/go-difflib](https://godoc.org/github.com/pmezard/go-difflib) @@ -98,6 +100,7 @@ Thank you to the following **GIANTS**: * [github.com/spf13/pflag](https://godoc.org/github.com/spf13/pflag) * [github.com/stretchr/objx](https://godoc.org/github.com/stretchr/objx) * [github.com/stretchr/testify](https://godoc.org/github.com/stretchr/testify) +* [github.com/unrolled/secure](https://godoc.org/github.com/unrolled/secure) * [github.com/yuin/goldmark](https://godoc.org/github.com/yuin/goldmark) * [github.com/zenazn/goji](https://godoc.org/github.com/zenazn/goji) * [go.uber.org/atomic](https://godoc.org/go.uber.org/atomic) diff --git a/go.mod b/go.mod index d162ca9..e871ea9 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/gobuffalo/buffalo v1.1.0 github.com/gobuffalo/envy v1.10.2 github.com/gobuffalo/httptest v1.5.2 - github.com/gobuffalo/mw-csrf v1.0.2 + github.com/gobuffalo/middleware v1.0.0 github.com/gobuffalo/plush/v4 v4.1.18 github.com/gobuffalo/pop/v6 v6.1.1 github.com/gofrs/uuid v4.3.1+incompatible diff --git a/go.sum b/go.sum index 92f06f9..e02fc87 100644 --- a/go.sum +++ b/go.sum @@ -57,8 +57,8 @@ github.com/gobuffalo/logger v1.0.7 h1:LTLwWelETXDYyqF/ASf0nxaIcdEOIJNxRokPcfI/xb github.com/gobuffalo/logger v1.0.7/go.mod h1:u40u6Bq3VVvaMcy5sRBclD8SXhBYPS0Qk95ubt+1xJM= github.com/gobuffalo/meta v0.3.3 h1:GwPWdbdnp4JrKASvMLa03OtmzISq7z/nE7T6aMqzoYM= github.com/gobuffalo/meta v0.3.3/go.mod h1:o4B099IUFUfK4555Guqxz1zHAqyuUQ/KtHXi8WvVeFE= -github.com/gobuffalo/mw-csrf v1.0.2 h1:V/y6S6WPNlmxlXD6SPpQCHvm5GqcUuY6/bUrJd0zSZM= -github.com/gobuffalo/mw-csrf v1.0.2/go.mod h1:lCddfZCNS+/t/Jj9b1iQsOCzouCzDqKMbZqaz/nC7Vo= +github.com/gobuffalo/middleware v1.0.0 h1:7k3jWjdit45aK5Ri9DAKBKAp1QL3bXe2PCtWBBomMww= +github.com/gobuffalo/middleware v1.0.0/go.mod h1:ubE1XogeGL39dXeS0PEKLeEAdFcGXRMMwTW3RGXK/b4= github.com/gobuffalo/nulls v0.4.2 h1:GAqBR29R3oPY+WCC7JL9KKk9erchaNuV6unsOSZGQkw= github.com/gobuffalo/nulls v0.4.2/go.mod h1:EElw2zmBYafU2R9W4Ii1ByIj177wA/pc0JdjtD0EsH8= github.com/gobuffalo/packd v1.0.2/go.mod h1:sUc61tDqGMXON80zpKGp92lDb86Km28jfvX7IAyxFT8= @@ -182,6 +182,8 @@ github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= github.com/monoculum/formam v3.5.5+incompatible h1:iPl5csfEN96G2N2mGu8V/ZB62XLf9ySTpC8KRH6qXec= github.com/monoculum/formam v3.5.5+incompatible/go.mod h1:RKgILGEJq24YyJ2ban8EO0RUVSJlF1pGsEvoLEACr/Q= +github.com/nicksnyder/go-i18n v1.10.1/go.mod h1:e4Di5xjP9oTVrC6y3C7C0HoSYXjSbhh/dU0eUV32nB4= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= @@ -230,6 +232,7 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/unrolled/secure v1.13.0/go.mod h1:BmF5hyM6tXczk3MpQkFf1hpKSRqCyhqcbiQtiAF7+40= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= @@ -329,6 +332,7 @@ gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogR gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= diff --git a/suite.go b/suite.go index 7092de2..0c0e7a9 100644 --- a/suite.go +++ b/suite.go @@ -6,7 +6,7 @@ import ( "github.com/gobuffalo/buffalo" "github.com/gobuffalo/httptest" - csrf "github.com/gobuffalo/mw-csrf" + "github.com/gobuffalo/middleware/csrf" "github.com/stretchr/testify/suite" ) diff --git a/version.go b/version.go index 6c11162..fdeb4a5 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package suite // Version of Suite -const Version = "v4.0.3" +const Version = "v4.0.4"