web-connect-rails 0.1.2 → 0.1.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e330d20fad2d7e32400e3f88725dda84f94c5e11
|
|
4
|
+
data.tar.gz: c63c2c0fd618a3a755000f2eaec937b164bc7c6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15cc3d7f0fb2d821ed5f23fbca7fe43afc609cf2fd4cadd1da2834e1a1d8f93455c8787f19ac788cd21633f17e658db3b2547374a6c7b4f54bd292a0ebbf9e4f
|
|
7
|
+
data.tar.gz: e9f24d79ca9de4e124ce6103da7b08b32821c288b4c5c0ff6c63783ca253b8964659e963783e37b06cea50b4519bbbdc936ec55a239d0ab6fddd44c188f4f191
|
|
@@ -8,7 +8,11 @@ module Netfira::WebConnect::Rails
|
|
|
8
8
|
begin
|
|
9
9
|
require Rails.root + 'config/initializers/web_connect'
|
|
10
10
|
rescue LoadError
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
# If there's no initializer, leave things along if Rails isn't running as a server.
|
|
13
|
+
# This will give `rails generate` a chance to succeed.
|
|
14
|
+
return unless caller.grep(/\bconfig\.ru\b/).any?
|
|
15
|
+
raise 'To complete installation of WebConnect, run `rails generate web_connect:install`'
|
|
12
16
|
end
|
|
13
17
|
|
|
14
18
|
# Add additional configuration to the web-connect gem
|
|
@@ -30,7 +34,7 @@ module Netfira::WebConnect::Rails
|
|
|
30
34
|
|
|
31
35
|
# Ensure database is properly migrated, except when running rake tasks
|
|
32
36
|
if File.basename($0) != 'rake' && Netfira::WebConnect.needs_migration?
|
|
33
|
-
raise 'WebConnect has pending database migrations. Please run rake wc:migrate'
|
|
37
|
+
raise 'WebConnect has pending database migrations. Please run `rake wc:migrate`'
|
|
34
38
|
end
|
|
35
39
|
end
|
|
36
40
|
|