sqlite3-static 3.12.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.
@@ -0,0 +1,57 @@
1
+ require 'sqlite3/constants'
2
+
3
+ module SQLite3
4
+
5
+ class Value
6
+ attr_reader :handle
7
+
8
+ def initialize( db, handle )
9
+ @driver = db.driver
10
+ @handle = handle
11
+ end
12
+
13
+ def null?
14
+ type == :null
15
+ end
16
+
17
+ def to_blob
18
+ @driver.value_blob( @handle )
19
+ end
20
+
21
+ def length( utf16=false )
22
+ if utf16
23
+ @driver.value_bytes16( @handle )
24
+ else
25
+ @driver.value_bytes( @handle )
26
+ end
27
+ end
28
+
29
+ def to_f
30
+ @driver.value_double( @handle )
31
+ end
32
+
33
+ def to_i
34
+ @driver.value_int( @handle )
35
+ end
36
+
37
+ def to_int64
38
+ @driver.value_int64( @handle )
39
+ end
40
+
41
+ def to_s( utf16=false )
42
+ @driver.value_text( @handle, utf16 )
43
+ end
44
+
45
+ def type
46
+ case @driver.value_type( @handle )
47
+ when Constants::ColumnType::INTEGER then :int
48
+ when Constants::ColumnType::FLOAT then :float
49
+ when Constants::ColumnType::TEXT then :text
50
+ when Constants::ColumnType::BLOB then :blob
51
+ when Constants::ColumnType::NULL then :null
52
+ end
53
+ end
54
+
55
+ end
56
+
57
+ end
@@ -0,0 +1,25 @@
1
+ module SQLite3
2
+
3
+ VERSION = '1.3.11'
4
+
5
+ module VersionProxy
6
+
7
+ MAJOR = 1
8
+ MINOR = 3
9
+ TINY = 11
10
+ BUILD = nil
11
+
12
+ STRING = [ MAJOR, MINOR, TINY, BUILD ].compact.join( "." )
13
+ #:beta-tag:
14
+
15
+ VERSION = ::SQLite3::VERSION
16
+ end
17
+
18
+ def self.const_missing(name)
19
+ return super unless name == :Version
20
+ warn(<<-eowarn) if $VERBOSE
21
+ #{caller[0]}: SQLite::Version will be removed in sqlite3-ruby version 2.0.0
22
+ eowarn
23
+ VersionProxy
24
+ end
25
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sqlite3-static
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.12.2
5
+ platform: ruby
6
+ authors:
7
+ - Jamis Buck
8
+ - Luis Lavena
9
+ - Aaron Patterson
10
+ - Jesús A. Álvarez
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2016-04-19 00:00:00.000000000 Z
15
+ dependencies: []
16
+ description: SQLite3 bindings with embedded SQLite library.
17
+ email:
18
+ - jamis@37signals.com
19
+ - luislavena@gmail.com
20
+ - aaron@tenderlovemaking.com
21
+ - zydeco@namedfork.net
22
+ executables: []
23
+ extensions:
24
+ - ext/sqlite3/extconf.rb
25
+ extra_rdoc_files: []
26
+ files:
27
+ - API_CHANGES.rdoc
28
+ - CHANGELOG.rdoc
29
+ - Manifest.txt
30
+ - README.rdoc
31
+ - ext/sqlite3/backup.c
32
+ - ext/sqlite3/backup.h
33
+ - ext/sqlite3/database.c
34
+ - ext/sqlite3/database.h
35
+ - ext/sqlite3/exception.c
36
+ - ext/sqlite3/exception.h
37
+ - ext/sqlite3/extconf.rb
38
+ - ext/sqlite3/sqlite3.c
39
+ - ext/sqlite3/sqlite3.h
40
+ - ext/sqlite3/sqlite3_core.c
41
+ - ext/sqlite3/sqlite3_ruby.h
42
+ - ext/sqlite3/statement.c
43
+ - ext/sqlite3/statement.h
44
+ - lib/sqlite3.rb
45
+ - lib/sqlite3/constants.rb
46
+ - lib/sqlite3/database.rb
47
+ - lib/sqlite3/errors.rb
48
+ - lib/sqlite3/pragmas.rb
49
+ - lib/sqlite3/resultset.rb
50
+ - lib/sqlite3/statement.rb
51
+ - lib/sqlite3/translator.rb
52
+ - lib/sqlite3/value.rb
53
+ - lib/sqlite3/version.rb
54
+ homepage: https://github.com/Instabridge/sqlite3-ruby-static
55
+ licenses:
56
+ - BSD-3
57
+ metadata: {}
58
+ post_install_message:
59
+ rdoc_options:
60
+ - "--main"
61
+ - README.rdoc
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubyforge_project:
76
+ rubygems_version: 2.4.5
77
+ signing_key:
78
+ specification_version: 4
79
+ summary: SQLite3 bindings with embedded SQLite library, requiring no external dependencies.
80
+ test_files: []