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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dblruby/widget.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3de08405f7a2efcc93b46c09448d9f0da4332a97
4
- data.tar.gz: 76cc108bcfb280a6045329e6357780e80373acf8
3
+ metadata.gz: fe765e1fc7fa9e5b842c5b5841e68e0795bae6ec
4
+ data.tar.gz: 6bb3509bb5defa03e95b25138bacf5b468403488
5
5
  SHA512:
6
- metadata.gz: 0d369eb612d86b6dc4b7736813262fe4159e578e072cc7b6d4bfe2e42e065af5c81591203cc08ac516ec520fc6c331da3d24b0179d1d823755f08cba5ae973d5
7
- data.tar.gz: 870a7b96543b4a18cb28bedb72d95d16c77e0172dbdd6dae244b080770b4329b19765feb56d60bcc9fda66155152f2f8385cb727f1986cfb5f683fafe86421e1
6
+ metadata.gz: 81e1492d1df394f9fa7210f42eb445f3470bdf10e6b86f749534c579100256935ed3260cba61f4b6b5309383cf9d50de5f9c93192f895b8bfea6a0c19388d3f9
7
+ data.tar.gz: e09cca4fdaff2d8dccd05d04c3aa0b12245e299ef8919f9be3863698a44f10dd2531552cf037b0e0912cbc3440ab8331c86742d11aec80bac0e15c7ee1d27c88
@@ -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' unless %w[true false].include? @noavatar
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dblruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chewsterchew