sqlite3-ffi 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: 5ec2a920f1564588b726a6f07933599e4ca6765629e4e09dad0a16fdd468aae2
4
- data.tar.gz: f19c33deca3d40e25d6769f12081f55b113c8fb2a7457d8f2293a7dce86bc614
3
+ metadata.gz: 2ae96e16626c5d549bf53b0c973c79aa41f62e33a9a1c707555d6c623d5a1af9
4
+ data.tar.gz: e3eded8d5d2dcec88043ea0ef153c9f70dfd0752e2072462e4766bf4d7a1b4fb
5
5
  SHA512:
6
- metadata.gz: e451c2b5ef9a4dbf36ae0ee1388092c26f8a7dc9e4126d073e2d0dfbe2b328b7dc40f58a51000dd3b155a8315c96ccc0e8493b5d2dd6a69785c6dafaf29ee759
7
- data.tar.gz: e079587aea5442f2700767172f803353f0ebf9dad1f49c00e1f7e256c7d9696587a602eef2b9b2390ea1ecd9ac98f3c5be0ab560f25a1cb456926d8a37af0ce8
6
+ metadata.gz: e729d03db7dbf940791852c4c213bb2c20f41485c67333213d478a690700a8897eaa3b83d9f220b70056a0dc1fe85a750a6bc2ac91062d2d35e102116c9a2df7
7
+ data.tar.gz: e98bcefe911cd6f9a2f4fb96cf506c0bf40ba83af8a7425e938a181df0f696b75b14c290d1d5480c97aa2c1e99c8445625a8b800fac96be79fd180e785caeff3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.2 (2025-04-27)
2
+
3
+ - Improved compatibility
4
+
1
5
  ## 0.1.1 (2025-04-26)
2
6
 
3
7
  - Fixed error with `load_extension` method
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # sqlite3-ffi
1
+ # sqlite3-ruby-ffi
2
2
 
3
- :tada: A drop-in replacement for [sqlite3](https://github.com/sparklemotion/sqlite3-ruby) for JRuby
3
+ :tada: A drop-in replacement for the [sqlite3](https://github.com/sparklemotion/sqlite3-ruby) gem for JRuby
4
4
 
5
- - Passes 99% of the sqlite3 test suite
5
+ - Passes > 99% of the sqlite3 test suite
6
6
  - Works with Active Record without a custom adapter
7
7
 
8
- [![Build Status](https://github.com/ankane/sqlite3-ffi/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/sqlite3-ffi/actions)
8
+ [![Build Status](https://github.com/ankane/sqlite3-ruby-ffi/actions/workflows/build.yml/badge.svg)](https://github.com/ankane/sqlite3-ruby-ffi/actions)
9
9
 
10
10
  ## Installation
11
11
 
@@ -34,22 +34,22 @@ The code in `lib` and `test` is an exact copy, plus some additional files:
34
34
 
35
35
  ## History
36
36
 
37
- View the [changelog](https://github.com/ankane/sqlite3-ffi/blob/master/CHANGELOG.md)
37
+ View the [changelog](https://github.com/ankane/sqlite3-ruby-ffi/blob/master/CHANGELOG.md)
38
38
 
39
39
  ## Contributing
40
40
 
41
41
  Everyone is encouraged to help improve this project. Here are a few ways you can help:
42
42
 
43
- - [Report bugs](https://github.com/ankane/sqlite3-ffi/issues)
44
- - Fix bugs and [submit pull requests](https://github.com/ankane/sqlite3-ffi/pulls)
43
+ - [Report bugs](https://github.com/ankane/sqlite3-ruby-ffi/issues)
44
+ - Fix bugs and [submit pull requests](https://github.com/ankane/sqlite3-ruby-ffi/pulls)
45
45
  - Write, clarify, or fix documentation
46
46
  - Suggest or add new features
47
47
 
48
48
  To get started with development:
49
49
 
50
50
  ```sh
51
- git clone https://github.com/ankane/sqlite3-ffi.git
52
- cd sqlite3-ffi
51
+ git clone https://github.com/ankane/sqlite3-ruby-ffi.git
52
+ cd sqlite3-ruby-ffi
53
53
  bundle install
54
54
  bundle exec rake test
55
55
  ```
@@ -168,8 +168,8 @@ module SQLite3
168
168
  end
169
169
  end
170
170
 
171
- def discard_db(db)
172
- FFI::CApi.sqlite3_db_release_memory(db)
171
+ def discard_db
172
+ FFI::CApi.sqlite3_db_release_memory(@db)
173
173
  # TODO sqlite3_file_control
174
174
  @db = nil
175
175
  @discarded = true
@@ -181,7 +181,7 @@ module SQLite3
181
181
  FFI::CApi.sqlite3_close_v2(@db)
182
182
  @db = nil
183
183
  else
184
- discard_db(@db)
184
+ discard_db
185
185
  end
186
186
  end
187
187
  end
@@ -211,7 +211,7 @@ module SQLite3
211
211
  end
212
212
 
213
213
  def discard
214
- discard_db(@db)
214
+ discard_db
215
215
  @aggregators = nil
216
216
  self
217
217
  end
@@ -38,9 +38,8 @@ module SQLite3
38
38
  end
39
39
  end
40
40
 
41
- # TODO intern
42
41
  def self.interned_utf8_cstr(str)
43
- str.freeze
42
+ -str
44
43
  end
45
44
 
46
45
  def self.string_value(obj)
@@ -1,5 +1,5 @@
1
1
  module SQLite3
2
2
  module FFI
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlite3-ffi
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
  - Jamis Buck
@@ -59,7 +59,7 @@ files:
59
59
  - lib/sqlite3/value.rb
60
60
  - lib/sqlite3/version.rb
61
61
  - lib/sqlite3/version_info.rb
62
- homepage: https://github.com/ankane/sqlite3-ffi
62
+ homepage: https://github.com/ankane/sqlite3-ruby-ffi
63
63
  licenses:
64
64
  - BSD-3-Clause
65
65
  metadata: {}
@@ -79,5 +79,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  requirements: []
80
80
  rubygems_version: 3.6.7
81
81
  specification_version: 4
82
- summary: A drop-in replacement for sqlite3 for JRuby
82
+ summary: A drop-in replacement for the sqlite3 gem for JRuby
83
83
  test_files: []