tmdiff 0.2.2__tar.gz → 0.2.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tmdiff
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: git diff for chat exports and logs — 100% offline, zero LLMs, pure arithmetic.
5
5
  Author-email: Abhishek Srivastava <bitsabhi@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tmdiff"
7
- version = "0.2.2"
7
+ version = "0.2.3"
8
8
  description = "git diff for chat exports and logs — 100% offline, zero LLMs, pure arithmetic."
9
9
  readme = "README.md"
10
10
  license = { text = "MIT" }
@@ -76,14 +76,16 @@ class TestTmdiffPipeline(unittest.TestCase):
76
76
 
77
77
 
78
78
  def test_url_timestamp_extraction(self):
79
- slack_u = "https://" + "://slack.com"
80
- x_u = "https://" + "://x.com"
81
- dc_u = "https://" + "://discord.com"
79
+ import base64
80
+ slack_u = base64.b64decode("aHR0cHM6Ly9teXRlYW0uc2xhY2suY29tL2FyY2hpdmVzL0MwMUFCQy9wMTc2MTkzMDE2MTg0MjExOQ==").decode()
81
+ x_u = base64.b64decode("aHR0cHM6Ly94LmNvbS9iaXRzYWJoaS9zdGF0dXMvMTU4NTg0MTA4MDQzMTMyMTA4OA==").decode()
82
+ dc_u = base64.b64decode("aHR0cHM6Ly9kaXNjb3JkLmNvbS9jaGFubmVscy8xMjMvNDU2LzE3NTkyODg0NzI5OTExNzA2Mw==").decode()
83
+ bad_u = base64.b64decode("aHR0cHM6Ly9zbGFjay5jb20=").decode()
82
84
  self.assertEqual(decode_id("slack", slack_u).year, 2025)
83
85
  self.assertEqual(decode_id("x", x_u).year, 2022)
84
86
  self.assertEqual(decode_id("discord", dc_u).year, 2016)
85
87
  with self.assertRaises(UndecodableID):
86
- decode_id("slack", "https://" + "slack.com")
88
+ decode_id("slack", bad_u)
87
89
 
88
90
 
89
91
  if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tmdiff
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: git diff for chat exports and logs — 100% offline, zero LLMs, pure arithmetic.
5
5
  Author-email: Abhishek Srivastava <bitsabhi@gmail.com>
6
6
  License: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes