bbenezech-acts-as-taggable-on 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/VERSION +1 -1
- data/lib/acts-as-taggable-on.rb +0 -8
- data/spec/spec_helper.rb +11 -0
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -16,9 +16,9 @@
|
|
16
16
|
@taggable.skill_taggings.map(&:position).should == [1,2,3]
|
17
17
|
@taggable.skills.map(&:name).should == ["stronger", "harder", "better"]
|
18
18
|
|
19
|
-
|
19
|
+
Everything below comes from ActsAsTaggableOn plugin and is still valid.
|
20
20
|
|
21
|
-
=
|
21
|
+
= ActsAsTaggableOn
|
22
22
|
|
23
23
|
This plugin was originally based on Acts as Taggable on Steroids by Jonathan Viney.
|
24
24
|
It has evolved substantially since that point, but all credit goes to him for the
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/acts-as-taggable-on.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -15,6 +15,7 @@ class Array
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
|
+
|
18
19
|
TEST_DATABASE_FILE = File.join(File.dirname(__FILE__), '..', 'test.sqlite3')
|
19
20
|
|
20
21
|
File.unlink(TEST_DATABASE_FILE) if File.exist?(TEST_DATABASE_FILE)
|
@@ -29,6 +30,16 @@ load(File.dirname(__FILE__) + '/schema.rb')
|
|
29
30
|
$: << File.join(File.dirname(__FILE__), '..', 'lib')
|
30
31
|
require File.join(File.dirname(__FILE__), '..', 'init')
|
31
32
|
|
33
|
+
|
34
|
+
# let's run the tests with non-default table names.
|
35
|
+
class Tag
|
36
|
+
set_table_name "v2_tags"
|
37
|
+
end
|
38
|
+
|
39
|
+
class Tagging
|
40
|
+
set_table_name "v2_taggings"
|
41
|
+
end
|
42
|
+
|
32
43
|
class TaggableModel < ActiveRecord::Base
|
33
44
|
acts_as_taggable
|
34
45
|
acts_as_taggable_on :languages
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bbenezech-acts-as-taggable-on
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Benoit B\xC3\xA9n\xC3\xA9zech"
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-05 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|