uri_service 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: ea6881c7a5b2ef53d0c1ac66821ee4ea30820f46
4
- data.tar.gz: 56cc8b75b8756a3084a018e5d1cbe26b2fe8632e
3
+ metadata.gz: aa061d4a76679f11f545ef93aeeda1409d086a85
4
+ data.tar.gz: cda87cf20d8b71717fa36086a4706421c0c46cce
5
5
  SHA512:
6
- metadata.gz: 8ba7fd8de87e27a5d32f1c7ac4afebb58e05b0226adc7ddbcc9b1cc1f7783e835673c4c062cfecd554f51d7b7ae7a750d4f13740cece73f5d8c9bef62b8199cb
7
- data.tar.gz: c3e4f1f75f2083fbd9050eaaf7367c59a6afb36f1f1a9b01714d15710bd558d2d86a5e4108d99deea3db5b1da7fbe1eb09315d8f83d152381d3d5d8ed027b13d
6
+ metadata.gz: 9a3f1b9a03fac329bd363a9de844c2f485d4275609358349590c3aaa14c5081333366d7cf11bfba31b83a5660f8474df95818490ca9e3a73f23ea7a7ec88b5a5
7
+ data.tar.gz: d5862ddf5f8c2971cc9d63d2dce2702677e7c4011849f1ae3bc7546f95886a446f45ba0d17eba2d6e167558f5d2dc711505dc7e8de99b6328427beb40ad5b85c
data/lib/uri_service.rb CHANGED
@@ -21,7 +21,6 @@ module UriService
21
21
  end
22
22
 
23
23
  @client = UriService::Client.new(opts)
24
- @client.test_connection
25
24
  end
26
25
 
27
26
  def self.client
@@ -1,7 +1,14 @@
1
1
  class UriService::Railtie < Rails::Railtie
2
2
  initializer "uri_service_railtie.configure_rails_initialization" do
3
3
  UriService::init(YAML.load_file("#{Rails.root.to_s}/config/uri_service.yml")[Rails.env])
4
- UriService.client.test_connection
4
+
5
+ unless UriService.client.connected?
6
+ Rails.logger.error "Could not connect to UriService. Verify config in config/uri_service.yml file."
7
+ end
8
+
9
+ unless UriService.client.required_tables_exist?
10
+ Rails.logger.error "\n-----\nWARNING: Required UriService database tables not found. \n\nRun: bundle exec rake uri_service:db:setup" + "\n-----\n\n"
11
+ end
5
12
  end
6
13
 
7
14
  rake_tasks do
@@ -1,6 +1,6 @@
1
1
  module UriService
2
2
 
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
 
5
5
  def self.version
6
6
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric O'Hanlon