radiant-mailer-extension 1.0.3 → 1.0.4
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 +96 -32
- data/app/models/mail.rb +2 -2
- data/cucumber.yml +1 -0
- data/lib/mailer_tags.rb +10 -6
- data/lib/radiant-mailer-extension.rb +1 -1
- data/lib/tasks/mailer_extension_tasks.rake +2 -0
- data/radiant-mailer-extension.gemspec +8 -9
- data/spec/controllers/mail_controller_spec.rb +2 -2
- data/spec/lib/mailer_process_spec.rb +2 -2
- data/spec/lib/mailer_tags_spec.rb +11 -11
- data/spec/models/mail_spec.rb +2 -2
- data/spec/models/mailer_spec.rb +2 -2
- metadata +23 -44
- data/VERSION +0 -1
data/Rakefile
CHANGED
@@ -1,45 +1,109 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
gem.homepage = "http://github.com/radiant/radiant-mailer-extension"
|
12
|
-
gem.authors = ["Nathaniel Talbott", "Sean Cribbs", "Matt McCray"]
|
13
|
-
gem.add_development_dependency "rspec"
|
14
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
1
|
+
# Determine where the RSpec plugin is by loading the boot
|
2
|
+
unless defined? RADIANT_ROOT
|
3
|
+
ENV["RAILS_ENV"] = "test"
|
4
|
+
case
|
5
|
+
when ENV["RADIANT_ENV_FILE"]
|
6
|
+
require File.dirname(ENV["RADIANT_ENV_FILE"]) + "/boot"
|
7
|
+
when File.dirname(__FILE__) =~ %r{vendor/radiant/vendor/extensions}
|
8
|
+
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../../")}/config/boot"
|
9
|
+
else
|
10
|
+
require "#{File.expand_path(File.dirname(__FILE__) + "/../../../")}/config/boot"
|
15
11
|
end
|
16
|
-
Jeweler::GemcutterTasks.new
|
17
|
-
rescue LoadError
|
18
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
12
|
end
|
20
13
|
|
14
|
+
require 'rake'
|
15
|
+
require 'rdoc/task'
|
16
|
+
require 'rake/testtask'
|
17
|
+
|
18
|
+
rspec_base = File.expand_path(RADIANT_ROOT + '/vendor/plugins/rspec/lib')
|
19
|
+
$LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base)
|
21
20
|
require 'spec/rake/spectask'
|
22
|
-
|
23
|
-
|
24
|
-
spec.spec_files = FileList['spec/**/*_spec.rb']
|
25
|
-
end
|
21
|
+
require 'cucumber'
|
22
|
+
require 'cucumber/rake/task'
|
26
23
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
24
|
+
# Cleanup the RADIANT_ROOT constant so specs will load the environment
|
25
|
+
Object.send(:remove_const, :RADIANT_ROOT)
|
26
|
+
|
27
|
+
extension_root = File.expand_path(File.dirname(__FILE__))
|
28
|
+
|
29
|
+
task :default => [:spec, :features]
|
30
|
+
task :stats => "spec:statsetup"
|
31
|
+
|
32
|
+
desc "Run all specs in spec directory"
|
33
|
+
Spec::Rake::SpecTask.new(:spec) do |t|
|
34
|
+
t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
35
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
31
36
|
end
|
32
37
|
|
33
|
-
task :
|
38
|
+
task :features => 'spec:integration'
|
39
|
+
|
40
|
+
namespace :spec do
|
41
|
+
desc "Run all specs in spec directory with RCov"
|
42
|
+
Spec::Rake::SpecTask.new(:rcov) do |t|
|
43
|
+
t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
44
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
45
|
+
t.rcov = true
|
46
|
+
t.rcov_opts = ['--exclude', 'spec', '--rails']
|
47
|
+
end
|
48
|
+
|
49
|
+
desc "Print Specdoc for all specs"
|
50
|
+
Spec::Rake::SpecTask.new(:doc) do |t|
|
51
|
+
t.spec_opts = ["--format", "specdoc", "--dry-run"]
|
52
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
53
|
+
end
|
34
54
|
|
35
|
-
|
55
|
+
[:models, :controllers, :views, :helpers].each do |sub|
|
56
|
+
desc "Run the specs under spec/#{sub}"
|
57
|
+
Spec::Rake::SpecTask.new(sub) do |t|
|
58
|
+
t.spec_opts = ['--options', "\"#{extension_root}/spec/spec.opts\""]
|
59
|
+
t.spec_files = FileList["spec/#{sub}/**/*_spec.rb"]
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
desc "Run the Cucumber features"
|
64
|
+
Cucumber::Rake::Task.new(:integration) do |t|
|
65
|
+
t.fork = true
|
66
|
+
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty')]
|
67
|
+
# t.feature_pattern = "#{extension_root}/features/**/*.feature"
|
68
|
+
t.profile = "default"
|
69
|
+
end
|
36
70
|
|
37
|
-
|
38
|
-
|
39
|
-
|
71
|
+
# Setup specs for stats
|
72
|
+
task :statsetup do
|
73
|
+
require 'code_statistics'
|
74
|
+
::STATS_DIRECTORIES << %w(Model\ specs spec/models)
|
75
|
+
::STATS_DIRECTORIES << %w(View\ specs spec/views)
|
76
|
+
::STATS_DIRECTORIES << %w(Controller\ specs spec/controllers)
|
77
|
+
::STATS_DIRECTORIES << %w(Helper\ specs spec/views)
|
78
|
+
::CodeStatistics::TEST_TYPES << "Model specs"
|
79
|
+
::CodeStatistics::TEST_TYPES << "View specs"
|
80
|
+
::CodeStatistics::TEST_TYPES << "Controller specs"
|
81
|
+
::CodeStatistics::TEST_TYPES << "Helper specs"
|
82
|
+
::STATS_DIRECTORIES.delete_if {|a| a[0] =~ /test/}
|
83
|
+
end
|
40
84
|
|
85
|
+
namespace :db do
|
86
|
+
namespace :fixtures do
|
87
|
+
desc "Load fixtures (from spec/fixtures) into the current environment's database. Load specific fixtures using FIXTURES=x,y"
|
88
|
+
task :load => :environment do
|
89
|
+
require 'active_record/fixtures'
|
90
|
+
ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
|
91
|
+
(ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir.glob(File.join(RAILS_ROOT, 'spec', 'fixtures', '*.{yml,csv}'))).each do |fixture_file|
|
92
|
+
Fixtures.create_fixtures('spec/fixtures', File.basename(fixture_file, '.*'))
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
desc 'Generate documentation for the mailer extension.'
|
100
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
41
101
|
rdoc.rdoc_dir = 'rdoc'
|
42
|
-
rdoc.title
|
43
|
-
rdoc.
|
102
|
+
rdoc.title = 'MailerExtension'
|
103
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
104
|
+
rdoc.rdoc_files.include('README')
|
44
105
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
45
106
|
end
|
107
|
+
|
108
|
+
# Load any custom rakefiles for extension
|
109
|
+
Dir[File.dirname(__FILE__) + '/tasks/*.rake'].sort.each { |f| require f }
|
data/app/models/mail.rb
CHANGED
@@ -24,7 +24,7 @@ class Mail
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.config_error_messages(config)
|
27
|
-
config_errors(config).collect do |field, message|
|
27
|
+
config_errors(config).sort.collect do |field, message|
|
28
28
|
"'#{field}' #{message}"
|
29
29
|
end.to_sentence
|
30
30
|
end
|
@@ -199,4 +199,4 @@ The following information was posted:
|
|
199
199
|
def disallow_link_fields
|
200
200
|
@config[:disallow_links] if @config.has_key?(:disallow_links)
|
201
201
|
end
|
202
|
-
end
|
202
|
+
end
|
data/cucumber.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
default: --format progress features --tags ~@proposed,~@in_progress
|
data/lib/mailer_tags.rb
CHANGED
@@ -99,6 +99,7 @@ module MailerTags
|
|
99
99
|
}
|
100
100
|
}
|
101
101
|
</script>)
|
102
|
+
results.flatten.join
|
102
103
|
end
|
103
104
|
|
104
105
|
desc %{
|
@@ -108,7 +109,7 @@ module MailerTags
|
|
108
109
|
tag.expand if tag.locals.page.last_mail && tag.locals.page.last_mail.sent?
|
109
110
|
end
|
110
111
|
|
111
|
-
%w(checkbox date datetime datetime-local email hidden month number radio range tel text time url week).each do |type|
|
112
|
+
%w(checkbox date datetime datetime-local email file hidden month number radio range tel text time url week).each do |type|
|
112
113
|
desc %{
|
113
114
|
Renders a #{type} input tag for a mailer form. The 'name' attribute is required.}
|
114
115
|
tag "mailer:#{type}" do |tag|
|
@@ -131,6 +132,7 @@ module MailerTags
|
|
131
132
|
else
|
132
133
|
result = [%(<input onclick="showSubmitPlaceholder();" type="submit" value="#{value}" #{mailer_attrs(tag)} />)]
|
133
134
|
end
|
135
|
+
result.flatten.join
|
134
136
|
end
|
135
137
|
|
136
138
|
desc %{
|
@@ -138,11 +140,13 @@ module MailerTags
|
|
138
140
|
div will be shown when a user submits a mailer form.
|
139
141
|
}
|
140
142
|
tag "mailer:submit_placeholder" do |tag|
|
143
|
+
results = []
|
141
144
|
if part(:submit_placeholder)
|
142
|
-
results
|
145
|
+
results << %Q(<div id="submit-placeholder-part" style="display:none">)
|
143
146
|
results << render_part(:submit_placeholder)
|
144
147
|
results << %Q(</div>)
|
145
148
|
end
|
149
|
+
results.flatten.join
|
146
150
|
end
|
147
151
|
|
148
152
|
desc %{
|
@@ -228,7 +232,7 @@ module MailerTags
|
|
228
232
|
result << tag.expand
|
229
233
|
end
|
230
234
|
end
|
231
|
-
result
|
235
|
+
result.flatten.join
|
232
236
|
end
|
233
237
|
|
234
238
|
desc %{
|
@@ -364,7 +368,7 @@ module MailerTags
|
|
364
368
|
'tabindex' => nil,
|
365
369
|
'title' => nil,
|
366
370
|
'width' => nil}.merge(extras)
|
367
|
-
result = attrs.collect do |k,v|
|
371
|
+
result = attrs.sort.collect do |k,v|
|
368
372
|
v = (tag.attr[k] || v)
|
369
373
|
if k == 'class' && tag.attr['required'].present?
|
370
374
|
v = [v, 'required', tag.attr['required']].compact.join(' ')
|
@@ -378,10 +382,10 @@ module MailerTags
|
|
378
382
|
|
379
383
|
def add_required(result, tag)
|
380
384
|
result << %(<input type="hidden" name="mailer[required][#{tag.attr['name']}]" value="#{tag.attr['required']}" />) if tag.attr['required']
|
381
|
-
result
|
385
|
+
result.flatten.join
|
382
386
|
end
|
383
387
|
|
384
388
|
def raise_error_if_name_missing(tag_name, tag_attr)
|
385
389
|
raise "`#{tag_name}' tag requires a `name' attribute" if tag_attr['name'].blank?
|
386
390
|
end
|
387
|
-
end
|
391
|
+
end
|
@@ -7,8 +7,10 @@ namespace :radiant do
|
|
7
7
|
require 'radiant/extension_migrator'
|
8
8
|
if ENV["VERSION"]
|
9
9
|
MailerExtension.migrator.migrate(ENV["VERSION"].to_i)
|
10
|
+
Rake::Task['db:schema:dump'].invoke
|
10
11
|
else
|
11
12
|
MailerExtension.migrator.migrate
|
13
|
+
Rake::Task['db:schema:dump'].invoke
|
12
14
|
end
|
13
15
|
end
|
14
16
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
3
|
require "radiant-mailer-extension"
|
4
|
+
|
4
5
|
Gem::Specification.new do |s|
|
5
|
-
s.name
|
6
|
-
|
6
|
+
s.name = "radiant-mailer-extension"
|
7
7
|
s.version = RadiantMailerExtension::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = RadiantMailerExtension::AUTHORS
|
@@ -11,7 +11,12 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.homepage = RadiantMailerExtension::URL
|
12
12
|
s.summary = RadiantMailerExtension::SUMMARY
|
13
13
|
s.description = RadiantMailerExtension::DESCRIPTION
|
14
|
-
|
14
|
+
|
15
|
+
# Define gem dependencies here.
|
16
|
+
# Don't include a dependency on radiant itself: it causes problems when radiant is in vendor/radiant.
|
17
|
+
# s.add_dependency "something", "~> 1.0.0"
|
18
|
+
# s.add_dependency "radiant-some-extension", "~> 1.0.0"
|
19
|
+
|
15
20
|
ignores = if File.exist?('.gitignore')
|
16
21
|
File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] }
|
17
22
|
else
|
@@ -21,10 +26,4 @@ Gem::Specification.new do |s|
|
|
21
26
|
s.test_files = Dir['test/**/*','spec/**/*','features/**/*'] - ignores
|
22
27
|
# s.executables = Dir['bin/*'] - ignores
|
23
28
|
s.require_paths = ["lib"]
|
24
|
-
|
25
|
-
s.post_install_message = %{
|
26
|
-
Add this to your radiant project with:
|
27
|
-
config.gem 'radiant-mailer-extension', :version => '~>#{RadiantMailerExtension::VERSION}'
|
28
|
-
}
|
29
29
|
end
|
30
|
-
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require File.
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
2
2
|
|
3
3
|
describe MailController do
|
4
4
|
dataset :mailer_page
|
@@ -45,4 +45,4 @@ describe MailController do
|
|
45
45
|
response.redirect_url.should match(%r{/first})
|
46
46
|
end
|
47
47
|
end
|
48
|
-
end
|
48
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require File.
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
2
2
|
require 'site_controller'
|
3
3
|
SiteController.class_eval { def rescue_action(e) raise e; end }
|
4
4
|
|
@@ -77,4 +77,4 @@ describe SiteController, "receiving a mailer request", :type => :controller do
|
|
77
77
|
post :show_page, :url => @page.path, :mailer => {:foo => 'bar'}
|
78
78
|
response.redirect_url.should match(%r{/foo/bar})
|
79
79
|
end
|
80
|
-
end
|
80
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require File.
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
2
2
|
|
3
3
|
describe "MailerTags" do
|
4
4
|
dataset :mailer_page
|
@@ -206,7 +206,7 @@ describe "MailerTags" do
|
|
206
206
|
|
207
207
|
describe "<r:mailer:select>" do
|
208
208
|
it "should render a select tag" do
|
209
|
-
pages(:mail_form).should render('<r:mailer:select name="foo" />').as('<select
|
209
|
+
pages(:mail_form).should render('<r:mailer:select name="foo" />').as('<select id="foo" size="1" name="mailer[foo]"></select>')
|
210
210
|
end
|
211
211
|
|
212
212
|
it "should raise an error if the name attribute is not specified" do
|
@@ -214,25 +214,25 @@ describe "MailerTags" do
|
|
214
214
|
end
|
215
215
|
|
216
216
|
it "should render its contents within the select tag" do
|
217
|
-
pages(:mail_form).should render('<r:mailer:select name="foo">bar</r:mailer:select>').as('<select
|
217
|
+
pages(:mail_form).should render('<r:mailer:select name="foo">bar</r:mailer:select>').as('<select id="foo" size="1" name="mailer[foo]">bar</select>')
|
218
218
|
end
|
219
219
|
|
220
220
|
it "should render nested <r:mailer:option> tags as option tags" do
|
221
|
-
pages(:mail_form).should render('<r:mailer:select name="foo"><r:option value="bar">bar</r:option></r:mailer:select>').as('<select
|
221
|
+
pages(:mail_form).should render('<r:mailer:select name="foo"><r:option value="bar">bar</r:option></r:mailer:select>').as('<select id="foo" size="1" name="mailer[foo]"><option value="bar" >bar</option></select>')
|
222
222
|
end
|
223
223
|
|
224
224
|
it "should select the specified option tag on a new form" do
|
225
|
-
pages(:mail_form).should render('<r:mailer:select name="foo"><r:option value="bar" selected="selected">bar</r:option><r:option value="baz">baz</r:option></r:mailer:select>').as('<select
|
225
|
+
pages(:mail_form).should render('<r:mailer:select name="foo"><r:option value="bar" selected="selected">bar</r:option><r:option value="baz">baz</r:option></r:mailer:select>').as('<select id="foo" size="1" name="mailer[foo]"><option value="bar" selected="selected" >bar</option><option value="baz" >baz</option></select>')
|
226
226
|
end
|
227
227
|
|
228
228
|
it "should select the option tag with previously posted value" do
|
229
229
|
@page = pages(:mail_form)
|
230
230
|
@page.last_mail = @mail = Mail.new(@page, config(@page), 'foo' => 'baz')
|
231
|
-
@page.should render('<r:mailer:select name="foo"><r:option value="bar" selected="selected">bar</r:option><r:option value="baz">baz</r:option></r:mailer:select>').as('<select
|
231
|
+
@page.should render('<r:mailer:select name="foo"><r:option value="bar" selected="selected">bar</r:option><r:option value="baz">baz</r:option></r:mailer:select>').as('<select id="foo" size="1" name="mailer[foo]"><option value="bar" >bar</option><option value="baz" selected="selected" >baz</option></select>')
|
232
232
|
end
|
233
233
|
|
234
234
|
it "should add a 'required' hidden field when the required attribute is specified" do
|
235
|
-
pages(:mail_form).should render("<r:mailer:select name='foo' required='true'/>").as(%Q{<select
|
235
|
+
pages(:mail_form).should render("<r:mailer:select name='foo' required='true'/>").as(%Q{<select class="required true" id="foo" size="1" name="mailer[foo]"></select><input type="hidden" name="mailer[required][foo]" value="true" />})
|
236
236
|
end
|
237
237
|
end
|
238
238
|
|
@@ -272,7 +272,7 @@ describe "MailerTags" do
|
|
272
272
|
|
273
273
|
describe "<r:mailer:textarea>" do
|
274
274
|
it "should render a textarea tag" do
|
275
|
-
pages(:mail_form).should render('<r:mailer:textarea name="body" />').as('<textarea id="body" rows="5"
|
275
|
+
pages(:mail_form).should render('<r:mailer:textarea name="body" />').as('<textarea cols="35" id="body" rows="5" name="mailer[body]"></textarea>')
|
276
276
|
end
|
277
277
|
|
278
278
|
it "should raise an error if the name attribute is not specified" do
|
@@ -280,11 +280,11 @@ describe "MailerTags" do
|
|
280
280
|
end
|
281
281
|
|
282
282
|
it "should render its contents as the contents of the textarea tag" do
|
283
|
-
pages(:mail_form).should render('<r:mailer:textarea name="body">Hello, world!</r:mailer:textarea>').as('<textarea id="body" rows="5"
|
283
|
+
pages(:mail_form).should render('<r:mailer:textarea name="body">Hello, world!</r:mailer:textarea>').as('<textarea cols="35" id="body" rows="5" name="mailer[body]">Hello, world!</textarea>')
|
284
284
|
end
|
285
285
|
|
286
286
|
it "should add a 'required' hidden field when the required attribute is specified" do
|
287
|
-
pages(:mail_form).should render("<r:mailer:textarea name='body' required='true'/>").as(%Q{<textarea class="required true" id="body" rows="5"
|
287
|
+
pages(:mail_form).should render("<r:mailer:textarea name='body' required='true'/>").as(%Q{<textarea class="required true" cols="35" id="body" rows="5" name="mailer[body]"></textarea><input type="hidden" name="mailer[required][body]" value="true" />})
|
288
288
|
end
|
289
289
|
end
|
290
290
|
|
@@ -418,4 +418,4 @@ describe "MailerTags" do
|
|
418
418
|
string = page.render_part(:mailer)
|
419
419
|
string.empty? ? {} : YAML::load(string).symbolize_keys
|
420
420
|
end
|
421
|
-
end
|
421
|
+
end
|
data/spec/models/mail_spec.rb
CHANGED
data/spec/models/mailer_spec.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require File.
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
2
2
|
|
3
3
|
describe "Mailer" do
|
4
4
|
before :each do
|
@@ -103,4 +103,4 @@ describe "Mailer" do
|
|
103
103
|
do_deliver :charset => 'iso8859-1'
|
104
104
|
@deliveries.first.charset.should == 'iso8859-1'
|
105
105
|
end
|
106
|
-
end
|
106
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,10 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: radiant-mailer-extension
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 3
|
10
|
-
version: 1.0.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.4
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Nathaniel Talbott
|
14
9
|
- Sean Cribbs
|
15
10
|
- Matt McCray
|
@@ -19,25 +14,20 @@ authors:
|
|
19
14
|
autorequire:
|
20
15
|
bindir: bin
|
21
16
|
cert_chain: []
|
22
|
-
|
23
|
-
date: 2011-08-16 00:00:00 +02:00
|
24
|
-
default_executable:
|
17
|
+
date: 2012-03-04 00:00:00.000000000 Z
|
25
18
|
dependencies: []
|
26
|
-
|
27
19
|
description: Provides support for email forms and generic mailing functionality.
|
28
|
-
email:
|
20
|
+
email:
|
29
21
|
- radiant@radiantcms.org
|
30
22
|
executables: []
|
31
|
-
|
32
23
|
extensions: []
|
33
|
-
|
34
24
|
extra_rdoc_files: []
|
35
|
-
|
36
|
-
files:
|
25
|
+
files:
|
37
26
|
- app/controllers/mail_controller.rb
|
38
27
|
- app/models/mail.rb
|
39
28
|
- app/models/mailer.rb
|
40
29
|
- config/routes.rb
|
30
|
+
- cucumber.yml
|
41
31
|
- db/migrate/001_revert_mailer_page_class_to_page.rb
|
42
32
|
- features/datasets/mailer_page_dataset.rb
|
43
33
|
- features/fixtures/attachment.txt
|
@@ -64,42 +54,31 @@ files:
|
|
64
54
|
- spec/models/mailer_spec.rb
|
65
55
|
- spec/spec.opts
|
66
56
|
- spec/spec_helper.rb
|
67
|
-
- VERSION
|
68
|
-
has_rdoc: true
|
69
57
|
homepage: https://github.com/radiant/radiant-mailer-extension
|
70
58
|
licenses: []
|
71
|
-
|
72
|
-
post_install_message: "\n Add this to your radiant project with:\n config.gem 'radiant-mailer-extension', :version => '~>1.0.3'\n "
|
59
|
+
post_install_message:
|
73
60
|
rdoc_options: []
|
74
|
-
|
75
|
-
require_paths:
|
61
|
+
require_paths:
|
76
62
|
- lib
|
77
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
78
64
|
none: false
|
79
|
-
requirements:
|
80
|
-
- -
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
|
83
|
-
|
84
|
-
- 0
|
85
|
-
version: "0"
|
86
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
70
|
none: false
|
88
|
-
requirements:
|
89
|
-
- -
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
|
92
|
-
segments:
|
93
|
-
- 0
|
94
|
-
version: "0"
|
71
|
+
requirements:
|
72
|
+
- - ! '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
95
75
|
requirements: []
|
96
|
-
|
97
76
|
rubyforge_project:
|
98
|
-
rubygems_version: 1.
|
77
|
+
rubygems_version: 1.8.11
|
99
78
|
signing_key:
|
100
79
|
specification_version: 3
|
101
80
|
summary: Form mailing for Radiant CMS
|
102
|
-
test_files:
|
81
|
+
test_files:
|
103
82
|
- spec/controllers/mail_controller_spec.rb
|
104
83
|
- spec/datasets/mailer_page_dataset.rb
|
105
84
|
- spec/lib/mailer_process_spec.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.2
|