dblruby 1.1.0 → 1.1.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/dblruby/widget.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: fe765e1fc7fa9e5b842c5b5841e68e0795bae6ec
|
|
4
|
+
data.tar.gz: 6bb3509bb5defa03e95b25138bacf5b468403488
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81e1492d1df394f9fa7210f42eb445f3470bdf10e6b86f749534c579100256935ed3260cba61f4b6b5309383cf9d50de5f9c93192f895b8bfea6a0c19388d3f9
|
|
7
|
+
data.tar.gz: e09cca4fdaff2d8dccd05d04c3aa0b12245e299ef8919f9be3863698a44f10dd2531552cf037b0e0912cbc3440ab8331c86742d11aec80bac0e15c7ee1d27c88
|
data/lib/dblruby/widget.rb
CHANGED
|
@@ -49,7 +49,7 @@ class DBLRuby::Widget
|
|
|
49
49
|
raise DBLRuby::Errors::InvalidWidget, 'Invalid size' unless %w[small large].include? @size
|
|
50
50
|
raise DBLRuby::Errors::InvalidWidget, 'Invalid small widget type' if @size == 'small' && !%w[owner status upvotes servers lib].include?(@small_type)
|
|
51
51
|
raise DBLRuby::Errors::InvalidWidget, 'Invalid file type' unless %w[png svg].include? @file_type
|
|
52
|
-
raise DBLRuby::Errors::InvalidWidget, 'Invalid noavatar parameter'
|
|
52
|
+
raise DBLRuby::Errors::InvalidWidget, 'Invalid noavatar parameter' if !@noavatar.nil? && !%w[true false].include?(@noavatar)
|
|
53
53
|
end
|
|
54
54
|
|
|
55
55
|
def size=(size)
|