Skip to content

Commit

Permalink
support up to crystal 1.15
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed Jan 27, 2025
1 parent 1f82876 commit c7a97f6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
crystal: ['1.8', '1.9', '1.10', '1.11', '1.12']
crystal: ['1.8', '1.9', '1.10', '1.11', '1.12', '1.13', '1.14', '1.15']
runs-on: ${{ matrix.os }}
steps:
- name: Download source
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
crystal system
ruby 3.2.1
ruby 3.4.1
4 changes: 3 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# CHANGELOG

## [unreleased]

- **Compatibility**: Drop Crystal 1.7 support. **Breaking changes**.
- **Compatibility**: Add support for Crystal 1.8-1.12.
- **Compatibility**: Add support for Crystal 1.8-1.15.
- **Maintenance**: Update dependencies.
- **Quality**: Fix tests & CI.
- **Quality**: Lint the code.
Expand Down
2 changes: 1 addition & 1 deletion shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.0
shards:
ameba:
git: https://github.com/crystal-ameba/ameba.git
version: 1.6.1
version: 1.6.4

docopt:
git: https://github.com/chenkovsky/docopt.cr.git
Expand Down
4 changes: 2 additions & 2 deletions src/miniss/cli/cmd.cr
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ module Miniss::Cli
type = socket.type.to_s.ljust(just[0]).colorize(color_type)
color_ip_addr = socket.ipv == 4 ? :light_red : :light_green
color_ip_port = socket.ipv == 4 ? :light_blue : :light_yellow
laddr, lport = socket.laddr.to_s.ljust(just[1]).reverse.split(':', 2).reverse.map(&.reverse)
laddr, lport = socket.laddr.to_s.ljust(just[1]).reverse.split(':', 2).reverse!.map(&.reverse)
laddr = laddr.colorize(color_ip_addr)
lport = lport.colorize(color_ip_port)
raddr, rport = socket.raddr.to_s.ljust(just[2]).reverse.split(':', 2).reverse.map(&.reverse)
raddr, rport = socket.raddr.to_s.ljust(just[2]).reverse.split(':', 2).reverse!.map(&.reverse)
raddr = raddr.colorize(color_ip_addr)
rport = rport.colorize(color_ip_port)
puts "#{type}#{laddr}:#{lport}#{raddr}:#{rport}#{socket.state.ljust(just[3])}#{socket.uname} (#{socket.uid})"
Expand Down

0 comments on commit c7a97f6

Please sign in to comment.