markerb 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +1 -1
- data/README.md +3 -1
- data/lib/generators/markerb/mailer/mailer_generator.rb +5 -1
- data/lib/markerb.rb +1 -0
- data/lib/markerb/version.rb +1 -1
- data/test/generator_test.rb +1 -1
- data/test/test_helper.rb +4 -1
- metadata +15 -37
- data/.gitignore +0 -2
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -94
- data/Rakefile +0 -25
- data/markerb.gemspec +0 -21
- data/test/views/notifier/_user_info.markerb +0 -1
- data/test/views/notifier/contact.markerb +0 -1
- data/test/views/notifier/link.markerb +0 -1
- data/test/views/notifier/user.markerb +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b3111a5755207d9dfb330521b7bea559108f5190
|
4
|
+
data.tar.gz: 614b823e13c5c9d345e08916d30604be92ac0a5b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 34d1b7b2686139c9e9d9dbed0c957256dce2c7658413ca629d661f234f57adbae870687594ae37279cca15487571d9d086652ab9574ab42900aa97f408aff1b1
|
7
|
+
data.tar.gz: 4c0f822bdfa2a984f8dbe5ba0ce1cfd87c2af79642f1661307b3fedf39860151c1de4066be3cc0a6be3124eb63e5826b0c4206f3448e0b6e2f341d698219c5db
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# Markerb
|
2
2
|
|
3
|
+
[![Build Status](https://api.travis-ci.org/plataformatec/markerb.png?branch=master)](http://travis-ci.org/plataformatec/markerb)
|
4
|
+
|
3
5
|
**Markerb** allows you to render multipart e-mails from a single template. The template is written in Markdown, which is delivered as a text part, but also rendered and delivered as an HTML part.
|
4
6
|
|
5
7
|
The usage is quite simple. Assuming you have a notifier as below:
|
@@ -46,4 +48,4 @@ https://github.com/plataformatec/markerb/issues
|
|
46
48
|
|
47
49
|
## License
|
48
50
|
|
49
|
-
MIT License. Copyright
|
51
|
+
MIT License. Copyright 2011-2014 Plataformatec. http://plataformatec.com.br
|
data/lib/markerb.rb
CHANGED
data/lib/markerb/version.rb
CHANGED
data/test/generator_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -2,7 +2,7 @@ require "rubygems"
|
|
2
2
|
require "bundler"
|
3
3
|
Bundler.setup
|
4
4
|
|
5
|
-
require "
|
5
|
+
require "minitest/autorun"
|
6
6
|
require "active_support/test_case"
|
7
7
|
|
8
8
|
require "action_mailer"
|
@@ -13,5 +13,8 @@ require "rails/generators/test_case"
|
|
13
13
|
$:.unshift File.expand_path("../../lib", __FILE__)
|
14
14
|
require "markerb"
|
15
15
|
|
16
|
+
# Avoid annoying warning from I18n.
|
17
|
+
I18n.enforce_available_locales = false
|
18
|
+
|
16
19
|
ActionMailer::Base.delivery_method = :test
|
17
20
|
ActionMailer::Base.perform_deliveries = true
|
metadata
CHANGED
@@ -1,30 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markerb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 1.0.1
|
4
|
+
version: 1.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- José Valim
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
|
-
type: :runtime
|
16
|
-
prerelease: false
|
17
14
|
name: redcarpet
|
18
|
-
|
19
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
20
16
|
requirements:
|
21
|
-
- -
|
17
|
+
- - ">="
|
22
18
|
- !ruby/object:Gem::Version
|
23
19
|
version: '2.0'
|
24
|
-
|
25
|
-
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '2.0'
|
30
27
|
description: Multipart templates made easy with Markdown + ERb
|
@@ -33,60 +30,41 @@ executables: []
|
|
33
30
|
extensions: []
|
34
31
|
extra_rdoc_files: []
|
35
32
|
files:
|
36
|
-
- .gitignore
|
37
|
-
- Gemfile
|
38
|
-
- Gemfile.lock
|
39
33
|
- MIT-LICENSE
|
40
34
|
- README.md
|
41
|
-
- Rakefile
|
42
35
|
- lib/generators/markerb/mailer/mailer_generator.rb
|
43
36
|
- lib/generators/markerb/mailer/templates/view.markerb
|
44
37
|
- lib/markerb.rb
|
45
38
|
- lib/markerb/railtie.rb
|
46
39
|
- lib/markerb/version.rb
|
47
|
-
- markerb.gemspec
|
48
40
|
- test/generator_test.rb
|
49
41
|
- test/markerb_test.rb
|
50
42
|
- test/test_helper.rb
|
51
|
-
- test/views/notifier/_user_info.markerb
|
52
|
-
- test/views/notifier/contact.markerb
|
53
|
-
- test/views/notifier/link.markerb
|
54
|
-
- test/views/notifier/user.markerb
|
55
43
|
homepage: http://github.com/plataformatec/markerb
|
56
|
-
licenses:
|
44
|
+
licenses:
|
45
|
+
- MIT
|
46
|
+
metadata: {}
|
57
47
|
post_install_message:
|
58
48
|
rdoc_options: []
|
59
49
|
require_paths:
|
60
50
|
- lib
|
61
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
52
|
requirements:
|
64
|
-
- -
|
53
|
+
- - ">="
|
65
54
|
- !ruby/object:Gem::Version
|
66
|
-
segments:
|
67
|
-
- 0
|
68
|
-
hash: 4054513018052400510
|
69
55
|
version: '0'
|
70
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
57
|
requirements:
|
73
|
-
- -
|
58
|
+
- - ">="
|
74
59
|
- !ruby/object:Gem::Version
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
hash: 4054513018052400510
|
78
60
|
version: '0'
|
79
61
|
requirements: []
|
80
62
|
rubyforge_project:
|
81
|
-
rubygems_version:
|
63
|
+
rubygems_version: 2.2.2
|
82
64
|
signing_key:
|
83
|
-
specification_version:
|
65
|
+
specification_version: 4
|
84
66
|
summary: Multipart templates made easy with Markdown + ERb
|
85
67
|
test_files:
|
86
68
|
- test/generator_test.rb
|
87
69
|
- test/markerb_test.rb
|
88
70
|
- test/test_helper.rb
|
89
|
-
- test/views/notifier/_user_info.markerb
|
90
|
-
- test/views/notifier/contact.markerb
|
91
|
-
- test/views/notifier/link.markerb
|
92
|
-
- test/views/notifier/user.markerb
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,94 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
markerb (1.0.1)
|
5
|
-
redcarpet (>= 2.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: http://rubygems.org/
|
9
|
-
specs:
|
10
|
-
actionmailer (3.2.11)
|
11
|
-
actionpack (= 3.2.11)
|
12
|
-
mail (~> 2.4.4)
|
13
|
-
actionpack (3.2.11)
|
14
|
-
activemodel (= 3.2.11)
|
15
|
-
activesupport (= 3.2.11)
|
16
|
-
builder (~> 3.0.0)
|
17
|
-
erubis (~> 2.7.0)
|
18
|
-
journey (~> 1.0.4)
|
19
|
-
rack (~> 1.4.0)
|
20
|
-
rack-cache (~> 1.2)
|
21
|
-
rack-test (~> 0.6.1)
|
22
|
-
sprockets (~> 2.2.1)
|
23
|
-
activemodel (3.2.11)
|
24
|
-
activesupport (= 3.2.11)
|
25
|
-
builder (~> 3.0.0)
|
26
|
-
activerecord (3.2.11)
|
27
|
-
activemodel (= 3.2.11)
|
28
|
-
activesupport (= 3.2.11)
|
29
|
-
arel (~> 3.0.2)
|
30
|
-
tzinfo (~> 0.3.29)
|
31
|
-
activeresource (3.2.11)
|
32
|
-
activemodel (= 3.2.11)
|
33
|
-
activesupport (= 3.2.11)
|
34
|
-
activesupport (3.2.11)
|
35
|
-
i18n (~> 0.6)
|
36
|
-
multi_json (~> 1.0)
|
37
|
-
arel (3.0.2)
|
38
|
-
builder (3.0.4)
|
39
|
-
erubis (2.7.0)
|
40
|
-
hike (1.2.1)
|
41
|
-
i18n (0.6.1)
|
42
|
-
journey (1.0.4)
|
43
|
-
json (1.7.6)
|
44
|
-
mail (2.4.4)
|
45
|
-
i18n (>= 0.4.0)
|
46
|
-
mime-types (~> 1.16)
|
47
|
-
treetop (~> 1.4.8)
|
48
|
-
mime-types (1.19)
|
49
|
-
multi_json (1.5.0)
|
50
|
-
polyglot (0.3.3)
|
51
|
-
rack (1.4.4)
|
52
|
-
rack-cache (1.2)
|
53
|
-
rack (>= 0.4)
|
54
|
-
rack-ssl (1.3.2)
|
55
|
-
rack
|
56
|
-
rack-test (0.6.2)
|
57
|
-
rack (>= 1.0)
|
58
|
-
rails (3.2.11)
|
59
|
-
actionmailer (= 3.2.11)
|
60
|
-
actionpack (= 3.2.11)
|
61
|
-
activerecord (= 3.2.11)
|
62
|
-
activeresource (= 3.2.11)
|
63
|
-
activesupport (= 3.2.11)
|
64
|
-
bundler (~> 1.0)
|
65
|
-
railties (= 3.2.11)
|
66
|
-
railties (3.2.11)
|
67
|
-
actionpack (= 3.2.11)
|
68
|
-
activesupport (= 3.2.11)
|
69
|
-
rack-ssl (~> 1.3.2)
|
70
|
-
rake (>= 0.8.7)
|
71
|
-
rdoc (~> 3.4)
|
72
|
-
thor (>= 0.14.6, < 2.0)
|
73
|
-
rake (10.0.3)
|
74
|
-
rdoc (3.12)
|
75
|
-
json (~> 1.4)
|
76
|
-
redcarpet (2.2.2)
|
77
|
-
sprockets (2.2.2)
|
78
|
-
hike (~> 1.2)
|
79
|
-
multi_json (~> 1.0)
|
80
|
-
rack (~> 1.0)
|
81
|
-
tilt (~> 1.1, != 1.3.0)
|
82
|
-
thor (0.16.0)
|
83
|
-
tilt (1.3.3)
|
84
|
-
treetop (1.4.12)
|
85
|
-
polyglot
|
86
|
-
polyglot (>= 0.3.1)
|
87
|
-
tzinfo (0.3.35)
|
88
|
-
|
89
|
-
PLATFORMS
|
90
|
-
ruby
|
91
|
-
|
92
|
-
DEPENDENCIES
|
93
|
-
markerb!
|
94
|
-
rails (~> 3.0)
|
data/Rakefile
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'bundler'
|
2
|
-
Bundler::GemHelper.install_tasks
|
3
|
-
|
4
|
-
require 'rake/testtask'
|
5
|
-
require 'rdoc/task'
|
6
|
-
|
7
|
-
desc 'Default: run unit tests.'
|
8
|
-
task :default => :test
|
9
|
-
|
10
|
-
desc 'Test the simple_form plugin.'
|
11
|
-
Rake::TestTask.new(:test) do |t|
|
12
|
-
t.libs << 'lib'
|
13
|
-
t.libs << 'test'
|
14
|
-
t.pattern = 'test/**/*_test.rb'
|
15
|
-
t.verbose = true
|
16
|
-
end
|
17
|
-
|
18
|
-
desc 'Generate documentation for the markerb plugin.'
|
19
|
-
RDoc::Task.new(:rdoc) do |rdoc|
|
20
|
-
rdoc.rdoc_dir = 'rdoc'
|
21
|
-
rdoc.title = 'Markerb'
|
22
|
-
rdoc.options << '--line-numbers'
|
23
|
-
rdoc.rdoc_files.include('README.md')
|
24
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
25
|
-
end
|
data/markerb.gemspec
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "markerb/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |s|
|
6
|
-
s.name = "markerb"
|
7
|
-
s.version = Markerb::VERSION.dup
|
8
|
-
s.platform = Gem::Platform::RUBY
|
9
|
-
s.summary = "Multipart templates made easy with Markdown + ERb"
|
10
|
-
s.email = "contact@plataformatec.com.br"
|
11
|
-
s.homepage = "http://github.com/plataformatec/markerb"
|
12
|
-
s.description = "Multipart templates made easy with Markdown + ERb"
|
13
|
-
s.authors = ['José Valim']
|
14
|
-
|
15
|
-
s.files = `git ls-files`.split("\n")
|
16
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
|
-
s.require_paths = ["lib"]
|
19
|
-
|
20
|
-
s.add_dependency "redcarpet", ">= 2.0"
|
21
|
-
end
|
@@ -1 +0,0 @@
|
|
1
|
-
woot! **Partial**
|
@@ -1 +0,0 @@
|
|
1
|
-
Dual templates **rocks**!
|
@@ -1 +0,0 @@
|
|
1
|
-
Hello from http://www.fcstpauli.com
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= render :partial => 'user_info' %>
|