Skip to content

Commit

Permalink
v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed Jan 2, 2024
1 parent 538f0e5 commit 6194000
Show file tree
Hide file tree
Showing 16 changed files with 1,423 additions and 363 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ruby 3.2.2
ruby 3.3.0
nodejs 16.13.2
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ctf-party (2.3.0)
ctf-party (3.0.0)
docopt (~> 0.6)
uri (>= 0.12.1, < 0.14.0)

Expand All @@ -17,7 +17,7 @@ GEM
minitest (5.20.0)
minitest-skip (0.0.3)
minitest (~> 5.0)
parallel (1.23.0)
parallel (1.24.0)
parser (3.2.2.4)
ast (~> 2.4.1)
racc
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
version: '3'
services:
ctf-party:
image: noraj/ctf-party:2.3.0
image: noraj/ctf-party:3.0.0
user: noraj
container_name: ctf-party
read_only: false
build:
context: .
dockerfile: Dockerfile
args:
CTF_PARTY_VERSION: 2.3.0
CTF_PARTY_VERSION: 3.0.0
4 changes: 3 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## [3.0.0 - Unreleased]
## [3.0.0]

- **Breaking changes**
- **Drop Ruby 2.7 support** because there is no `URI:WS` and `URI:WSS` used for `defang_uri` and anyway [official support has ended too](https://www.ruby-lang.org/en/downloads/branches/)
Expand All @@ -14,6 +14,8 @@
- `bin2dec` and `dec2bin`
- `urlencode_component` (see **breaking change**, the old `urlencode_component` was renamed `urlencode_data`)
- `urldecode_component` (see **breaking change**, the old `urldecode_component` was renamed `urldecode_data`)
- Chore:
- Add support for Ruby 3.3 (up to Ruby < 4.0)
- Fix:
- bin2hex: fix odd byte cropping issue
- fix documentation for base64
Expand Down
14 changes: 7 additions & 7 deletions docs/pages/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ $ git clone https://github.com/noraj/ctf-party.git
$ cd ctf-party
$ docker-compose build
# alternatively without docker compose
$ docker build -f Dockerfile -t ctf-party --build-arg ctf-party_VERSION=2.3.0 .
$ docker build -f Dockerfile -t ctf-party --build-arg ctf-party_VERSION=3.0.0 .
```

Usage examples:
Expand All @@ -77,7 +77,7 @@ host: `docker.io`
$ docker pull noraj/ctf-party
# specific tag
$ docker pull noraj/ctf-party:2.3.0
$ docker pull noraj/ctf-party:3.0.0
```

Repository: [noraj/ctf-party](https://hub.docker.com/r/noraj/ctf-party).
Expand All @@ -93,7 +93,7 @@ host: `ghcr.io`
$ docker pull ghcr.io/noraj/ctf-party
# specific tag
$ docker pull ghcr.io/noraj/ctf-party:2.3.0
$ docker pull ghcr.io/noraj/ctf-party:3.0.0
```

Repository: [noraj/ctf-party](https://github.com/noraj/ctf-party/pkgs/container/ctf-party)
Expand All @@ -109,7 +109,7 @@ host: `registry-intl.eu-central-1.aliyuncs.com`
$ docker pull registry-intl.eu-central-1.aliyuncs.com/noraj/ctf-party
# specific tag
$ docker pull registry-intl.eu-central-1.aliyuncs.com/noraj/ctf-party:2.3.0
$ docker pull registry-intl.eu-central-1.aliyuncs.com/noraj/ctf-party:3.0.0
```

Repository: [the overview page is not public](https://cr.console.aliyun.com/repository/eu-central-1/noraj/ctf-party/details)
Expand All @@ -123,7 +123,7 @@ host: `quay.io`
$ docker pull quay.io/noraj/ctf-party
# specific tag
$ docker pull quay.io/noraj/ctf-party:2.3.0
$ docker pull quay.io/noraj/ctf-party:3.0.0
```

Repository: [noraj/ctf-party](https://quay.io/repository/noraj/ctf-party?tab=info)
Expand All @@ -144,15 +144,15 @@ $ gem install --development ctf-party

### **git**

Just replace `2.3.0` with the gem version you see after `gem build`.
Just replace `3.0.0` with the gem version you see after `gem build`.

```
$ git clone https://github.com/noraj/ctf-party.git ctf-party
$ cd ctf-party
$ gem install bundler
$ bundler install
$ gem build ctf_party.gemspec
$ gem install ctf-party-2.3.0.gem
$ gem install ctf-party-3.0.0.gem
```

Note: if an automatic install is needed you can get the version with `$ gem build ctf_party.gemspec | grep Version | cut -d' ' -f4`.
Expand Down
12 changes: 6 additions & 6 deletions docs/pages/publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $ bundle exec yard doc
Create an **annotated git tag**:

```
$ git tag -a v2.3.0
$ git tag -a v3.0.0
```

Push the changes including the tags:
Expand All @@ -41,7 +41,7 @@ $ bundle exec rake build
Push the new gem release on **RubyGems** See https://guides.rubygems.org/publishing/.

```
$ gem push ctf-party-2.3.0.gem
$ gem push ctf-party-3.0.0.gem
```

## Docker container registries
Expand All @@ -51,7 +51,7 @@ $ gem push ctf-party-2.3.0.gem
### **Docker Hub**

```
$ export CTF_PARTY_VERSION=2.3.0
$ export CTF_PARTY_VERSION=3.0.0
$ docker build -f Dockerfile -t noraj/ctf-party:$CTF_PARTY_VERSION --build-arg CTF_PARTY_VERSION=$CTF_PARTY_VERSION .
$ docker build -f Dockerfile -t noraj/ctf-party:latest --build-arg CTF_PARTY_VERSION=$CTF_PARTY_VERSION .
Expand All @@ -67,7 +67,7 @@ $ docker push docker.io/noraj/ctf-party:latest
GHCR = Github Container Registry

```
$ export CTF_PARTY_VERSION=2.3.0
$ export CTF_PARTY_VERSION=3.0.0
$ docker build -f Dockerfile -t ghcr.io/noraj/ctf-party:$CTF_PARTY_VERSION --build-arg CTF_PARTY_VERSION=$CTF_PARTY_VERSION .
$ docker build -f Dockerfile -t ghcr.io/noraj/ctf-party:latest --build-arg CTF_PARTY_VERSION=$CTF_PARTY_VERSION .
Expand All @@ -84,7 +84,7 @@ $ docker push ghcr.io/noraj/ctf-party:latest
ACR = Alibaba Cloud Container Registry

```
$ export CTF_PARTY_VERSION=2.3.0
$ export CTF_PARTY_VERSION=3.0.0
$ docker build -f Dockerfile -t registry-intl.eu-central-1.aliyuncs.com/noraj/ctf-party:$CTF_PARTY_VERSION --build-arg CTF_PARTY_VERSION=$CTF_PARTY_VERSION .
$ docker build -f Dockerfile -t registry-intl.eu-central-1.aliyuncs.com/noraj/ctf-party:latest --build-arg CTF_PARTY_VERSION=$CTF_PARTY_VERSION .
Expand All @@ -98,7 +98,7 @@ $ docker push registry-intl.eu-central-1.aliyuncs.com/noraj/ctf-party:latest
### **Quay.io**

```
$ export CTF_PARTY_VERSION=2.3.0
$ export CTF_PARTY_VERSION=3.0.0
$ docker build -f Dockerfile -t quay.io/noraj/ctf-party:$CTF_PARTY_VERSION --build-arg CTF_PARTY_VERSION=$CTF_PARTY_VERSION .
$ docker build -f Dockerfile -t quay.io/noraj/ctf-party:latest --build-arg CTF_PARTY_VERSION=$CTF_PARTY_VERSION .
Expand Down
Loading

0 comments on commit 6194000

Please sign in to comment.