scms 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/scms.rb +3 -2
  3. data/lib/scms/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDgzOGM3ZWM3MTI5ZDVhMTE0NTk3YmNhMzI1ZWJkM2FiYzZkZmZmYw==
4
+ MWVmZDQ5MGVhNjU5ZGE0MGY1MjNlYTVkZDFlOGE2NjRlZjIzN2Y4Nw==
5
5
  data.tar.gz: !binary |-
6
- MGQ0OTAzZjhiZjI5ZWNkNDY2NjZmM2VhZDcwZTg2MWI4Yzk2YzAyOA==
6
+ MjMxN2Q1Y2UzZDdhNDdmYzIyZDRkYjBiZDc2ZDhiY2IwODhlZjQ5Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWYxZDA3MWZkODk4OGVhZWNlYzYyZjFmZmMxZDViZDkxNTNjM2FiODI3Yzcz
10
- MGY1MDU1MTM2MzA3ZjI1M2E2MjIzNDdiNzRhYWZlMTQ3MDFiZjI0NmVmNWZm
11
- NWQzYmRjZTUyOWZmMGQ0Y2NhNzRiNTRlOWI1NGY4ZGI2OWVmY2E=
9
+ YzMxMDJmZWU1MTdiMGU5ZmYyOTUxZTM4Y2E2NmVhODY3OGJiMDIyZWMzYTAy
10
+ MjU2OGM4YmJlMzNmZDk1NjljN2ZlZGE2NWU4ZjZkZmVkODc5MDIzYjNiZTFi
11
+ NjdiOTRmYTc3ZTAzZTI4Y2UxOTU2YzcxOTc2YWQ1MDQyOGNkMTA=
12
12
  data.tar.gz: !binary |-
13
- NWFhODAwMTYwNGIwNGVlMDNmNjY2YzEwZGFlYzNlMmY0MGRhYWI5MTg4ZmFj
14
- YjRjNzE0M2VlZGQ4ZTg1M2JlMzVhOTVhMGEyNTRmMTUwZDZhY2E3MmQ2ODg2
15
- ZDg1MzIxMGFhM2EzMGE0ZjFiODk4Yjg4NWU5NGVlNmVhN2RkMGI=
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
@@ -1,3 +1,3 @@
1
1
  module Scms
2
- VERSION = "3.0.3"
2
+ VERSION = "3.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Courtenay Probert