mumukit-content-type 0.5.0 → 0.5.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
  SHA1:
3
- metadata.gz: b646fd6ddfe1ee99c617eb5e4a013841909e4784
4
- data.tar.gz: 12af2501695d57eec3a2924f8072a80552029448
3
+ metadata.gz: a4d375a8d14c6b691a1e7a1cce49746b597e9aba
4
+ data.tar.gz: 7d532fd92c1c2729fd37b9d7791534291d134def
5
5
  SHA512:
6
- metadata.gz: a472c2d13d6b4361fa3833d30e7427cd809433124a3a3b23d5bf9e27b94f962f6846728d8e563f621b77c5eb9be2c9e6faef023472666611b5ba9530dac38077
7
- data.tar.gz: ff31b2c110a52ecbbb91c2318fe1365564497e5dc26db2147fd00a6f293d9a21fa08a4720e39ff8fc88ed95cc6a2ecb949696fd511a562111834decf30f11b33
6
+ metadata.gz: 796c7946c730b1d29a29133bee91d617e2deaf696563d0a066ed0e756210f2d665cafa6fb14d3c56f8ac0c86ae66551cb9fb7343e5c0358c05ea444ffcf14b35
7
+ data.tar.gz: 9021109d974ffc334fcaefc6a8f3c0ae0b065befd794e8a55c3265ecbee8cfc001714ec2884b7f62bdfb060e7ff5199394e937b79954eb016a193e97c3f25331
@@ -25,7 +25,7 @@ module Mumukit::ContentType::Markdown
25
25
  end
26
26
 
27
27
  def self.highlighted_code(language, code)
28
- "```#{language}\n#{code}```"
28
+ "```#{language}\n#{(code.ends_with? "\n") ? code : "#{code}\n"}```"
29
29
  end
30
30
 
31
31
  def self.inline_code(code)
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module ContentType
3
- VERSION = '0.5.0'
3
+ VERSION = '0.5.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-content-type
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-09 00:00:00.000000000 Z
11
+ date: 2017-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler