sidekiq-runner 0.1.0 → 0.1.1

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: b5de59dc4e82d9a2d46284bd830bf441e17fb44f
4
- data.tar.gz: 00be61f61b236d56844378de4370b356bebde65a
3
+ metadata.gz: 4b7fa70811b720ebc2ab7a34f674df39ce1f2816
4
+ data.tar.gz: 61bbd1e7ba1e5b094f0b0b4dd3b9b8f2cef8cde9
5
5
  SHA512:
6
- metadata.gz: 9738ed04dd491a0176e586df1537a78c8300423be76306c3f566239e92fdd1c4634ea49b85932e1f4b8592a27f3f664f3f57a03cb8b93f4981a3c337680e067a
7
- data.tar.gz: 3ba4a7a8268edd6f85631221ced39e9a9921b1c53cf5d9559cbdc75a04ca8146194f405370b1388b9bc5863b1d6fbb68e2f2fd32883756a0bbabd55fd6fe5a95
6
+ metadata.gz: 1e15d46d709d85d15832e1595a0601ffc77c7cc60b71dda140a5d92fa9d2644252c46f84e04e594f9880799f6680a9c0b68b00ba5455c5370479eaa6de1a6f7d
7
+ data.tar.gz: 9728647c72592024dba383849ded7f4ed3dc658ceb28cb09b944a7926f9314d0518422441b06a12e7dcb3690b009ec2363b546bb6ec746bf5d5c1edbaa29e211
@@ -23,7 +23,7 @@ sidekiq_config.each do |name, skiq|
23
23
 
24
24
  # Working directory has to be set properly.
25
25
  # Be aware that by default, God sets the working directory to / (root dir).
26
- w.dir = skiq.chdir || Rails.root || Dir.pwd
26
+ w.dir = skiq.chdir || (defined?(Rails) ? Rails.root : Dir.pwd)
27
27
 
28
28
  # Determine the state on startup.
29
29
  # If process is running move to 'up' state, otherwise move to 'start' state.
@@ -65,7 +65,7 @@ module SidekiqRunner
65
65
  cmd << "-P #{pidfile}"
66
66
  cmd << "-e #{Rails.env}" if defined?(Rails)
67
67
  cmd << "-r #{requirefile}" if requirefile
68
- cmd << "-g #{tag}"
68
+ cmd << "-g '#{tag}'"
69
69
 
70
70
  queues.each do |q, w|
71
71
  cmd << "-q #{q},#{w.to_s}"
@@ -1,3 +1,3 @@
1
1
  module SidekiqRunner
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - FlavourSys Technology GmbH