github-markdown-preview 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7ff58b9e391d6d4dbdce380134e508bb0cf42ac
4
- data.tar.gz: 8bd3e79ec1685b7170b04294a6aa28c694fd3339
3
+ metadata.gz: 6518806d2a98c7003c2e99b6f6c6e61667fdee4b
4
+ data.tar.gz: bc4fff787aad82cb8b9519260bf7a0be6094df4e
5
5
  SHA512:
6
- metadata.gz: 9e4ab638cf335b5f63849097d440b374b3fca6da494f34002cbfc2e1f8952a165dbe5110a3ec9678a82f3dc5591ff6f6c2223344e2dd5a8a3f50ab2ae93aee6a
7
- data.tar.gz: db30eeacdacf4d709d1796b6a047528dd8af773747c731ff3909cfdc4227984cd5ab79f4a6a414505225b55a0686a5a43c3971e773ce4cec0e947e38bb605d93
6
+ metadata.gz: 8c808a81ba0e1895d0cebb756d082b8d08b99aacaa8a6af6574c315167c7aa7124ab05664ead5e8c736d5e004fe10efe4321ca6abca0a626f881e5d87c4dddf2
7
+ data.tar.gz: 216ae3e02c12df00ae6f449b2fc538238785f0d2ee0b0d486ea1587f7347d7e010affb81e6427dc3180a8974dbcb0ca0af0d103f7b1575cf9c6e2fc86063a513
@@ -8,4 +8,5 @@ env:
8
8
  - INCLUDE_LINGUIST=false
9
9
 
10
10
  before_install:
11
+ - gem install bundler
11
12
  - if [[ "$INCLUDE_LINGUIST" == "true" ]]; then BUNDLE_GEMFILE=Gemfile.optional; sudo apt-get install libicu-dev -y; fi
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## v4.0.1
4
+ * Fix error on empty lists [#41](https://github.com/dmarcotte/github-markdown-preview/issues/41)
5
+
3
6
  ## v4.0.0
4
7
  * **Breaking changes:**
5
8
  - Drop Ruby 1.9 support and upgrade all dependencies to latest [#39](https://github.com/dmarcotte/github-markdown-preview/pull/39)
@@ -27,7 +27,7 @@ module GithubMarkdownPreview
27
27
  def call
28
28
  process_task = Proc.new do |node|
29
29
  first_child = node.children.first
30
- next unless first_child.text?
30
+ next unless first_child && first_child.text?
31
31
  content = first_child.to_html
32
32
  html = task_list_item_filter(content)
33
33
  next if html == content
@@ -1,3 +1,3 @@
1
1
  module GithubMarkdownPreview
2
- VERSION = '4.0.0'
2
+ VERSION = '4.0.1'
3
3
  end
@@ -101,4 +101,11 @@ class HTML::Pipeline::MentionFilterTest < Minitest::Test
101
101
  result
102
102
  end
103
103
 
104
+ def test_lists_with_empty_items
105
+ html = "<ul><li></ul>"
106
+ result = filter(html)
107
+ assert_equal "<ul><li></ul>",
108
+ result
109
+ end
110
+
104
111
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-markdown-preview
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Marcotte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-02 00:00:00.000000000 Z
11
+ date: 2016-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen