maily_herald 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +11 -0
- data/Gemfile +19 -0
- data/Gemfile.lock +149 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +23 -0
- data/app/assets/images/maily_herald/.gitkeep +0 -0
- data/app/assets/javascripts/maily_herald/application.js +15 -0
- data/app/assets/stylesheets/maily_herald/application.css +13 -0
- data/app/controllers/maily_herald/application_controller.rb +4 -0
- data/app/helpers/maily_herald/application_helper.rb +4 -0
- data/app/helpers/maily_herald_helper.rb +9 -0
- data/app/models/maily_herald/mailing.rb +12 -0
- data/app/models/maily_herald/mailing_record.rb +6 -0
- data/app/models/maily_herald/sequence.rb +5 -0
- data/app/views/layouts/maily_herald/application.html.erb +14 -0
- data/config/locales/en.yml +13 -0
- data/config/routes.rb +2 -0
- data/db/migrate/20130711124555_create_maily_herald_tables.rb +38 -0
- data/lib/generators/maily_herald/install_generator.rb +21 -0
- data/lib/generators/templates/maily_herald.rb +2 -0
- data/lib/maily_herald.rb +29 -0
- data/lib/maily_herald/context.rb +79 -0
- data/lib/maily_herald/engine.rb +5 -0
- data/lib/maily_herald/utils.rb +7 -0
- data/lib/maily_herald/version.rb +3 -0
- data/lib/maily_herald/worker.rb +15 -0
- data/lib/tasks/maily_herald_tasks.rake +4 -0
- data/maily_herald.gemspec +29 -0
- data/script/rails +8 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/spec_helper.rb +28 -0
- metadata +269 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Configure Rails Envinronment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
+
|
5
|
+
require 'rspec/rails'
|
6
|
+
require "factory_girl_rails"
|
7
|
+
require "database_cleaner"
|
8
|
+
require 'shoulda/matchers/integrations/rspec'
|
9
|
+
|
10
|
+
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
11
|
+
|
12
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
13
|
+
# in spec/support/ and its subdirectories.
|
14
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
15
|
+
|
16
|
+
RSpec.configure do |config|
|
17
|
+
config.use_transactional_fixtures = false
|
18
|
+
config.before(:suite) do
|
19
|
+
DatabaseCleaner.strategy = :transaction
|
20
|
+
DatabaseCleaner.clean_with(:truncation)
|
21
|
+
end
|
22
|
+
config.before(:each) do
|
23
|
+
DatabaseCleaner.start
|
24
|
+
end
|
25
|
+
config.after(:each) do
|
26
|
+
DatabaseCleaner.clean
|
27
|
+
end
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,269 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: maily_herald
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Łukasz Jachymczyk
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-07-13 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.8
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.8
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: liquid
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 2.6.0
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 2.6.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: sidekiq
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.13.0
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.13.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: sqlite3
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec-rails
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: shoulda-matchers
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '1.0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: factory_girl_rails
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: database_cleaner
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
description:
|
143
|
+
email:
|
144
|
+
- lukasz@sology.eu
|
145
|
+
executables: []
|
146
|
+
extensions: []
|
147
|
+
extra_rdoc_files: []
|
148
|
+
files:
|
149
|
+
- .gitignore
|
150
|
+
- Gemfile
|
151
|
+
- Gemfile.lock
|
152
|
+
- MIT-LICENSE
|
153
|
+
- README.rdoc
|
154
|
+
- Rakefile
|
155
|
+
- app/assets/images/maily_herald/.gitkeep
|
156
|
+
- app/assets/javascripts/maily_herald/application.js
|
157
|
+
- app/assets/stylesheets/maily_herald/application.css
|
158
|
+
- app/controllers/maily_herald/application_controller.rb
|
159
|
+
- app/helpers/maily_herald/application_helper.rb
|
160
|
+
- app/helpers/maily_herald_helper.rb
|
161
|
+
- app/models/maily_herald/mailing.rb
|
162
|
+
- app/models/maily_herald/mailing_record.rb
|
163
|
+
- app/models/maily_herald/sequence.rb
|
164
|
+
- app/views/layouts/maily_herald/application.html.erb
|
165
|
+
- config/locales/en.yml
|
166
|
+
- config/routes.rb
|
167
|
+
- db/migrate/20130711124555_create_maily_herald_tables.rb
|
168
|
+
- lib/generators/maily_herald/install_generator.rb
|
169
|
+
- lib/generators/templates/maily_herald.rb
|
170
|
+
- lib/maily_herald.rb
|
171
|
+
- lib/maily_herald/context.rb
|
172
|
+
- lib/maily_herald/engine.rb
|
173
|
+
- lib/maily_herald/utils.rb
|
174
|
+
- lib/maily_herald/version.rb
|
175
|
+
- lib/maily_herald/worker.rb
|
176
|
+
- lib/tasks/maily_herald_tasks.rake
|
177
|
+
- maily_herald.gemspec
|
178
|
+
- script/rails
|
179
|
+
- spec/dummy/README.rdoc
|
180
|
+
- spec/dummy/Rakefile
|
181
|
+
- spec/dummy/app/assets/javascripts/application.js
|
182
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
183
|
+
- spec/dummy/app/controllers/application_controller.rb
|
184
|
+
- spec/dummy/app/helpers/application_helper.rb
|
185
|
+
- spec/dummy/app/mailers/.gitkeep
|
186
|
+
- spec/dummy/app/models/.gitkeep
|
187
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
188
|
+
- spec/dummy/config.ru
|
189
|
+
- spec/dummy/config/application.rb
|
190
|
+
- spec/dummy/config/boot.rb
|
191
|
+
- spec/dummy/config/database.yml
|
192
|
+
- spec/dummy/config/environment.rb
|
193
|
+
- spec/dummy/config/environments/development.rb
|
194
|
+
- spec/dummy/config/environments/production.rb
|
195
|
+
- spec/dummy/config/environments/test.rb
|
196
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
197
|
+
- spec/dummy/config/initializers/inflections.rb
|
198
|
+
- spec/dummy/config/initializers/mime_types.rb
|
199
|
+
- spec/dummy/config/initializers/secret_token.rb
|
200
|
+
- spec/dummy/config/initializers/session_store.rb
|
201
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
202
|
+
- spec/dummy/config/locales/en.yml
|
203
|
+
- spec/dummy/config/routes.rb
|
204
|
+
- spec/dummy/lib/assets/.gitkeep
|
205
|
+
- spec/dummy/log/.gitkeep
|
206
|
+
- spec/dummy/public/404.html
|
207
|
+
- spec/dummy/public/422.html
|
208
|
+
- spec/dummy/public/500.html
|
209
|
+
- spec/dummy/public/favicon.ico
|
210
|
+
- spec/dummy/script/rails
|
211
|
+
- spec/spec_helper.rb
|
212
|
+
homepage: https://github.com/Sology/maily_herald
|
213
|
+
licenses: []
|
214
|
+
post_install_message:
|
215
|
+
rdoc_options: []
|
216
|
+
require_paths:
|
217
|
+
- lib
|
218
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
219
|
+
none: false
|
220
|
+
requirements:
|
221
|
+
- - ! '>='
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '0'
|
224
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
226
|
+
requirements:
|
227
|
+
- - ! '>='
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
requirements: []
|
231
|
+
rubyforge_project:
|
232
|
+
rubygems_version: 1.8.24
|
233
|
+
signing_key:
|
234
|
+
specification_version: 3
|
235
|
+
summary: Mailing framework for Ruby on Rails applications
|
236
|
+
test_files:
|
237
|
+
- spec/dummy/README.rdoc
|
238
|
+
- spec/dummy/Rakefile
|
239
|
+
- spec/dummy/app/assets/javascripts/application.js
|
240
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
241
|
+
- spec/dummy/app/controllers/application_controller.rb
|
242
|
+
- spec/dummy/app/helpers/application_helper.rb
|
243
|
+
- spec/dummy/app/mailers/.gitkeep
|
244
|
+
- spec/dummy/app/models/.gitkeep
|
245
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
246
|
+
- spec/dummy/config.ru
|
247
|
+
- spec/dummy/config/application.rb
|
248
|
+
- spec/dummy/config/boot.rb
|
249
|
+
- spec/dummy/config/database.yml
|
250
|
+
- spec/dummy/config/environment.rb
|
251
|
+
- spec/dummy/config/environments/development.rb
|
252
|
+
- spec/dummy/config/environments/production.rb
|
253
|
+
- spec/dummy/config/environments/test.rb
|
254
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
255
|
+
- spec/dummy/config/initializers/inflections.rb
|
256
|
+
- spec/dummy/config/initializers/mime_types.rb
|
257
|
+
- spec/dummy/config/initializers/secret_token.rb
|
258
|
+
- spec/dummy/config/initializers/session_store.rb
|
259
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
260
|
+
- spec/dummy/config/locales/en.yml
|
261
|
+
- spec/dummy/config/routes.rb
|
262
|
+
- spec/dummy/lib/assets/.gitkeep
|
263
|
+
- spec/dummy/log/.gitkeep
|
264
|
+
- spec/dummy/public/404.html
|
265
|
+
- spec/dummy/public/422.html
|
266
|
+
- spec/dummy/public/500.html
|
267
|
+
- spec/dummy/public/favicon.ico
|
268
|
+
- spec/dummy/script/rails
|
269
|
+
- spec/spec_helper.rb
|