web-connect-rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 476c2668e2b1d808d39fa3fa623d5280c0798fdc
4
- data.tar.gz: d4192369f9ecb8a5b0ebbc0cabac7c86f5928b9f
3
+ metadata.gz: e330d20fad2d7e32400e3f88725dda84f94c5e11
4
+ data.tar.gz: c63c2c0fd618a3a755000f2eaec937b164bc7c6a
5
5
  SHA512:
6
- metadata.gz: d2834f151d313b8fba1a16005f5ae23dc579d14c583a79e415e42743de81ed595788f9f387da7476e5553b0d9b48f954451326f8d3af5e1227b7a6493e2a0384
7
- data.tar.gz: a4a64c2d37b2344985036ea369ba892e833857a56a47dd61fa5ebd51c87e69226e4a8f228d706b18cc3b750fd71e6d268c1b8399aec58c1de70ab30fef034863
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
- raise 'To complete installation of WebConnect, run: rails generate web_connect:install'
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
 
@@ -1,7 +1,7 @@
1
1
  module Netfira
2
2
  module WebConnect
3
3
  module Rails
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web-connect-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neil E. Pearson