trusty-cms 2.0.19 → 2.0.20

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: bb1486896338018df5752ee3cc3195ed9ab1ba75
4
- data.tar.gz: 40467a9b7b279112b6c2d32df8cbd20ef83b6039
3
+ metadata.gz: 5276d4fafa219de785fbdde6856bd2669364f433
4
+ data.tar.gz: 2588f19ddb0ade42aaa53a5e652c0a531739cd1e
5
5
  SHA512:
6
- metadata.gz: 28e046ecf60ce66ff38ee626392035b1b1ac2554287d2ad882f521ed084b3d8d63624e4b28fd0d8486e74c04d9abf5be177651b528df6c3a8b4ea5f10432bd02
7
- data.tar.gz: ac459c3b8e83a2fc56c95baa49b7e56e79842f372295de0ef596c605a9420bc83f2a4b3d4f4a622f79a982faf94ed20b8fe509c732108ea23943019b0e2a6909
6
+ metadata.gz: 4b59e1e8af5830a094004749b4402ee3c36ef531f7e450c1cc5b37bddcb7107d093241271b4c31c1be85992597126c2ae8f8dbe375796ff9573530ee8fb789b7
7
+ data.tar.gz: 79fa037ac0f4b9777610e36dc5fd510dee24b90be800f11d03bb113c6d93c798446e03174ea786ca7eb85a592c71ff218e75794f1f13c703d3418de2f661e717
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (2.0.19)
4
+ trusty-cms (2.0.20)
5
5
  RedCloth (~> 4.2)
6
6
  acts_as_tree (~> 2.1)
7
7
  bundler (~> 1.7)
@@ -151,8 +151,8 @@ GEM
151
151
  libv8 (3.16.14.13)
152
152
  loofah (2.0.3)
153
153
  nokogiri (>= 1.5.9)
154
- mail (2.6.3)
155
- mime-types (>= 1.16, < 3)
154
+ mail (2.6.4)
155
+ mime-types (>= 1.16, < 4)
156
156
  method_source (0.8.2)
157
157
  mime-types (2.99.1)
158
158
  mini_portile2 (2.0.0)
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/trusty-cms.svg)](http://badge.fury.io/rb/trusty-cms)
4
4
 
5
- Trusty is a branch of the venerable Radiant CMS. Its goal is to pull the Radiant framework into Rails 3 with minimal changes to its infrastructure. Most of what is below is derived from the original Radiant CMS readme.
5
+ Trusty is a branch of the venerable Radiant CMS. Its goal is to pull the Radiant framework into Rails 4 with minimal changes to its infrastructure. Most of what is below is derived from the original Radiant CMS readme.
6
6
 
7
7
  TrustyCms is a no-fluff, open source content management system designed for
8
8
  small teams. It is similar to Textpattern or MovableType, but is a general
@@ -13,4 +13,5 @@ TrustyCms.config do |config|
13
13
  config.define 'site.title', :default => "Your site title", :allow_blank => false
14
14
  config.define 'site.host', :default => "www.example.com", :allow_blank => false
15
15
  config.define 'user.allow_password_reset?', :default => true
16
+ config.define 'session_timeout', :default => 2.weeks
16
17
  end
data/lib/login_system.rb CHANGED
@@ -81,7 +81,7 @@ module LoginSystem
81
81
  end
82
82
 
83
83
  def set_session_cookie(user = current_user)
84
- cookies[:session_token] = { :value => user.session_token , :expires => TrustyCms::Config['session_timeout'].to_i.from_now.utc }
84
+ cookies[:session_token] = { :value => user.session_token , :expires => (Time.now + ((TrustyCms::Config['session_timeout'].to_i)/86400).days).utc }
85
85
  end
86
86
 
87
87
  module ClassMethods
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 = "2.0.19"
5
+ VERSION = "2.0.20"
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: 2.0.19
4
+ version: 2.0.20
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: 2016-03-22 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzinfo