whatsapp-chat-parser 0.1.1 → 0.1.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: 80cf2c98b1945a1f1fdc83e73e16ddc6519dd7454516c8762e4387bb6837a8b2
4
- data.tar.gz: 2643f4cb9e1ebffea215ea39c658f958ba5c56348b74d63562dd103af9089662
3
+ metadata.gz: 4e92031c7088862cb6488753801997b0cb67453b61275068a4b2e430d85f83a0
4
+ data.tar.gz: 0df5654a6a3590b01596d0fa00e7081699a498db115ab4b8f337b4ababc0c6f2
5
5
  SHA512:
6
- metadata.gz: 8e653c40cfea96fa199f7081deca0e27414b64c7dc3d360387b388950a7fc37504132f44fd7bce2dcce396d085eab73ca83dbefe80171abaae24b33920910492
7
- data.tar.gz: 810f64fea5a044db9d77beb25befd77f29d370c1c08cd6edf770de62949226aa87294a2458c6d0fa3da7348be61aae0e1eff1f51a1237412ff4d153dc7629800
6
+ metadata.gz: 6167122bde0e631130963719035eb70bce2764c59664c03f451f0ea4c7108511f1bff5a26ee1a3b88706763413b2f20d6c1eff96b91bd13f2292a9689810ef49
7
+ data.tar.gz: fed7b89133841f13cbef30a270303caea6895db23e8d4b64df6d4350b2d4dfcce1baf83d796a67519c8dae317273673d4421bfb9a79ceeb5d688a08004bbcdc9
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.1.2] - 2026-02-26
9
+
10
+ ### Fixed
11
+ - Fixed `Encoding::CompatibilityError` caused by stripping an unscrubbed message line
12
+ - Fixed `FrozenError` caused by mutating a frozen `message` string during message line accumulation
13
+
8
14
  ## [0.1.1] - 2026-02-22
9
15
 
10
16
  ### Changed
@@ -22,7 +22,7 @@ module WhatsappChatParser
22
22
  )
23
23
  end
24
24
 
25
- str
25
+ str.scrub(' ').squeeze(' ')
26
26
  end
27
27
 
28
28
  private
@@ -30,7 +30,7 @@ module WhatsappChatParser
30
30
  end
31
31
 
32
32
  def accumulate_messages(io, &block)
33
- message = ''
33
+ message = +''
34
34
 
35
35
  io.each_line do |line|
36
36
  if message_starts_here?(line)
@@ -32,7 +32,7 @@ module WhatsappChatParser
32
32
  end
33
33
 
34
34
  def sanitize(line)
35
- Encoding.normalize_to_utf8(line).strip.scrub(' ').squeeze(' ')
35
+ Encoding.normalize_to_utf8(line).strip
36
36
  end
37
37
  end
38
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WhatsappChatParser
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whatsapp-chat-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emmanuel Akachukwu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-22 00:00:00.000000000 Z
11
+ date: 2026-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -111,9 +111,9 @@ licenses:
111
111
  metadata:
112
112
  homepage_uri: https://github.com/emmaakachukwu/whatsapp-chat-parser-rb
113
113
  bug_tracker_uri: https://github.com/emmaakachukwu/whatsapp-chat-parser-rb/issues
114
- changelog_uri: https://github.com/emmaakachukwu/whatsapp-chat-parser-rb/blob/v0.1.1/CHANGELOG.md
115
- documentation_uri: https://www.rubydoc.info/gems/whatsapp-chat-parser/0.1.1
116
- source_code_uri: https://github.com/emmaakachukwu/whatsapp-chat-parser-rb/tree/v0.1.1
114
+ changelog_uri: https://github.com/emmaakachukwu/whatsapp-chat-parser-rb/blob/v0.1.2/CHANGELOG.md
115
+ documentation_uri: https://www.rubydoc.info/gems/whatsapp-chat-parser/0.1.2
116
+ source_code_uri: https://github.com/emmaakachukwu/whatsapp-chat-parser-rb/tree/v0.1.2
117
117
  keywords: whatsapp chat parser whatsapp-chat-parser text export android ios
118
118
  rubygems_mfa_required: 'true'
119
119
  post_install_message: