Skip to content

Commit dfda9fe

Browse files
chore(release): release version 0.34.1
Merge pull request #3578 from ytti/release/0.34.1
2 parents c99290b + 5291f94 commit dfda9fe

File tree

11 files changed

+31
-29
lines changed

11 files changed

+31
-29
lines changed

.github/workflows/ruby.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
ruby-version: ['3.1', '3.2', '3.3', '3.4']
23-
# ruby-head disabled because of problem with bundler (2025-06-27)
24-
# ruby-version: ['3.1', '3.2', '3.3', '3.4', 'ruby-head']
25-
# continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
22+
ruby-version: ['3.1', '3.2', '3.3', '3.4', 'ruby-head']
23+
continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
2624

2725
steps:
2826
- uses: actions/checkout@v4

.rubocop_todo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2025-07-15 08:50:44 UTC using RuboCop version 1.78.0.
3+
# on 2025-07-18 14:37:30 UTC using RuboCop version 1.78.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

7-
## [Unreleased]
8-
9-
### Added
7+
## [0.34.1 - 2025-07-18]
8+
This release contains small fixes and will include the new version of oxidized-web (0.17.0) in the docker container.
109

1110
### Changed
11+
- github: run ruby CI against ruby-head (@robertcheramy)
1212

1313
### Fixed
1414
- input/ssh: hide Net::SSH errors and only display fatal logs unless input.debug = true. Fixes: #3574 (@robertcheramy)
15-
15+
- junos: fix unfrozen literal strings (@robertcheramy)
16+
- spec/model: fix unfrozen literal strings and set a default prompt (@robertcheramy)
1617

1718
## [0.34.0 - 2025-07-15]
1819
:warning: This release introduces a [new logging system](docs/Configuration.md#logging),

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,14 @@ RUN apt-get -qy update && \
7979
# docker automated build gets shallow copy, but non-shallow copy cannot be unshallowed
8080
git fetch --unshallow || true && \
8181
rake install && \
82+
# install oxidized-web
83+
gem install oxidized-web --no-document && \
8284
# remove the packages we do not need.
8385
apt-get -qy remove build-essential ruby-dev && \
8486
apt-get -qy autoremove && \
8587
apt-get clean && \
8688
rm -rf /var/lib/apt/lists/*
8789

88-
# install oxidized-web
89-
RUN gem install oxidized-web --no-document
90-
9190
# clean up
9291
WORKDIR /
9392
RUN rm -rf /tmp/oxidized

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ task :test do
2626
Rake::TestTask.new do |t|
2727
t.libs << 'spec'
2828
t.test_files = FileList['spec/**/*_spec.rb']
29+
t.ruby_opts = ['-W:deprecated']
2930
# Don't display ambiguity warning between regexp and division in models
3031
t.warning = false
3132
t.verbose = true
@@ -47,7 +48,7 @@ end
4748

4849
desc 'Tag the release'
4950
task :tag do
50-
system "git tag #{gemspec.version}"
51+
system "git tag #{gemspec.version} -m 'Release #{gemspec.version}'"
5152
end
5253

5354
desc 'Push to rubygems'

docs/Configuration.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,8 @@ It will rotate between the log levels and log a warning with the new level
577577
If you specified a log level for an appender, this log level won't be
578578
changed.
579579

580-
> :warning: **Warning** This currently does not work when oxidized-web is used
581-
> and will kill the whole oxidized application. This will be corrected in a
582-
> future release of oxidized-web.
580+
> :warning: **Warning** You need oxidized-web 0.17.0 and above for this or
581+
> it will kill the whole oxidized application.
583582

584583
### Dump running threads
585584
With the SIGTTIN signal, oxidized will log a backtrace for each of its threads.

docs/Release.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
This document is targeted at oxidized maintainers. It describes the release process.
33

44
## Version numbering
5-
Oxidized versions are nummered like major.minor.patch
5+
Oxidized versions are numbered like major.minor.patch
66
- currently, the major version is 0.
77
- minor is incremented when releasing new features.
88
- patch is incremented when releasing fixes only.
99

1010
## Review changes
11-
Run `git diff 0.30.0..master` (where `0.30.0` is to be changed to the last release) and review
11+
Run `git diff 0.30.0` (where `0.30.0` is to be changed to the last release) and review
1212
all the changes that have been done. Have a specific look at changes you don't understand.
1313

14-
For a graphical compare, use `git difftool -d 0.30.0..master`.
14+
For a graphical compare, use `git difftool -d 0.30.0`.
1515

1616
## Update the gem dependencies to the latest versions
1717
```
18-
bundle outaded
18+
bundle outdated
1919
bundle update
20-
bundle outaded
20+
bundle outdated
2121
```
2222

2323
## Update rubocup .rubocop_todo.yml
@@ -52,7 +52,7 @@ environments as you can.
5252
1. Merge the Pull Request into master with the commit message
5353
`chore(release): release version 0.3x.y`
5454
2. `git pull` master
55-
3. Tag the commit with `git tag -a 0.xx.yy -m "Release 0.xx.yy"`
55+
3. Tag the commit with `git tag -a 0.xx.yy -m "Release 0.xx.yy"` or `rake tag`
5656
4. Build the gem with ‘rake build’
5757
5. Run `git diff` to check if there have been more changes (there shouldn't)
5858
6. Install an test the gem locally

lib/oxidized/model/junos.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
class JunOS < Oxidized::Model
24
using Refinements
35
comment '# '
@@ -26,15 +28,15 @@ def telnet
2628
end
2729

2830
post do
29-
out = String.new('')
31+
out = String.new
3032
case @model
3133
when 'mx960'
3234
out << cmd('show chassis fabric reachability') { |cfg| comment cfg }
3335
when /^(ex22|ex3[34]|ex4|ex8|qfx)/
3436
out << cmd('show virtual-chassis') { |cfg| comment cfg }
3537
when /^srx/
3638
out << cmd('show chassis cluster status') do |cfg|
37-
cfg.lines.count <= 1 && cfg.include?("error:") ? '' : comment(cfg)
39+
cfg.lines.count <= 1 && cfg.include?("error:") ? String.new : comment(cfg)
3840
end
3941
end
4042
out

lib/oxidized/node.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module Oxidized
22
require 'resolv'
3-
require 'ostruct'
43
require_relative 'node/stats'
54
class MethodNotFound < OxidizedError; end
65
class ModelNotFound < OxidizedError; end

lib/oxidized/version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
module Oxidized
4-
VERSION = '0.34.0'
5-
VERSION_FULL = '0.34.0'
4+
VERSION = '0.34.1'
5+
VERSION_FULL = '0.34.1'
66
def self.version_set
77
version_full = %x(git describe --tags).chop rescue ""
88
version = %x(git describe --tags --abbrev=0).chop rescue ""

0 commit comments

Comments
 (0)