dm-tags 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.9.10 / 2009-01-19
2
+
3
+ * No changes this version
4
+
1
5
  === 0.9.9 / 2009-01-04
2
6
 
3
7
  * No changes this version
@@ -1,6 +1,6 @@
1
1
  require 'rubygems'
2
2
 
3
- gem 'dm-core', '~>0.9.9'
3
+ gem 'dm-core', '~>0.9.10'
4
4
  require 'dm-core'
5
5
 
6
6
  module DataMapper
@@ -1,5 +1,5 @@
1
1
  module DataMapper
2
2
  class Tags
3
- VERSION = '0.9.9'
3
+ VERSION = '0.9.10'
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ describe DataMapper::Tags do
19
19
  describe ".has_tags_on" do
20
20
  it "should accept an array of context names" do
21
21
  Object.send(:remove_const, :HasTagsOnTestModel) if defined?(HasTagsOnTestModel)
22
- class HasTagsOnTestModel
22
+ class ::HasTagsOnTestModel
23
23
  include DataMapper::Resource
24
24
  property :id, Serial
25
25
  end
@@ -28,7 +28,7 @@ describe DataMapper::Tags do
28
28
 
29
29
  it "should create taggable functionality for each of the context names passed" do
30
30
  Object.send(:remove_const, :TestModel) if defined?(TestModel)
31
- class TestModel
31
+ class ::TestModel
32
32
  include DataMapper::Resource
33
33
  property :id, Serial
34
34
 
@@ -49,7 +49,7 @@ describe DataMapper::Tags do
49
49
  describe ".has_tags" do
50
50
  it "should create a taggable with 'tags' context regardless of passed arguments" do
51
51
  Object.send(:remove_const, :TagsOnly) if defined?(TagsOnly)
52
- class TagsOnly
52
+ class ::TagsOnly
53
53
  include DataMapper::Resource
54
54
  property :id, Serial
55
55
  has_tags :pets, :skills
data/spec/spec_helper.rb CHANGED
@@ -18,7 +18,7 @@ DataMapper.setup(:default, 'sqlite3::memory:')
18
18
  Spec::Runner.configure do |config|
19
19
  config.before(:each) do
20
20
  Object.send(:remove_const, :TaggedModel) if defined?(TaggedModel)
21
- class TaggedModel
21
+ class ::TaggedModel
22
22
  include DataMapper::Resource
23
23
  property :id, Serial
24
24
 
@@ -26,7 +26,7 @@ Spec::Runner.configure do |config|
26
26
  end
27
27
 
28
28
  Object.send(:remove_const, :AnotherTaggedModel) if defined?(AnotherTaggedModel)
29
- class AnotherTaggedModel
29
+ class ::AnotherTaggedModel
30
30
  include DataMapper::Resource
31
31
  property :id, Serial
32
32
 
@@ -34,7 +34,7 @@ Spec::Runner.configure do |config|
34
34
  end
35
35
 
36
36
  Object.send(:remove_const, :DefaultTaggedModel) if defined?(DefaultTaggedModel)
37
- class DefaultTaggedModel
37
+ class ::DefaultTaggedModel
38
38
  include DataMapper::Resource
39
39
  property :id, Serial
40
40
 
@@ -42,7 +42,7 @@ Spec::Runner.configure do |config|
42
42
  end
43
43
 
44
44
  Object.send(:remove_const, :UntaggedModel) if defined?(UntaggedModel)
45
- class UntaggedModel
45
+ class ::UntaggedModel
46
46
  include DataMapper::Resource
47
47
  property :id, Serial
48
48
  end
data/tasks/spec.rb CHANGED
@@ -8,7 +8,7 @@ begin
8
8
  desc 'Run specifications'
9
9
  Spec::Rake::SpecTask.new(:spec) do |t|
10
10
  t.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
11
- t.spec_files = Pathname.glob((ROOT + 'spec/**/*_spec.rb').to_s)
11
+ t.spec_files = Pathname.glob((ROOT + 'spec/**/*_spec.rb').to_s).map { |f| f.to_s }
12
12
 
13
13
  begin
14
14
  gem 'rcov', '~>0.8'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dm-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bobby Calderwood
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-04 00:00:00 -08:00
12
+ date: 2009-01-19 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 0.9.9
23
+ version: 0.9.10
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: dm-validations
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.9
33
+ version: 0.9.10
34
34
  version:
35
35
  description: This package brings tagging to DataMapper. It is inspired by Acts As Taggable On by Michael Bleigh, github's mbleigh. Props to him for the contextual tagging based on Acts As Taggable on Steroids.
36
36
  email: