deckar01-task_list 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/task_list.coffee +1 -1
- data/lib/task_list.rb +2 -2
- data/lib/task_list/version.rb +1 -1
- data/package.json +1 -1
- data/test/functional/test_task_lists_behavior.html +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebe3bef10b2543060da20d370caf02673c1f682b
|
4
|
+
data.tar.gz: b1dd8cedf1c8a33d2136deb814e2f357d04bc7a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d187b31dcd76cafc0ba685ec87595baccd7d2dd278c52e6d0da320d77e9503a630c0ee3f2a7697596a756249433f5910abdfd83633981a955bce99df3b249550
|
7
|
+
data.tar.gz: 68be28b14fae6684279ba42fda7e086e2a424692c7cdc455e2cfd12dfc6dd26c801c43b6acc468074d11f7138410be1938993843d44aed81a4ce8211b9ee440a
|
@@ -238,7 +238,7 @@ class TaskList
|
|
238
238
|
else if line.match(@startFencesPattern)
|
239
239
|
# Start ignoring lines inside a code block.
|
240
240
|
inCodeBlock = true
|
241
|
-
else if line in clean && line.match(@itemPattern)
|
241
|
+
else if line in clean && line.trim().match(@itemPattern)
|
242
242
|
index += 1
|
243
243
|
if index == itemIndex
|
244
244
|
lineNumber = i + 1
|
data/lib/task_list.rb
CHANGED
@@ -30,10 +30,10 @@ class TaskList
|
|
30
30
|
#
|
31
31
|
# Examples
|
32
32
|
#
|
33
|
-
# Item.new(
|
33
|
+
# Item.new("- [x]").complete?
|
34
34
|
# # => true
|
35
35
|
#
|
36
|
-
# Item.new(
|
36
|
+
# Item.new("- [ ]").complete?
|
37
37
|
# # => false
|
38
38
|
#
|
39
39
|
# Returns true for checked list, false otherwise
|
data/lib/task_list/version.rb
CHANGED
data/package.json
CHANGED
@@ -73,6 +73,9 @@
|
|
73
73
|
<div class="js-task-list-container js-task-list-enable">
|
74
74
|
<div class="markdown">
|
75
75
|
<ul class="task-list">
|
76
|
+
<li>
|
77
|
+
[ ]
|
78
|
+
</li>
|
76
79
|
<li class="task-list-item">
|
77
80
|
<input type="checkbox" class="task-list-item-checkbox" disabled />
|
78
81
|
I'm a task list item
|
@@ -93,6 +96,7 @@
|
|
93
96
|
</div>
|
94
97
|
<form action="/update" method="POST" data-remote data-type="json">
|
95
98
|
<textarea name="comment[body]" class="js-task-list-field" cols="40" rows="10">
|
99
|
+
- [ ]
|
96
100
|
- [ ] I'm a task list item
|
97
101
|
- [ ] with non-breaking space
|
98
102
|
- [x] completed, lower
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deckar01-task_list
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared Deckard
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: html-pipeline
|