-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCHANGELOG
75 lines (54 loc) · 2.53 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#########################
# What's new in v. 1.0? #
#########################
Nothing, really. It was just time for the 1.0 release. The only difference with v.0.3 is that RubyCron now depends on mail ">= 2.6.3".
#########################
# What's new in v. 0.3? #
#########################
* A :debug option that, when true, enables verbose output and disables sending mail.
* Improved exiton handling.
* A stacktrace for errors that were not handled by the RubyCronJob itself, but were caught by RubyCron instead. Allows for easier debugging.
* An info method that adds [INFO ] statements to the report (for when you want output that isn't classified as a warning or an error).
#########################
# What's new in v. 0.2? #
#########################
* Modified initialize method to accept a hash. To initialize, do:
rcj = RubyCronJob.new(
:author => 'John Doe',
:name => 'test',
:mailto => '[email protected]',
:mailfrom => '[email protected]' )
This is now the preferred way of initialization. Initialization with a block is deprecated, but
still works for backward compatibility.
* Configuration hashes can be stored as yaml files for convenience. For instance, this works:
rcj = RubyCronJob.new( :configfile => "my_config_file.yml" )
Or this:
rcj = RubyCronJob.new( :configurl => "http://www.foo.bar/my_config.yml")
Or even a combination:
rcj = RubyCronJob.new( :configfile => "my_config_file.yml",
:configurl => "http://www.foo.bar/my_config.yml",
:author => 'John Doe' )
Note that the values of the directives specified within the RubyCronJob itself will take precedence over
the file or url directives.
* Added a smtpsettings directive to pass smtp options to the mail gem. You can now do the following:
smtpsettings = { :address => "smtp.gmail.com",
:port => 587,
:domain => 'your.host.name',
:user_name => '<username>',
:password => '<password>',
:authentication => 'plain',
:enable_starttls_auto => true }
rcj = RubyCronJob.new(
:author => 'John Doe',
:name => 'test',
:mailto => '[email protected]',
:mailfrom => '[email protected]',
:smtpsettings => smtpsettings )
* Added a template directive for using a custom ERB template:
rcj = RubyCronJob.new(
:author => 'John Doe',
:name => 'test',
:mailto => '[email protected]',
:mailfrom => '[email protected]',
:template => 'my_template.erb' )
From inside the ERB template (my_template.erb in the above example) you have access to the @warnings and @errors arrays.