rails-informant 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16faeb72c06814dabbadb69db4a5489542d483ebd70187766c6eaf1539be8b6f
4
- data.tar.gz: 40878d54751a518f12efeaf1f96d05ba4cf4ac39dc8c8b7156b78c8cb8221db6
3
+ metadata.gz: 9cb09528a587e40da2aa7b66b56483f97953dcde9fd01e172009e859236b1b83
4
+ data.tar.gz: ad121656a0ae00abd63c49ffc26f493a0cd5d90412f68ef657ec63dbb2eddce6
5
5
  SHA512:
6
- metadata.gz: 13bb079ed6848afcadebf02f4001accd99c1b3e3b6cd4489be63feffadabbb0d13e649aee397d23b7937fe709c15e89527d6328fc88273d61618d7f161be4d00
7
- data.tar.gz: 1ba54693801646a38a22a504a90bf287172ca18403100f54492d114adaea06e49b0c3ff098b834833c9e69f00ef17bf906eedb77eda95d17a82fab42ae3af46a
6
+ metadata.gz: 9b449febb753c029ac0905a9a9af076039e3b008be77bfe2f444fbabadfb1ca9c4b66e19165c618d326fa78f70bda1cd8e284c0a052425a69cdea13e8aa5b9a8
7
+ data.tar.gz: dd18b3b3e42d3551c08dc23bfe68e0f497e7b373713985e7fea8f569b5c352d263491e7ea98967d596cb6748530a702d03289936e5cc50a1a5fe2d22aaba7a66
@@ -1,3 +1,3 @@
1
1
  module RailsInformant
2
- VERSION = File.read(File.expand_path("../../../VERSION", __FILE__)).strip
2
+ VERSION = ENV.fetch("RAILS_INFORMANT_VERSION", "0.0.0.dev")
3
3
  end
@@ -83,8 +83,8 @@ module RailsInformant
83
83
  def initialized?
84
84
  return @_initialized if defined?(@_initialized) && @_initialized
85
85
 
86
- @_initialized = capture_errors && defined?(ActiveRecord::Base) && ActiveRecord::Base.connection_pool.connected?
87
- rescue ActiveRecord::ConnectionNotEstablished
86
+ @_initialized = capture_errors && defined?(ActiveRecord::Base) && ActiveRecord::Base.connection_pool.with_connection { true }
87
+ rescue ActiveRecord::ConnectionNotEstablished, ActiveRecord::NoDatabaseError
88
88
  false
89
89
  end
90
90
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-informant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel López Prat
@@ -92,7 +92,6 @@ files:
92
92
  - LICENSE
93
93
  - README.md
94
94
  - Rakefile
95
- - VERSION
96
95
  - app/controllers/rails_informant/api/base_controller.rb
97
96
  - app/controllers/rails_informant/api/errors_controller.rb
98
97
  - app/controllers/rails_informant/api/occurrences_controller.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.0.4