hash_plus 1.2 → 1.3

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/hash_plus.gemspec +1 -1
  3. data/lib/hash_plus.rb +3 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4a9ee112603cf5e53624d742b8aa0766f8cffe66
4
- data.tar.gz: 62ec2046c0189ed12b5de9ec1c62d7e260d2e355
3
+ metadata.gz: 1210c0396a6a4088c2dd97d04577b5c0a48fc418
4
+ data.tar.gz: 368120f425013ef38e943f56300064f0c54c9ce5
5
5
  SHA512:
6
- metadata.gz: f3760630a4355e71a459f38682e5c36726da97b37bfb429248890f25eacde4b42400e1b094aeec02c4557ce6660ab9abbca223bc24aef781076a503a7ff5f606
7
- data.tar.gz: deba6420e34df63658d30176ff9eaab86f0239397e863bafeee7bdb7350d8467b0594b45322b6076ead04375f773b83681c901f4fe04db62b91aca98ebbbfda4
6
+ metadata.gz: 1c9b3897443cf4c2d2a4652bad6dae3616287d32377d9561c02694b13227ab53f8bedb9b4da2ac72015dd798f8b1dcccd32c9219a06439e39e924c340837a3dc
7
+ data.tar.gz: d324c96563910bc20fe3fee5f899015d757e1d889cf6b414802a0bfbfa5867dd0385b14726f5326b259b09a88a0d140072652be0d79f99177d4932cacfcca09e
data/hash_plus.gemspec CHANGED
@@ -4,7 +4,7 @@ require "hash_plus"
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "hash_plus"
7
- gem.version = '1.2'
7
+ gem.version = '1.3'
8
8
  gem.authors = ["Glenn Nagel"]
9
9
  gem.email = ["glenn@mercury-wireless.com"]
10
10
  gem.homepage = "https://github.com/gnagel/hash_plus"
data/lib/hash_plus.rb CHANGED
@@ -1,4 +1,7 @@
1
1
  class Hash
2
+ # Backwards compatability with older versions
3
+ def requires_fields(*_keys); requires_keys_are_not_nil(*_keys); end
4
+
2
5
  # Requires that the key simply be present
3
6
  # The hash can contain any value for these keys
4
7
  def requires_keys_are_present(*_keys)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Glenn Nagel