activerecord-nulldb-adapter 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +18 -5
- data/Appraisals +5 -1
- data/CHANGES.md +5 -0
- data/Gemfile +0 -1
- data/activerecord-nulldb-adapter.gemspec +1 -1
- data/gemfiles/activerecord_7.0.gemfile +17 -0
- data/gemfiles/activerecord_master.gemfile +1 -1
- data/lib/active_record/connection_adapters/nulldb_adapter/core.rb +3 -3
- data/lib/active_record/connection_adapters/nulldb_adapter/table_definition.rb +2 -0
- data/lib/nulldb/version.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e4a403aa1ee43e02dd69b91820f308d5085e99eca0684879e60f7fe3d7872e1
|
4
|
+
data.tar.gz: 84abce618014d4bb49cb903eea65f15ae830de6216531d3e3af709d70d02c03c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a6d28b99a18d0705990360b3775d040e78ab4842fc70a20216f8970615115f714112caef2d1b77d0758af32b1420a42d96c8785e1c0580af2523cec77533d32
|
7
|
+
data.tar.gz: 58b09c97d6777eac6fac477ce39d6297f19a7b8821d5e59af9661144aa673e8cfc5cff642798283bf0e8061e0532b231c802f7ef726ed1463b50deb576b04a82
|
data/.github/workflows/ruby.yml
CHANGED
@@ -10,18 +10,31 @@ jobs:
|
|
10
10
|
activerecord_5.2,
|
11
11
|
activerecord_6.0,
|
12
12
|
activerecord_6.1,
|
13
|
+
activerecord_7.0,
|
13
14
|
activerecord_master,
|
14
15
|
]
|
15
|
-
ruby: ["2.5", "2.6", "2.7", "3.0", "jruby-9.
|
16
|
+
ruby: ["2.5", "2.6", "2.7", "3.0", "jruby-9.3.1.0"]
|
16
17
|
exclude:
|
17
18
|
- ruby: "3.0"
|
18
19
|
gemfile: activerecord_5.2
|
19
20
|
|
20
|
-
- ruby: "
|
21
|
-
gemfile:
|
21
|
+
- ruby: "2.5"
|
22
|
+
gemfile: "activerecord_master"
|
22
23
|
|
23
|
-
- ruby: "
|
24
|
-
gemfile: activerecord_master
|
24
|
+
- ruby: "2.6"
|
25
|
+
gemfile: "activerecord_master"
|
26
|
+
|
27
|
+
- ruby: "2.5"
|
28
|
+
gemfile: "activerecord_7.0"
|
29
|
+
|
30
|
+
- ruby: "2.6"
|
31
|
+
gemfile: "activerecord_7.0"
|
32
|
+
|
33
|
+
- ruby: "jruby-9.3.1.0"
|
34
|
+
gemfile: "activerecord_7.0"
|
35
|
+
|
36
|
+
- ruby: "jruby-9.3.1.0"
|
37
|
+
gemfile: "activerecord_master"
|
25
38
|
|
26
39
|
runs-on: ubuntu-latest
|
27
40
|
env:
|
data/Appraisals
CHANGED
@@ -6,6 +6,10 @@ appraise "activerecord-6.0" do
|
|
6
6
|
gem "activerecord", "~> 6.0.0"
|
7
7
|
end
|
8
8
|
|
9
|
+
appraise "activerecord-7.0" do
|
10
|
+
gem "activerecord", "~> 7.0.0.alpha2"
|
11
|
+
end
|
12
|
+
|
9
13
|
appraise "activerecord-master" do
|
10
|
-
gem "activerecord", github: 'rails/rails'
|
14
|
+
gem "activerecord", github: 'rails/rails', branch: :main
|
11
15
|
end
|
data/CHANGES.md
CHANGED
data/Gemfile
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.homepage = "https://github.com/nulldb/nulldb"
|
21
21
|
s.licenses = ["MIT"]
|
22
22
|
|
23
|
-
s.add_runtime_dependency 'activerecord', '>= 5.2.0', '<
|
23
|
+
s.add_runtime_dependency 'activerecord', '>= 5.2.0', '< 7.1'
|
24
24
|
s.add_development_dependency 'spec'
|
25
25
|
s.add_development_dependency 'rdoc'
|
26
26
|
s.add_development_dependency 'rspec'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "activerecord", "~> 7.0.0.alpha2"
|
6
|
+
|
7
|
+
group :development, :test do
|
8
|
+
gem "spec"
|
9
|
+
gem "rspec", ">= 1.2.9"
|
10
|
+
gem "rake"
|
11
|
+
gem "rdoc"
|
12
|
+
end
|
13
|
+
|
14
|
+
group :development do
|
15
|
+
gem "appraisal"
|
16
|
+
gem "simplecov", require: false
|
17
|
+
end
|
@@ -98,7 +98,7 @@ class ActiveRecord::ConnectionAdapters::NullDBAdapter < ActiveRecord::Connection
|
|
98
98
|
end
|
99
99
|
|
100
100
|
# Rails 6.1+
|
101
|
-
if ActiveRecord::VERSION::MAJOR >= 6 and ActiveRecord::VERSION::MINOR > 0
|
101
|
+
if ActiveRecord::VERSION::MAJOR >= 7 || (ActiveRecord::VERSION::MAJOR >= 6 and ActiveRecord::VERSION::MINOR > 0)
|
102
102
|
def remove_index(table_name, column_name = nil, **options )
|
103
103
|
index_name = index_name_for_remove(table_name, column_name, options)
|
104
104
|
index = @indexes[table_name].reject! { |index| index.name == index_name }
|
@@ -264,7 +264,7 @@ class ActiveRecord::ConnectionAdapters::NullDBAdapter < ActiveRecord::Connection
|
|
264
264
|
|
265
265
|
protected
|
266
266
|
|
267
|
-
def select(statement, name = nil, binds = [])
|
267
|
+
def select(statement, name = nil, binds = [], prepare: nil, async: nil)
|
268
268
|
EmptyResult.new.tap do |r|
|
269
269
|
r.bind_column_meta(columns_for(name))
|
270
270
|
self.execution_log << Statement.new(entry_point, statement)
|
@@ -313,7 +313,7 @@ class ActiveRecord::ConnectionAdapters::NullDBAdapter < ActiveRecord::Connection
|
|
313
313
|
|
314
314
|
def new_table_definition(adapter = nil, table_name = nil, is_temporary = nil, options = {})
|
315
315
|
case ::ActiveRecord::VERSION::MAJOR
|
316
|
-
when 6
|
316
|
+
when 6, 7
|
317
317
|
TableDefinition.new(self, table_name, temporary: is_temporary, options: options.except(:id))
|
318
318
|
when 5
|
319
319
|
TableDefinition.new(table_name, is_temporary, options.except(:id), nil)
|
@@ -6,6 +6,8 @@ class ActiveRecord::ConnectionAdapters::NullDBAdapter
|
|
6
6
|
alias_method :citext, :text
|
7
7
|
alias_method :interval, :text
|
8
8
|
alias_method :geometry, :text
|
9
|
+
alias_method :serial, :integer
|
10
|
+
alias_method :inet, :string
|
9
11
|
alias_method :jsonb, :json if method_defined? :json
|
10
12
|
end
|
11
13
|
end
|
data/lib/nulldb/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-nulldb-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Avdi Grimm
|
8
8
|
- Myron Marston
|
9
9
|
- Danilo Cabello
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-10-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 5.2.0
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
24
|
+
version: '7.1'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: 5.2.0
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '7.1'
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: spec
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- gemfiles/activerecord_5.2.gemfile
|
153
153
|
- gemfiles/activerecord_6.0.gemfile
|
154
154
|
- gemfiles/activerecord_6.1.gemfile
|
155
|
+
- gemfiles/activerecord_7.0.gemfile
|
155
156
|
- gemfiles/activerecord_master.gemfile
|
156
157
|
- lib/active_record/connection_adapters/nulldb_adapter.rb
|
157
158
|
- lib/active_record/connection_adapters/nulldb_adapter/checkpoint.rb
|
@@ -179,7 +180,7 @@ homepage: https://github.com/nulldb/nulldb
|
|
179
180
|
licenses:
|
180
181
|
- MIT
|
181
182
|
metadata: {}
|
182
|
-
post_install_message:
|
183
|
+
post_install_message:
|
183
184
|
rdoc_options: []
|
184
185
|
require_paths:
|
185
186
|
- lib
|
@@ -194,8 +195,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
195
|
- !ruby/object:Gem::Version
|
195
196
|
version: '0'
|
196
197
|
requirements: []
|
197
|
-
rubygems_version: 3.
|
198
|
-
signing_key:
|
198
|
+
rubygems_version: 3.1.4
|
199
|
+
signing_key:
|
199
200
|
specification_version: 4
|
200
201
|
summary: The Null Object pattern as applied to ActiveRecord database adapters
|
201
202
|
test_files: []
|