maildown 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +34 -0
- data/app/assets/javascripts/maildown/application.js +13 -0
- data/app/assets/stylesheets/maildown/application.css +13 -0
- data/app/controllers/maildown/application_controller.rb +4 -0
- data/app/helpers/maildown/application_helper.rb +4 -0
- data/app/views/layouts/maildown/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/lib/maildown/engine.rb +5 -0
- data/lib/maildown/ext/action_mailer.rb +17 -0
- data/lib/maildown/version.rb +3 -0
- data/lib/maildown.rb +40 -0
- data/lib/tasks/maildown_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +425 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/maildown_test.rb +7 -0
- data/test/test_helper.rb +40 -0
- data/test/unit/ext_action_mailer_test.rb +20 -0
- data/test/unit/maildown_test.rb +15 -0
- metadata +176 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class MaildownTest < ActiveSupport::TestCase
|
4
|
+
test "parse md response" do
|
5
|
+
md = ::Maildown::Md.new(full_responses)
|
6
|
+
assert md.contains_md?
|
7
|
+
assert_equal parses_responses, md.to_responses
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
test "no md in response" do
|
12
|
+
md = ::Maildown::Md.new([])
|
13
|
+
refute md.contains_md?
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,176 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: maildown
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- schneems
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-07-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>'
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>'
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: kramdown
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sqlite3
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Best practice is to send text/plain && text/html markdown works great
|
56
|
+
for both, so why write your templates twices?
|
57
|
+
email:
|
58
|
+
- richard.schneeman@gmail.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- app/assets/javascripts/maildown/application.js
|
64
|
+
- app/assets/stylesheets/maildown/application.css
|
65
|
+
- app/controllers/maildown/application_controller.rb
|
66
|
+
- app/helpers/maildown/application_helper.rb
|
67
|
+
- app/views/layouts/maildown/application.html.erb
|
68
|
+
- config/routes.rb
|
69
|
+
- lib/maildown/engine.rb
|
70
|
+
- lib/maildown/ext/action_mailer.rb
|
71
|
+
- lib/maildown/version.rb
|
72
|
+
- lib/maildown.rb
|
73
|
+
- lib/tasks/maildown_tasks.rake
|
74
|
+
- MIT-LICENSE
|
75
|
+
- Rakefile
|
76
|
+
- test/dummy/app/assets/javascripts/application.js
|
77
|
+
- test/dummy/app/assets/stylesheets/application.css
|
78
|
+
- test/dummy/app/controllers/application_controller.rb
|
79
|
+
- test/dummy/app/helpers/application_helper.rb
|
80
|
+
- test/dummy/app/views/layouts/application.html.erb
|
81
|
+
- test/dummy/bin/bundle
|
82
|
+
- test/dummy/bin/rails
|
83
|
+
- test/dummy/bin/rake
|
84
|
+
- test/dummy/config/application.rb
|
85
|
+
- test/dummy/config/boot.rb
|
86
|
+
- test/dummy/config/database.yml
|
87
|
+
- test/dummy/config/environment.rb
|
88
|
+
- test/dummy/config/environments/development.rb
|
89
|
+
- test/dummy/config/environments/production.rb
|
90
|
+
- test/dummy/config/environments/test.rb
|
91
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
92
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
93
|
+
- test/dummy/config/initializers/inflections.rb
|
94
|
+
- test/dummy/config/initializers/mime_types.rb
|
95
|
+
- test/dummy/config/initializers/secret_token.rb
|
96
|
+
- test/dummy/config/initializers/session_store.rb
|
97
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
98
|
+
- test/dummy/config/locales/en.yml
|
99
|
+
- test/dummy/config/routes.rb
|
100
|
+
- test/dummy/config.ru
|
101
|
+
- test/dummy/db/test.sqlite3
|
102
|
+
- test/dummy/log/test.log
|
103
|
+
- test/dummy/public/404.html
|
104
|
+
- test/dummy/public/422.html
|
105
|
+
- test/dummy/public/500.html
|
106
|
+
- test/dummy/public/favicon.ico
|
107
|
+
- test/dummy/Rakefile
|
108
|
+
- test/dummy/README.rdoc
|
109
|
+
- test/integration/navigation_test.rb
|
110
|
+
- test/maildown_test.rb
|
111
|
+
- test/test_helper.rb
|
112
|
+
- test/unit/ext_action_mailer_test.rb
|
113
|
+
- test/unit/maildown_test.rb
|
114
|
+
homepage: https://www.github.com/schneems/maildown
|
115
|
+
licenses:
|
116
|
+
- MIT
|
117
|
+
metadata: {}
|
118
|
+
post_install_message:
|
119
|
+
rdoc_options: []
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - '>='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
requirements: []
|
133
|
+
rubyforge_project:
|
134
|
+
rubygems_version: 2.0.3
|
135
|
+
signing_key:
|
136
|
+
specification_version: 4
|
137
|
+
summary: Markdown in your mailbox
|
138
|
+
test_files:
|
139
|
+
- test/dummy/app/assets/javascripts/application.js
|
140
|
+
- test/dummy/app/assets/stylesheets/application.css
|
141
|
+
- test/dummy/app/controllers/application_controller.rb
|
142
|
+
- test/dummy/app/helpers/application_helper.rb
|
143
|
+
- test/dummy/app/views/layouts/application.html.erb
|
144
|
+
- test/dummy/bin/bundle
|
145
|
+
- test/dummy/bin/rails
|
146
|
+
- test/dummy/bin/rake
|
147
|
+
- test/dummy/config/application.rb
|
148
|
+
- test/dummy/config/boot.rb
|
149
|
+
- test/dummy/config/database.yml
|
150
|
+
- test/dummy/config/environment.rb
|
151
|
+
- test/dummy/config/environments/development.rb
|
152
|
+
- test/dummy/config/environments/production.rb
|
153
|
+
- test/dummy/config/environments/test.rb
|
154
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
155
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
156
|
+
- test/dummy/config/initializers/inflections.rb
|
157
|
+
- test/dummy/config/initializers/mime_types.rb
|
158
|
+
- test/dummy/config/initializers/secret_token.rb
|
159
|
+
- test/dummy/config/initializers/session_store.rb
|
160
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
161
|
+
- test/dummy/config/locales/en.yml
|
162
|
+
- test/dummy/config/routes.rb
|
163
|
+
- test/dummy/config.ru
|
164
|
+
- test/dummy/db/test.sqlite3
|
165
|
+
- test/dummy/log/test.log
|
166
|
+
- test/dummy/public/404.html
|
167
|
+
- test/dummy/public/422.html
|
168
|
+
- test/dummy/public/500.html
|
169
|
+
- test/dummy/public/favicon.ico
|
170
|
+
- test/dummy/Rakefile
|
171
|
+
- test/dummy/README.rdoc
|
172
|
+
- test/integration/navigation_test.rb
|
173
|
+
- test/maildown_test.rb
|
174
|
+
- test/test_helper.rb
|
175
|
+
- test/unit/ext_action_mailer_test.rb
|
176
|
+
- test/unit/maildown_test.rb
|