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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f928c02404c0c8b6e20583084d3cd03593646781
4
- data.tar.gz: 920129933630185191feda75f67acda95d24ec29
3
+ metadata.gz: aab4a9746aa6bbcc8e956fa3e6262ed2ab389adf
4
+ data.tar.gz: 2d99ed7c7584525d8afadb672469c3ffcdbec30c
5
5
  SHA512:
6
- metadata.gz: 4edb0829d9e9d75234881fdffe09552fb5f6caad023c8c4618ab8292ae417fe0278005978e57b332cf0d34aaa5197ec04ac2a9dde78ca84d23fba1ddfe514bf1
7
- data.tar.gz: a92416c64a8ed33eeb7eba864b1ac53cd9b786b50091e9d2aa54398a1a16830ed6255688268b70699f0d62569670256004c609b9f648c1401f6a98b3f850cb4a
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.1.0)
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.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.3)
14
- actionpack (= 4.2.3)
15
- actionview (= 4.2.3)
16
- activejob (= 4.2.3)
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.3)
20
- actionview (= 4.2.3)
21
- activesupport (= 4.2.3)
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.3)
27
- activesupport (= 4.2.3)
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.3)
33
- activesupport (= 4.2.3)
33
+ activejob (4.2.5.1)
34
+ activesupport (= 4.2.5.1)
34
35
  globalid (>= 0.3.0)
35
- activemodel (4.2.3)
36
- activesupport (= 4.2.3)
36
+ activemodel (4.2.5.1)
37
+ activesupport (= 4.2.5.1)
37
38
  builder (~> 3.1)
38
- activerecord (4.2.3)
39
- activemodel (= 4.2.3)
40
- activesupport (= 4.2.3)
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.3)
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.2.0)
49
+ acts_as_tree (2.4.0)
49
50
  activerecord (>= 3.0.0)
50
- addressable (2.3.8)
51
+ addressable (2.4.0)
51
52
  arel (6.0.3)
52
53
  builder (3.2.2)
53
- byebug (5.0.0)
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.4)
62
- ckeditor (4.1.3)
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.7)
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.3)
83
+ compass-rails (2.0.5)
85
84
  compass (~> 1.0.0)
86
- sass-rails (<= 5.0.1)
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.8)
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.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.11)
127
- loofah (2.0.2)
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.6.1)
133
- mini_portile (0.6.2)
134
- minitest (5.8.0)
133
+ mime-types (2.99)
134
+ mini_portile2 (2.0.0)
135
+ minitest (5.8.4)
135
136
  multi_json (1.11.2)
136
- mysql (2.9.1)
137
- nokogiri (1.6.6.2)
138
- mini_portile (~> 0.6.0)
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.1)
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.2.0)
152
- byebug (~> 5.0)
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.2)
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.3)
161
- actionmailer (= 4.2.3)
162
- actionpack (= 4.2.3)
163
- actionview (= 4.2.3)
164
- activejob (= 4.2.3)
165
- activemodel (= 4.2.3)
166
- activerecord (= 4.2.3)
167
- activesupport (= 4.2.3)
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.3)
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.6)
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.2)
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.3)
182
- actionpack (= 4.2.3)
183
- activesupport (= 4.2.3)
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.4.2)
187
- rb-fsevent (0.9.5)
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.1)
217
+ ruby_parser (3.7.3)
211
218
  sexp_processor (~> 4.1)
212
- sass (3.4.16)
213
- sass-rails (5.0.1)
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 (~> 1.1)
219
- sexp_processor (4.6.0)
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.2)
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.3)
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.11)
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
- mysql (~> 2.9)
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.2)
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.7)
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.filter controller
10
- Filters::RadCaptchaFilter.new(controller).verify
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).deliver
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
- end
9
+ @from_name = from_address.display_name
10
+ @from_email = from_address
11
+ @message = options[:message]
15
12
 
16
- end
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
@@ -1,8 +1,8 @@
1
1
  module TrustyRadSocialExtension
2
- VERSION = "2.1.0"
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.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.1.0
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: 2015-09-25 00:00:00.000000000 Z
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.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.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.text.html.haml
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