Skip to content

Commit f12903a

Browse files
committed
Release version 0.3.0 - Code quality improvements and RuboCop fixes
1 parent f7fcf8a commit f12903a

File tree

5 files changed

+25
-2
lines changed

5 files changed

+25
-2
lines changed

.rubocop.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
AllCops:
22
TargetRubyVersion: 2.6
3+
NewCops: enable
4+
5+
Gemspec/DevelopmentDependencies:
6+
Enabled: false
37

48
Style/StringLiterals:
59
Enabled: true
@@ -9,6 +13,9 @@ Style/StringLiteralsInInterpolation:
913
Enabled: true
1014
EnforcedStyle: double_quotes
1115

16+
Style/FormatStringToken:
17+
Enabled: false
18+
1219
Layout/LineLength:
1320
Enabled: false
1421

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
All notable changes to this project are documented in this file.
44

5+
## [0.3.0] - 2025-01-14
6+
7+
### Changed
8+
- **Code Quality**
9+
- Updated RuboCop configuration to handle new cops and resolve style warnings
10+
- Fixed operator precedence ambiguity in Three-Parameter Model calculations
11+
- Added MFA requirement to gemspec metadata (RuboCop requirement)
12+
13+
### Notes
14+
- This release maintains **full backward compatibility** with previous versions
15+
- All 46 existing tests continue to pass
16+
- Comprehensive performance benchmarking suite remains available via `bundle exec rake benchmark:all`
17+
18+
---
19+
520
## [0.2.0] - 2025-03-01
621

722
### Added

irt_ruby.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ Gem::Specification.new do |spec|
5353
spec.add_development_dependency "memory_profiler", "~> 1.0"
5454
spec.add_development_dependency "rake", "~> 13.0"
5555
spec.add_development_dependency "rspec", "~> 3.0"
56+
spec.metadata["rubygems_mfa_required"] = "true"
5657
end

lib/irt_ruby/three_parameter_model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def sigmoid(x)
4646

4747
# Probability for the 3PL model: c + (1-c)*sigmoid(a*(θ - b))
4848
def probability(theta, a, b, c)
49-
c + (1.0 - c) * sigmoid(a * (theta - b))
49+
c + ((1.0 - c) * sigmoid(a * (theta - b)))
5050
end
5151

5252
def resolve_missing(resp)

lib/irt_ruby/version.rb

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

33
module IrtRuby
4-
VERSION = "0.1.0"
4+
VERSION = "0.3.0"
55
end

0 commit comments

Comments
 (0)