pg_reconnect 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 214d0335f0e8e5eae0b28f8ed0a854c0b17c16ff
4
+ data.tar.gz: 0ec2a3b8b461325b85055f193acec58eb0e63b58
5
+ SHA512:
6
+ metadata.gz: ab74c6f78e11bf7407707f24bda221ad490d0528622b2727916bd65052abaea978a98446a94eeb4d5ab4a534a36aa56921ab647ed0404358293fc4336aba0160
7
+ data.tar.gz: e1e3baeef66a68ede89ac8ba5fc85242c58f097700ef9f6d4caed6501e9c6e86727a5be529e78e229bfd548c9cb964ac95ebbf822394fe8e957d60eebc4fff71
@@ -16,7 +16,7 @@ class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
16
16
  if @retry_counter < MAX_QUERY_RETRIES
17
17
  @retry_counter += 1
18
18
  reconnect! rescue nil
19
- retry
19
+ retry if active?
20
20
  end
21
21
  end
22
22
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "pg_reconnect"
7
- gem.version = "0.1.3"
7
+ gem.version = "0.1.4"
8
8
  gem.authors = ["'Konstantin Makarchev'"]
9
9
  gem.email = ["'kostya27@gmail.com'"]
10
10
  gem.description = %q{ActiveRecord PostgreSQL auto-reconnection, works with 2.3 and 3.2 rails.}
metadata CHANGED
@@ -1,62 +1,51 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pg_reconnect
3
- version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 3
10
- version: 0.1.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - "'Konstantin Makarchev'"
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2014-04-17 00:00:00 +04:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- version_requirements: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 7
29
- segments:
30
- - 2
31
- version: "2"
32
- requirement: *id001
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
33
14
  name: activerecord
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
34
20
  type: :runtime
35
- - !ruby/object:Gem::Dependency
36
21
  prerelease: false
37
- version_requirements: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
40
24
  - - ">="
41
- - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
- version: "0"
46
- requirement: *id002
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
27
+ - !ruby/object:Gem::Dependency
47
28
  name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
48
34
  type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
49
41
  description: ActiveRecord PostgreSQL auto-reconnection, works with 2.3 and 3.2 rails.
50
- email:
42
+ email:
51
43
  - "'kostya27@gmail.com'"
52
44
  executables: []
53
-
54
45
  extensions: []
55
-
56
46
  extra_rdoc_files: []
57
-
58
- files:
59
- - .gitignore
47
+ files:
48
+ - ".gitignore"
60
49
  - Gemfile
61
50
  - LICENSE.txt
62
51
  - README.md
@@ -66,39 +55,29 @@ files:
66
55
  - lib/pg_reconnect/ar3.rb
67
56
  - lib/pg_reconnect/ar_extend.rb
68
57
  - pg_reconnect.gemspec
69
- has_rdoc: true
70
- homepage: ""
58
+ homepage: ''
71
59
  licenses: []
72
-
60
+ metadata: {}
73
61
  post_install_message:
74
62
  rdoc_options: []
75
-
76
- require_paths:
63
+ require_paths:
77
64
  - lib
78
- required_ruby_version: !ruby/object:Gem::Requirement
79
- none: false
80
- requirements:
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ requirements:
81
67
  - - ">="
82
- - !ruby/object:Gem::Version
83
- hash: 3
84
- segments:
85
- - 0
86
- version: "0"
87
- required_rubygems_version: !ruby/object:Gem::Requirement
88
- none: false
89
- requirements:
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
71
+ requirements:
90
72
  - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: 3
93
- segments:
94
- - 0
95
- version: "0"
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
96
75
  requirements: []
97
-
98
76
  rubyforge_project:
99
- rubygems_version: 1.4.2
77
+ rubygems_version: 2.4.7
100
78
  signing_key:
101
- specification_version: 3
102
- summary: ActiveRecord PostgreSQL auto-reconnection, works with 2.3 and 3.2 rails. Uses hackety wrapper on adapter execute. Ideal for using with pgbouncer and large number of almost idle connections (in threads).
79
+ specification_version: 4
80
+ summary: ActiveRecord PostgreSQL auto-reconnection, works with 2.3 and 3.2 rails.
81
+ Uses hackety wrapper on adapter execute. Ideal for using with pgbouncer and large
82
+ number of almost idle connections (in threads).
103
83
  test_files: []
104
-