scms 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/scms.rb +3 -2
- data/lib/scms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MWVmZDQ5MGVhNjU5ZGE0MGY1MjNlYTVkZDFlOGE2NjRlZjIzN2Y4Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjMxN2Q1Y2UzZDdhNDdmYzIyZDRkYjBiZDc2ZDhiY2IwODhlZjQ5Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzMxMDJmZWU1MTdiMGU5ZmYyOTUxZTM4Y2E2NmVhODY3OGJiMDIyZWMzYTAy
|
10
|
+
MjU2OGM4YmJlMzNmZDk1NjljN2ZlZGE2NWU4ZjZkZmVkODc5MDIzYjNiZTFi
|
11
|
+
NjdiOTRmYTc3ZTAzZTI4Y2UxOTU2YzcxOTc2YWQ1MDQyOGNkMTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWQ3ODFiOGI4ZTZkNmRlMDkyODBhZWYwZTEzOWVmMTI5ZjIzZDdmZTBjYjRh
|
14
|
+
ODg5ZGZjYmJmMzQ3YTk4YmMyNThkZDUyODcwNDMzNGNmZmYxMGQyNWVlYzMw
|
15
|
+
NGNhNDkwMzcyYmM1ZmJmMDQwZmY2OTVkNThlZmI1MGNmMTlhYmQ=
|
data/lib/scms.rb
CHANGED
@@ -134,7 +134,7 @@ module Scms
|
|
134
134
|
viewname = viewparts[0]
|
135
135
|
viewqs = viewparts[1]
|
136
136
|
|
137
|
-
puts "viewname: #{viewname}, viewqs: #{viewqs}"
|
137
|
+
#puts "viewname: #{viewname}, viewqs: #{viewqs}"
|
138
138
|
|
139
139
|
viewpath = File.join(@website, viewname)
|
140
140
|
|
@@ -180,16 +180,17 @@ module Scms
|
|
180
180
|
else
|
181
181
|
#todo: why not use htmlsnipet
|
182
182
|
snnipetCode = File.read(viewpath)
|
183
|
+
|
183
184
|
case File.extname(view[1])
|
184
185
|
when ".md"
|
185
186
|
begin
|
187
|
+
snnipetCode = snnipetCode.encode('UTF-8', :invalid => :replace, :undef => :replace)
|
186
188
|
doc = Maruku.new(snnipetCode)
|
187
189
|
viewSnippet = doc.to_html
|
188
190
|
rescue Exception => e
|
189
191
|
viewSnippet = snnipetCode
|
190
192
|
ScmsUtils.errLog(e.message)
|
191
193
|
ScmsUtils.log(e.backtrace.inspect)
|
192
|
-
#todo: use scmslog
|
193
194
|
end
|
194
195
|
else
|
195
196
|
viewSnippet = snnipetCode
|
data/lib/scms/version.rb
CHANGED