rfmt 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21876b488a79df7b3a136bfc563ea91312bc86569205b4349b5ccc0371338071
4
- data.tar.gz: 7896e3c94fe83d0de8a3a4bebd9d10e0f277f92bfd069384ff05c4cb524d57b5
3
+ metadata.gz: fe87cc473fd52b077095eda7b037967f646a97575fb4b9ad8ade73eb33052340
4
+ data.tar.gz: 8793f7c0480e2a4bc6b62b8274887993f38932a3a17d712a4e4f91f1eec02eee
5
5
  SHA512:
6
- metadata.gz: e50633a81f18a263109deac74be48dbb067f39a1139d166d2e6d5d02c271f7dba232ad5512d8a63d7a571c23dc246ee8d41c82be2e477493c89ed92b7949dd19
7
- data.tar.gz: eae8574579a5b30cef07472ef90ce854162282c84bb379c507796ee2984f5f6ee2004ec82a9e8100c04b5e047b0e8a4894564ada404f789e2180d7302f5842fc
6
+ metadata.gz: da28021fbcabc8218b212797e5c6343b1f87b5769f30aeecacbf664788e82763d87c74a4edfc1db98e224b7980961c88267fc7e047e124c7bf5b195e802146e2
7
+ data.tar.gz: 2d22d732bfdfc34b4a9c53db73a5117735b93ef02c6a724c379f5c54c3fd0600bd8e6ba6de9306dc5c157ecbc480b869b78903ba58f3e3ee5cfd6a973ed15dc2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.2.2] - 2026-01-04
4
+
5
+ ### Fixed
6
+ - Ruby 3.4.1 compatibility: Use `OpenSSL::Digest::SHA256` instead of `Digest::SHA2` to avoid `metadata is not initialized properly` error in Ruby 3.4.1
7
+
8
+ ## [1.2.1] - 2026-01-04
9
+
10
+ ### Fixed
11
+ - Ruby 3.4 compatibility: Fix `Digest::SHA256::metadata is not initialized properly` error by using `Digest::SHA2.new(256)` instead of `Digest::SHA256`
12
+
3
13
  ## [1.2.0] - 2026-01-04
4
14
 
5
15
  ### Added
data/Cargo.lock CHANGED
@@ -1219,7 +1219,7 @@ checksum = "caf4aa5b0f434c91fe5c7f1ecb6a5ece2130b02ad2a590589dda5146df959001"
1219
1219
 
1220
1220
  [[package]]
1221
1221
  name = "rfmt"
1222
- version = "1.2.0"
1222
+ version = "1.2.2"
1223
1223
  dependencies = [
1224
1224
  "anyhow",
1225
1225
  "clap",
data/ext/rfmt/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "rfmt"
3
- version = "1.2.0"
3
+ version = "1.2.2"
4
4
  edition = "2021"
5
5
  authors = ["fujitani sora <fujitanisora0414@gmail.com>"]
6
6
  license = "MIT"
data/lib/rfmt/cache.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'digest'
3
+ require 'openssl'
4
4
  require 'json'
5
5
  require 'fileutils'
6
6
 
@@ -105,7 +105,7 @@ module Rfmt
105
105
 
106
106
  def file_hash(file_path)
107
107
  content = File.read(file_path)
108
- Digest::SHA256.hexdigest(content)
108
+ OpenSSL::Digest::SHA256.hexdigest(content)
109
109
  rescue StandardError => e
110
110
  raise CacheError, "Failed to read file #{file_path}: #{e.message}"
111
111
  end
data/lib/rfmt/rfmt.so ADDED
Binary file
data/lib/rfmt/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rfmt
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.2'
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rfmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - fujitani sora
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-01-03 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: rb_sys
@@ -57,7 +58,7 @@ files:
57
58
  - lib/rfmt/configuration.rb
58
59
  - lib/rfmt/prism_bridge.rb
59
60
  - lib/rfmt/prism_node_extractor.rb
60
- - lib/rfmt/rfmt.bundle
61
+ - lib/rfmt/rfmt.so
61
62
  - lib/rfmt/version.rb
62
63
  - lib/ruby_lsp/rfmt/addon.rb
63
64
  - lib/ruby_lsp/rfmt/formatter_runner.rb
@@ -70,6 +71,7 @@ metadata:
70
71
  source_code_uri: https://github.com/fs0414/rfmt
71
72
  changelog_uri: https://github.com/fs0414/rfmt/releases
72
73
  ruby_lsp_addon: 'true'
74
+ post_install_message:
73
75
  rdoc_options: []
74
76
  require_paths:
75
77
  - lib
@@ -84,7 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
86
  - !ruby/object:Gem::Version
85
87
  version: 3.0.0
86
88
  requirements: []
87
- rubygems_version: 3.7.2
89
+ rubygems_version: 3.5.22
90
+ signing_key:
88
91
  specification_version: 4
89
92
  summary: Ruby Formatter impl Rust lang.
90
93
  test_files: []
data/lib/rfmt/rfmt.bundle DELETED
Binary file