fewald-worklog 0.3.1 → 0.3.2
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/.version +1 -1
- data/lib/project_storage.rb +5 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 484130ef7f6c7cd05ae5dc16c5dc1b69efd05ed3118a085cbf8a1b0c63ab903a
|
|
4
|
+
data.tar.gz: 4d58528e9469766ed8c16d8d86c917c0a19276e4a228f0d38f9ecf4877322d39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9cd48303d01eb81d866b274e2fcd4c4adbf95145848d7fb593cf0428162264a578ad00bb7e4732f62f30938d730563914a1e97ff6997eb33d0f31b4f06317866
|
|
7
|
+
data.tar.gz: cacfeb6c3b558ccfe8964f5faba0ec6512f047b625b8b5993294e5f7682193f775fcf4cf2d3dfedc5d6c67e8ce38a85d6f234a7946844cd57a315e661c3ee196
|
data/.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.2
|
data/lib/project_storage.rb
CHANGED
|
@@ -71,6 +71,11 @@ module Worklog
|
|
|
71
71
|
projects.key?(key)
|
|
72
72
|
end
|
|
73
73
|
|
|
74
|
+
# Alias for exist? method.
|
|
75
|
+
# @param key [String] The key of the project to check.
|
|
76
|
+
# @return [Boolean] Returns true if the project exists, false otherwise.
|
|
77
|
+
def key?(key) = exist?(key)
|
|
78
|
+
|
|
74
79
|
private
|
|
75
80
|
|
|
76
81
|
# Check whether projects.yaml exists in the project_dir
|