wndrlst 0.0.2 → 0.0.3
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 +4 -4
- data/lib/wndrlst.rb +5 -5
- data/lib/wndrlst/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87b506d534f030d1c4b02cf994be339cb0deec06
|
4
|
+
data.tar.gz: 02e3de18fb3aa0a5817021d79a064bba6d0123b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee3c3cdf182392caab0ed8a7b1dc112f5aa1add566adeb06004a8911b5f48603e8c9b8a2cfd09d37043463b9898d7de65e4d665164fb892da18d724c0a590ddf
|
7
|
+
data.tar.gz: 2de1319e5408d56953ee2a4929bf0ec267a076ca6a2b0845d285e0247ed1a49b25d55bbe86f62cf1e4a561c3fc66a1b7dd6dfaad0076531e1e94c75aff4baecc
|
data/lib/wndrlst.rb
CHANGED
@@ -31,7 +31,7 @@ module Wndrlst
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def list_titles
|
34
|
-
lists.collect{|list| list[
|
34
|
+
lists.collect{|list| list["title"]}
|
35
35
|
end
|
36
36
|
|
37
37
|
def tasks(list_id, completed=false)
|
@@ -43,7 +43,7 @@ module Wndrlst
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def task_titles(list_id, completed=false)
|
46
|
-
tasks(list_id, completed).collecct {|task| task[
|
46
|
+
tasks(list_id, completed).collecct {|task| task["title"]}
|
47
47
|
end
|
48
48
|
|
49
49
|
def tasks_by_list_name(title, completed=false)
|
@@ -51,7 +51,7 @@ module Wndrlst
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def task_title_by_list_name(title, completed=false)
|
54
|
-
tasks_by_list_name(title, completed).collect{|task| task[
|
54
|
+
tasks_by_list_name(title, completed).collect{|task| task["title"]}
|
55
55
|
end
|
56
56
|
|
57
57
|
def task(id)
|
@@ -100,8 +100,8 @@ module Wndrlst
|
|
100
100
|
def list_id(title)
|
101
101
|
list_id = ""
|
102
102
|
lists.each do |list|
|
103
|
-
if list[
|
104
|
-
list_id = list[
|
103
|
+
if list["title"] == title
|
104
|
+
list_id = list["id"]
|
105
105
|
end
|
106
106
|
end
|
107
107
|
list_id
|
data/lib/wndrlst/version.rb
CHANGED