wst-parser 0.2.0 → 0.2.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 +4 -4
- data/lib/wst/contents.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: 3fae230e835b7e2fd7863918f5cf3bd54c182d01
|
4
|
+
data.tar.gz: 4b3a7aad1c65d2589b57fb38374f52832fac5df0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1844d006495971332df6ded39a66b459529c016cf82f8ac264668c447a3711f3d156c13542055167e432c22a629d8491298c9b50c3b4e0577f9bcc0905f787aa
|
7
|
+
data.tar.gz: 48a742b2bf6b129ce74f86727d364225d6d85c5a6687bb468913a0cfd4555e0c1f8ac98b6bca00f74c651c23bf37e4ca68e84a54672697ddcb719faf0dc47e97
|
data/lib/wst/contents.rb
CHANGED
@@ -11,7 +11,7 @@ module Wst
|
|
11
11
|
# Get all contents
|
12
12
|
# @param [Boolean] show_non_publised Get all contents or only published
|
13
13
|
# @return [Array<Content>] Contents
|
14
|
-
def all(show_non_published)
|
14
|
+
def all(show_non_published = false)
|
15
15
|
return @all if show_non_published
|
16
16
|
@all.select { |c| c.published }
|
17
17
|
end
|