dm-tags 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/History.txt +18 -4
- data/{License.txt → LICENSE} +0 -0
- data/Manifest.txt +6 -5
- data/README.txt +2 -2
- data/Rakefile +24 -3
- data/TODO +0 -0
- data/lib/dm-tags/dm_tags.rb +83 -69
- data/lib/dm-tags/tag.rb +4 -3
- data/lib/dm-tags/tagging.rb +6 -5
- data/lib/dm-tags/version.rb +3 -8
- data/spec/dm-tags/dm_tags_spec.rb +8 -4
- data/spec/dm-tags/tag_spec.rb +3 -2
- data/spec/dm-tags/taggable_spec.rb +3 -7
- data/spec/dm-tags/tagging_spec.rb +4 -2
- data/spec/dm-tags/updating_spec.rb +36 -0
- data/spec/spec_helper.rb +49 -5
- data/tasks/install.rb +13 -0
- data/tasks/spec.rb +25 -0
- metadata +30 -22
- data/setup.rb +0 -1585
- data/spec/classes.rb +0 -25
- data/spec/dm-setup.rb +0 -2
- data/tasks/rspec.rake +0 -21
data/spec/classes.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
class TaggedModel
|
2
|
-
include DataMapper::Resource
|
3
|
-
property :id, Integer, :serial => true
|
4
|
-
|
5
|
-
has_tags_on :skills, :interests, :tags
|
6
|
-
end
|
7
|
-
|
8
|
-
class AnotherTaggedModel
|
9
|
-
include DataMapper::Resource
|
10
|
-
property :id, Integer, :serial => true
|
11
|
-
|
12
|
-
has_tags_on :skills, :pets
|
13
|
-
end
|
14
|
-
|
15
|
-
class DefaultTaggedModel
|
16
|
-
include DataMapper::Resource
|
17
|
-
property :id, Integer, :serial => true
|
18
|
-
|
19
|
-
has_tags
|
20
|
-
end
|
21
|
-
|
22
|
-
class UntaggedModel
|
23
|
-
include DataMapper::Resource
|
24
|
-
property :id, Integer, :serial => true
|
25
|
-
end
|
data/spec/dm-setup.rb
DELETED
data/tasks/rspec.rake
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'spec'
|
3
|
-
rescue LoadError
|
4
|
-
require 'rubygems'
|
5
|
-
require 'spec'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'spec/rake/spectask'
|
9
|
-
rescue LoadError
|
10
|
-
puts <<-EOS
|
11
|
-
To use rspec for testing you must install rspec gem:
|
12
|
-
gem install rspec
|
13
|
-
EOS
|
14
|
-
exit(0)
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Run the specs under spec/models"
|
18
|
-
Spec::Rake::SpecTask.new do |t|
|
19
|
-
t.spec_opts = ['--options', "spec/spec.opts"]
|
20
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
21
|
-
end
|