store_model 0.1.0 → 0.1.1

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: 1f5848ec2d1688ab965fe1c960c300ef7834270c433555cd51b09969a1b84ac2
4
- data.tar.gz: 399e0250321b8ac5d470a0c52ae7ca9ca50a125b2a96e06c7eb2dd322a76baeb
3
+ metadata.gz: 7842213fb20b584acad440071c9e48335e2e42b798e4b59246742c0ce0edde63
4
+ data.tar.gz: d72f8f61111b3c2e7d03aab2fbb9160fda08aebd8b0a519031e8096daa96c81e
5
5
  SHA512:
6
- metadata.gz: 4638217fbbbb70dd9a649942dd7d3f28d0bc9b3c5a6e7fa3461e8d77b4f8c7575b566c4f525bd71bf6e05fc4e993a7dd08bc6fc49e9c52afed900d4f45bf2f83
7
- data.tar.gz: bebdc47d1101a98e7c49bab39c18e973b3f88818860ab37deabb5f0c54beba04c5322167c680504b68c1551390022f5d853f8eb7395895a8c0073a9493c4f045
6
+ metadata.gz: b2156d9c70cf0297d2759ae31736b82b2a93c462ac105c39d649043f039032df77c5ad508b89d860b3b38cd43a60e213ce72cc1f8df8ec5bc6b633c44977d0c5
7
+ data.tar.gz: 9b002f40458b95dc6ee9f25643c5a602ab68f85a8029af284d4ce8f04e730ac588d87129010510797e8840f948dd04c72c2ec6f84f09a7bdd733f8f5760cc522
data/README.md CHANGED
@@ -1,7 +1,3 @@
1
- # Disclaimer
2
-
3
- **This gem hasn't been released yet! I'm going to force push a lot, be careful**
4
-
5
1
  [![Gem Version](https://badge.fury.io/rb/store_model.svg)](https://rubygems.org/gems/store_model)
6
2
  [![Build Status](https://travis-ci.org/DmitryTsepelev/store_model.svg?branch=master)](https://travis-ci.org/DmitryTsepelev/store_model)
7
3
  [![Coverage Status](https://coveralls.io/repos/github/DmitryTsepelev/store_model/badge.svg?branch=master)](https://coveralls.io/github/DmitryTsepelev/store_model?branch=master)
@@ -9,7 +9,7 @@ module ActiveModel
9
9
  def validate(record)
10
10
  options[:attributes].each do |attribute|
11
11
  attribute_value = record.send(attribute)
12
- combine_errors(record, attribute) unless attribute_value.validate
12
+ combine_errors(record, attribute) if attribute_value&.invalid?
13
13
  end
14
14
  end
15
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StoreModel
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: store_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitryTsepelev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-20 00:00:00.000000000 Z
11
+ date: 2019-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails