active_record_postgresql_xverify 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0ebabab6ed60b2663b586fb09aa491eb95f0572657e14be2794c17b9896f3008
4
+ data.tar.gz: 0a6798b753418981bb573ea2b470f4eca066668dc65ef2c901de76e5cf930a66
5
+ SHA512:
6
+ metadata.gz: 3ae914c03ca5b5af6d3cd1fda4f425805daecdebd14b0581b97a6f82ae0b3ee7456224f31f6c2af86a1e12a4d92b9fce458d9eb339ab12851dd9090bc75ce214
7
+ data.tar.gz: a4efe1d28bda58233b274441bcd030ea8f436f4663e4c8c189bad3ad3a7bbd6d68bd50a31fef90c3f7edfcec22e345b2b490a357cf743e9abd24cce5a15aab29
data/.gitignore ADDED
@@ -0,0 +1,16 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /test.rb
10
+ /Gemfile.lock
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
14
+
15
+ # Appraisal Gemfile.lock
16
+ /gemfiles/*.lock
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,16 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'gemfiles/**/*'
4
+ TargetRubyVersion: 2.3
5
+ Metrics/BlockLength:
6
+ Enabled: false
7
+ Metrics/LineLength:
8
+ Enabled: false
9
+ Metrics/MethodLength:
10
+ Enabled: false
11
+ Naming/UncommunicativeMethodParamName:
12
+ Enabled: false
13
+ Style/Documentation:
14
+ Enabled: false
15
+ Style/TrailingCommaInHashLiteral:
16
+ EnforcedStyleForMultiline: consistent_comma
data/.travis.yml ADDED
@@ -0,0 +1,25 @@
1
+ ---
2
+ dist: xenial
3
+ sudo: required
4
+ language: ruby
5
+ cache: bundler
6
+ rvm:
7
+ - 2.3.8
8
+ - 2.4.6
9
+ - 2.5.3
10
+ - 2.6.3
11
+ before_install:
12
+ - docker-compose up -d
13
+ - function pg_ping { PGPASSWORD=postgres pg_isready -U postgres -h 127.0.0.1 -p 12345 >/dev/null 2>/dev/null; }
14
+ - for i in {1..60}; do pg_ping && break; sleep 1; done
15
+ script:
16
+ - bundle exec rake
17
+ gemfile:
18
+ - gemfiles/ar42.gemfile
19
+ - gemfiles/ar50.gemfile
20
+ - gemfiles/ar51.gemfile
21
+ - gemfiles/ar52.gemfile
22
+ addons:
23
+ apt:
24
+ packages:
25
+ - postgresql
data/Appraisals ADDED
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'ar42' do
4
+ gem 'activerecord', '~> 4.2.10'
5
+ gem 'pg', '~> 0.15'
6
+ end
7
+
8
+ appraise 'ar50' do
9
+ gem 'activerecord', '~> 5.0.7'
10
+ end
11
+
12
+ appraise 'ar51' do
13
+ gem 'activerecord', '~> 5.1.6'
14
+ end
15
+
16
+ appraise 'ar52' do
17
+ gem 'activerecord', '~> 5.2.1'
18
+ end
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in active_record_postgresql_xverify.gemspec
8
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 TODO: Write your name
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,112 @@
1
+ # active_record_postgresql_xverify
2
+
3
+ It is a library that performs extended verification when an error occurs when executing SQL.
4
+
5
+ [![Gem Version](https://badge.fury.io/rb/active_record_postgresql_xverify.svg)](http://badge.fury.io/rb/active_record_postgresql_xverify)
6
+ [![Build Status](https://travis-ci.org/winebarrel/active_record_postgresql_xverify.svg?branch=master)](https://travis-ci.org/winebarrel/active_record_postgresql_xverify)
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ ```ruby
13
+ gem 'active_record_postgresql_xverify'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install active_record_postgresql_xverify
23
+
24
+ ## Usage
25
+
26
+ ```ruby
27
+ #!/usr/bin/env ruby
28
+ require 'active_record'
29
+ require 'active_record_postgresql_xverify'
30
+ require 'logger'
31
+
32
+ ActiveRecord::Base.establish_connection(
33
+ adapter: 'postgresql',
34
+ host: '127.0.0.1',
35
+ port: 5432,
36
+ username: 'root',
37
+ password: 'password',
38
+ database: 'bookshelf',
39
+ )
40
+
41
+ ActiveRecord::Base.logger = Logger.new($stdout)
42
+ ActiveRecord::Base.logger.formatter = proc {|_, _, _, message| "#{message}\n" }
43
+
44
+ ActiveRecordPostgresqlXverify.verify = ->(conn) do
45
+ ping = begin
46
+ conn.query 'SELECT 1'
47
+ true
48
+ rescue PG::Error
49
+ false
50
+ end
51
+
52
+ ping && false # force reconnect
53
+ end
54
+ # Default: ->(conn) do
55
+ # begin
56
+ # conn.query 'SELECT 1'
57
+ # true
58
+ # rescue PG::Error
59
+ # false
60
+ # end
61
+
62
+ ActiveRecordPostgresqlXverify.handle_if = ->(config) do
63
+ config[:host] == '127.0.0.1'
64
+ end
65
+ # Default: ->(_) { true }
66
+
67
+ ActiveRecordPostgresqlXverify.only_on_error = false
68
+ # Default: true
69
+
70
+ # CREATE DATABASE bookshelf;
71
+ # CREATE TABLE bookshelf.books (id INT PRIMARY KEY);
72
+ class Book < ActiveRecord::Base; end
73
+
74
+ Book.count
75
+ prev_process_id = Book.connection.query('select pg_backend_pid()').first.fetch(0)
76
+
77
+ ActiveRecord::Base.connection_handler.connection_pool_list.each(&:release_connection)
78
+
79
+ Book.count
80
+ curr_process_id = Book.connection.query('select pg_backend_pid()').first.fetch(0)
81
+
82
+ p curr_process_id == prev_process_id #=> false
83
+ ```
84
+
85
+ ## Rails configuration
86
+
87
+ In `config/environments/production.rb`:
88
+
89
+ ```ruby
90
+ ActiveRecordPostgresqlXverify.verify = ->(conn) do
91
+ ping = begin
92
+ conn.query 'SELECT 1'
93
+ true
94
+ rescue PG::Error
95
+ false
96
+ end
97
+
98
+ ping && conn.query('show transaction_read_only')
99
+ .first.fetch('transaction_read_only') == 'off'
100
+ end
101
+ # Same as below:
102
+ # ActiveRecordPostgresqlXverify.verify = ActiveRecordPostgresqlXverify::Verifiers::AURORA_MASTER
103
+ ```
104
+
105
+ ## Test
106
+
107
+ ```
108
+ bundle install
109
+ bundle exec appraisal install
110
+ docker-compose up -d
111
+ bundle exec appraisal ar52 rake
112
+ ```
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+ require 'rubocop/rake_task'
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
9
+ RuboCop::RakeTask.new do |task|
10
+ task.options = %w[-c .rubocop.yml]
11
+ end
12
+
13
+ task default: %i[rubocop spec]
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'active_record_postgresql_xverify/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'active_record_postgresql_xverify'
9
+ spec.version = ActiveRecordPostgresqlXverify::VERSION
10
+ spec.authors = ['winebarrel']
11
+ spec.email = ['sugawara@winebarrel.jp']
12
+
13
+ spec.summary = 'It is a library that performs extended verification when an error occurs when executing SQL.'
14
+ spec.description = 'It is a library that performs extended verification when an error occurs when executing SQL.'
15
+ spec.homepage = 'https://github.com/winebarrel/active_record_postgresql_xverify'
16
+ spec.license = 'MIT'
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.bindir = 'exe'
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ['lib']
26
+
27
+ spec.add_dependency 'activerecord'
28
+ spec.add_dependency 'pg'
29
+ spec.add_development_dependency 'appraisal'
30
+ spec.add_development_dependency 'bundler'
31
+ spec.add_development_dependency 'rake'
32
+ spec.add_development_dependency 'rspec', '~> 3.0'
33
+ spec.add_development_dependency 'rubocop'
34
+ end
data/bin/console ADDED
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'active_record_postgresql_xverify'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,8 @@
1
+ version: '3'
2
+ services:
3
+ mysql:
4
+ image: postgres:9.6
5
+ ports:
6
+ - 12345:5432
7
+ environment:
8
+ POSTGRES_PASSWORD: 'postgres'
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 4.2.10"
6
+ gem "pg", "~> 0.15"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.0.7"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.1.6"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 5.2.1"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'logger'
4
+ require 'active_support'
5
+ require 'active_record_postgresql_xverify/version'
6
+ require 'active_record_postgresql_xverify/constants'
7
+ require 'active_record_postgresql_xverify/logger'
8
+ require 'active_record_postgresql_xverify/utils'
9
+ require 'active_record_postgresql_xverify/config'
10
+ require 'active_record_postgresql_xverify/error_handler'
11
+ require 'active_record_postgresql_xverify/verifier'
12
+ require 'active_record_postgresql_xverify/verifiers/aurora_master'
13
+
14
+ ActiveSupport.on_load :active_record do
15
+ require 'active_record/connection_adapters/postgresql_adapter'
16
+ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend ActiveRecordPostgresqlXverify::ErrorHandler
17
+ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend ActiveRecordPostgresqlXverify::Verifier
18
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveRecordPostgresqlXverify
4
+ @config = {
5
+ handle_if: ->(_) { true },
6
+ only_on_error: true,
7
+ verify: lambda do |conn|
8
+ begin
9
+ conn.query 'SELECT 1'
10
+ true
11
+ rescue PG::Error
12
+ false
13
+ end
14
+ end,
15
+ }
16
+
17
+ class << self
18
+ def handle_if=(proc)
19
+ @config[:handle_if] = proc
20
+ end
21
+
22
+ def handle_if
23
+ @config.fetch(:handle_if)
24
+ end
25
+
26
+ def verify=(proc)
27
+ @config[:verify] = proc
28
+ end
29
+
30
+ def verify
31
+ @config.fetch(:verify)
32
+ end
33
+
34
+ def only_on_error=(bool)
35
+ @config[:only_on_error] = bool
36
+ end
37
+
38
+ def only_on_error
39
+ @config.fetch(:only_on_error)
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveRecordPostgresqlXverify
4
+ EXTEND_VERIFY_FLAG = "#{ActiveRecordPostgresqlXverify}_EXTEND_VERIFY_FLAG"
5
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveRecordPostgresqlXverify
4
+ module ErrorHandler
5
+ def execute(*)
6
+ super
7
+ rescue StandardError
8
+ _flag_extend_verify!
9
+ raise
10
+ end
11
+
12
+ def execute_and_clear(*)
13
+ super
14
+ rescue StandardError
15
+ _flag_extend_verify!
16
+ raise
17
+ end
18
+
19
+ def _flag_extend_verify!
20
+ Thread.current[ActiveRecordPostgresqlXverify::EXTEND_VERIFY_FLAG] = true
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveRecordPostgresqlXverify
4
+ class << self
5
+ def logger
6
+ @logger ||= if defined?(Rails)
7
+ Rails.logger || ActiveRecord::Base.logger || Logger.new($stderr)
8
+ else
9
+ ActiveRecord::Base.logger || Logger.new($stderr)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveRecordPostgresqlXverify
4
+ module Utils
5
+ class << self
6
+ def pg_connection_info(conn)
7
+ cih = conn.conninfo_hash
8
+ "host=#{cih[:host]}, database=#{cih[:dbname]}, username=#{cih[:user]}"
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveRecordPostgresqlXverify
4
+ module Verifier
5
+ def active?
6
+ if _extend_verify?
7
+ is_active = begin
8
+ verifier = ActiveRecordPostgresqlXverify.verify
9
+ verifier.call(@connection)
10
+ rescue StandardError => e
11
+ ActiveRecordPostgresqlXverify.logger.warn("Connection verification failed: #{_build_verify_error_message(e)}")
12
+ false
13
+ ensure
14
+ Thread.current[ActiveRecordPostgresqlXverify::EXTEND_VERIFY_FLAG] = false
15
+ end
16
+
17
+ unless is_active
18
+ ActiveRecordPostgresqlXverify.logger.info(
19
+ "Invalid connection: #{ActiveRecordPostgresqlXverify::Utils.pg_connection_info(@connection)}"
20
+ )
21
+ end
22
+
23
+ is_active
24
+ else
25
+ super
26
+ end
27
+ end
28
+
29
+ def _build_verify_error_message(e)
30
+ "cause: #{e.message} [#{e.class}, " + ActiveRecordPostgresqlXverify::Utils.pg_connection_info(@connection)
31
+ end
32
+
33
+ def _extend_verify?
34
+ handle_if = ActiveRecordPostgresqlXverify.handle_if
35
+ (Thread.current[ActiveRecordPostgresqlXverify::EXTEND_VERIFY_FLAG] || !ActiveRecordPostgresqlXverify.only_on_error) && handle_if.call(@config)
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveRecordPostgresqlXverify
4
+ module Verifiers
5
+ AURORA_MASTER = lambda do |conn|
6
+ ping = begin
7
+ conn.query 'SELECT 1'
8
+ true
9
+ rescue PG::Error
10
+ false
11
+ end
12
+
13
+ ping && conn.query('show transaction_read_only')
14
+ .first.fetch('transaction_read_only') == 'off'
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveRecordPostgresqlXverify
4
+ VERSION = '0.1.0'
5
+ end
metadata ADDED
@@ -0,0 +1,171 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_record_postgresql_xverify
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - winebarrel
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-06-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: pg
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: appraisal
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: It is a library that performs extended verification when an error occurs
112
+ when executing SQL.
113
+ email:
114
+ - sugawara@winebarrel.jp
115
+ executables: []
116
+ extensions: []
117
+ extra_rdoc_files: []
118
+ files:
119
+ - ".gitignore"
120
+ - ".rspec"
121
+ - ".rubocop.yml"
122
+ - ".travis.yml"
123
+ - Appraisals
124
+ - Gemfile
125
+ - LICENSE.txt
126
+ - README.md
127
+ - Rakefile
128
+ - active_record_postgresql_xverify.gemspec
129
+ - bin/console
130
+ - bin/setup
131
+ - docker-compose.yml
132
+ - gemfiles/.bundle/config
133
+ - gemfiles/ar42.gemfile
134
+ - gemfiles/ar50.gemfile
135
+ - gemfiles/ar51.gemfile
136
+ - gemfiles/ar52.gemfile
137
+ - lib/active_record_postgresql_xverify.rb
138
+ - lib/active_record_postgresql_xverify/config.rb
139
+ - lib/active_record_postgresql_xverify/constants.rb
140
+ - lib/active_record_postgresql_xverify/error_handler.rb
141
+ - lib/active_record_postgresql_xverify/logger.rb
142
+ - lib/active_record_postgresql_xverify/utils.rb
143
+ - lib/active_record_postgresql_xverify/verifier.rb
144
+ - lib/active_record_postgresql_xverify/verifiers/aurora_master.rb
145
+ - lib/active_record_postgresql_xverify/version.rb
146
+ homepage: https://github.com/winebarrel/active_record_postgresql_xverify
147
+ licenses:
148
+ - MIT
149
+ metadata: {}
150
+ post_install_message:
151
+ rdoc_options: []
152
+ require_paths:
153
+ - lib
154
+ required_ruby_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ required_rubygems_version: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ requirements: []
165
+ rubyforge_project:
166
+ rubygems_version: 2.7.6.2
167
+ signing_key:
168
+ specification_version: 4
169
+ summary: It is a library that performs extended verification when an error occurs
170
+ when executing SQL.
171
+ test_files: []