tina4ruby 3.13.164 → 3.13.165

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: 13b5afb4fa32e8a1b77bfd40d3a39ea07c52640ed539bac20fece78228463bb3
4
- data.tar.gz: fa81074247e7b31b87ca0015077bb491815f83da4e3385b8e9a41044468c8356
3
+ metadata.gz: 75d256f5003970e8333c3c9adcb526287d56b82d7e0d795d9c1327ca77df135b
4
+ data.tar.gz: ad99e5788d6a47c04f0fa4ab69d314d5df232489aba9c06975d2514085721437
5
5
  SHA512:
6
- metadata.gz: 4af1bb9bda86630089e49f1e7d8556a7ff546fa7ed9bf8c5628ec6d8dae3f1814ba66813a01b6b9b10423420fc72819b5afc62004e10aa21a98a8c1b703b3e0c
7
- data.tar.gz: e764cee8581d65b732d7ba924f64027eb582b6c84bfc672c203ab73816a72ae648d877d122de3d9720001ccf4e1b3c13c881e3715be782f9c8e2f7f5b1fb530b
6
+ metadata.gz: 6453bf9fc5c540f9f6bc49e33b40a4b941fe24d7ddde44cae041391a89eae89831cf129a5efe75ecd2b8fc50464d4df1d17a0220173cada9213b0fd286d69ca1
7
+ data.tar.gz: 5e9a0c74f459845b9248551d73658ffd18e5058065ced8c656c1976b913173cdc3d8879cefb5964bdc9c66b13d970b95de8ed7a7b16f7dc97a0159534f047629
data/CHANGELOG.md CHANGED
@@ -6,6 +6,19 @@ number means the same thing everywhere.
6
6
  **The authoritative release notes for every shipped version live in the documentation:**
7
7
  https://tina4.com/ruby/36-releases
8
8
 
9
+ ## 3.13.165 - 2026-11-22
10
+
11
+ ### Fixed
12
+
13
+ - Windows: the broken-import marker name drops the drive letter's colon. It kept `C:` in the filename, so NTFS wrote an alternate data stream and no `data/.broken/*.broken` listing found the marker (#183; same rule in tina4-python#328, tina4-php#372, tina4-nodejs#211).
14
+ - `SessionHandlers::DatabaseHandler#close` is new. It releases a connection the handler opened itself, which nothing could release before. An injected connection is never closed; `close` is idempotent and the next use reopens lazily (#183; same rule as tina4-php and tina4-nodejs).
15
+ - After `tina4ruby generate migration`, the next steps name `tina4ruby migrate:status` and `tina4ruby migrate:rollback`. They said `migrate status` and `migrate rollback`, which ran a plain `migrate` and exited 0, so nothing was reported and nothing was rolled back (#184).
16
+
17
+ ### Changed
18
+
19
+ - AI skills: tina4-developer-ruby carries `updated_for_version: 3.13.165`. Its content changed in 3.13.164 while the field still said 3.13.147, so an older install reported itself current; it now reports itself out of date.
20
+ - Test-only: `spec/import_helper_spec.rb` restores the file it stashes byte for byte; on Windows every full run rewrote `lib/tina4/import_helper.rb` with CRLF line endings (#183).
21
+
9
22
  ## 3.13.164 - 2026-11-17
10
23
 
11
24
  ### Fixed
data/lib/tina4/cli.rb CHANGED
@@ -552,8 +552,8 @@ module Tina4
552
552
  "Edit #{file_path} to add columns beyond id + created_at",
553
553
  "Mirror the change in: #{down_path}",
554
554
  "Apply it: tina4ruby migrate",
555
- "Check status: tina4ruby migrate status",
556
- "Rollback if wrong: tina4ruby migrate rollback",
555
+ "Check status: tina4ruby migrate:status",
556
+ "Rollback if wrong: tina4ruby migrate:rollback",
557
557
  ]
558
558
  end,
559
559
  "middleware" => lambda do |res|
data/lib/tina4/router.rb CHANGED
@@ -835,7 +835,10 @@ module Tina4
835
835
  def record_broken_route_import(file, error)
836
836
  broken_dir = File.join(Dir.pwd, "data", ".broken")
837
837
  FileUtils.mkdir_p(broken_dir) unless Dir.exist?(broken_dir)
838
- slug = file.gsub(%r{[/\\]}, "_")
838
+ # ":" too: an absolute Windows path starts with a drive letter, and on
839
+ # NTFS a colon in a file name writes an alternate data stream instead of
840
+ # a file, so no data/.broken/*.broken listing would see the marker.
841
+ slug = file.gsub(%r{[/\\:]}, "_")
839
842
  payload = JSON.generate(
840
843
  type: "auto_discover_failure",
841
844
  file: file,
@@ -177,6 +177,21 @@ module Tina4
177
177
  db.execute("DELETE FROM #{TABLE_NAME} WHERE expires_at > 0 AND expires_at < ?", [Time.now.to_f])
178
178
  end
179
179
 
180
+ # Release the connection this handler opened itself from
181
+ # TINA4_DATABASE_URL. An injected :db belongs to the caller and is never
182
+ # closed here. Idempotent; the next read or write reopens the connection.
183
+ # Without it a SQLite session file stayed open for the life of the
184
+ # process, and on Windows an open file cannot be deleted or replaced.
185
+ def close
186
+ return if @db_option || @db.nil?
187
+
188
+ begin
189
+ @db.close
190
+ ensure
191
+ @db = nil
192
+ end
193
+ end
194
+
180
195
  private
181
196
 
182
197
  # The database connection, resolved on FIRST USE. An explicit :db option
data/lib/tina4/version.rb CHANGED
@@ -7,5 +7,5 @@
7
7
 
8
8
 
9
9
  module Tina4
10
- VERSION = "3.13.164"
10
+ VERSION = "3.13.165"
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tina4ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.13.164
4
+ version: 3.13.165
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tina4 Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-17 00:00:00.000000000 Z
11
+ date: 2026-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3