digest_email 1.0.1 → 1.0.2
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/README.md +5 -13
- data/lib/digest_email/version.rb +1 -1
- data/templates/default.html +5 -0
- metadata +8 -2
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# DigestEmail
|
1
|
+
# DigestEmail [](https://travis-ci.org/PeterHamilton/digest-email)
|
2
2
|
|
3
|
-
This is a project put together
|
3
|
+
This is a project put together over a few evenings by [Peter Hamilton](http://peterhamilton.github.com).
|
4
4
|
The overall aim was to simplify the process of generating weekly Computing Society emails for students.
|
5
5
|
|
6
6
|
There were several reasons for making this gem:
|
@@ -18,16 +18,6 @@ The result is a gem which turns [this](https://gist.github.com/4092848) into [th
|
|
18
18
|
|
19
19
|
## Installation
|
20
20
|
|
21
|
-
Add this line to your application's Gemfile:
|
22
|
-
|
23
|
-
gem 'digest_email'
|
24
|
-
|
25
|
-
And then execute:
|
26
|
-
|
27
|
-
$ bundle
|
28
|
-
|
29
|
-
Or install it yourself as:
|
30
|
-
|
31
21
|
$ gem install digest_email
|
32
22
|
|
33
23
|
## Usage
|
@@ -120,7 +110,9 @@ Optional:
|
|
120
110
|
For example to generate a digest email from [this template file](https://peterhamilton.github.com/digest-email/blob/master/templates/default.html) (template.html locally) and [this digest file](https://gist.github.com/4092848) (2012-01-01.yml locally) you would type the following:
|
121
111
|
|
122
112
|
```bash
|
123
|
-
digest_email -f 2012-01-01.yml -t template.html -o 2012-01-
|
113
|
+
digest_email -f 2012-01-01.yml -t template.html -o 2012-01-01-digest.html
|
114
|
+
2012-11-17 16:08:39 +0000 - Rendering Digest
|
115
|
+
2012-11-17 16:08:39 +0000 - Done. Digest saved as /Users/peh10/2012-01-01-digest.html
|
124
116
|
```
|
125
117
|
|
126
118
|
Which results in the file you can see [here](http://docsoc.s3.amazonaws.com/sample/sample_digest_email.html). From there it's easy to send it out as an email.
|
data/lib/digest_email/version.rb
CHANGED
data/templates/default.html
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: digest_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Gem to generate a weekly email digest
|
15
15
|
email:
|
@@ -45,12 +45,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
45
|
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
|
+
segments:
|
49
|
+
- 0
|
50
|
+
hash: 2578333560917672930
|
48
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
49
52
|
none: false
|
50
53
|
requirements:
|
51
54
|
- - ! '>='
|
52
55
|
- !ruby/object:Gem::Version
|
53
56
|
version: '0'
|
57
|
+
segments:
|
58
|
+
- 0
|
59
|
+
hash: 2578333560917672930
|
54
60
|
requirements: []
|
55
61
|
rubyforge_project:
|
56
62
|
rubygems_version: 1.8.24
|