trusty-cms 3.7.1 → 3.8.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66653170ed2ff1f3e44d119379737f1b23e7cb3f034fa835e7463f55a295b23b
4
- data.tar.gz: 9f2e6451449b1f615489dc069e8f0eeeeb5947e755a2e1768b9e509e686ce704
3
+ metadata.gz: '09c49ebf8ef38af2824b8e5ec60b4cc04251e1ff3c20c91181c7ffdf83eaec80'
4
+ data.tar.gz: f771d1fade5badacbd46f3f901033b4a8d5ece389d1fd44706c9955420c902bb
5
5
  SHA512:
6
- metadata.gz: ee32a4bdeeb850891cb630cea5767771934a1408b765d3ab0cc2299139687b40843f5498454e63bb2258900693a3dfc0b5ca14355c76013f2d1be526ac09d410
7
- data.tar.gz: 558c43831e03d4c2ee30f5a0f7aa38bd3244f2a578cec9255cca07f5532b06c365325f83dce31b9b5680b43612a3c3628628208cf69809718e73d0677221504d
6
+ metadata.gz: 74a743d6606fb307e1e453dd53f89b64975e55e2de1e73f494a54e2ff45d4e657d9de34caeab7797810ec3173c3a70190300bbbabd3a25bdc5fad64205c2c3b4
7
+ data.tar.gz: 7fd3beabdd23c7f8aed72074d9e3f30e7b6050e8c5842705fedd7a442e38179e5c69b7fea4051624d69f1f1d9c4aff5af5d2e7b1554f66765fb92c4ad70d1bef
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (3.7.1)
4
+ trusty-cms (3.8.0)
5
5
  RedCloth (= 4.3.2)
6
6
  acts_as_list (~> 0.9.5)
7
7
  acts_as_tree (>= 2.6.1, < 2.9.0)
@@ -96,12 +96,12 @@ GEM
96
96
  orm_adapter (~> 0.5.0)
97
97
  climate_control (0.2.0)
98
98
  cliver (0.3.2)
99
- cocaine (0.5.8)
100
- climate_control (>= 0.0.3, < 1.0)
99
+ cocaine (0.6.0)
100
+ terrapin (= 0.6.0)
101
101
  coderay (1.1.2)
102
102
  concurrent-ruby (1.1.5)
103
- crass (1.0.4)
104
- css_parser (1.7.0)
103
+ crass (1.0.5)
104
+ css_parser (1.7.1)
105
105
  addressable
106
106
  database_cleaner (1.7.0)
107
107
  delocalize (1.2.0)
@@ -128,13 +128,13 @@ GEM
128
128
  haml (>= 4.0.6, < 6.0)
129
129
  html2haml (>= 1.0.1)
130
130
  railties (>= 4.0.1)
131
- highline (2.0.2)
131
+ highline (2.0.3)
132
132
  html2haml (2.2.0)
133
133
  erubis (~> 2.7.0)
134
134
  haml (>= 4.0, < 6)
135
135
  nokogiri (>= 1.6.0)
136
136
  ruby_parser (~> 3.5)
137
- httparty (0.17.0)
137
+ httparty (0.17.3)
138
138
  mime-types (~> 3.0)
139
139
  multi_xml (>= 0.5.2)
140
140
  i18n (1.6.0)
@@ -148,7 +148,7 @@ GEM
148
148
  launchy (2.4.3)
149
149
  addressable (~> 2.3)
150
150
  libv8 (7.3.492.27.1-x86_64-linux)
151
- loofah (2.2.3)
151
+ loofah (2.4.0)
152
152
  crass (~> 1.0.2)
153
153
  nokogiri (>= 1.5.9)
154
154
  mail (2.7.1)
@@ -156,28 +156,28 @@ GEM
156
156
  marcel (0.3.3)
157
157
  mimemagic (~> 0.3.2)
158
158
  method_source (0.9.2)
159
- mime-types (3.2.2)
159
+ mime-types (3.3.1)
160
160
  mime-types-data (~> 3.2015)
161
- mime-types-data (3.2019.0331)
161
+ mime-types-data (3.2019.1009)
162
162
  mimemagic (0.3.3)
163
163
  mini_mime (1.0.1)
164
164
  mini_portile2 (2.4.0)
165
- mini_racer (0.2.6)
165
+ mini_racer (0.2.9)
166
166
  libv8 (>= 6.9.411)
167
167
  minitest (5.11.3)
168
168
  multi_xml (0.6.0)
169
169
  multipart-post (2.1.1)
170
- mysql2 (0.5.2)
171
- nio4r (2.4.0)
172
- nokogiri (1.10.4)
170
+ mysql2 (0.5.3)
171
+ nio4r (2.5.2)
172
+ nokogiri (1.10.7)
173
173
  mini_portile2 (~> 2.4.0)
174
174
  orm_adapter (0.5.0)
175
- paperclip (5.2.1)
175
+ paperclip (6.1.0)
176
176
  activemodel (>= 4.2.0)
177
177
  activesupport (>= 4.2.0)
178
- cocaine (~> 0.5.5)
179
178
  mime-types
180
179
  mimemagic (~> 0.3.0)
180
+ terrapin (~> 0.6.0)
181
181
  poltergeist (1.18.1)
182
182
  capybara (>= 2.1, < 4)
183
183
  cliver (~> 0.3.1)
@@ -189,8 +189,8 @@ GEM
189
189
  byebug (~> 11.0)
190
190
  pry (~> 0.10)
191
191
  public_suffix (3.1.1)
192
- rack (2.0.7)
193
- rack-cache (1.9.0)
192
+ rack (2.0.8)
193
+ rack-cache (1.11.0)
194
194
  rack (>= 0.4)
195
195
  rack-test (1.1.0)
196
196
  rack (>= 1.0, < 3)
@@ -225,14 +225,14 @@ GEM
225
225
  rb-fsevent (0.10.3)
226
226
  rb-inotify (0.10.0)
227
227
  ffi (~> 1.0)
228
- rdoc (6.1.1)
228
+ rdoc (6.2.1)
229
229
  regexp_parser (1.5.1)
230
- roadie (3.5.0)
230
+ roadie (4.0.0)
231
231
  css_parser (~> 1.4)
232
232
  nokogiri (~> 1.8)
233
- roadie-rails (1.3.0)
234
- railties (>= 3.0, < 5.3)
235
- roadie (~> 3.1)
233
+ roadie-rails (2.1.1)
234
+ railties (>= 5.1, < 6.1)
235
+ roadie (>= 3.1, < 5.0)
236
236
  rspec-core (3.8.1)
237
237
  rspec-support (~> 3.8.0)
238
238
  rspec-expectations (3.8.4)
@@ -250,7 +250,7 @@ GEM
250
250
  rspec-mocks (~> 3.8.0)
251
251
  rspec-support (~> 3.8.0)
252
252
  rspec-support (3.8.2)
253
- ruby_parser (3.13.1)
253
+ ruby_parser (3.14.1)
254
254
  sexp_processor (~> 4.9)
255
255
  sass (3.7.4)
256
256
  sass-listen (~> 4.0.0)
@@ -263,7 +263,7 @@ GEM
263
263
  sprockets (>= 2.8, < 4.0)
264
264
  sprockets-rails (>= 2.0, < 4.0)
265
265
  tilt (>= 1.1, < 3)
266
- sexp_processor (4.12.1)
266
+ sexp_processor (4.13.0)
267
267
  simplecov (0.17.0)
268
268
  docile (~> 1.1)
269
269
  json (>= 1.8, < 3)
@@ -277,7 +277,9 @@ GEM
277
277
  activesupport (>= 4.0)
278
278
  sprockets (>= 3.0.0)
279
279
  stringex (2.8.5)
280
- temple (0.8.1)
280
+ temple (0.8.2)
281
+ terrapin (0.6.0)
282
+ climate_control (>= 0.0.3, < 1.0)
281
283
  thor (0.20.3)
282
284
  thread_safe (0.3.6)
283
285
  tilt (2.0.9)
@@ -285,13 +287,13 @@ GEM
285
287
  rake
286
288
  tzinfo (1.2.5)
287
289
  thread_safe (~> 0.1)
288
- uglifier (4.1.20)
290
+ uglifier (4.2.0)
289
291
  execjs (>= 0.3.0, < 3)
290
292
  uuidtools (2.1.5)
291
293
  websocket-driver (0.7.1)
292
294
  websocket-extensions (>= 0.1.0)
293
295
  websocket-extensions (0.1.4)
294
- will_paginate (3.1.7)
296
+ will_paginate (3.2.1)
295
297
  xpath (3.2.0)
296
298
  nokogiri (~> 1.8)
297
299
 
@@ -16,9 +16,6 @@ function RadAjaxForm(form) {
16
16
  type: "POST",
17
17
  url: form.find('input[name=submit_url]').attr('value'),
18
18
  data: form.serialize(),
19
- beforeSend: function ( xhr ) {
20
- xhr.setRequestHeader("X-CSRF-Token", $("#auth_token").attr('value'));
21
- },
22
19
  success: function(data, status, xhr) {
23
20
  form.find(".loader").removeClass('ajax-loader');
24
21
  form.find(".loader-small").removeClass('ajax-loader-small');
@@ -1,15 +1,11 @@
1
1
  class Admin::PasswordResetsController < ApplicationController
2
2
  no_login_required
3
- skip_before_action :verify_authenticity_token
4
3
 
5
4
  def create
6
5
  user = User.find_by_email(params[:email])
7
- if user
8
- user.send_password_reset
9
- redirect_to welcome_path, :notice => "Email sent with password reset instructions."
10
- else
11
- redirect_to welcome_path, :notice => "Email not registered. Double check your spelling or seek out your Admin."
12
- end
6
+ user.send_password_reset if user
7
+ redirect_to welcome_path, :notice => "If the e-mail address you entered is associated with a customer account in our records, you will receive an e-mail from us with instructions for resetting your password.
8
+ If you don't receive this e-mail, please check your junk mail folder or speak with your TrustyCMS administrator."
13
9
  end
14
10
 
15
11
  def edit
@@ -32,5 +28,4 @@ private
32
28
  def password_params
33
29
  params.require(:user).permit(:password, :password_confirmation)
34
30
  end
35
-
36
31
  end
@@ -1,7 +1,6 @@
1
1
  class Admin::WelcomeController < ApplicationController
2
2
  no_login_required
3
3
  before_action :never_cache
4
- skip_before_action :verify_authenticity_token
5
4
 
6
5
  def index
7
6
  redirect_to admin_pages_path
@@ -5,8 +5,8 @@ class ApplicationController < ActionController::Base
5
5
  include LoginSystem
6
6
  # TODO: Add an ActionView::PathSet.new([paths]) for all extension view paths
7
7
  prepend_view_path("#{TRUSTY_CMS_ROOT}/app/views")
8
-
9
- protect_from_forgery
8
+
9
+ protect_from_forgery with: :exception
10
10
 
11
11
  before_action :set_current_user
12
12
  before_action :set_timezone
@@ -2,7 +2,6 @@ require 'trusty_cms/pagination/controller'
2
2
  class SiteController < ApplicationController
3
3
  include TrustyCms::Pagination::Controller
4
4
 
5
- skip_before_action :verify_authenticity_token
6
5
  no_login_required
7
6
 
8
7
  def self.cache_timeout=(val)
@@ -10,9 +10,3 @@
10
10
  = text_field_tag :email, params[:email], :class => 'textbox', :maxlength => 70, :size => 70
11
11
  .actions
12
12
  = submit_tag "Reset Password"
13
-
14
- %p.version
15
- = t('powered_by')
16
- %a{ :href => "https://github.com/pgharts/trusty-cms" } TrustyCms CMS
17
- = t('version')
18
- = TrustyCms.loaded_via_gem? ? "#{TrustyCms::VERSION} (gem)." : "#{TrustyCms::VERSION}."
@@ -31,7 +31,7 @@
31
31
  = h(site.base_domain)
32
32
  - tbody.modify_cell do
33
33
  %td.remove
34
- = link_to image("remove.png", :alt => "Remove"), admin_site_path(site), :method => :delete, :confirm => "Are you sure you want to permanently remove #{site.name}?"
34
+ = link_to image("remove.png", :alt => "Remove"), admin_site_path(site), :method => :delete, :onclick => "return confirm('Are you sure you want to permanently remove #{site.name}?')"
35
35
  - tbody.order_cell do
36
36
  %td.order
37
37
  = order_links(site).html_safe
@@ -16,9 +16,3 @@
16
16
  %label.checkbox{:for=>"remember_me"}= t('remember_me_in_this_browser')
17
17
  .buttons
18
18
  %input.button{:type => "submit", :value => t('login')}
19
-
20
- %p.version
21
- = t('powered_by')
22
- %a{ :href => "https://github.com/pgharts/trusty-cms" } TrustyCms CMS
23
- = t('version')
24
- = TrustyCms.loaded_via_gem? ? "#{TrustyCms::VERSION} (gem)." : "#{TrustyCms::VERSION}."
@@ -8,7 +8,6 @@
8
8
 
9
9
  %form{:id=>'rad-social-email-form', :class=>"rad-email-form"}
10
10
  .rad-email-error
11
- %input{:type=>'hidden', :id=> "auth_token", :value=>"#{form_authenticity_token}"}
12
11
  %div.form-row
13
12
  %label.form-label{:type=>"label", :for=>"from"}
14
13
  From Email
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '3.7.1'
5
+ VERSION = '3.8.0'
6
6
  end
7
7
  end
@@ -101,12 +101,6 @@ module AssetTags
101
101
  end
102
102
  end
103
103
 
104
-
105
-
106
-
107
-
108
-
109
-
110
104
  desc %{
111
105
  Renders the value for a top padding for a thumbnail. Put the thumbnail in a
112
106
  container with specified height and using this tag you can vertically
@@ -230,33 +224,6 @@ module AssetTags
230
224
  url = tag.locals.asset.thumbnail(size)
231
225
  ActionController::Base.helpers.image_tag(url, options)
232
226
  end
233
-
234
- desc %{
235
- Embeds a flash-movie in a cross-browser-compatible fashion using only HTML
236
- If no width and height attributes are given it will use the intrinsic
237
- dimensions of the swf file
238
-
239
- *Usage:*
240
- <pre><code><r:asset:flash [name="asset name" or id="asset id"] [width="100"] [height="100"]>Fallback content</flash></code></pre>
241
-
242
- *Example with text fallback:*
243
- <pre><code><r:asset:flash name="flash_movie">
244
- Sorry, you need to have flash installed, <a href="http://adobe.com/flash">get it here</a>
245
- </flash></code></pre>
246
-
247
- *Example with image fallback and explicit dimensions:*
248
- <pre><code><r:asset:flash name="flash_movie" width="300" height="200">
249
- <r:asset:image name="flash_screenshot" />
250
- </flash></code></pre>
251
- }
252
- tag 'asset:flash' do |tag|
253
- asset, options = asset_and_options(tag)
254
- if tag.locals.asset.flash?
255
- url = asset.thumbnail('original')
256
- dimensions = [(tag.attr['width'] || asset.width),(tag.attr['height'] || asset.height)]
257
- swf_embed_markup url, dimensions, tag.expand
258
- end
259
- end
260
227
 
261
228
  desc %{
262
229
  Renders the url for the asset. If the asset is an image, the <code>size</code> attribute can be used to
data/yarn.lock CHANGED
@@ -5,13 +5,16 @@
5
5
  jquery-ui-bundle@^1.12.1:
6
6
  version "1.12.1"
7
7
  resolved "https://registry.yarnpkg.com/jquery-ui-bundle/-/jquery-ui-bundle-1.12.1.tgz#d6be2e4c377494e2378b1cae2920a91d1182d8c4"
8
+ integrity sha1-1r4uTDd0lOI3ixyuKSCpHRGC2MQ=
8
9
 
9
10
  jquery-ujs@^1.2.2:
10
11
  version "1.2.2"
11
12
  resolved "https://registry.yarnpkg.com/jquery-ujs/-/jquery-ujs-1.2.2.tgz#6a8ef1020e6b6dda385b90a4bddc128c21c56397"
13
+ integrity sha1-ao7xAg5rbdo4W5CkvdwSjCHFY5c=
12
14
  dependencies:
13
15
  jquery ">=1.8.0"
14
16
 
15
17
  jquery@>=1.8.0, jquery@^3.2.1:
16
- version "3.2.1"
17
- resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.2.1.tgz#5c4d9de652af6cd0a770154a631bba12b015c787"
18
+ version "3.4.1"
19
+ resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2"
20
+ integrity sha512-36+AdBzCL+y6qjw5Tx7HgzeGCzC81MDDgaUP8ld2zhx58HdqXGoBd+tHdrBMiyjGQs0Hxs/MLZTu/eHNJJuWPw==
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.1
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-14 00:00:00.000000000 Z
11
+ date: 2020-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -786,6 +786,31 @@ files:
786
786
  - config/locales/en_available_tags.yml
787
787
  - config/routes.rb
788
788
  - config/trustygems.yml
789
+ - coverage/assets/0.10.2/application.css
790
+ - coverage/assets/0.10.2/application.js
791
+ - coverage/assets/0.10.2/colorbox/border.png
792
+ - coverage/assets/0.10.2/colorbox/controls.png
793
+ - coverage/assets/0.10.2/colorbox/loading.gif
794
+ - coverage/assets/0.10.2/colorbox/loading_background.png
795
+ - coverage/assets/0.10.2/favicon_green.png
796
+ - coverage/assets/0.10.2/favicon_red.png
797
+ - coverage/assets/0.10.2/favicon_yellow.png
798
+ - coverage/assets/0.10.2/loading.gif
799
+ - coverage/assets/0.10.2/magnify.png
800
+ - coverage/assets/0.10.2/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png
801
+ - coverage/assets/0.10.2/smoothness/images/ui-bg_flat_75_ffffff_40x100.png
802
+ - coverage/assets/0.10.2/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png
803
+ - coverage/assets/0.10.2/smoothness/images/ui-bg_glass_65_ffffff_1x400.png
804
+ - coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_dadada_1x400.png
805
+ - coverage/assets/0.10.2/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png
806
+ - coverage/assets/0.10.2/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png
807
+ - coverage/assets/0.10.2/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png
808
+ - coverage/assets/0.10.2/smoothness/images/ui-icons_222222_256x240.png
809
+ - coverage/assets/0.10.2/smoothness/images/ui-icons_2e83ff_256x240.png
810
+ - coverage/assets/0.10.2/smoothness/images/ui-icons_454545_256x240.png
811
+ - coverage/assets/0.10.2/smoothness/images/ui-icons_888888_256x240.png
812
+ - coverage/assets/0.10.2/smoothness/images/ui-icons_cd0a0a_256x240.png
813
+ - coverage/index.html
789
814
  - db/migrate/001_create_radiant_tables.rb
790
815
  - db/migrate/002_insert_initial_data.rb
791
816
  - db/migrate/004_rename_filter_column.rb
@@ -1015,6 +1040,7 @@ files:
1015
1040
  - spec/dummy/public/422.html
1016
1041
  - spec/dummy/public/500.html
1017
1042
  - spec/dummy/public/favicon.ico
1043
+ - spec/dummy/tmp/radiant_config_cache.txt
1018
1044
  - spec/dummy/yarn.lock
1019
1045
  - spec/factories/layout.rb
1020
1046
  - spec/factories/page.rb
@@ -1125,7 +1151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1125
1151
  - !ruby/object:Gem::Version
1126
1152
  version: 1.3.1
1127
1153
  requirements: []
1128
- rubygems_version: 3.0.3
1154
+ rubygems_version: 3.1.2
1129
1155
  signing_key:
1130
1156
  specification_version: 4
1131
1157
  summary: A no-fluff content management system designed for small teams.
@@ -1167,6 +1193,7 @@ test_files:
1167
1193
  - spec/dummy/public/422.html
1168
1194
  - spec/dummy/public/500.html
1169
1195
  - spec/dummy/public/favicon.ico
1196
+ - spec/dummy/tmp/radiant_config_cache.txt
1170
1197
  - spec/dummy/yarn.lock
1171
1198
  - spec/factories/layout.rb
1172
1199
  - spec/factories/page.rb