trusty-rad-social-extension 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +78 -71
- data/app/controllers/rad_captcha_filter.rb +3 -4
- data/app/controllers/social_mailer_controller.rb +2 -2
- data/app/models/rad_social_mailer.rb +13 -8
- data/app/views/rad_social_mailer/{social_mail.text.html.haml → social_mail.html.haml} +0 -0
- data/lib/trusty-rad-social-extension.rb +3 -3
- data/trusty-rad-social-extension.gemspec +2 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aab4a9746aa6bbcc8e956fa3e6262ed2ab389adf
|
4
|
+
data.tar.gz: 2d99ed7c7584525d8afadb672469c3ffcdbec30c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ae7ae6caa303e882f961e048f6991ae8c311469ffb0c57b7e946af91f124c93c9b942e2ae914d692e7fab2738d6368911e0510fa334418002edff309afa11e1
|
7
|
+
data.tar.gz: 7f332f039439f71c69646f016bdbab48faac15ff03c68d00e79f422686fe3756b373f794b2f258cc4ed1cb44ed766a31970b770cfa1b235feb202861266f23e2
|
data/Gemfile.lock
CHANGED
@@ -1,74 +1,73 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trusty-rad-social-extension (2.
|
4
|
+
trusty-rad-social-extension (2.2.0)
|
5
5
|
recaptcha (~> 0.3.6)
|
6
|
+
roadie-rails (~> 1.0.6)
|
6
7
|
trusty-cms (~> 2.0.0)
|
7
|
-
trusty-layouts-extension (~> 2.0.
|
8
|
+
trusty-layouts-extension (~> 2.0.2)
|
8
9
|
|
9
10
|
GEM
|
10
11
|
remote: https://rubygems.org/
|
11
12
|
specs:
|
12
13
|
RedCloth (4.2.9)
|
13
|
-
actionmailer (4.2.
|
14
|
-
actionpack (= 4.2.
|
15
|
-
actionview (= 4.2.
|
16
|
-
activejob (= 4.2.
|
14
|
+
actionmailer (4.2.5.1)
|
15
|
+
actionpack (= 4.2.5.1)
|
16
|
+
actionview (= 4.2.5.1)
|
17
|
+
activejob (= 4.2.5.1)
|
17
18
|
mail (~> 2.5, >= 2.5.4)
|
18
19
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
19
|
-
actionpack (4.2.
|
20
|
-
actionview (= 4.2.
|
21
|
-
activesupport (= 4.2.
|
20
|
+
actionpack (4.2.5.1)
|
21
|
+
actionview (= 4.2.5.1)
|
22
|
+
activesupport (= 4.2.5.1)
|
22
23
|
rack (~> 1.6)
|
23
24
|
rack-test (~> 0.6.2)
|
24
25
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
25
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
26
|
-
actionview (4.2.
|
27
|
-
activesupport (= 4.2.
|
27
|
+
actionview (4.2.5.1)
|
28
|
+
activesupport (= 4.2.5.1)
|
28
29
|
builder (~> 3.1)
|
29
30
|
erubis (~> 2.7.0)
|
30
31
|
rails-dom-testing (~> 1.0, >= 1.0.5)
|
31
32
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
32
|
-
activejob (4.2.
|
33
|
-
activesupport (= 4.2.
|
33
|
+
activejob (4.2.5.1)
|
34
|
+
activesupport (= 4.2.5.1)
|
34
35
|
globalid (>= 0.3.0)
|
35
|
-
activemodel (4.2.
|
36
|
-
activesupport (= 4.2.
|
36
|
+
activemodel (4.2.5.1)
|
37
|
+
activesupport (= 4.2.5.1)
|
37
38
|
builder (~> 3.1)
|
38
|
-
activerecord (4.2.
|
39
|
-
activemodel (= 4.2.
|
40
|
-
activesupport (= 4.2.
|
39
|
+
activerecord (4.2.5.1)
|
40
|
+
activemodel (= 4.2.5.1)
|
41
|
+
activesupport (= 4.2.5.1)
|
41
42
|
arel (~> 6.0)
|
42
|
-
activesupport (4.2.
|
43
|
+
activesupport (4.2.5.1)
|
43
44
|
i18n (~> 0.7)
|
44
45
|
json (~> 1.7, >= 1.7.7)
|
45
46
|
minitest (~> 5.1)
|
46
47
|
thread_safe (~> 0.3, >= 0.3.4)
|
47
48
|
tzinfo (~> 1.1)
|
48
|
-
acts_as_tree (2.
|
49
|
+
acts_as_tree (2.4.0)
|
49
50
|
activerecord (>= 3.0.0)
|
50
|
-
addressable (2.
|
51
|
+
addressable (2.4.0)
|
51
52
|
arel (6.0.3)
|
52
53
|
builder (3.2.2)
|
53
|
-
byebug (
|
54
|
-
columnize (= 0.9.0)
|
54
|
+
byebug (8.2.1)
|
55
55
|
capybara (2.3.0)
|
56
56
|
mime-types (>= 1.16)
|
57
57
|
nokogiri (>= 1.3.3)
|
58
58
|
rack (>= 1.0.0)
|
59
59
|
rack-test (>= 0.5.4)
|
60
60
|
xpath (~> 2.0)
|
61
|
-
chunky_png (1.3.
|
62
|
-
ckeditor (4.1.
|
61
|
+
chunky_png (1.3.5)
|
62
|
+
ckeditor (4.1.6)
|
63
63
|
cocaine
|
64
64
|
orm_adapter (~> 0.5.0)
|
65
65
|
climate_control (0.0.3)
|
66
66
|
activesupport (>= 3.0)
|
67
67
|
cliver (0.3.2)
|
68
|
-
cocaine (0.5.
|
68
|
+
cocaine (0.5.8)
|
69
69
|
climate_control (>= 0.0.3, < 1.0)
|
70
70
|
coderay (1.1.0)
|
71
|
-
columnize (0.9.0)
|
72
71
|
compass (1.0.3)
|
73
72
|
chunky_png (~> 1.2)
|
74
73
|
compass-core (~> 1.0.2)
|
@@ -81,17 +80,19 @@ GEM
|
|
81
80
|
sass (>= 3.3.0, < 3.5)
|
82
81
|
compass-import-once (1.0.5)
|
83
82
|
sass (>= 3.2, < 3.5)
|
84
|
-
compass-rails (2.0.
|
83
|
+
compass-rails (2.0.5)
|
85
84
|
compass (~> 1.0.0)
|
86
|
-
sass-rails (
|
85
|
+
sass-rails (< 5.1)
|
87
86
|
sprockets (< 2.13)
|
87
|
+
css_parser (1.3.7)
|
88
|
+
addressable
|
88
89
|
daemons (1.2.3)
|
89
90
|
database_cleaner (1.3.0)
|
90
91
|
delocalize (0.4.0)
|
91
92
|
rails (>= 3.0)
|
92
93
|
diff-lcs (1.2.5)
|
93
94
|
erubis (2.7.0)
|
94
|
-
eventmachine (1.0.
|
95
|
+
eventmachine (1.0.9.1)
|
95
96
|
execjs (2.6.0)
|
96
97
|
factory_girl (4.5.0)
|
97
98
|
activesupport (>= 3.0.0)
|
@@ -109,7 +110,7 @@ GEM
|
|
109
110
|
haml (>= 4.0.6, < 5.0)
|
110
111
|
html2haml (>= 1.0.1)
|
111
112
|
railties (>= 4.0.1)
|
112
|
-
highline (1.7.
|
113
|
+
highline (1.7.8)
|
113
114
|
hike (1.2.3)
|
114
115
|
html2haml (2.0.0)
|
115
116
|
erubis (~> 2.7.0)
|
@@ -123,19 +124,19 @@ GEM
|
|
123
124
|
json (1.8.3)
|
124
125
|
launchy (2.4.3)
|
125
126
|
addressable (~> 2.3)
|
126
|
-
libv8 (3.16.14.
|
127
|
-
loofah (2.0.
|
127
|
+
libv8 (3.16.14.13)
|
128
|
+
loofah (2.0.3)
|
128
129
|
nokogiri (>= 1.5.9)
|
129
130
|
mail (2.6.3)
|
130
131
|
mime-types (>= 1.16, < 3)
|
131
132
|
method_source (0.8.2)
|
132
|
-
mime-types (2.
|
133
|
-
|
134
|
-
minitest (5.8.
|
133
|
+
mime-types (2.99)
|
134
|
+
mini_portile2 (2.0.0)
|
135
|
+
minitest (5.8.4)
|
135
136
|
multi_json (1.11.2)
|
136
|
-
|
137
|
-
nokogiri (1.6.
|
138
|
-
|
137
|
+
mysql2 (0.4.2)
|
138
|
+
nokogiri (1.6.7.2)
|
139
|
+
mini_portile2 (~> 2.0.0.rc2)
|
139
140
|
orm_adapter (0.5.0)
|
140
141
|
poltergeist (1.5.1)
|
141
142
|
capybara (~> 2.1)
|
@@ -144,53 +145,59 @@ GEM
|
|
144
145
|
websocket-driver (>= 0.2.0)
|
145
146
|
protected_attributes (1.0.9)
|
146
147
|
activemodel (>= 4.0.1, < 5.0)
|
147
|
-
pry (0.10.
|
148
|
+
pry (0.10.3)
|
148
149
|
coderay (~> 1.1.0)
|
149
150
|
method_source (~> 0.8.1)
|
150
151
|
slop (~> 3.4)
|
151
|
-
pry-byebug (3.
|
152
|
-
byebug (~>
|
152
|
+
pry-byebug (3.3.0)
|
153
|
+
byebug (~> 8.0)
|
153
154
|
pry (~> 0.10)
|
154
155
|
rack (1.6.4)
|
155
|
-
rack-cache (1.
|
156
|
+
rack-cache (1.6.0)
|
156
157
|
rack (>= 0.4)
|
157
158
|
rack-test (0.6.3)
|
158
159
|
rack (>= 1.0)
|
159
160
|
radius (0.7.4)
|
160
|
-
rails (4.2.
|
161
|
-
actionmailer (= 4.2.
|
162
|
-
actionpack (= 4.2.
|
163
|
-
actionview (= 4.2.
|
164
|
-
activejob (= 4.2.
|
165
|
-
activemodel (= 4.2.
|
166
|
-
activerecord (= 4.2.
|
167
|
-
activesupport (= 4.2.
|
161
|
+
rails (4.2.5.1)
|
162
|
+
actionmailer (= 4.2.5.1)
|
163
|
+
actionpack (= 4.2.5.1)
|
164
|
+
actionview (= 4.2.5.1)
|
165
|
+
activejob (= 4.2.5.1)
|
166
|
+
activemodel (= 4.2.5.1)
|
167
|
+
activerecord (= 4.2.5.1)
|
168
|
+
activesupport (= 4.2.5.1)
|
168
169
|
bundler (>= 1.3.0, < 2.0)
|
169
|
-
railties (= 4.2.
|
170
|
+
railties (= 4.2.5.1)
|
170
171
|
sprockets-rails
|
171
172
|
rails-deprecated_sanitizer (1.0.3)
|
172
173
|
activesupport (>= 4.2.0.alpha)
|
173
|
-
rails-dom-testing (1.0.
|
174
|
+
rails-dom-testing (1.0.7)
|
174
175
|
activesupport (>= 4.2.0.beta, < 5.0)
|
175
176
|
nokogiri (~> 1.6.0)
|
176
177
|
rails-deprecated_sanitizer (>= 1.0.1)
|
177
|
-
rails-html-sanitizer (1.0.
|
178
|
+
rails-html-sanitizer (1.0.3)
|
178
179
|
loofah (~> 2.0)
|
179
180
|
rails-observers (0.1.2)
|
180
181
|
activemodel (~> 4.0)
|
181
|
-
railties (4.2.
|
182
|
-
actionpack (= 4.2.
|
183
|
-
activesupport (= 4.2.
|
182
|
+
railties (4.2.5.1)
|
183
|
+
actionpack (= 4.2.5.1)
|
184
|
+
activesupport (= 4.2.5.1)
|
184
185
|
rake (>= 0.8.7)
|
185
186
|
thor (>= 0.18.1, < 2.0)
|
186
|
-
rake (10.
|
187
|
-
rb-fsevent (0.9.
|
187
|
+
rake (10.5.0)
|
188
|
+
rb-fsevent (0.9.7)
|
188
189
|
rb-inotify (0.9.5)
|
189
190
|
ffi (>= 0.5.0)
|
190
191
|
rdoc (3.12.2)
|
191
192
|
json (~> 1.4)
|
192
193
|
recaptcha (0.3.6)
|
193
194
|
ref (2.0.0)
|
195
|
+
roadie (3.1.1)
|
196
|
+
css_parser (~> 1.3.4)
|
197
|
+
nokogiri (>= 1.5.0, < 1.7.0)
|
198
|
+
roadie-rails (1.0.6)
|
199
|
+
railties (>= 3.0, < 4.3)
|
200
|
+
roadie (~> 3.0)
|
194
201
|
rspec-core (3.0.4)
|
195
202
|
rspec-support (~> 3.0.0)
|
196
203
|
rspec-expectations (3.0.4)
|
@@ -207,23 +214,23 @@ GEM
|
|
207
214
|
rspec-mocks (~> 3.0.0)
|
208
215
|
rspec-support (~> 3.0.0)
|
209
216
|
rspec-support (3.0.4)
|
210
|
-
ruby_parser (3.7.
|
217
|
+
ruby_parser (3.7.3)
|
211
218
|
sexp_processor (~> 4.1)
|
212
|
-
sass (3.4.
|
213
|
-
sass-rails (5.0.
|
219
|
+
sass (3.4.21)
|
220
|
+
sass-rails (5.0.4)
|
214
221
|
railties (>= 4.0.0, < 5.0)
|
215
222
|
sass (~> 3.1)
|
216
223
|
sprockets (>= 2.8, < 4.0)
|
217
224
|
sprockets-rails (>= 2.0, < 4.0)
|
218
|
-
tilt (
|
219
|
-
sexp_processor (4.6.
|
225
|
+
tilt (>= 1.1, < 3)
|
226
|
+
sexp_processor (4.6.1)
|
220
227
|
slop (3.6.0)
|
221
228
|
sprockets (2.12.4)
|
222
229
|
hike (~> 1.2)
|
223
230
|
multi_json (~> 1.0)
|
224
231
|
rack (~> 1.0)
|
225
232
|
tilt (~> 1.1, != 1.3.0)
|
226
|
-
sprockets-rails (2.3.
|
233
|
+
sprockets-rails (2.3.3)
|
227
234
|
actionpack (>= 3.0)
|
228
235
|
activesupport (>= 3.0)
|
229
236
|
sprockets (>= 2.8, < 4.0)
|
@@ -231,14 +238,14 @@ GEM
|
|
231
238
|
therubyracer (0.12.2)
|
232
239
|
libv8 (~> 3.16.14.0)
|
233
240
|
ref
|
234
|
-
thin (1.6.
|
241
|
+
thin (1.6.4)
|
235
242
|
daemons (~> 1.0, >= 1.0.9)
|
236
|
-
eventmachine (~> 1.0)
|
243
|
+
eventmachine (~> 1.0, >= 1.0.4)
|
237
244
|
rack (~> 1.0)
|
238
245
|
thor (0.19.1)
|
239
246
|
thread_safe (0.3.5)
|
240
247
|
tilt (1.4.1)
|
241
|
-
trusty-cms (2.0.
|
248
|
+
trusty-cms (2.0.13)
|
242
249
|
RedCloth (~> 4.2)
|
243
250
|
acts_as_tree (~> 2.1)
|
244
251
|
bundler (~> 1.7)
|
@@ -250,7 +257,7 @@ GEM
|
|
250
257
|
haml-rails (~> 0.5)
|
251
258
|
highline (~> 1.6)
|
252
259
|
jquery-rails (~> 3.1)
|
253
|
-
|
260
|
+
mysql2 (~> 0.4.2)
|
254
261
|
protected_attributes (~> 1.0.9)
|
255
262
|
rack (~> 1.4)
|
256
263
|
rack-cache (~> 1.2)
|
@@ -271,10 +278,10 @@ GEM
|
|
271
278
|
uglifier (2.7.2)
|
272
279
|
execjs (>= 0.3.0)
|
273
280
|
json (>= 1.8.0)
|
274
|
-
websocket-driver (0.6.
|
281
|
+
websocket-driver (0.6.3)
|
275
282
|
websocket-extensions (>= 0.1.0)
|
276
283
|
websocket-extensions (0.1.2)
|
277
|
-
will_paginate (3.0
|
284
|
+
will_paginate (3.1.0)
|
278
285
|
xpath (2.0.0)
|
279
286
|
nokogiri (~> 1.3)
|
280
287
|
|
@@ -6,8 +6,8 @@ class RadCaptchaFilter
|
|
6
6
|
@controller = controller
|
7
7
|
end
|
8
8
|
|
9
|
-
def self.
|
10
|
-
|
9
|
+
def self.before controller
|
10
|
+
RadCaptchaFilter.new(controller).verify
|
11
11
|
end
|
12
12
|
|
13
13
|
def verify
|
@@ -23,5 +23,4 @@ class RadCaptchaFilter
|
|
23
23
|
@controller.verify_recaptcha(:private_key => Rails.configuration.captcha_private_key)
|
24
24
|
end
|
25
25
|
|
26
|
-
|
27
|
-
end
|
26
|
+
end
|
@@ -13,7 +13,7 @@ class SocialMailerController < ApplicationController
|
|
13
13
|
:subject => params[:subject]
|
14
14
|
}
|
15
15
|
|
16
|
-
RadSocialMailer.social_mail(mailer_options).
|
16
|
+
RadSocialMailer.social_mail(mailer_options).deliver_now
|
17
17
|
head :ok
|
18
18
|
|
19
19
|
end
|
@@ -28,4 +28,4 @@ class SocialMailerController < ApplicationController
|
|
28
28
|
}
|
29
29
|
end
|
30
30
|
|
31
|
-
end
|
31
|
+
end
|
@@ -1,16 +1,21 @@
|
|
1
1
|
require 'mail'
|
2
2
|
class RadSocialMailer < ActionMailer::Base
|
3
|
+
include Roadie::Rails::Automatic
|
3
4
|
|
4
5
|
def social_mail options
|
5
|
-
|
6
|
-
#binding.pry
|
7
|
-
|
8
6
|
from_address = Mail::Address.new options[:from] # ex: "john@example.com"
|
9
7
|
from_address.display_name = options[:from_name] # ex: "John Doe"
|
10
|
-
mail(:to => options[:to], :from => from_address.format, :subject => options[:subject]) do |format|
|
11
|
-
format.html {render :text => options[:message]}
|
12
|
-
end
|
13
8
|
|
14
|
-
|
9
|
+
@from_name = from_address.display_name
|
10
|
+
@from_email = from_address
|
11
|
+
@message = options[:message]
|
15
12
|
|
16
|
-
|
13
|
+
mail({
|
14
|
+
to: options[:to],
|
15
|
+
from: @from_email,
|
16
|
+
subject: options[:subject],
|
17
|
+
text: @message,
|
18
|
+
content_type: "text/html"
|
19
|
+
})
|
20
|
+
end
|
21
|
+
end
|
File without changes
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TrustyRadSocialExtension
|
2
|
-
VERSION = "2.
|
2
|
+
VERSION = "2.2.0"
|
3
3
|
SUMMARY = "Rad Social for Trusty CMS"
|
4
4
|
DESCRIPTION = "Makes Trusty CMS better by adding rad_social!"
|
5
5
|
URL = "http://example.com/rad_social"
|
6
|
-
AUTHORS = ["Eric Sipple"]
|
7
|
-
EMAIL = ["sipple@trustarts.org"]
|
6
|
+
AUTHORS = ["Eric Sipple, Brittany Martin, Danielle Greaves"]
|
7
|
+
EMAIL = ["sipple@trustarts.org, martin@trustarts.org, greaves@trustarts.org"]
|
8
8
|
end
|
@@ -17,7 +17,8 @@ Gem::Specification.new do |s|
|
|
17
17
|
# s.add_dependency "something", "~> 1.0.0"
|
18
18
|
s.add_dependency "recaptcha", "~> 0.3.6"
|
19
19
|
s.add_dependency "trusty-cms", "~> 2.0.0"
|
20
|
-
s.add_dependency "trusty-layouts-extension", "~> 2.0.
|
20
|
+
s.add_dependency "trusty-layouts-extension", "~> 2.0.2"
|
21
|
+
s.add_dependency 'roadie-rails', '~> 1.0.6'
|
21
22
|
|
22
23
|
ignores = if File.exist?('.gitignore')
|
23
24
|
File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-rad-social-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Eric Sipple
|
7
|
+
- Eric Sipple, Brittany Martin, Danielle Greaves
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: recaptcha
|
@@ -44,17 +44,31 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 2.0.
|
47
|
+
version: 2.0.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 2.0.
|
54
|
+
version: 2.0.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: roadie-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.0.6
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.0.6
|
55
69
|
description: Makes Trusty CMS better by adding rad_social!
|
56
70
|
email:
|
57
|
-
- sipple@trustarts.org
|
71
|
+
- sipple@trustarts.org, martin@trustarts.org, greaves@trustarts.org
|
58
72
|
executables: []
|
59
73
|
extensions: []
|
60
74
|
extra_rdoc_files: []
|
@@ -84,7 +98,7 @@ files:
|
|
84
98
|
- app/controllers/social_mailer_controller.rb
|
85
99
|
- app/helpers/rad_social_helper.rb
|
86
100
|
- app/models/rad_social_mailer.rb
|
87
|
-
- app/views/rad_social_mailer/social_mail.
|
101
|
+
- app/views/rad_social_mailer/social_mail.html.haml
|
88
102
|
- app/views/rad_social_mailer/social_mail_form.html.haml
|
89
103
|
- app/views/widget/_email_form.html.haml
|
90
104
|
- app/views/widget/_horizontal_widget.html.haml
|