sqlite_ext 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/sqlite_ext.rb +7 -3
- data/lib/sqlite_ext/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78941c80576ab0ae3a12eadd30c76532873d2be7
|
4
|
+
data.tar.gz: 4d39aa19528e2630b5bb0ca20f9030f7aab7a8c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b637e9f54e0cb68cc775c9022fb16a4ebb41635f62c6636d4cc35f0d694e9075de94819c0183f958bf1ef421bc9b228762f8aa2bb980ae556679ecdcc33866f
|
7
|
+
data.tar.gz: 61aeab9272af31030d3ecc4e526882f70c240eca9202d52f3120f8640ced8ceda66e2b3401300e33921a1f59843c976c12334308a29ed32d2cc6a2ef90121597
|
data/CHANGELOG.md
CHANGED
data/lib/sqlite_ext.rb
CHANGED
@@ -69,9 +69,10 @@ module SqliteExt
|
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
# Registers most of the public module methods of Ruby's
|
73
|
-
# module
|
74
|
-
# through subsequent new
|
72
|
+
# Registers most of the public module methods of Ruby's
|
73
|
+
# `Math` module as well as `ceil` and `floor` to be used as
|
74
|
+
# functions in SQL code executed # through subsequent new
|
75
|
+
# instances of `SQLite3::Database`.
|
75
76
|
#
|
76
77
|
# The `Math.frexp` method is omitted becuse it returns an
|
77
78
|
# array, and there is no way to return an array from a SQL
|
@@ -84,6 +85,9 @@ module SqliteExt
|
|
84
85
|
fn_methods.each do |m|
|
85
86
|
register_function m, Math.method(m)
|
86
87
|
end
|
88
|
+
[:floor, :ceil].each do |m|
|
89
|
+
register_function m, m.to_proc
|
90
|
+
end
|
87
91
|
end
|
88
92
|
|
89
93
|
# Registers a #create_function call to be invoked on every
|
data/lib/sqlite_ext/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sqlite_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Jorgensen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|