nifty-report 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nifty-report/report.rb +2 -2
- data/nifty-report.gemspec +1 -1
- metadata +1 -1
data/lib/nifty-report/report.rb
CHANGED
@@ -9,7 +9,7 @@ module Nifty
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def filename
|
12
|
-
@name.downcase.gsub(' ', '.') + ".#{Time.now.strftime('%F
|
12
|
+
@name.downcase.gsub(' ', '.') + ".#{Time.now.strftime('%F')}.csv"
|
13
13
|
end
|
14
14
|
|
15
15
|
def csv
|
@@ -34,7 +34,7 @@ module Nifty
|
|
34
34
|
AWS::S3::S3Object.store(filename, csv, ENV['AWS_S3_BUCKET'])
|
35
35
|
remote_file = AWS::S3::S3Object.find(filename, ENV['AWS_S3_BUCKET'])
|
36
36
|
|
37
|
-
ReportMailer.report_email(email_address, remote_file.url(expires_in: 30)).deliver
|
37
|
+
ReportMailer.report_email(email_address, remote_file.url(expires_in: 30 * 60)).deliver
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
data/nifty-report.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "nifty-report"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.6"
|
8
8
|
spec.authors = ["Scott Albertson"]
|
9
9
|
spec.email = ["scott@thoughtbot.com"]
|
10
10
|
spec.summary = %q{Create reports the easy way.}
|