ruport-util 0.7.0 → 0.7.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.
- data/Rakefile +2 -1
- data/lib/ruport/util.rb +1 -1
- data/lib/ruport/util/mailer.rb +1 -22
- metadata +33 -24
data/Rakefile
CHANGED
@@ -33,7 +33,7 @@ end
|
|
33
33
|
|
34
34
|
spec = Gem::Specification.new do |spec|
|
35
35
|
spec.name = "ruport-util"
|
36
|
-
spec.version = "0.7.
|
36
|
+
spec.version = "0.7.1"
|
37
37
|
spec.platform = Gem::Platform::RUBY
|
38
38
|
spec.summary = "A set of tools and helper libs for Ruby Reports"
|
39
39
|
spec.files = Dir.glob("{example,lib,test,bin}/**/**/*") +
|
@@ -51,6 +51,7 @@ spec = Gem::Specification.new do |spec|
|
|
51
51
|
spec.add_dependency('ruport', ">=0.11.0")
|
52
52
|
spec.add_dependency('scruffy', ">=0.2.2")
|
53
53
|
spec.add_dependency('mailfactory',">=1.2.3")
|
54
|
+
spec.add_dependency('rubyzip','>=0.9.1')
|
54
55
|
spec.author = "Gregory Brown"
|
55
56
|
spec.email = " gregory.t.brown@gmail.com"
|
56
57
|
spec.rubyforge_project = "ruport"
|
data/lib/ruport/util.rb
CHANGED
data/lib/ruport/util/mailer.rb
CHANGED
@@ -15,27 +15,6 @@ module Ruport
|
|
15
15
|
# This class uses SMTP to provide a simple mail sending mechanism.
|
16
16
|
# It also uses MailFactory to provide attachment and HTML email support.
|
17
17
|
#
|
18
|
-
# === Example
|
19
|
-
#
|
20
|
-
# Here is a simple example of a message which attaches a README file:
|
21
|
-
#
|
22
|
-
# require "ruport"
|
23
|
-
#
|
24
|
-
# Ruport.configure do |config|
|
25
|
-
# config.mailer :default,
|
26
|
-
# :host => "mail.adelphia.net",
|
27
|
-
# :address => "gregory.t.brown@gmail.com"
|
28
|
-
# end
|
29
|
-
#
|
30
|
-
# mailer = Ruport::Mailer.new
|
31
|
-
#
|
32
|
-
# mailer.attach "README"
|
33
|
-
#
|
34
|
-
# mailer.deliver :to => "gregory.t.brown@gmail.com",
|
35
|
-
# :from => "gregory.t.brown@gmail.com",
|
36
|
-
# :subject => "Hey there",
|
37
|
-
# :text => "This is what you asked for"
|
38
|
-
#
|
39
18
|
class Mailer
|
40
19
|
|
41
20
|
class InvalidMailerConfigurationError < RuntimeError #:nodoc:
|
@@ -64,7 +43,7 @@ module Ruport
|
|
64
43
|
|
65
44
|
class << self
|
66
45
|
# :call-seq:
|
67
|
-
#
|
46
|
+
# add_mailer(mailer_name, options)
|
68
47
|
#
|
69
48
|
# Creates or retrieves a mailer configuration. Available options:
|
70
49
|
# <b><tt>:host</tt></b>:: The SMTP host to use.
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ruport-util
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.7.
|
6
|
+
version: 0.7.1
|
7
7
|
date: 2007-06-07 00:00:00 -04:00
|
8
8
|
summary: A set of tools and helper libs for Ruby Reports
|
9
9
|
require_paths:
|
@@ -30,50 +30,50 @@ authors:
|
|
30
30
|
- Gregory Brown
|
31
31
|
files:
|
32
32
|
- example/data
|
33
|
-
- example/data/blank.ods
|
34
|
-
- example/mailer.rb
|
35
33
|
- example/form.rb
|
36
|
-
- example/
|
34
|
+
- example/graph_report.rb
|
37
35
|
- example/invoice_report.rb
|
36
|
+
- example/mailer.rb
|
38
37
|
- example/managed_report.rb
|
39
|
-
- example/
|
38
|
+
- example/ods.rb
|
39
|
+
- example/data/blank.ods
|
40
40
|
- lib/ruport
|
41
41
|
- lib/ruport/util
|
42
|
-
- lib/ruport/util
|
43
|
-
- lib/ruport/util/pdf/form.rb
|
44
|
-
- lib/ruport/util/generator.rb
|
42
|
+
- lib/ruport/util.rb
|
45
43
|
- lib/ruport/util/bench.rb
|
44
|
+
- lib/ruport/util/generator.rb
|
46
45
|
- lib/ruport/util/graph.rb
|
47
|
-
- lib/ruport/util/
|
48
|
-
- lib/ruport/util/report_manager.rb
|
46
|
+
- lib/ruport/util/invoice.rb
|
49
47
|
- lib/ruport/util/mailer.rb
|
48
|
+
- lib/ruport/util/ods.rb
|
49
|
+
- lib/ruport/util/pdf
|
50
50
|
- lib/ruport/util/report.rb
|
51
|
-
- lib/ruport/util/
|
52
|
-
- lib/ruport/util.rb
|
51
|
+
- lib/ruport/util/report_manager.rb
|
52
|
+
- lib/ruport/util/pdf/form.rb
|
53
53
|
- test/helper
|
54
|
+
- test/helper.rb
|
55
|
+
- test/samples
|
56
|
+
- test/test_format_ods.rb
|
57
|
+
- test/test_graph_renderer.rb
|
58
|
+
- test/test_invoice.rb
|
59
|
+
- test/test_mailer.rb
|
60
|
+
- test/test_report.rb
|
61
|
+
- test/test_report_manager.rb
|
54
62
|
- test/helper/layout.rb
|
55
63
|
- test/helper/wrap.rb
|
56
|
-
- test/samples
|
57
64
|
- test/samples/data.csv
|
58
65
|
- test/samples/foo.rtxt
|
59
|
-
- test/test_mailer.rb
|
60
|
-
- test/helper.rb
|
61
|
-
- test/test_report_manager.rb
|
62
|
-
- test/test_graph_renderer.rb
|
63
|
-
- test/test_report.rb
|
64
|
-
- test/test_invoice.rb
|
65
|
-
- test/test_format_ods.rb
|
66
66
|
- bin/csv2ods
|
67
67
|
- bin/rope
|
68
68
|
- Rakefile
|
69
69
|
- INSTALL
|
70
70
|
test_files:
|
71
|
-
- test/
|
72
|
-
- test/test_report_manager.rb
|
71
|
+
- test/test_format_ods.rb
|
73
72
|
- test/test_graph_renderer.rb
|
74
|
-
- test/test_report.rb
|
75
73
|
- test/test_invoice.rb
|
76
|
-
- test/
|
74
|
+
- test/test_mailer.rb
|
75
|
+
- test/test_report.rb
|
76
|
+
- test/test_report_manager.rb
|
77
77
|
rdoc_options:
|
78
78
|
- --title
|
79
79
|
- ruport-util Documentation
|
@@ -117,3 +117,12 @@ dependencies:
|
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: 1.2.3
|
119
119
|
version:
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
name: rubyzip
|
122
|
+
version_requirement:
|
123
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: 0.9.1
|
128
|
+
version:
|