Skip to content

Commit 2f2edfc

Browse files
committed
Bump version to 0.1.2
1 parent a9f472d commit 2f2edfc

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.1.2] - 2025-10-03
9+
10+
Better default policy for when JSON logs are enabled: machines get JSON, humans get readable logs.
11+
Enable LogStruct for production servers or when running tests on CI.
12+
Keep dev-friendly logging on local machines or when running interactive commands on production servers.
13+
814
## [0.1.1] - 2025-09-29
915

1016
Added dotenv-rails integration. Many other fixes and improvements.

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
logstruct (0.1.1)
4+
logstruct (0.1.2)
55
lograge (>= 0.11)
66
rails (>= 7.0)
77
semantic_logger (~> 4.15)

lefthook.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ pre-commit:
2828
glob: '*.{rb,md,yml,yaml,txt,ts,tsx,js,jsx}'
2929
run: scripts/spellcheck.sh
3030

31+
- name: changelog
32+
glob: 'lib/log_struct/version.rb'
33+
run: ruby scripts/check_changelog_version.rb
34+
3135
- name: eslint
3236
glob: 'docs/**/*.{ts,tsx,js,jsx}'
3337
run: cd docs && pnpm run lint
@@ -84,3 +88,12 @@ pre-commit:
8488
glob: '*.rb'
8589
run: bin/rubocop -A {staged_files}
8690
stage_fixed: true
91+
92+
post-commit:
93+
parallel: false
94+
jobs:
95+
- name: create-release-tag
96+
run: |
97+
if git show --pretty='' --name-only HEAD -- lib/log_struct/version.rb | grep -q 'lib/log_struct/version.rb'; then
98+
./scripts/create_release_tag.sh
99+
fi

lib/log_struct/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# frozen_string_literal: true
33

44
module LogStruct
5-
VERSION = "0.1.1"
5+
VERSION = "0.1.2"
66
end

0 commit comments

Comments
 (0)