mumukit-content-type 1.4.1 → 1.5.0

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: 32ab8dd3b3892c4d70842eedbcb58bcf047966ff9dbce957a899c60c65a15eed
4
- data.tar.gz: 26c5294519f37df42bf3dd284cb65b89767718d8674acbc0c42ed2a8195e9472
3
+ metadata.gz: '06926be89732255dd94fd625dbe87ade4a38c78de55bd42ec96b33fe21759015'
4
+ data.tar.gz: 18fea5098a99e34af33b896a8e32400f5212bcf7d8189754aeeca8da908fd034
5
5
  SHA512:
6
- metadata.gz: 4cef78467a26706d157ba904f4b0c7dc3d418666a8cae1bf36f54c8c30c340237d83da891d20bf391de46032457176be1212075ee05d87b87a2bcf9dc16abc7e
7
- data.tar.gz: b6db6f4ab511126616a7375ffefad7b0c817fbbfdffae7027577176906290c8c8b2a5c5d9be546843acf2f026698e021e6efa5a671bc0680466863ca7fe379e1
6
+ metadata.gz: bf67b79501e24d627cd005cfc07a94f3a4ac6e386722c4de0c01285581d4e4f3864cb4ac99be731287049a298ebdfdbfbde53985dd9bbdcb03bd764e61f98c5b
7
+ data.tar.gz: be8618934df618fd8a6ed43e33165f144ce0efb4514e0c0171cefd1fb874bee85690c2b139c20ec59feda035fd881a034261e89bb71b9b1de1d846519b320e7e
@@ -11,6 +11,14 @@ module Mumukit
11
11
  def to_html(content)
12
12
  Mumukit::ContentType::Sanitizer.sanitize(htmlize content)&.html_safe
13
13
  end
14
+
15
+ def to_s
16
+ name
17
+ end
18
+
19
+ def as_json(_options={})
20
+ name
21
+ end
14
22
  end
15
23
 
16
24
  def self.parse(s)
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module ContentType
3
- VERSION = '1.4.1'
3
+ VERSION = '1.5.0'
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: 1.4.1
4
+ version: 1.5.0
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: 2018-10-30 00:00:00.000000000 Z
11
+ date: 2018-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -1027,7 +1027,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1027
1027
  version: '0'
1028
1028
  requirements: []
1029
1029
  rubyforge_project:
1030
- rubygems_version: 2.7.7
1030
+ rubygems_version: 2.7.8
1031
1031
  signing_key:
1032
1032
  specification_version: 4
1033
1033
  summary: Content Type handling for Mumuki