emd 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/markdown_template_handler.rb +3 -3
- data/lib/emd/post_message.rb +2 -2
- data/lib/emd/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e66aeb72d6524a402d6ae0e0c358c242db505bd81454cec6b691b3389be9e0f
|
4
|
+
data.tar.gz: 617d76dcac2415626e8741ec5d82bb9c2f605d9cb26913270319ec9c404931d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52048091556900764629114ec23a354eaecf2450ca1eeb93f3e523e753097eb73a1c3f6a0699a7df807d856ea6398f2907d97d4dbed47e8608863e02a31a5c50
|
7
|
+
data.tar.gz: ea1ce9268f980bff0ca8067fc024a118eb0745fbaa16f13fa06fb2591490cc43c55b2a175285869154323f0d9739ab5f43da65668cd700757cf6fddbab89f47a
|
@@ -1,9 +1,9 @@
|
|
1
1
|
class CodeRayify < Redcarpet::Render::HTML
|
2
2
|
def block_code(code, language)
|
3
|
-
if Gem.loaded_specs.has_key?('coderay')
|
4
|
-
CodeRay.scan(code, language).div
|
5
|
-
else
|
3
|
+
if !Gem.loaded_specs.has_key?('coderay') || language == nil || language == ""
|
6
4
|
%(<pre>#{code}</pre>)
|
5
|
+
else
|
6
|
+
CodeRay.scan(code, language).div
|
7
7
|
end
|
8
8
|
end
|
9
9
|
end
|
data/lib/emd/post_message.rb
CHANGED
data/lib/emd/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Lim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redcarpet
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.1.2
|
69
|
-
description:
|
69
|
+
description: Embedded markdown template for Ruby on Rails
|
70
70
|
email:
|
71
71
|
- ytbryan@gmail.com
|
72
72
|
executables: []
|
@@ -104,5 +104,5 @@ requirements: []
|
|
104
104
|
rubygems_version: 3.0.4
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
|
-
summary:
|
107
|
+
summary: Markdown partial and .html.md on Rails View
|
108
108
|
test_files: []
|