vizbuilder 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/vizbuilder.rb +5 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aacc5a0ab34210a879406dcddf4e0726c9b3039978991132e5263b5df90c9c4b
4
- data.tar.gz: e0d4a42ddbf7b5770c01f2364ffdce30d238702dae3bab80a6a4c8bff00a7a1b
3
+ metadata.gz: bb940b378df8d29c0b34ae8cafce1ffe6a2baf0997e9a5b8306bdf4c0a80208d
4
+ data.tar.gz: 2a213a778a2d961cad5e9349bdaed185b5fba2fbe90eb5868d24b31f7ddabf43
5
5
  SHA512:
6
- metadata.gz: a0ceea10857bde78894205f196ec612bf6057ace554d7d550e2aedf7dc8c4f1c7fddd4020d0ccefc8dd15effc4a4317d063c33846efdb3dfb02575fd0f7881f3
7
- data.tar.gz: 606a3773ca3916a18bab417a9ea70c4db40831903534ae546be67a6a9f09e867ee377137b442376a27d519e8619df148ef4418a6d719159b37a46f1db04cf6bb
6
+ metadata.gz: f42712411120f39a05c378e37de0cb38ab105a55aca8eab9956a9d3f99dd6433590b3559e2a26c255ae37a59045430f6a50870de8bc1866c79ecc376c63fcef3
7
+ data.tar.gz: a71e0b2f144fe3bc69aacafd948af954e9a989549c9441e00c0f3a1c1955439499daf7176f7577d00012b63699d6eba70627beb742b7dfc5aefcfcf8d68338af
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.4
1
+ 1.0.5
data/lib/vizbuilder.rb CHANGED
@@ -221,6 +221,11 @@ class VizBuilder
221
221
  self
222
222
  end
223
223
 
224
+ # Set a global config option if it isn't already set
225
+ def set_default(key, val)
226
+ set(key, val) unless @config.key?(key)
227
+ end
228
+
224
229
  # Add code to run after data is loaded or reloaded. Is also run after object
225
230
  # is created.
226
231
  def after_load_data(&blk)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vizbuilder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mark