Skip to content

Commit

Permalink
release v3 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
umbynos authored Aug 21, 2020
1 parent 87d1afb commit 7dcbfd7
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Extract
[![Godoc Reference](https://img.shields.io/badge/Godoc-Reference-blue.svg)](https://godoc.org/github.com/codeclysm/extract)


import "github.com/codeclysm/extract"
import "github.com/codeclysm/extract/v3"

Package extract allows to extract archives in zip, tar.gz or tar.bz2 formats
easily.
Expand Down
28 changes: 14 additions & 14 deletions extract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"testing"

"github.com/codeclysm/extract"
"github.com/codeclysm/extract/v3"
)

type Files map[string]string
Expand Down Expand Up @@ -149,26 +149,26 @@ var ExtractCases = []struct {
}},

{"standard zip with backslashes", "testdata/archive-with-backslashes.zip", nil, Files{
"": "dir",
"/AZ3166": "dir",
"/AZ3166/libraries": "dir",
"/AZ3166/libraries/AzureIoT": "dir",
"/AZ3166/libraries/AzureIoT/keywords.txt": "Azure",
"": "dir",
"/AZ3166": "dir",
"/AZ3166/libraries": "dir",
"/AZ3166/libraries/AzureIoT": "dir",
"/AZ3166/libraries/AzureIoT/keywords.txt": "Azure",
"/AZ3166/cores": "dir",
"/AZ3166/cores/arduino": "dir",
"/AZ3166/cores/arduino/azure-iot-sdk-c": "dir",
"/AZ3166/cores/arduino/azure-iot-sdk-c/umqtt": "dir",
"/AZ3166/cores/arduino/azure-iot-sdk-c/umqtt/src": "dir",
}},
{"shift zip with backslashes", "testdata/archive-with-backslashes.zip", shift, Files{
"": "dir",
"/libraries": "dir",
"/libraries/AzureIoT": "dir",
"/libraries/AzureIoT/keywords.txt": "Azure",
"/cores": "dir",
"/cores/arduino": "dir",
"/cores/arduino/azure-iot-sdk-c": "dir",
"/cores/arduino/azure-iot-sdk-c/umqtt": "dir",
"": "dir",
"/libraries": "dir",
"/libraries/AzureIoT": "dir",
"/libraries/AzureIoT/keywords.txt": "Azure",
"/cores": "dir",
"/cores/arduino": "dir",
"/cores/arduino/azure-iot-sdk-c": "dir",
"/cores/arduino/azure-iot-sdk-c/umqtt": "dir",
"/cores/arduino/azure-iot-sdk-c/umqtt/src": "dir",
}},
}
Expand Down
2 changes: 1 addition & 1 deletion extractor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path/filepath"
"testing"

"github.com/codeclysm/extract"
"github.com/codeclysm/extract/v3"
)

func TestExtractor_Tar(t *testing.T) {
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
module github.com/codeclysm/extract
module github.com/codeclysm/extract/v3

go 1.14

require (
github.com/davecgh/go-spew v1.1.1
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/h2non/filetype v1.0.6
github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5
github.com/juju/testing v0.0.0-20200510222523-6c8c298c77a0 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pmezard/go-difflib v1.0.0
github.com/stretchr/testify v1.3.0
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
)

0 comments on commit 7dcbfd7

Please sign in to comment.