objective_elements 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57bc0f1dbe710d5d20390881d1eb5fdedf7fbb09efc74f445905ddc3428158e2
4
- data.tar.gz: 83f0691aad60a3f0c24d1faf270938449ddd8d2af90e2ebbc508bb32e18447ed
3
+ metadata.gz: 853b8807d8ce1caddf258fb0bd4f023ec38157cffec51180d809d28d7a6c664d
4
+ data.tar.gz: a8255aef5bece7857da7ccab4aa31f5aad1e0abd54f3376567057934a5d9ca9c
5
5
  SHA512:
6
- metadata.gz: 5e3a65c6eaa857398f5318f45fc37e871c4507830e40aa339cf2e00bd79a9d6979c3c350f7be92f096f21d5c2ef297853b7efd005b252522e5aaa562fe4f743e
7
- data.tar.gz: 8e9d6e50e800803981430f7aaafe7914850024a79a90452aed6f6fe5f3ed45e5f617062d85b2a2f22094469af197ab2e3568a2292b99affeb3b34474b3401d97
6
+ metadata.gz: de70f8907e7bf70b545a4b0eddac86ccae60690440cc36205db8376d0272035fcd3acd606bd0c90c5ed46d3f4cae0afb630d30b75c82350c939809a50f7ac229
7
+ data.tar.gz: bce5362bede8ca1436db6f0d1f38c95a4d0f8b51bb2490c59b74458d43675541620636a9545733439cfd694118c041604f691b7910b3346b502a69ccaf143d86
@@ -27,6 +27,9 @@ class SingleTag
27
27
  # arrays for the values.
28
28
 
29
29
  def add_attributes(new)
30
+ # Don't break everything if this is passed an empty value:
31
+ return self unless new
32
+
30
33
  if new.is_a? String
31
34
  add_string_attributes(new)
32
35
  else
@@ -1,3 +1,3 @@
1
1
  module ObjectiveElements
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.4.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: objective_elements
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Buchberger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-12 00:00:00.000000000 Z
11
+ date: 2018-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler