relation_builder 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
  SHA1:
3
- metadata.gz: 8a7965b9fa26cb3ba5dfe81e8d31d91c4b10b872
4
- data.tar.gz: 80e5e297a97bb39f0c80beba994829fca037c026
3
+ metadata.gz: 7ad5ab272d03b5726312fd4f2860e83223e57b70
4
+ data.tar.gz: c1607b93656e781969010eb132be7a10d301b0d7
5
5
  SHA512:
6
- metadata.gz: 317cdd2b155b97d52e459e8d7e862278eee786b9ae5f10b728de3a936a157a4c55bcae495671de10b0a15ef6f4df4aa538c95e9b7861c5da27c9c04824142c43
7
- data.tar.gz: 8212149aff8c94d530f5b41f93b2bc16a9f4515e26b6fb32dd21e53a4122238a330e9998aebd338ed24903fd3bf63112fca28b6bce377df935be8142cb732b17
6
+ metadata.gz: f6fcdb3bc0bcab0ba20933416f1dc39527978100a52ed1886a40264718d2facf096c5693713262322853e570740c3bfa8e25577c388216fc8296f13a2706906f
7
+ data.tar.gz: 7300049cc230634f5f831330c9136a957fb02da58441f737090e12666ccdf61dffad267ec678c12d3a63b09f72173e069ea2dc7c6fa9fb36bc50a22483c68807
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This is a gem for easy build of nested relations through options of initialize
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/relation_builder.png)](http://badge.fury.io/rb/relation_builder)
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -3,7 +3,9 @@ module RelationBuilder
3
3
  # Alternative for native method of Hash
4
4
  # It call block for any coincide keys even if values is Hash too
5
5
  def ext_deep_merge(other_hash, &block)
6
- dup.ext_deep_merge!(other_hash, &block)
6
+ ext_hash = dup
7
+ ext_hash.send(:extend, RelationBuilder::ExtDeepMerge) unless ext_hash.is_a? RelationBuilder::ExtDeepMerge
8
+ ext_hash.ext_deep_merge!(other_hash, &block)
7
9
  end
8
10
 
9
11
  # Same as +ext_deep_merge+, but modifies +self+.
@@ -1,3 +1,3 @@
1
1
  module RelationBuilder
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relation_builder
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
  - Ivan Zabrovskiy