activerecord-nulldb-adapter 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/VERSION +1 -1
- data/activerecord-nulldb-adapter.gemspec +3 -3
- data/lib/active_record/connection_adapters/nulldb_adapter/core.rb +4 -0
- data/spec/nulldb_spec.rb +16 -0
- 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: a4cf270fe63397d51ddd0be810888e9f4b2d1dfc
|
4
|
+
data.tar.gz: 682c036dc3c44f8c3b26bd36bc6676734ffc994d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7de1bf2843352e9f121f91f8ff283b0a24eabd7fdb6efaf9bdad61e223608523d0abfb17c9cf3485978fd7b575c3e167955bb4ce89d4f6706ee4d62ec3625ee0
|
7
|
+
data.tar.gz: a5b6e80a7476bf7d9edbc4db613ba69ef93e387d1ca6b7d0823ad00241fadf022c721038ef19e432e8e02aca9e3e960ee1afff0eb5b3277dd32a828f959cb365
|
data/CHANGES.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: activerecord-nulldb-adapter 0.3.
|
5
|
+
# stub: activerecord-nulldb-adapter 0.3.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "activerecord-nulldb-adapter"
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Avdi Grimm", "Myron Marston"]
|
14
|
-
s.date = "2016-08-
|
14
|
+
s.date = "2016-08-10"
|
15
15
|
s.description = "A database backend that translates database interactions into no-ops. Using NullDB enables you to test your model business logic - including after_save hooks - without ever touching a real database."
|
16
16
|
s.email = "myron.marston@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -112,6 +112,10 @@ class ActiveRecord::ConnectionAdapters::NullDBAdapter < ActiveRecord::Connection
|
|
112
112
|
# NOOP
|
113
113
|
end
|
114
114
|
|
115
|
+
def enable_extension(*)
|
116
|
+
# NOOP
|
117
|
+
end
|
118
|
+
|
115
119
|
# Retrieve the table names defined by the schema
|
116
120
|
def tables
|
117
121
|
@tables.keys.map(&:to_s)
|
data/spec/nulldb_spec.rb
CHANGED
@@ -307,3 +307,19 @@ describe NullDB::RSpec::NullifiedDatabase do
|
|
307
307
|
end
|
308
308
|
end
|
309
309
|
end
|
310
|
+
|
311
|
+
|
312
|
+
describe 'adapter-specific extensions' do
|
313
|
+
before(:all) do
|
314
|
+
ActiveRecord::Base.establish_connection :adapter => :nulldb
|
315
|
+
ActiveRecord::Migration.verbose = false
|
316
|
+
end
|
317
|
+
|
318
|
+
it "supports 'enable_extension' in the schema definition" do
|
319
|
+
expect{
|
320
|
+
ActiveRecord::Schema.define do
|
321
|
+
enable_extension "plpgsql"
|
322
|
+
end
|
323
|
+
}.to_not raise_error
|
324
|
+
end
|
325
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-nulldb-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Avdi Grimm
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|