acts-as-taggable-on 3.4.0 → 3.4.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 281e3a40ea12a2d4bf7cd9a17548afaa79d38551
|
4
|
+
data.tar.gz: 87e34ac29deab9211aea132e6f2189635d6918d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2168df4d62261fb9fbaacff107fb1311f9a9c8567f674b74e784dbd48a0e006825371cfa68de03595907974a1fc842383ca2ea90c2d48e51284a7398f492442a
|
7
|
+
data.tar.gz: 4478cd0771d44535549f4516f9d087b94250e2087c8c75fe559752e1f033c8336167dcaede44b1223360d1e3821da8d515e5fb03398689ea3fb207dd9f15673b
|
data/CHANGELOG.md
CHANGED
@@ -12,6 +12,10 @@ As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch.
|
|
12
12
|
* Performance
|
13
13
|
* Misc
|
14
14
|
|
15
|
+
### [3.4.1 / 2014-09-01](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.4.0...v3.4.1)
|
16
|
+
* Fixes
|
17
|
+
* [@konukhov fix owned ordered taggable bug]((https://github.com/mbleigh/acts-as-taggable-on/pull/585)
|
18
|
+
|
15
19
|
### [3.4.0 / 2014-08-29](https://github.com/mbleigh/acts-as-taggable-on/compare/v3.3.0...v3.4.0)
|
16
20
|
|
17
21
|
* Features
|
@@ -82,7 +82,7 @@ module ActsAsTaggableOn::Taggable
|
|
82
82
|
tags = find_or_create_tags_from_list_with_context(tag_list.uniq, context)
|
83
83
|
|
84
84
|
# Tag objects for owned tags
|
85
|
-
owned_tags = owner_tags_on(owner, context)
|
85
|
+
owned_tags = owner_tags_on(owner, context).to_a
|
86
86
|
|
87
87
|
# Tag maintenance based on whether preserving the created order of tags
|
88
88
|
if self.class.preserve_tag_order?
|
@@ -137,4 +137,17 @@ describe 'Tagger' do
|
|
137
137
|
}).to_not change(ActsAsTaggableOn::Tagging, :count)
|
138
138
|
end
|
139
139
|
|
140
|
+
it 'should change tags order in ordered taggable' do
|
141
|
+
@ordered_taggable = OrderedTaggableModel.create name: 'hey!'
|
142
|
+
|
143
|
+
@user.tag @ordered_taggable, with: 'tag, tag1', on: :tags
|
144
|
+
expect(@ordered_taggable.reload.tags_from(@user)).to eq(['tag', 'tag1'])
|
145
|
+
|
146
|
+
@user.tag @ordered_taggable, with: 'tag2, tag1', on: :tags
|
147
|
+
expect(@ordered_taggable.reload.tags_from(@user)).to eq(['tag2', 'tag1'])
|
148
|
+
|
149
|
+
@user.tag @ordered_taggable, with: 'tag1, tag2', on: :tags
|
150
|
+
expect(@ordered_taggable.reload.tags_from(@user)).to eq(['tag1', 'tag2'])
|
151
|
+
end
|
152
|
+
|
140
153
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts-as-taggable-on
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bleigh
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|