trusty-cms 3.1.0 → 3.1.1

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
  SHA1:
3
- metadata.gz: 59bd087c0c6085d8bb6c23cfd7919be17b318b78
4
- data.tar.gz: 27768e8a098a1cbb8cb113b04a603f68c408f87a
3
+ metadata.gz: 3cead9f65243654c5db3f112ee0274f9a977e9b7
4
+ data.tar.gz: 57e404a11ad0d7bfe9c34825579f22b03c1ea7b5
5
5
  SHA512:
6
- metadata.gz: d5e36d0f912a42bc29d6844fdfe02ea503152be1f7878e7a6c7eadaa1bfd1cda14dfee24a8529bdca349f011e487f2071aeb8b182105085d8503b531cc0bb578
7
- data.tar.gz: dc3830e601705b494cd56a62a2dd8f6b5c3a29694568467745d949b94714c6a14a08bafc07444c26ba0b21f5b837b0b90f9f9179b081e7039fb9bb184fa9389d
6
+ metadata.gz: 44190a6b1dfd010bf0a37652a9888da544b0088cdf8d55c9fca300900392993daf4434baca16932e80226d4254f2447596b30f07d8f8ebd41216292a4391a77c
7
+ data.tar.gz: 29d225e743a037cbd1b7459a9dff0f0cdb3aaa2aa065b43e0f690b156a625da36d699040249e078fe978297b0b5ae07e5154ccd59528db0978e470a526a5991f
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- trusty-cms (3.1.0)
11
+ trusty-cms (3.1.1)
12
12
  RedCloth (~> 4.3.2)
13
13
  acts_as_tree (~> 2.6.1)
14
14
  bundler (~> 1.7)
@@ -39,50 +39,50 @@ GEM
39
39
  remote: https://rubygems.org/
40
40
  specs:
41
41
  RedCloth (4.3.2)
42
- actioncable (5.1.3)
43
- actionpack (= 5.1.3)
42
+ actioncable (5.1.4)
43
+ actionpack (= 5.1.4)
44
44
  nio4r (~> 2.0)
45
45
  websocket-driver (~> 0.6.1)
46
- actionmailer (5.1.3)
47
- actionpack (= 5.1.3)
48
- actionview (= 5.1.3)
49
- activejob (= 5.1.3)
46
+ actionmailer (5.1.4)
47
+ actionpack (= 5.1.4)
48
+ actionview (= 5.1.4)
49
+ activejob (= 5.1.4)
50
50
  mail (~> 2.5, >= 2.5.4)
51
51
  rails-dom-testing (~> 2.0)
52
- actionpack (5.1.3)
53
- actionview (= 5.1.3)
54
- activesupport (= 5.1.3)
52
+ actionpack (5.1.4)
53
+ actionview (= 5.1.4)
54
+ activesupport (= 5.1.4)
55
55
  rack (~> 2.0)
56
- rack-test (~> 0.6.3)
56
+ rack-test (>= 0.6.3)
57
57
  rails-dom-testing (~> 2.0)
58
58
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
59
- actionview (5.1.3)
60
- activesupport (= 5.1.3)
59
+ actionview (5.1.4)
60
+ activesupport (= 5.1.4)
61
61
  builder (~> 3.1)
62
62
  erubi (~> 1.4)
63
63
  rails-dom-testing (~> 2.0)
64
64
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
65
- activejob (5.1.3)
66
- activesupport (= 5.1.3)
65
+ activejob (5.1.4)
66
+ activesupport (= 5.1.4)
67
67
  globalid (>= 0.3.6)
68
- activemodel (5.1.3)
69
- activesupport (= 5.1.3)
70
- activerecord (5.1.3)
71
- activemodel (= 5.1.3)
72
- activesupport (= 5.1.3)
68
+ activemodel (5.1.4)
69
+ activesupport (= 5.1.4)
70
+ activerecord (5.1.4)
71
+ activemodel (= 5.1.4)
72
+ activesupport (= 5.1.4)
73
73
  arel (~> 8.0)
74
- activesupport (5.1.3)
74
+ activesupport (5.1.4)
75
75
  concurrent-ruby (~> 1.0, >= 1.0.2)
76
76
  i18n (~> 0.7)
77
77
  minitest (~> 5.1)
78
78
  tzinfo (~> 1.1)
79
79
  acts_as_tree (2.6.1)
80
80
  activerecord (>= 3.0.0)
81
- addressable (2.5.1)
82
- public_suffix (~> 2.0, >= 2.0.2)
81
+ addressable (2.5.2)
82
+ public_suffix (>= 2.0.2, < 4.0)
83
83
  arel (8.0.0)
84
84
  builder (3.2.3)
85
- byebug (9.0.6)
85
+ byebug (9.1.0)
86
86
  capybara (2.13.0)
87
87
  addressable
88
88
  mime-types (>= 1.16)
@@ -100,7 +100,7 @@ GEM
100
100
  climate_control (>= 0.0.3, < 1.0)
101
101
  codeclimate-test-reporter (1.0.8)
102
102
  simplecov (<= 0.13)
103
- coderay (1.1.1)
103
+ coderay (1.1.2)
104
104
  compass (1.0.3)
105
105
  chunky_png (~> 1.2)
106
106
  compass-core (~> 1.0.2)
@@ -118,7 +118,7 @@ GEM
118
118
  sass-rails (< 5.1)
119
119
  sprockets (< 4.0)
120
120
  concurrent-ruby (1.0.5)
121
- css_parser (1.5.0)
121
+ css_parser (1.6.0)
122
122
  addressable
123
123
  database_cleaner (1.5.3)
124
124
  delocalize (0.4.0)
@@ -136,7 +136,7 @@ GEM
136
136
  ffi (1.9.18)
137
137
  globalid (0.4.0)
138
138
  activesupport (>= 4.2.0)
139
- haml (5.0.2)
139
+ haml (5.0.3)
140
140
  temple (>= 0.8.0)
141
141
  tilt
142
142
  haml-rails (1.0.0)
@@ -159,7 +159,7 @@ GEM
159
159
  json (2.1.0)
160
160
  launchy (2.4.3)
161
161
  addressable (~> 2.3)
162
- libv8 (3.16.14.19-x86_64-darwin-16)
162
+ libv8 (3.16.14.19)
163
163
  loofah (2.0.3)
164
164
  nokogiri (>= 1.5.9)
165
165
  mail (2.6.6)
@@ -170,8 +170,8 @@ GEM
170
170
  mime-types-data (3.2016.0521)
171
171
  mini_portile2 (2.2.0)
172
172
  minitest (5.10.3)
173
- multi_json (1.12.1)
174
- mysql2 (0.4.8)
173
+ multi_json (1.12.2)
174
+ mysql2 (0.4.9)
175
175
  nio4r (2.1.0)
176
176
  nokogiri (1.8.0)
177
177
  mini_portile2 (~> 2.2.0)
@@ -184,38 +184,38 @@ GEM
184
184
  coderay (~> 1.1.0)
185
185
  method_source (~> 0.8.1)
186
186
  slop (~> 3.4)
187
- pry-byebug (3.4.2)
188
- byebug (~> 9.0)
187
+ pry-byebug (3.5.0)
188
+ byebug (~> 9.1)
189
189
  pry (~> 0.10)
190
190
  pry-rails (0.3.6)
191
191
  pry (>= 0.10.4)
192
- public_suffix (2.0.5)
192
+ public_suffix (3.0.0)
193
193
  rack (2.0.3)
194
- rack-cache (1.7.0)
194
+ rack-cache (1.7.1)
195
195
  rack (>= 0.4)
196
- rack-test (0.6.3)
197
- rack (>= 1.0)
196
+ rack-test (0.7.0)
197
+ rack (>= 1.0, < 3)
198
198
  radius (0.7.4)
199
- rails (5.1.3)
200
- actioncable (= 5.1.3)
201
- actionmailer (= 5.1.3)
202
- actionpack (= 5.1.3)
203
- actionview (= 5.1.3)
204
- activejob (= 5.1.3)
205
- activemodel (= 5.1.3)
206
- activerecord (= 5.1.3)
207
- activesupport (= 5.1.3)
199
+ rails (5.1.4)
200
+ actioncable (= 5.1.4)
201
+ actionmailer (= 5.1.4)
202
+ actionpack (= 5.1.4)
203
+ actionview (= 5.1.4)
204
+ activejob (= 5.1.4)
205
+ activemodel (= 5.1.4)
206
+ activerecord (= 5.1.4)
207
+ activesupport (= 5.1.4)
208
208
  bundler (>= 1.3.0)
209
- railties (= 5.1.3)
209
+ railties (= 5.1.4)
210
210
  sprockets-rails (>= 2.0.0)
211
211
  rails-dom-testing (2.0.3)
212
212
  activesupport (>= 4.2.0)
213
213
  nokogiri (>= 1.6)
214
214
  rails-html-sanitizer (1.0.3)
215
215
  loofah (~> 2.0)
216
- railties (5.1.3)
217
- actionpack (= 5.1.3)
218
- activesupport (= 5.1.3)
216
+ railties (5.1.4)
217
+ actionpack (= 5.1.4)
218
+ activesupport (= 5.1.4)
219
219
  method_source
220
220
  rake (>= 0.8.7)
221
221
  thor (>= 0.18.1, < 2.0)
@@ -239,7 +239,7 @@ GEM
239
239
  rspec-mocks (3.6.0)
240
240
  diff-lcs (>= 1.2.0, < 2.0)
241
241
  rspec-support (~> 3.6.0)
242
- rspec-rails (3.6.0)
242
+ rspec-rails (3.6.1)
243
243
  actionpack (>= 3.0)
244
244
  activesupport (>= 3.0)
245
245
  railties (>= 3.0)
@@ -262,12 +262,12 @@ GEM
262
262
  docile (~> 1.1.0)
263
263
  json (>= 1.8, < 3)
264
264
  simplecov-html (~> 0.10.0)
265
- simplecov-html (0.10.1)
265
+ simplecov-html (0.10.2)
266
266
  slop (3.6.0)
267
267
  sprockets (3.7.1)
268
268
  concurrent-ruby (~> 1.0)
269
269
  rack (> 1, < 3)
270
- sprockets-rails (3.2.0)
270
+ sprockets-rails (3.2.1)
271
271
  actionpack (>= 4.0)
272
272
  activesupport (>= 4.0)
273
273
  sprockets (>= 3.0.0)
@@ -276,7 +276,7 @@ GEM
276
276
  therubyracer (0.12.3)
277
277
  libv8 (~> 3.16.14.15)
278
278
  ref
279
- thor (0.19.4)
279
+ thor (0.20.0)
280
280
  thread_safe (0.3.6)
281
281
  tilt (2.0.8)
282
282
  trustygems (0.2.1)
@@ -314,4 +314,4 @@ DEPENDENCIES
314
314
  trustygems (~> 0.2.0)
315
315
 
316
316
  BUNDLED WITH
317
- 1.15.3
317
+ 1.16.0.pre.2
@@ -20,10 +20,17 @@ class Admin::PasswordResetsController < ApplicationController
20
20
  @user = User.find_by_password_reset_token!(params[:id])
21
21
  if @user.password_reset_sent_at < 2.hours.ago
22
22
  redirect_to new_password_reset_path, :alert => "Password reset has expired."
23
- elsif @user.update_attributes(params[:user])
23
+ elsif @user.update_attributes(password_params)
24
24
  redirect_to welcome_url, :notice => "Password has been reset!"
25
25
  else
26
26
  render :edit
27
27
  end
28
28
  end
29
+
30
+ private
31
+
32
+ def password_params
33
+ params.require(:user).permit(:password, :password_confirmation)
34
+ end
35
+
29
36
  end
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.1.0'
5
+ VERSION = '3.1.1'
6
6
  end
7
7
  end
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.1.0
4
+ version: 3.1.1
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: 2017-08-08 00:00:00.000000000 Z
11
+ date: 2017-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo
@@ -1685,7 +1685,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1685
1685
  version: 1.3.1
1686
1686
  requirements: []
1687
1687
  rubyforge_project:
1688
- rubygems_version: 2.6.12
1688
+ rubygems_version: 2.6.13
1689
1689
  signing_key:
1690
1690
  specification_version: 4
1691
1691
  summary: A no-fluff content management system designed for small teams.