maktoub 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/mailers/maktoub/newsletter_mailer.rb +8 -7
- data/app/views/layouts/maktoub/_styles.erb +4 -4
- data/lib/maktoub/version.rb +1 -1
- metadata +24 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9392ef94eb6ba44154c9ab47cd45a38ad2708d6d
|
4
|
+
data.tar.gz: 9a233656e7ff759cea64fb7d6c97860e3c33bb92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f03f0ecc323683ef970883791afa3a95c85315c0d64d8674e926be75c1daf8e85c02cfe769336a98b35b8d829e6ce091f0414dff70b667848809bf100b65e717
|
7
|
+
data.tar.gz: 568845bb9c8acda1de2343583965ca9d115c01905058d7ac94925680dbaca30dc092dc6ad9dad16c8a788879d88d2496676cb5ad47f4a925f0d11c99a1ab2839
|
@@ -13,19 +13,20 @@ module Maktoub
|
|
13
13
|
@email = params[:email]
|
14
14
|
@newsletter_name = newsletter_name
|
15
15
|
mail_fields = {
|
16
|
-
|
17
|
-
to: params[:email]
|
16
|
+
|
18
17
|
}
|
19
18
|
|
20
19
|
premailer = Premailer.new(render("maktoub/newsletters/#{newsletter_name}").to_s,
|
21
20
|
with_html_string: true,
|
22
|
-
link_query_string:
|
21
|
+
link_query_string: "utm_source=newsletter&utm_medium=email&utm_campaign=#{CGI::escape(@subject)}"
|
23
22
|
)
|
24
23
|
|
25
|
-
mail(
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
mail(
|
25
|
+
subject: @subject,
|
26
|
+
to: params[:email],
|
27
|
+
body: premailer.to_inline_css,
|
28
|
+
content_type: "text/html"
|
29
|
+
)
|
29
30
|
end
|
30
31
|
end
|
31
32
|
end
|
@@ -49,7 +49,7 @@ h1, .h1{
|
|
49
49
|
font-family:Arial;
|
50
50
|
font-size:34px;
|
51
51
|
font-weight:bold;
|
52
|
-
line-height:
|
52
|
+
line-height:1.2;
|
53
53
|
margin-top:0;
|
54
54
|
margin-right:0;
|
55
55
|
margin-bottom:10px;
|
@@ -69,7 +69,7 @@ h2, .h2{
|
|
69
69
|
font-family:Arial;
|
70
70
|
font-size:30px;
|
71
71
|
font-weight:bold;
|
72
|
-
line-height:
|
72
|
+
line-height:1.2;
|
73
73
|
margin-top:0;
|
74
74
|
margin-right:0;
|
75
75
|
margin-bottom:10px;
|
@@ -89,7 +89,7 @@ h3, .h3{
|
|
89
89
|
font-family:Arial;
|
90
90
|
font-size:26px;
|
91
91
|
font-weight:bold;
|
92
|
-
line-height:
|
92
|
+
line-height:1.2;
|
93
93
|
margin-top:0;
|
94
94
|
margin-right:0;
|
95
95
|
margin-bottom:10px;
|
@@ -109,7 +109,7 @@ h4, .h4{
|
|
109
109
|
font-family:Arial;
|
110
110
|
font-size:22px;
|
111
111
|
font-weight:bold;
|
112
|
-
line-height:
|
112
|
+
line-height:1.2;
|
113
113
|
margin-top:0;
|
114
114
|
margin-right:0;
|
115
115
|
margin-bottom:10px;
|
data/lib/maktoub/version.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,84 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maktoub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zaid Zawaideh
|
8
|
+
- Nada Aldahleh
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rails
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
|
-
- -
|
18
|
+
- - ">="
|
18
19
|
- !ruby/object:Gem::Version
|
19
20
|
version: 3.1.1
|
20
21
|
type: :runtime
|
21
22
|
prerelease: false
|
22
23
|
version_requirements: !ruby/object:Gem::Requirement
|
23
24
|
requirements:
|
24
|
-
- -
|
25
|
+
- - ">="
|
25
26
|
- !ruby/object:Gem::Version
|
26
27
|
version: 3.1.1
|
27
28
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: premailer
|
29
|
+
name: premailer-rails
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
|
-
- -
|
32
|
+
- - ">="
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: '0'
|
34
35
|
type: :runtime
|
35
36
|
prerelease: false
|
36
37
|
version_requirements: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
|
-
- -
|
39
|
+
- - ">="
|
39
40
|
- !ruby/object:Gem::Version
|
40
41
|
version: '0'
|
41
42
|
- !ruby/object:Gem::Dependency
|
42
43
|
name: nokogiri
|
43
44
|
requirement: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
|
-
- -
|
46
|
+
- - ">="
|
46
47
|
- !ruby/object:Gem::Version
|
47
48
|
version: '0'
|
48
49
|
type: :runtime
|
49
50
|
prerelease: false
|
50
51
|
version_requirements: !ruby/object:Gem::Requirement
|
51
52
|
requirements:
|
52
|
-
- -
|
53
|
+
- - ">="
|
53
54
|
- !ruby/object:Gem::Version
|
54
55
|
version: '0'
|
55
56
|
- !ruby/object:Gem::Dependency
|
56
57
|
name: sqlite3
|
57
58
|
requirement: !ruby/object:Gem::Requirement
|
58
59
|
requirements:
|
59
|
-
- -
|
60
|
+
- - ">="
|
60
61
|
- !ruby/object:Gem::Version
|
61
62
|
version: '0'
|
62
63
|
type: :development
|
63
64
|
prerelease: false
|
64
65
|
version_requirements: !ruby/object:Gem::Requirement
|
65
66
|
requirements:
|
66
|
-
- -
|
67
|
+
- - ">="
|
67
68
|
- !ruby/object:Gem::Version
|
68
69
|
version: '0'
|
69
70
|
- !ruby/object:Gem::Dependency
|
70
71
|
name: rspec-rails
|
71
72
|
requirement: !ruby/object:Gem::Requirement
|
72
73
|
requirements:
|
73
|
-
- -
|
74
|
+
- - ">="
|
74
75
|
- !ruby/object:Gem::Version
|
75
76
|
version: '0'
|
76
77
|
type: :development
|
77
78
|
prerelease: false
|
78
79
|
version_requirements: !ruby/object:Gem::Requirement
|
79
80
|
requirements:
|
80
|
-
- -
|
81
|
+
- - ">="
|
81
82
|
- !ruby/object:Gem::Version
|
82
83
|
version: '0'
|
83
84
|
description: A simple newsletter engine for rails.
|
@@ -86,6 +87,9 @@ executables: []
|
|
86
87
|
extensions: []
|
87
88
|
extra_rdoc_files: []
|
88
89
|
files:
|
90
|
+
- MIT-LICENSE
|
91
|
+
- README.rdoc
|
92
|
+
- Rakefile
|
89
93
|
- app/assets/javascripts/maktoub/application.js
|
90
94
|
- app/assets/javascripts/maktoub/archives.js
|
91
95
|
- app/assets/stylesheets/maktoub/application.css
|
@@ -103,18 +107,16 @@ files:
|
|
103
107
|
- app/views/maktoub/subscribers/edit.html.erb
|
104
108
|
- app/views/maktoub/subscribers/update.html.erb
|
105
109
|
- config/routes.rb
|
110
|
+
- lib/generators/maktoub/USAGE
|
106
111
|
- lib/generators/maktoub/config_generator.rb
|
107
112
|
- lib/generators/maktoub/templates/maktoub.rb
|
108
|
-
- lib/
|
113
|
+
- lib/maktoub.rb
|
109
114
|
- lib/maktoub/engine.rb
|
110
115
|
- lib/maktoub/version.rb
|
111
|
-
- lib/maktoub.rb
|
112
116
|
- lib/tasks/maktoub_tasks.rake
|
113
|
-
- MIT-LICENSE
|
114
|
-
- Rakefile
|
115
|
-
- README.rdoc
|
116
117
|
homepage: http://www.sandglaz.com
|
117
|
-
licenses:
|
118
|
+
licenses:
|
119
|
+
- MIT
|
118
120
|
metadata: {}
|
119
121
|
post_install_message:
|
120
122
|
rdoc_options: []
|
@@ -122,17 +124,17 @@ require_paths:
|
|
122
124
|
- lib
|
123
125
|
required_ruby_version: !ruby/object:Gem::Requirement
|
124
126
|
requirements:
|
125
|
-
- -
|
127
|
+
- - ">="
|
126
128
|
- !ruby/object:Gem::Version
|
127
129
|
version: '0'
|
128
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
131
|
requirements:
|
130
|
-
- -
|
132
|
+
- - ">="
|
131
133
|
- !ruby/object:Gem::Version
|
132
134
|
version: '0'
|
133
135
|
requirements: []
|
134
136
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.4.8
|
136
138
|
signing_key:
|
137
139
|
specification_version: 4
|
138
140
|
summary: A simple newsletter engine for rails.
|