trusty-cms 2.0.19 → 2.0.20
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 +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +1 -1
- data/config/initializers/trusty_cms_config.rb +1 -0
- data/lib/login_system.rb +1 -1
- data/lib/trusty_cms.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5276d4fafa219de785fbdde6856bd2669364f433
|
|
4
|
+
data.tar.gz: 2588f19ddb0ade42aaa53a5e652c0a531739cd1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
155
|
-
mime-types (>= 1.16, <
|
|
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
|
[](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
|
|
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.
|
|
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
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.
|
|
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-
|
|
11
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tzinfo
|