scms 4.2.4 → 4.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/scms/scms-parser.rb +1 -0
- data/lib/scms/scms-utils.rb +1 -0
- data/lib/scms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzQ5Mzk5NDlkOTllY2EzNThiOTRkN2RiMGVkYmI0ZGViMmUwYzQyNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTUwNWNlMDE5MjBjZmU4Zjk4NDExNzRhYzg0ZTAyZDI5YTY2OTY3Mg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWE2YzE2NjFmNDI2NDA1Y2Y3YjRmMDc0NWZmODIzNjVmZDI3NzI5ODk4MTll
|
10
|
+
ZmJjNGNhMGQ5N2MzOGViM2VlZDYxYzEzMWExNzQ0YmE5NjA0NzJjMjNkMmMz
|
11
|
+
MGU2YjQ1YjMxYWIzNTUzNTI5OTgwNDc0ZWE4MzBmZTk2NWJiNDk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDc5YmE3NGFhMGI0MTE0NDU5NTRmMjU3ZTMzZWE3NGY2OGRmOGUwZGJlNmVi
|
14
|
+
ZWM5ZjJjNjJkNjRiYjRjY2IzMzM2MTYyNDQzOGQ1MDNiN2U0M2NhMDc5MjE2
|
15
|
+
YzJiYTllYThlYzc0Nzc3YzY3YmVmNGQwYWNiYjQzYzRmMGEzMzQ=
|
data/lib/scms/scms-parser.rb
CHANGED
@@ -32,6 +32,7 @@ module Scms
|
|
32
32
|
page = @model
|
33
33
|
erb = ERB.new(@template)
|
34
34
|
result = erb.result(page.instance_eval { binding })
|
35
|
+
result = result.encode('UTF-8', :invalid => :replace, :undef => :replace)
|
35
36
|
|
36
37
|
# only do cms click edit on sub views not layout templates
|
37
38
|
if page.view != nil
|
data/lib/scms/scms-utils.rb
CHANGED
@@ -101,6 +101,7 @@ module ScmsUtils
|
|
101
101
|
|
102
102
|
def ScmsUtils.txt_2_html(rawsnippet)
|
103
103
|
if rawsnippet != nil
|
104
|
+
rawsnippet = rawsnippet.encode('UTF-8', :invalid => :replace, :undef => :replace, :replace => "")
|
104
105
|
rawsnippet.gsub!(/(http:\/\/\S+)/, '<a href="\1" target="_blank" ref="external">\1</a>')
|
105
106
|
rawsnippet.gsub!(/(file:\/\/\/\S+)/, '<a href="\1" target="_blank" ref="external">\1</a>')
|
106
107
|
rawsnippet.gsub!(/\n/, "<br />")
|
data/lib/scms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.2.
|
4
|
+
version: 4.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Courtenay Probert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cprobert-s3sync
|