activerecord-postgresql-auto-reconnect 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d0d3fa306a4db78879674550bf04e1e4371d9932581cfb0693108189e13a7d4b
4
+ data.tar.gz: f841a092c724998e505357a1464daeee86f9bee8601927553e60982a31d9b475
5
+ SHA512:
6
+ metadata.gz: 2691a5f0ac656c194497dc00c66436a69790c814498ce875bb1ad89ecf3ef3343f64e6e97827d5e0ff4794ce676f60dcf2b58b462353a21e062d416d70cd4a6f
7
+ data.tar.gz: 2620e02fd497db22c7f71d61e25ce6fab6dfdd71d05c2ed1e09c84074423b2245abddebd79e533acbc9f124af65aa3004d2506072c67db84f651dc791d990400
@@ -0,0 +1,67 @@
1
+ version: 2
2
+
3
+ template:
4
+ restore-bundle: &restore-bundle
5
+ restore_cache:
6
+ name: Restore bundled gem
7
+ key: gem-bundle-v1-{{ checksum "Gemfile.lock" }}
8
+ save-bundle: &save-bundle
9
+ save_cache:
10
+ name: Save bundled gem
11
+ key: gem-bundle-v1-{{ checksum "Gemfile.lock" }}
12
+ paths:
13
+ - ./vendor/bundle
14
+ - /usr/local/bundle/config
15
+
16
+ jobs:
17
+ build: &containerized
18
+ docker:
19
+ - image: circleci/ruby:2.6.0
20
+ environment:
21
+ - REDIS_DEFAULT: redis://127.0.0.1:6379
22
+ - PGHOST: 127.0.0.1
23
+ - PGUSER: root
24
+ - image: redis:3.2
25
+ - image: circleci/postgres:10.3-alpine-ram
26
+ environment:
27
+ POSTGRES_USER: circleci
28
+ POSTGRES_DB: postgre_auto_reconnect_test
29
+ POSTGRES_PASSWORD: ""
30
+
31
+ working_directory: ~/repo
32
+
33
+ steps:
34
+ - checkout
35
+ - <<: *restore-bundle
36
+ - run:
37
+ name: install dependencies
38
+ command: |
39
+ gem install bundler:2.1.4
40
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
41
+ - <<: *save-bundle
42
+
43
+ - run: dockerize -wait tcp://localhost:6379 -timeout 5s
44
+
45
+ - run: dockerize -wait tcp://localhost:5432 -timeout 1m
46
+
47
+ - run:
48
+ name: run tests
49
+ command: |
50
+ mkdir /tmp/test-results
51
+ bundle exec rspec --format progress \
52
+ --format RspecJunitFormatter \
53
+ --out /tmp/test-results/rspec.xml \
54
+ --format progress \
55
+ $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
56
+ # collect reports
57
+ - store_test_results:
58
+ path: /tmp/test-results
59
+ - store_artifacts:
60
+ path: /tmp/test-results
61
+ destination: test-results
62
+
63
+ workflows:
64
+ version: 2
65
+ build:
66
+ jobs:
67
+ - build
@@ -0,0 +1,3 @@
1
+ POSTGRES_USER: "postgres"
2
+ POSTGRES_DB: ""
3
+ POSTGRES_PASSWORD: ""
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ .env
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.4.5
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at vutungtn95@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in activerecord-postgresql-auto-reconnect.gemspec
4
+ gemspec
@@ -0,0 +1,76 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ activerecord-postgresql-auto-reconnect (0.1.0)
5
+ activerecord
6
+ pg
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (5.2.4.1)
12
+ activesupport (= 5.2.4.1)
13
+ activerecord (5.2.4.1)
14
+ activemodel (= 5.2.4.1)
15
+ activesupport (= 5.2.4.1)
16
+ arel (>= 9.0)
17
+ activesupport (5.2.4.1)
18
+ concurrent-ruby (~> 1.0, >= 1.0.2)
19
+ i18n (>= 0.7, < 2)
20
+ minitest (~> 5.1)
21
+ tzinfo (~> 1.1)
22
+ arel (9.0.0)
23
+ coderay (1.1.2)
24
+ concurrent-ruby (1.1.6)
25
+ diff-lcs (1.3)
26
+ dotenv (2.0.2)
27
+ httplog (1.4.2)
28
+ rack (>= 1.0)
29
+ rainbow (>= 2.0.0)
30
+ i18n (1.8.2)
31
+ concurrent-ruby (~> 1.0)
32
+ method_source (0.9.2)
33
+ minitest (5.14.0)
34
+ pg (1.2.2)
35
+ pry (0.12.2)
36
+ coderay (~> 1.1.0)
37
+ method_source (~> 0.9.0)
38
+ rack (2.2.2)
39
+ rainbow (3.0.0)
40
+ rake (12.3.3)
41
+ rspec (3.9.0)
42
+ rspec-core (~> 3.9.0)
43
+ rspec-expectations (~> 3.9.0)
44
+ rspec-mocks (~> 3.9.0)
45
+ rspec-core (3.9.1)
46
+ rspec-support (~> 3.9.1)
47
+ rspec-expectations (3.9.1)
48
+ diff-lcs (>= 1.2.0, < 2.0)
49
+ rspec-support (~> 3.9.0)
50
+ rspec-mocks (3.9.1)
51
+ diff-lcs (>= 1.2.0, < 2.0)
52
+ rspec-support (~> 3.9.0)
53
+ rspec-support (3.9.2)
54
+ rspec_junit_formatter (0.4.1)
55
+ rspec-core (>= 2, < 4, != 2.12.0)
56
+ thor (1.0.1)
57
+ thread_safe (0.3.6)
58
+ tzinfo (1.2.6)
59
+ thread_safe (~> 0.1)
60
+
61
+ PLATFORMS
62
+ ruby
63
+
64
+ DEPENDENCIES
65
+ activerecord-postgresql-auto-reconnect!
66
+ bundler (~> 2.1.4)
67
+ dotenv (~> 2.0.0)
68
+ httplog
69
+ pry
70
+ rake (~> 12.0)
71
+ rspec
72
+ rspec_junit_formatter
73
+ thor
74
+
75
+ BUNDLED WITH
76
+ 2.1.4
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Tung
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.
@@ -0,0 +1,44 @@
1
+ # Activerecord::Postgresql::Auto::Reconnect
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/activerecord/postgresql/auto/reconnect`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'activerecord-postgresql-auto-reconnect'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install activerecord-postgresql-auto-reconnect
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/activerecord-postgresql-auto-reconnect. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/activerecord-postgresql-auto-reconnect/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
41
+
42
+ ## Code of Conduct
43
+
44
+ Everyone interacting in the Activerecord::Postgresql::Auto::Reconnect project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/activerecord-postgresql-auto-reconnect/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
@@ -0,0 +1,32 @@
1
+ require_relative "lib/activerecord-postgresql-auto-reconnect/version"
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "activerecord-postgresql-auto-reconnect"
5
+ spec.version = ActiverecordPostgresqlAutoReconnect::VERSION
6
+ spec.authors = ["Tung Vu"]
7
+ spec.email = ["vutungtn95@gmail.com"]
8
+
9
+ spec.summary = "Auto recover when database restart within remitano system"
10
+ spec.description = "Auto recover when database restart within remitano system"
11
+ spec.homepage = ""
12
+ spec.license = "MIT"
13
+
14
+ # Specify which files should be added to the gem when it is released.
15
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "activerecord"
22
+ spec.add_dependency "pg"
23
+
24
+ spec.add_development_dependency "bundler", "~> 2.1.4"
25
+ spec.add_development_dependency("dotenv", ["~> 2.0.0"])
26
+ spec.add_development_dependency("httplog")
27
+ spec.add_development_dependency("pry")
28
+ spec.add_development_dependency "rake", "~> 12.0"
29
+ spec.add_development_dependency("rspec", [">= 0"])
30
+ spec.add_development_dependency("rspec_junit_formatter")
31
+ spec.add_development_dependency("thor")
32
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'activerecord/postgresql/auto/reconnect'
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require 'irb'
14
+ IRB.start(__FILE__)
@@ -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,18 @@
1
+ require 'active_record'
2
+ require 'active_record/connection_adapters/postgresql_adapter'
3
+
4
+ module ActiverecordPostgresqlAutoReconnect
5
+ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.class_eval do
6
+ def exec_no_cache_with_reconnect(*args)
7
+ exec_no_cache_without_reconnect(*args)
8
+ rescue ActiveRecord::StatementInvalid => e
9
+ if e.to_s.include?('PG::ConnectionBad')
10
+ ActiveRecord::Base.connection_pool.disconnect!
11
+ end
12
+ raise e
13
+ end
14
+
15
+ alias_method :exec_no_cache_without_reconnect, :exec_no_cache
16
+ alias_method :exec_no_cache, :exec_no_cache_with_reconnect
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ module ActiverecordPostgresqlAutoReconnect
2
+ VERSION = '0.1.0'.freeze
3
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe ActiverecordPostgresqlAutoReconnect do
6
+ describe 'postgresql server restarted' do
7
+ it 'resets connection pool' do
8
+ ActiveRecord::Base.establish_connection(
9
+ host: 'localhost',
10
+ port: '5432',
11
+ username: ENV['POSTGRES_USER'],
12
+ password: ENV['POSTGRES_PASSWORD'],
13
+ database: ENV['POSTGRES_DB'],
14
+ adapter: 'postgresql'
15
+ )
16
+ allow_any_instance_of(PG::Connection).to receive(:exec_params).and_raise(
17
+ ActiveRecord::StatementInvalid.new('PG::ConnectionBad')
18
+ )
19
+ expect(ActiveRecord::Base.connection_pool).to receive(:disconnect!)
20
+ expect do
21
+ ActiveRecord::Base.connection.execute('SELECT * FROM information_schema.columns')
22
+ end.to raise_error(ActiveRecord::StatementInvalid)
23
+
24
+ allow_any_instance_of(PG::Connection).to receive(:exec_params).and_call_original
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,23 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require 'dotenv'
4
+ require 'pry'
5
+ require 'activerecord-postgresql-auto-reconnect/reconnect'
6
+
7
+ Dotenv.load
8
+
9
+ # Requires supporting ruby files with custom matchers and macros, etc,
10
+ # in spec/support/ and its subdirectories.
11
+ Dir[File.expand_path('./spec/support/**/*.rb')].each { |f| require f }
12
+
13
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
14
+ RSpec.configure do |config|
15
+ config.run_all_when_everything_filtered = true
16
+ config.filter_run :focus
17
+
18
+ # Run specs in random order to surface order dependencies. If you find an
19
+ # order dependency and want to debug it, you can fix the order by providing
20
+ # the seed, which is printed after each run.
21
+ # --seed 1234
22
+ config.order = 'random'
23
+ end
metadata ADDED
@@ -0,0 +1,206 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activerecord-postgresql-auto-reconnect
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Tung Vu
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-03-19 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: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.1.4
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.1.4
55
+ - !ruby/object:Gem::Dependency
56
+ name: dotenv
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.0.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: httplog
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: pry
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '12.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '12.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec_junit_formatter
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: thor
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Auto recover when database restart within remitano system
154
+ email:
155
+ - vutungtn95@gmail.com
156
+ executables:
157
+ - console
158
+ - setup
159
+ extensions: []
160
+ extra_rdoc_files: []
161
+ files:
162
+ - ".circleci/config.yml"
163
+ - ".env.example"
164
+ - ".gitignore"
165
+ - ".rspec"
166
+ - ".travis.yml"
167
+ - CODE_OF_CONDUCT.md
168
+ - Gemfile
169
+ - Gemfile.lock
170
+ - LICENSE.txt
171
+ - README.md
172
+ - Rakefile
173
+ - activerecord-postgresql-auto-reconnect.gemspec
174
+ - bin/console
175
+ - bin/setup
176
+ - lib/activerecord-postgresql-auto-reconnect/reconnect.rb
177
+ - lib/activerecord-postgresql-auto-reconnect/version.rb
178
+ - spec/activerecord-postgresql-auto-reconnect/reconnect_spec.rb
179
+ - spec/spec_helper.rb
180
+ homepage: ''
181
+ licenses:
182
+ - MIT
183
+ metadata: {}
184
+ post_install_message:
185
+ rdoc_options: []
186
+ require_paths:
187
+ - lib
188
+ required_ruby_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ required_rubygems_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ requirements: []
199
+ rubyforge_project:
200
+ rubygems_version: 2.7.8
201
+ signing_key:
202
+ specification_version: 4
203
+ summary: Auto recover when database restart within remitano system
204
+ test_files:
205
+ - spec/activerecord-postgresql-auto-reconnect/reconnect_spec.rb
206
+ - spec/spec_helper.rb