pears 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: 8c15dd21fc557f0dcb711e9b64e8c05cd7aa17277d8d78fcd6b352a62b9dc46f
4
- data.tar.gz: b98aed17f7ac9ca2594cc6b59afdbfbad0eb542430ed523ca4954c09cfd911e4
3
+ metadata.gz: 3e5f72a743be10db15756a0223ec43b75ca764aeeec8271999359324b8df5556
4
+ data.tar.gz: ec6603a5cace923b98ea1f80f8f4876c94d94118f4cd6975f63eae3e75fb5991
5
5
  SHA512:
6
- metadata.gz: eeb4ad72657094f50ad3edbcac4bdd717184e6e645b9a0b92eb247d4befc757e2ae41c26d25b689c78c9bd2008d08d0341e0dd375373ffe9b88dc6d0f4944984
7
- data.tar.gz: 2e5a5e00e406c55235f1a7893500dc6fa6272220f05446b4544b5ffa3896efbfc87b6349153ec20b80ca0c41240af98e36622116524c468982b5c8833c2a9fc0
6
+ metadata.gz: 7f78200980505f2f354d87890f02b4ab094e36c1da304c387b8352595a7a9f2e9e74f145f1bc8da3c320f37f56a764c43068a75c6cd6b6e42511d4804acccf66
7
+ data.tar.gz: 60259e0a407ff67e0a3301825de82fb45b3f87a6afd08d9e5c2de34743bbe092e3e86a38bd50b99c6cae9ae81e4aab96d9951f21f7091d17febc3fb17ae14387
@@ -23,7 +23,7 @@ module Pears
23
23
 
24
24
  def parse_yaml(yaml_data)
25
25
  yaml_data = YAML.load(yaml_data)
26
- raise Pears::InvalidProviderData if yaml_data.is_a? String
26
+ raise Pears::InvalidProviderData unless yaml_data.is_a? Hash
27
27
  yaml_data.with_indifferent_access
28
28
  rescue Psych::SyntaxError => e
29
29
  logger ||= defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
data/lib/pears/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pears
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pears
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
  - Steven Kemp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-11 00:00:00.000000000 Z
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubygems_version: 3.2.3
120
+ rubygems_version: 3.2.22
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: An overly complicated library for juggling configuration data.