capistrano-cron 0.1.2 → 0.1.4

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
  SHA256:
3
- metadata.gz: 60b25f701480e517d7520903b802f80f272289e48331e87e6a9e933dbd11b964
4
- data.tar.gz: 971a3a1fb90f42ea9c401957fc538368edfb4aeedb52821e3b7736d4651844d8
3
+ metadata.gz: d0879736dbbfcc042a2f1e9a4dda09c4f838ff42312126119fbbc4555665028b
4
+ data.tar.gz: acab7fe09f6ef315d2b3856e3e1a9918b9d03604145deb327d096ad6ae0be0b5
5
5
  SHA512:
6
- metadata.gz: 20038c5d0cc153c391f8cc3ab40ddfa03e158e95c0b2edc6a69dbc4b5e6c3eef0d2e7a1ac11002aa58437cc8bdbbfcd8897fb751fd0760e9620c8671309d764c
7
- data.tar.gz: 4986f10b45647300d4bfb0dcd1742169206b88853745a8d44d325176e6774ed9a328b1d92ab64d431f12c94da8d161879e72361a2235c5e04aa9c7fadc74971e
6
+ metadata.gz: 0afea6aaa8d90ef525b166b909e7213ffec38177eb560415a51443fe78646cbba972aa48fc1ba6e776470778cce7ed690224045ae7660f5b1776d2267fbec587
7
+ data.tar.gz: 3d0a0da88402331f864781468f5a6fb67329b1906c148f3d2b44ab3cc55e83a4e209489fe08db95586003d6985830028b9b850b809d00a83bdbd2a203dfd465e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.4] - 2024-12-16
4
+
5
+ - Fixed error when no crontab for user
6
+
3
7
  ## [0.1.0] - 2024-11-05
4
8
 
5
9
  - Initial release
@@ -16,7 +16,7 @@ class Capistrano::Cron
16
16
  pre_set(options[:set])
17
17
  set(:bundle_command, options[:bundle_command]) if options[:bundle_command]
18
18
  set(:path, options[:path]) if options[:path]
19
- set(:environment, options[:environment]) if options[:environment]
19
+ set(:environment, options[:environment].to_s) if options[:environment]
20
20
  set(:environment_variable, "RAILS_ENV")
21
21
 
22
22
  @roles = options[:roles] || []
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  class Cron
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
@@ -48,6 +48,11 @@ module Capistrano
48
48
  # platform record seperator ($/)
49
49
  stripped_contents.gsub(/\s+$/, $/)
50
50
  end
51
+ rescue SSHKit::Command::Failed => e
52
+ # Detect if "no crontab for" is the only error message
53
+ return "" if e.message =~ /no crontab for/
54
+
55
+ raise e
51
56
  end
52
57
 
53
58
  def install_crontab(content)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-cron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codeur SAS
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-05 00:00:00.000000000 Z
11
+ date: 2024-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.3.26
87
+ rubygems_version: 3.5.22
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Capistrano plugin to manage cron jobs