active_merge 1.0.1 → 1.0.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: 9f04e96b337986ab01516a571764953292c4cf46
4
- data.tar.gz: e51483094adf87e9f17596876c74feda706dddad
3
+ metadata.gz: 8ffd8cbe38f034bf9550b6bb0af0f14eedc1827d
4
+ data.tar.gz: 45cea92968add273f05457ab8d215540810708df
5
5
  SHA512:
6
- metadata.gz: b1c2930d0ffb8c6c0e996fb2aeef7701d211031dfcad1ff6e90f0ef117620de45f676028347c1763785f2a51acab8311b26592873ccd483ea982972f449aecc2
7
- data.tar.gz: a4365f27dd04f85929042e8f07a25837386af8bfc0c96d12dd5f7c0ddaca69d867a74b50c5853c319f8dd503cd86399fc2b59269a5f13b265a5b56a69a52d9f2
6
+ metadata.gz: bc5e47d45c307b9af261302b59d7ac6b6d0a827aa9182db622a787f7d72f7193f0eb5c8f10f85f0f46a3e0ab9f6c6ee9a050dee9c02c716fd9ca0055af6257a8
7
+ data.tar.gz: 0cd679bc248986bff5290e37f08f434edf840073f188dd4984f18067d712e1a36af45b1032754d25a0084915cb5c7fa25bdb6d634d9747e1838c6072080271d1
data/README.rdoc CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Declares the <tt>ActiveMerge</tt> module for extending ActiveRecord models.
4
4
 
5
- The module contains the <tt>merge</tt> class method for merging class instances
6
- into the first one.
5
+ The module contains the <tt>merge_all</tt> class method for merging
6
+ class instances into the first one.
7
7
 
8
8
  When merging a list of instances:
9
9
  * all "has_many" relatives are reattached to the instance with the lowest id
@@ -16,7 +16,7 @@ When merging a list of instances:
16
16
  has_many :comments
17
17
  end
18
18
 
19
- Post.all.merge!
19
+ Post.all.merge_all
20
20
  # This will merge all the posts into the first one.
21
21
  # The other posts will be deleted after their comment are reattached
22
22
  # to the first post.
@@ -1,4 +1,4 @@
1
1
  module ActiveMerge
2
2
  # Текущая версия плагина
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_merge
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-17 00:00:00.000000000 Z
11
+ date: 2014-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -80,7 +80,8 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: Declares the ActiveMerge module with the 'merge!' class method.
83
+ description: Declares the ActiveMerge module with the 'merge_all' helper method and
84
+ Service object classes.
84
85
  email:
85
86
  - andrew.kozin@gmail.com
86
87
  executables: []