flatter 1.0.0 → 1.0.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
  SHA1:
3
- metadata.gz: 542b10f00cb2f869988def6cd621cf3c6588c50f
4
- data.tar.gz: 482d1248aa1204fe7831898ac84e98214d961673
3
+ metadata.gz: d91e3b442535bce68a2fb427e0855a2f298d6808
4
+ data.tar.gz: 196120b7814a8d46bfe9ba57aa0e8c4872f0ebc3
5
5
  SHA512:
6
- metadata.gz: 3b9a7a0eb25675f0402768233e990e854f2a73bb6473af393e575434134002041e3257a74b150f262290e5c38c4e9ba8a0b42f6ee291d6e02505402e089c11e8
7
- data.tar.gz: 182d1f6281a6713f07271a7533db99c56b777f479ed527a1d719398f999992d92a29a9ffeff5ce99ca536b6ce0c5bc8f5eb7a180e6c9bcd3eb2c4caaf40749b8
6
+ metadata.gz: e665244520438061bcd900ea72b3a1ef5d844d6a0ba09cef906b56adecd6f2b0dd7d44794f61f9ede3ea6b7e50d390f591cf54f1707493b2aa7271353ad5003a
7
+ data.tar.gz: dddf8ac4a651ccd5f269431eacf18b75668fe37a2f8764cfd6da1afcc1d918cb06071016e18d434e7c11720732314f1216d565817498da82debe73f0abd822b3
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Flatter
2
2
 
3
- [![Build Status](https://secure.travis-ci.org/akuzko/flatter.png)](http://travis-ci.org/akuzko/flatter)
3
+ [![build status](https://secure.travis-ci.org/akuzko/flatter.png)](http://travis-ci.org/akuzko/flatter)
4
+ [![github release](https://img.shields.io/github/release/akuzko/flatter.svg)](https://github.com/akuzko/flatter/releases)
4
5
 
5
6
  This gem supersedes [FlatMap](https://github.com/TMXCredit/flat_map) gem. With
6
7
  only it's core concepts in mind it has been written from complete scratch to
@@ -83,7 +83,7 @@ module Flatter
83
83
  private :build_collection_item
84
84
 
85
85
  def add_item_to_target(item)
86
- target << item
86
+ target << item unless target.include?(item)
87
87
  end
88
88
  private :add_item_to_target
89
89
  end
@@ -1,3 +1,3 @@
1
1
  module Flatter
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Kuzko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-11 00:00:00.000000000 Z
11
+ date: 2017-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport