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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1433573809eb7d294ca0e0b2b6fc70aa7abeb7c7
4
- data.tar.gz: 0785af97f872961fc00d8bef4e266b9dea66d724
3
+ metadata.gz: a4cf270fe63397d51ddd0be810888e9f4b2d1dfc
4
+ data.tar.gz: 682c036dc3c44f8c3b26bd36bc6676734ffc994d
5
5
  SHA512:
6
- metadata.gz: 168c2584d0a743ed7d1b5baa9e07d58d92bb74f59f1e8239c08fbe8fac6efa0c4f4bae646220cbef26deca80c4a2ae90867c7bc6b161484fcf6709e28f66bf49
7
- data.tar.gz: 451f5933473a48ac09047a09317fd6392ff80317680eece6086ba6ad22d2dfaf48e8714356a4b384afe0a23e3d42ed48154bd2494cfc259fcbaae371c79698eb
6
+ metadata.gz: 7de1bf2843352e9f121f91f8ff283b0a24eabd7fdb6efaf9bdad61e223608523d0abfb17c9cf3485978fd7b575c3e167955bb4ce89d4f6706ee4d62ec3625ee0
7
+ data.tar.gz: a5b6e80a7476bf7d9edbc4db613ba69ef93e387d1ca6b7d0823ad00241fadf022c721038ef19e432e8e02aca9e3e960ee1afff0eb5b3277dd32a828f959cb365
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.3.4 (2016-08-10)
2
+ -----------
3
+ - Adds support for Postgres-specific 'enable_extension'
4
+
5
+
1
6
  0.3.3 (2016-08-01)
2
7
  -----------
3
8
  - Adds support for ActiveRecord 4.2.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.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.3 ruby lib
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.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-01"
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)
@@ -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.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-01 00:00:00.000000000 Z
12
+ date: 2016-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord