capobvious 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,6 +62,15 @@ Capistrano::Configuration.instance.load do
62
62
  set :del_backup, true
63
63
 
64
64
 
65
+ def gem_use?(name)
66
+ gemfile_lock = File.read("Gemfile.lock")
67
+ return (gemfile_lock =~ /^\s*delayed_job\s+\(/)? true : false
68
+ end
69
+
70
+ if gem_use?('delayed_job')
71
+ logger.important("delayed_job set to true")
72
+ set :delayed_job, true
73
+ end
65
74
 
66
75
  #after "deploy:symlink", "auto:run"
67
76
  #after "deploy:setup", "db:create", "nginx:conf", "install:p7zip"
@@ -1,3 +1,3 @@
1
1
  module Capobvious
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capobvious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-21 00:00:00.000000000 Z
12
+ date: 2012-08-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano