rest_my_case 2.0.3 → 2.0.4

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: b1c2c99d979f1e98871fb725b3ff12d524c8ea5a
4
- data.tar.gz: 6e8d86b9f7beb69893ef7c45aa5ae302475407ef
3
+ metadata.gz: 7ab834c9c3cb9e1338bc8e419947f8bae97f0702
4
+ data.tar.gz: 1b0f611126528fd17778db77e419996edd60f060
5
5
  SHA512:
6
- metadata.gz: 949bc910df5398de735e14ea7d9e6d973e455d32966a3d4c904d8208542a669b11203530b97bff9c2e0e2e28249331fb836b224ba94f8e13052391791ecff77d
7
- data.tar.gz: 057cc8d6bc287520e2ad5e7107819b5fa7a19a661010bfd4be7b3f64208763f9a6f2d6ed50086757091bc6ca4c072bbd22501a660426aa0200ea432eae0eaaa0
6
+ metadata.gz: e3b56bd9a5b902bea518cc3914b6eb06979a0263f49e603ffc424a6cb4baf121bfbe5b8bb7197d7a32cdd1b21c4cacb55025e3d47dcdbd88c730cfcf48aaa859
7
+ data.tar.gz: 5fbeaaf4d36d624304593ccef1b8248aa70547ea56bdb0b7b9c0282f75cf42bf807fba810dacaf4c09b3fb2d14d81594c644a1bce9f72b48f1741131a70325fc
@@ -10,7 +10,7 @@ module RestMyCase
10
10
  errors = {}
11
11
 
12
12
  schema.each do |required_attribute|
13
- if Helpers.blank?(@context.send(required_attribute))
13
+ if @context.send(required_attribute).nil?
14
14
  errors[required_attribute] = 'is required'
15
15
  end
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module RestMyCase
2
- VERSION = '2.0.3'.freeze
2
+ VERSION = '2.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_my_case
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - João Gonçalves
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-01 00:00:00.000000000 Z
11
+ date: 2016-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry