extralite 1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcad0681ac1ee598acef1989d7320f4215242dcfb3dad8857e791e313b2e673b
4
- data.tar.gz: c26b4ed323da3ccd965a026b7d1c738723293412d226bda3c7c6795881b73239
3
+ metadata.gz: a6bb308b421895a192cdbc83d022e105ec1fbd4060d8f8898a71f9f13741bd18
4
+ data.tar.gz: b044f3d91692b19f7c0cc5912896cec1458c3101ebb5f058fe09c147a3cf00ea
5
5
  SHA512:
6
- metadata.gz: f1d5ab7ba821785f24a75cfe2e0d9d9fac0dbf6f2504321e24a89a89fc783fc3a30bc10f9ee4a97340202db04a8351e730c701d11e53643b065dee5fc009014b
7
- data.tar.gz: 31a6ad671bb88f74ae2ba02d0da1e8c23275816ce41f630e82bcb7003b7e3f06a5cd9a53abeeb215bbedee54aeac763445809d4add0906cfbce087ce2acbc5b9
6
+ metadata.gz: 4bb40f58b77290b083466563465232cc3aadfa8cb68d305d08edc7fd4b1344d256af45f84f7efe8765fe00b604010a071b5966fd15abb63896b7d843337ce683
7
+ data.tar.gz: b29ee3ff34f307d9f45515971ecd0b147fe236f6c2d95e4b48cdd1a91b3d9847d477fee2c667836f83db5c68f559a0f4f2129d12b8d5d1fe5f075ca2cdd6d05c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.2 2021-06-06
2
+
3
+ - Add support for big integers
4
+
1
5
  ## 1.1 2021-06-02
2
6
 
3
7
  - Add `#close`, `#closed?` methods
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- extralite (1.1)
4
+ extralite (1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## What is Extralite?
8
8
 
9
- Extralite is an extra-lightweight (~365 lines of C-code) SQLite3 wrapper for
9
+ Extralite is an extra-lightweight (less than 400 lines of C-code) SQLite3 wrapper for
10
10
  Ruby. It provides a single class with a minimal set of methods to interact with
11
11
  an SQLite3 database.
12
12
 
@@ -71,6 +71,10 @@ db.filename #=> "/tmp/my.db"
71
71
 
72
72
  # load an extension
73
73
  db.load_extension('/path/to/extension.so')
74
+
75
+ # close database
76
+ db.close
77
+ db.closed? #=> true
74
78
  ```
75
79
 
76
80
  ## Why not just use the sqlite3 gem?
@@ -94,7 +94,7 @@ inline VALUE get_column_value(sqlite3_stmt *stmt, int col, int type) {
94
94
  case SQLITE_NULL:
95
95
  return Qnil;
96
96
  case SQLITE_INTEGER:
97
- return INT2NUM(sqlite3_column_int(stmt, col));
97
+ return LL2NUM(sqlite3_column_int64(stmt, col));
98
98
  case SQLITE_FLOAT:
99
99
  return DBL2NUM(sqlite3_column_double(stmt, col));
100
100
  case SQLITE_TEXT:
@@ -114,7 +114,7 @@ static inline void bind_parameter_value(sqlite3_stmt *stmt, int pos, VALUE value
114
114
  sqlite3_bind_null(stmt, pos);
115
115
  return;
116
116
  case T_FIXNUM:
117
- sqlite3_bind_int(stmt, pos, NUM2INT(value));
117
+ sqlite3_bind_int64(stmt, pos, NUM2LL(value));
118
118
  return;
119
119
  case T_FLOAT:
120
120
  sqlite3_bind_double(stmt, pos, NUM2DBL(value));
@@ -1,3 +1,3 @@
1
1
  module Extralite
2
- VERSION = '1.1'
2
+ VERSION = '1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extralite
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-02 00:00:00.000000000 Z
11
+ date: 2021-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler