Skip to content

Commit

Permalink
bump major geoipupdate version
Browse files Browse the repository at this point in the history
  • Loading branch information
NajiObeid committed Apr 12, 2023
1 parent 8095a84 commit 684f550
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 17 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# CHANGELOG

## 5.0.0 (2023-04-11)

* Redefined the `Reader` and `Writer` interface apis in
`pkg/geoipupdate/database`. This change aims to to make it easier to
introduce custom implementations of these interfaces.
* Changed the signature of `NewConfig` in `pkg/geoipupdate` to accept
optional parameters. This change allows the introduction of new
flags or config options without making breaking changes to the function's
signature.
* Introduced `Parallelism` as a new flag and config option to enable
concurrent database updates.

## 4.11.1 (2023-03-16)

* Removed extra underscore in script variables preventing the Docker
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ guide](https://dev.maxmind.com/geoip/upgrading-geoip-update?lang=en).
### Installing on Linux via the tarball

Download and extract the appropriate tarball for your system. You will end
up with a directory named something like `geoipupdate_4.0.0_linux_amd64`
up with a directory named something like `geoipupdate_5.0.0_linux_amd64`
depending on the version and architecture.

Copy `geoipupdate` to where you want it to live. To install it to
`/usr/local/bin/geoipupdate`, run the equivalent of `sudo cp
geoipupdate_4.0.0_linux_amd64/geoipupdate /usr/local/bin`.
geoipupdate_5.0.0_linux_amd64/geoipupdate /usr/local/bin`.

`geoipupdate` looks for the config file `/usr/local/etc/GeoIP.conf` by
default.
Expand All @@ -51,7 +51,7 @@ You can also use the tarball.

Download the appropriate .deb for your system.

Run `dpkg -i path/to/geoipupdate_4.0.0_linux_amd64.deb` (replacing the
Run `dpkg -i path/to/geoipupdate_5.0.0_linux_amd64.deb` (replacing the
version number and architecture as necessary). You will need to be root.
For Ubuntu you can prefix the command with `sudo`. This will install
`geoipupdate` to `/usr/bin/geoipupdate`.
Expand All @@ -64,7 +64,7 @@ You can also use the tarball.

Download the appropriate .rpm for your system.

Run `rpm -Uvhi path/to/geoipupdate_4.0.0_linux_amd64.rpm` (replacing the
Run `rpm -Uvhi path/to/geoipupdate_5.0.0_linux_amd64.rpm` (replacing the
version number and architecture as necessary). You will need to be root.
This will install `geoipupdate` to `/usr/bin/geoipupdate`.

Expand All @@ -87,7 +87,7 @@ $ brew install geoipupdate
### Installing on Windows

Download and extract the appropriate zip for your system. You will end up
with a directory named something like `geoipupdate_4.0.0_windows_amd64`
with a directory named something like `geoipupdate_5.0.0_windows_amd64`
depending on the version and architecture.

Copy `geoipupdate.exe` to where you want it to live.
Expand All @@ -107,7 +107,7 @@ website](https://golang.org).

The easiest way is via `go get`:

$ env GO111MODULE=on go get -u github.com/maxmind/geoipupdate/v4/cmd/geoipupdate
$ env GO111MODULE=on go get -u github.com/maxmind/geoipupdate/v5/cmd/geoipupdate

This installs `geoipupdate` to `$GOPATH/bin/geoipupdate`.

Expand Down
2 changes: 1 addition & 1 deletion cmd/geoipupdate/end_to_end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"testing"
"time"

"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate"
"github.com/maxmind/geoipupdate/v5/pkg/geoipupdate"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/geoipupdate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"log"
"os"

"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate"
"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate/vars"
"github.com/maxmind/geoipupdate/v5/pkg/geoipupdate"
"github.com/maxmind/geoipupdate/v5/pkg/geoipupdate/vars"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/maxmind/geoipupdate/v4
module github.com/maxmind/geoipupdate/v5

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion pkg/geoipupdate/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"time"

"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate/vars"
"github.com/maxmind/geoipupdate/v5/pkg/geoipupdate/vars"
)

// Config is a parsed configuration file.
Expand Down
2 changes: 1 addition & 1 deletion pkg/geoipupdate/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate/vars"
"github.com/maxmind/geoipupdate/v5/pkg/geoipupdate/vars"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/geoipupdate/database/http_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"net/url"
"time"

"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate/internal"
"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate/vars"
"github.com/maxmind/geoipupdate/v5/pkg/geoipupdate/internal"
"github.com/maxmind/geoipupdate/v5/pkg/geoipupdate/vars"
)

const urlFormat = "%s/geoip/databases/%s/update?db_md5=%s"
Expand Down
4 changes: 2 additions & 2 deletions pkg/geoipupdate/geoip_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"fmt"
"log"

"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate/database"
"github.com/maxmind/geoipupdate/v4/pkg/geoipupdate/internal"
"github.com/maxmind/geoipupdate/v5/pkg/geoipupdate/database"
"github.com/maxmind/geoipupdate/v5/pkg/geoipupdate/internal"
)

// Client uses config data to initiate a download or update
Expand Down
2 changes: 1 addition & 1 deletion pkg/geoipupdate/vars/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
package vars

// Version defines current geoipupdate version.
const Version = "4.11.1"
const Version = "5.0.0"

0 comments on commit 684f550

Please sign in to comment.