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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dff540501ce48aa3c7dd04006ea8b2c441c54fb097201851a80d64bee65c566c
4
- data.tar.gz: 6587540baf347167d95365b0b67d066b5c1043af3c53b17740456b3713868558
3
+ metadata.gz: 7e66aeb72d6524a402d6ae0e0c358c242db505bd81454cec6b691b3389be9e0f
4
+ data.tar.gz: 617d76dcac2415626e8741ec5d82bb9c2f605d9cb26913270319ec9c404931d6
5
5
  SHA512:
6
- metadata.gz: b6b5dc54ba17f79500cab2a400c1692b01cc29625350760aa2a97586235da020b9db379204234a956301cee4e71ada93b048885d5e5fb28a8799a6824f8298eb
7
- data.tar.gz: cc25fe24687e07c5cf823db1512705681102512ab43fc68a3c0a792a770722c3113652621c41ffc62411a7ee21260e6d60184ff113788d95613c9ff8ffbb016e
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
@@ -1,5 +1,5 @@
1
1
  module Log
2
- MESSAGE = "
2
+ MESSAGE = %(
3
3
 
4
4
  ███████╗███╗ ███╗██████╗
5
5
  ██╔════╝████╗ ████║██╔══██╗
@@ -9,5 +9,5 @@ module Log
9
9
  ╚══════╝╚═╝ ╚═╝╚═════╝
10
10
 
11
11
  Send me pull request -> https://github.com/ytbryan/emd/pulls
12
- "
12
+ )
13
13
  end
data/lib/emd/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Emd
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-16 00:00:00.000000000 Z
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: mbedded markdown template for Ruby on Rails
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: Embedded markdown template for Ruby on Rails
107
+ summary: Markdown partial and .html.md on Rails View
108
108
  test_files: []