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 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
- Every thing below comes from ActsAsTaggableOn plugin and is still valid.
19
+ Everything below comes from ActsAsTaggableOn plugin and is still valid.
20
20
 
21
- = (Based on) ActsAsTaggableOn
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.2
1
+ 0.0.3
@@ -7,11 +7,3 @@ require 'acts_as_taggable_on/tag_list'
7
7
  require 'acts_as_taggable_on/tags_helper'
8
8
  require 'acts_as_taggable_on/tagging'
9
9
 
10
- class Tag
11
- set_table_name "v2_tags"
12
- end
13
-
14
-
15
- class Tagging
16
- set_table_name "v2_taggings"
17
- end
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.2
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-04 00:00:00 +01:00
12
+ date: 2010-01-05 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency