sqlite3-static 3.14.1 → 3.22.0

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.
@@ -120,10 +120,6 @@ in version 2.0.0.
120
120
  # See also #execute2, #query, and #execute_batch for additional ways of
121
121
  # executing statements.
122
122
  def execute sql, bind_vars = [], *args, &block
123
- # FIXME: This is a terrible hack and should be removed but is required
124
- # for older versions of rails
125
- hack = Object.const_defined?(:ActiveRecord) && sql =~ /^PRAGMA index_list/
126
-
127
123
  if bind_vars.nil? || !args.empty?
128
124
  if args.empty?
129
125
  bind_vars = []
@@ -154,12 +150,7 @@ Support for bind parameters as *args will be removed in 2.0.0.
154
150
  else
155
151
  if @results_as_hash
156
152
  stmt.map { |row|
157
- h = type_translation ? row : ordered_map_for(columns, row)
158
-
159
- # FIXME UGH TERRIBLE HACK!
160
- h['unique'] = h['unique'].to_s if hack
161
-
162
- h
153
+ type_translation ? row : ordered_map_for(columns, row)
163
154
  }
164
155
  else
165
156
  stmt.to_a
@@ -101,15 +101,6 @@ module SQLite3
101
101
  # The list of valid WAL checkpoints.
102
102
  WAL_CHECKPOINTS = [ [ 'passive' ], [ 'full' ], [ 'restart' ], [ 'truncate' ] ]
103
103
 
104
- # Does an integrity check on the database. If the check fails, a
105
- # SQLite3::Exception will be raised. Otherwise it
106
- # returns silently.
107
- def integrity_check
108
- execute( "PRAGMA integrity_check" ) do |row|
109
- raise Exception, row[0] if row[0] != "ok"
110
- end
111
- end
112
-
113
104
  def application_id
114
105
  get_int_pragma "application_id"
115
106
  end
@@ -1,12 +1,12 @@
1
1
  module SQLite3
2
2
 
3
- VERSION = '1.3.11'
3
+ VERSION = '1.3.13'
4
4
 
5
5
  module VersionProxy
6
6
 
7
7
  MAJOR = 1
8
8
  MINOR = 3
9
- TINY = 11
9
+ TINY = 13
10
10
  BUILD = nil
11
11
 
12
12
  STRING = [ MAJOR, MINOR, TINY, BUILD ].compact.join( "." )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlite3-static
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.1
4
+ version: 3.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamis Buck
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-08-16 00:00:00.000000000 Z
14
+ date: 2018-02-22 00:00:00.000000000 Z
15
15
  dependencies: []
16
16
  description: SQLite3 bindings with embedded SQLite library.
17
17
  email:
@@ -73,9 +73,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.5.1
76
+ rubygems_version: 2.7.6
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: SQLite3 bindings with embedded SQLite library, requiring no external dependencies.
80
80
  test_files: []
81
- has_rdoc: