findyml 0.1.1 → 0.1.2

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: 964b255cb131f3caf96e5365470ecca91efdbfacead42d4b12bdba79ac461dcd
4
- data.tar.gz: 1d6660d1b928dd4936a346f67d3364fcde388b681de188a105bfa8011dab0024
3
+ metadata.gz: 52cf98578abdfc460a7dd2983b91aa5d8121de3f43846033112ab7da4151f3d3
4
+ data.tar.gz: 367437456f64b85060592b5deab077375ad39b7915d4e99cdf0e9d7f61692a8c
5
5
  SHA512:
6
- metadata.gz: b12382da9ac27279eda62b894928b23896c4f45dbdbec81203f380b5bb46a4bccac60d940760a572bb564deef2d94621809f55fc09ca84947920d532bc84a18e
7
- data.tar.gz: 9888c755fbe23cf6991ece635bbab2b2c7391e9af0790bbed3a8572f9bf3ed09d4ba77b2152f238468a97c6c8f10314c824243fbc0e104804ab6a9aba4d86780
6
+ metadata.gz: c4d8d89095e22b5c066f291b45884b9990fe025edf8a41699b266837026f773d06c8de64ed823c244b8afe64ca37439daac5b4eb6741ae1f9b07c8794600cb86
7
+ data.tar.gz: 2926cd54e783a5bb7d978da7dfc08f878d497998e3d1fd6ad9acad5f1c33434c102f90a6d7062652bc3b1457f24938a3160e7580fb5ca9e76bb3043cd1733632
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Findyml
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/findyml.rb CHANGED
@@ -84,6 +84,8 @@ module Findyml
84
84
  end
85
85
 
86
86
  def extract(&block)
87
+ return unless @yaml
88
+
87
89
  all_nodes = @yaml.children.map { construct_nodes(_1) }
88
90
 
89
91
  all_nodes.each do |nodes, _|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: findyml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danielle Smith