hash_params 2.0.4 → 2.0.5

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
  SHA1:
3
- metadata.gz: a3355863b88e16240226a36ca7b3666449aadf42
4
- data.tar.gz: 8048c6db682915d584a4b53bb211f72befa5b454
3
+ metadata.gz: 2e1b01ffecc42ce85b42301b5fb752f757809bb9
4
+ data.tar.gz: a1f6696f07ebc049910f78e6289b0b8e083dbb0e
5
5
  SHA512:
6
- metadata.gz: 5adb52671e95477c2d53c7c037c06372ef437d3ff86e7000d8d0d09d5aaf5f1210f98754992769b6c0d9aed47844ee4b59b0d68e669c27b4a559fe320a70cb71
7
- data.tar.gz: ea5c8831d6270ac6f72ccdb577a3ba7df4e83c1a25151b51bb7badb7696c06ce8bc9cae529e4a6d18aeceeec81e6eeca979b574808315b148dfbb4471198c5fd
6
+ metadata.gz: 1b7f7659ca7d2d394fbba11ed0d3baff2db6793d262aabdd522539f52b1e599bc3584cb81c248bf73a42233f8399b28c34ba77d3e4d947378aea9f5387b84784
7
+ data.tar.gz: a4e0bd000564b4a73c19bb51d0807114672c931ff40656b2e75106781b0d49b042826eed2bd4ccc9c9b19df4f5f2794e8df5dbf6ad228c3be226f0cebec1fe02
@@ -8,7 +8,7 @@ require_relative 'hash_params/binding_validator'
8
8
 
9
9
  module HashParams
10
10
  ENVIRONMENT = ENV['HASH_PARAMS_ENV'] || (defined?(Rails) && Rails.env) || ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development'
11
- VERSION = '2.0.4'
11
+ VERSION = '2.0.5'
12
12
  extend HashParams::Validator
13
13
  end
14
14
 
@@ -87,7 +87,7 @@ module YamlParams
87
87
  env ||= ENVIRONMENT
88
88
  contents = ERB.new(File.read(filename)).result if File.exists?(filename)
89
89
 
90
- return {} if contents.blank?
90
+ return {} if contents.nil? || contents.empty?
91
91
 
92
92
  r = YAML::load(contents)
93
93
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_params
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Uckun
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-10 00:00:00.000000000 Z
11
+ date: 2016-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -89,11 +89,9 @@ extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
91
  - "./Gemfile"
92
- - "./Gemfile.lock"
93
92
  - "./LICENSE"
94
93
  - "./README.md"
95
94
  - "./Rakefile"
96
- - "./hash_params-2.0.2.gem"
97
95
  - "./hash_params.gemspec"
98
96
  - "./lib/hash_params.rb"
99
97
  - "./lib/hash_params/binding_validator.rb"
@@ -122,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
120
  version: '0'
123
121
  requirements: []
124
122
  rubyforge_project:
125
- rubygems_version: 2.4.5.1
123
+ rubygems_version: 2.5.1
126
124
  signing_key:
127
125
  specification_version: 4
128
126
  summary: Parameter Validation & Type Coercion for parameters passed in as a Hash..
@@ -1,40 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- hash_params (2.0.1)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- coderay (1.1.0)
10
- docile (1.1.5)
11
- json (1.8.3)
12
- method_source (0.8.2)
13
- minitest (5.8.3)
14
- minitest-spec (0.0.2.1)
15
- minitest (>= 3.0)
16
- pry (0.10.3)
17
- coderay (~> 1.1.0)
18
- method_source (~> 0.8.1)
19
- slop (~> 3.4)
20
- rake (10.5.0)
21
- simplecov (0.11.1)
22
- docile (~> 1.1.0)
23
- json (~> 1.8)
24
- simplecov-html (~> 0.10.0)
25
- simplecov-html (0.10.0)
26
- slop (3.6.0)
27
-
28
- PLATFORMS
29
- ruby
30
-
31
- DEPENDENCIES
32
- hash_params!
33
- minitest
34
- minitest-spec
35
- pry
36
- rake
37
- simplecov
38
-
39
- BUNDLED WITH
40
- 1.11.2
Binary file