rubeepass 2.0.1 → 2.0.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/lib/rubeepass/entry.rb +12 -0
- 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: 2d92c5ffaefb3960dc6c90c9d4839761aa73f7ad
|
4
|
+
data.tar.gz: 176ae634198a107ec7819972fee0e62e4f4143ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82595b291408adb4f1bb2387d7e350679269c9f39982643c5f11ca863e5da38258cd9c54eaccac325e3131ce243d39558df48523e5aefdfae4a8b1b740f35825
|
7
|
+
data.tar.gz: 4cda110a952eb7845a41f03798744ff2790faaa1554859e6f14d802f8695b8dad7157f5cf880d7fc4c6f45c184378bb282e69d14555a9e00af1d7fbb98056037
|
data/lib/rubeepass/entry.rb
CHANGED
@@ -162,10 +162,22 @@ class RubeePass::Entry
|
|
162
162
|
return !@attachments[name].nil?
|
163
163
|
end
|
164
164
|
|
165
|
+
def has_attachment_like?(name)
|
166
|
+
return @attachments.any? do |k, v|
|
167
|
+
k.downcase == name.downcase
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
165
171
|
def has_attribute?(attr)
|
166
172
|
return !@attributes[attr].nil?
|
167
173
|
end
|
168
174
|
|
175
|
+
def has_attribute_like?(attr)
|
176
|
+
return @attributes.any? do |k, v|
|
177
|
+
k.downcase == attr.downcase
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
169
181
|
def hilight_attr(title)
|
170
182
|
return title if (!RubeePass.hilight?)
|
171
183
|
return title.light_green
|