mumukit-content-type 1.9.0 → 1.10.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: d40772b0c4d8e8f381ea661f5965a156a031009e11c545f4babf21537379a673
4
- data.tar.gz: 6e6b7dc14f7aa6e02ad34d1663c29ac346ad464ec91bbc92ce69c9e3e6b0ca9e
3
+ metadata.gz: '096b1858a461b5c949369af5ffe06bb0a1d8c20524decb8177d492f4be469667'
4
+ data.tar.gz: 4fbc0786e216d66dfe2d3337c6d2f1a12c39d75a1b03d9e47e88a562fe7e714f
5
5
  SHA512:
6
- metadata.gz: 0b2d71313b0bc72b734ddd0429d44f1f9245c782783a961b189dec687fd722084bf393899d0a1454184f522eecc70aef3073025d915bd12ecd74d4f47a92b1ec
7
- data.tar.gz: 43ed8195e213794ec158e9ca952abfe9d485098a98e484fc73239810c0176750573ce03bec04cdbcd263c8a25e3d1cd4d5645e29eb597b795d32efa14853ec95
6
+ metadata.gz: d3c16ffe43dbdcdb75c9bd5ebf1bcb090faffcb401e8fe851ddd3476d285a06b542f00e524eaf648155f7c6c54039c65583bca2fcd4b02d70c4b586b63531378
7
+ data.tar.gz: 5d16a8436be5cc177dbae3e5edb27caa7a07b608e0e8b98310e6eb5052da4969a4a2e22b4f442e8048945bce8995e450184c8a28ef7c63246ae869e0bca4778c
@@ -16,4 +16,17 @@ module Mumukit::ContentType::Html
16
16
  def self.name
17
17
  'html'
18
18
  end
19
+
20
+ def self.enumerate(items)
21
+ add_list_tags(items) unless items.empty?
22
+ items.join("\n")
23
+ end
24
+
25
+ private
26
+
27
+ def self.add_list_tags(items)
28
+ items.map! { |it| "<li>#{it}</li>" }
29
+ items.prepend '<ul>'
30
+ items.append '</ul>'
31
+ end
19
32
  end
@@ -65,4 +65,8 @@ module Mumukit::ContentType::Markdown
65
65
  def self.name
66
66
  'markdown'
67
67
  end
68
+
69
+ def self.enumerate(items)
70
+ items.map { |it| "* #{it}" }.join("\n")
71
+ end
68
72
  end
@@ -16,4 +16,8 @@ module Mumukit::ContentType::Plain
16
16
  def self.name
17
17
  'plain'
18
18
  end
19
- end
19
+
20
+ def self.enumerate(items)
21
+ items.join("\n")
22
+ end
23
+ end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module ContentType
3
- VERSION = '1.9.0'
3
+ VERSION = '1.10.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.9.0
4
+ version: 1.10.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: 2020-03-30 00:00:00.000000000 Z
11
+ date: 2020-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.7'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '12.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '12.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.9'
47
+ version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.9'
54
+ version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rouge
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -157,8 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubyforge_project:
161
- rubygems_version: 2.7.7
160
+ rubygems_version: 3.0.8
162
161
  signing_key:
163
162
  specification_version: 4
164
163
  summary: Content Type handling for Mumuki