lazy_record 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7d8a49d7b115279037a9fecb09b1250c9629cc9
4
- data.tar.gz: 840ac59fc2e9c603aafb2e054adf257a4bbbdc07
3
+ metadata.gz: 07cbe5f933ea1780f957807536c3f05412f58b90
4
+ data.tar.gz: 58c255f8b4fc88e4b7cbfdbe2e538f56b29bdbc1
5
5
  SHA512:
6
- metadata.gz: 6b8825a2232f7934611ee3bee0b2b09c579cc18674234e951e8fcf91e79c65810e3589f0daa1928f7d30c249cc6a48252f66c10c5801d816baa5621f6b839ece
7
- data.tar.gz: 515522ec1f52bf4041b7f6421547dd756ffde7820e9845a685c557e2e25a79311cb61705e0529e171996fa0c7991b35fadf40a01346d14d9aed0dc6eea1399ca
6
+ metadata.gz: 919c9550309645c00316467c6479a812046b0849feb0fd4a7c3a10e5dd14374d72c83db91fd91f44cef8add1cd15728e2e572cee6a7660c921ba0118bfae98f5
7
+ data.tar.gz: 10a6e39dd1dd694838e437b83965988f8e84fd3b6bad4e7ec7fd4f26087e8882d832e12a360cf9477603a8673d6c9b6f94d6f7f221d324460a410e69b9ca3adc
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # LazyRecord
2
+ [![Gem Version](https://badge.fury.io/rb/lazy_record.svg)](https://badge.fury.io/rb/lazy_record)
2
3
  [![Code Climate](https://codeclimate.com/github/msimonborg/lazy_record/badges/gpa.svg)](https://codeclimate.com/github/msimonborg/lazy_record)
3
4
  [![Build Status](https://travis-ci.org/msimonborg/lazy_record.svg?branch=master)](https://travis-ci.org/msimonborg/lazy_record)
4
5
  [![Coverage Status](https://coveralls.io/repos/github/msimonborg/lazy_record/badge.svg?branch=master)](https://coveralls.io/github/msimonborg/lazy_record?branch=master)
@@ -206,6 +207,15 @@ thing.speak "I'm a thing"
206
207
  thing.what_am_i
207
208
  # => "I'm a Thing"
208
209
  ```
210
+ ## Platform support
211
+
212
+ Tested against:
213
+ * MRI 2.3.0
214
+ * MRI 2.3.4
215
+ * MRI 2.4.1
216
+ * JRuby 9.1.6.0
217
+ * JRuby HEAD
218
+ * MRI HEAD
209
219
 
210
220
  ## Development
211
221
 
@@ -24,7 +24,7 @@ module LazyRecord
24
24
  def <<(other)
25
25
  message = "object must be of type #{model}"
26
26
  raise ArgumentError, message unless other.is_a?(model)
27
- all << other
27
+ all << other unless all.include?(other)
28
28
  end
29
29
 
30
30
  def inspect
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LazyRecord
4
- VERSION = '0.6.1'
4
+ VERSION = '0.6.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. Simon Borg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-18 00:00:00.000000000 Z
11
+ date: 2017-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport