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 +4 -4
- data/lib/uri_service.rb +0 -1
- data/lib/uri_service/railtie.rb +8 -1
- data/lib/uri_service/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa061d4a76679f11f545ef93aeeda1409d086a85
|
|
4
|
+
data.tar.gz: cda87cf20d8b71717fa36086a4706421c0c46cce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a3f1b9a03fac329bd363a9de844c2f485d4275609358349590c3aaa14c5081333366d7cf11bfba31b83a5660f8474df95818490ca9e3a73f23ea7a7ec88b5a5
|
|
7
|
+
data.tar.gz: d5862ddf5f8c2971cc9d63d2dce2702677e7c4011849f1ae3bc7546f95886a446f45ba0d17eba2d6e167558f5d2dc711505dc7e8de99b6328427beb40ad5b85c
|
data/lib/uri_service.rb
CHANGED
data/lib/uri_service/railtie.rb
CHANGED
|
@@ -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
|
-
|
|
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
|
data/lib/uri_service/version.rb
CHANGED