crontab_rb 0.2.0 → 0.2.1

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: 65c278bcd55709539e1dd44c32586b83dc6675b6
4
- data.tar.gz: 6fe08b678086ca5fd6fb2e510f141919d8e96f32
3
+ metadata.gz: 90295009745221e88388bc43c9412b57f01ac563
4
+ data.tar.gz: 893850a83ed362887a1cd3ad2418816bdf95dd87
5
5
  SHA512:
6
- metadata.gz: baaf3561948a48335d927d85e4f811b803ae24316213da1234f1124c705ccfbe2cdf66271503974f471e3018640714523152288932f71debf06f70925cb538c6
7
- data.tar.gz: 91ee610bab6525da0843f97a51110269d8a2d70bf51c68f0f47ff9cead2d0318169dda79dbe33ce1912e89b9b5b78e8b5fe62cade25dfb96c4250bee96e84693
6
+ metadata.gz: d66381416963cb2535d4f8fbe328bce0d3c9011081028898441ff2db3fbefaca2818bcf012033c6130268a8d21f8d10c8e9affceae3dd91d4af456e866d40ef8
7
+ data.tar.gz: e1727aadc3daed1765517c82e2d72b28e4735db10868ad9eaec7e24b230b84923461ca263d08a3cfca797ca6159da7dde7df8c519976742747563f1d7f8a7e5f
data/lib/crontab_rb.rb CHANGED
@@ -5,11 +5,11 @@ module CrontabRb
5
5
  class << self
6
6
  attr_accessor :configuration
7
7
  end
8
-
8
+
9
9
  def self.configuration
10
10
  @configuration ||= Configuration.new
11
11
  end
12
-
12
+
13
13
  def self.configure
14
14
  yield(configuration)
15
15
  end
@@ -20,4 +20,3 @@ require "crontab_rb/template"
20
20
  require "crontab_rb/parse"
21
21
  require "crontab_rb/write"
22
22
  require "crontab_rb/cron"
23
-
@@ -6,4 +6,4 @@ module CrontabRb
6
6
  @path_storage = "#{Dir.home}/.crontab_rb/"
7
7
  end
8
8
  end
9
- end
9
+ end
@@ -5,7 +5,7 @@ module CrontabRb
5
5
  end
6
6
 
7
7
  def initialize
8
- @job_template = ":time /bin/bash -l -c 'cd :path && bundle exec bin/rails runner ':command''"
8
+ @job_template = ":time /bin/bash -l -c 'cd :path && bundle exec bin/rails runner -e #{Rails.env} ':command''"
9
9
  @path = Dir.pwd
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module CrontabRb
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crontab_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nguyen Anh