dm-tags 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Rakefile +3 -2
- data/VERSION +1 -1
- data/dm-tags.gemspec +8 -7
- data/lib/dm-tags/dm_tags.rb +1 -1
- metadata +7 -7
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -12,13 +12,14 @@ begin
|
|
12
12
|
gem.email = 'bobby_calderwood [a] me [d] com'
|
13
13
|
gem.homepage = 'http://github.com/datamapper/%s' % gem.name
|
14
14
|
gem.authors = [ 'Bobby Calderwood' ]
|
15
|
+
gem.has_rdoc = 'yard'
|
15
16
|
|
16
17
|
gem.rubyforge_project = 'datamapper'
|
17
18
|
|
18
|
-
gem.add_dependency 'dm-core', '~> 1.0.
|
19
|
+
gem.add_dependency 'dm-core', '~> 1.0.2'
|
19
20
|
|
20
21
|
gem.add_development_dependency 'rspec', '~> 1.3'
|
21
|
-
gem.add_development_dependency 'dm-validations', '~> 1.0.
|
22
|
+
gem.add_development_dependency 'dm-validations', '~> 1.0.2'
|
22
23
|
end
|
23
24
|
|
24
25
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/dm-tags.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{dm-tags}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Bobby Calderwood"]
|
@@ -43,6 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
"tasks/yard.rake",
|
44
44
|
"tasks/yardstick.rake"
|
45
45
|
]
|
46
|
+
s.has_rdoc = %q{yard}
|
46
47
|
s.homepage = %q{http://github.com/datamapper/dm-tags}
|
47
48
|
s.rdoc_options = ["--charset=UTF-8"]
|
48
49
|
s.require_paths = ["lib"]
|
@@ -63,18 +64,18 @@ Gem::Specification.new do |s|
|
|
63
64
|
s.specification_version = 3
|
64
65
|
|
65
66
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
66
|
-
s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.
|
67
|
+
s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.2"])
|
67
68
|
s.add_development_dependency(%q<rspec>, ["~> 1.3"])
|
68
|
-
s.add_development_dependency(%q<dm-validations>, ["~> 1.0.
|
69
|
+
s.add_development_dependency(%q<dm-validations>, ["~> 1.0.2"])
|
69
70
|
else
|
70
|
-
s.add_dependency(%q<dm-core>, ["~> 1.0.
|
71
|
+
s.add_dependency(%q<dm-core>, ["~> 1.0.2"])
|
71
72
|
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
72
|
-
s.add_dependency(%q<dm-validations>, ["~> 1.0.
|
73
|
+
s.add_dependency(%q<dm-validations>, ["~> 1.0.2"])
|
73
74
|
end
|
74
75
|
else
|
75
|
-
s.add_dependency(%q<dm-core>, ["~> 1.0.
|
76
|
+
s.add_dependency(%q<dm-core>, ["~> 1.0.2"])
|
76
77
|
s.add_dependency(%q<rspec>, ["~> 1.3"])
|
77
|
-
s.add_dependency(%q<dm-validations>, ["~> 1.0.
|
78
|
+
s.add_dependency(%q<dm-validations>, ["~> 1.0.2"])
|
78
79
|
end
|
79
80
|
end
|
80
81
|
|
data/lib/dm-tags/dm_tags.rb
CHANGED
@@ -59,7 +59,7 @@ module DataMapper
|
|
59
59
|
@#{singular}_list = string.to_s.split(',').map { |name| name.gsub(/[^\\w\\s_-]/i, '').strip }.uniq.sort
|
60
60
|
end
|
61
61
|
|
62
|
-
|
62
|
+
alias_method :#{singular}_collection=, :#{singular}_list=
|
63
63
|
|
64
64
|
def update_#{association}
|
65
65
|
self.#{association} = #{singular}_list.map do |name|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 2
|
9
|
+
version: 1.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bobby Calderwood
|
@@ -28,8 +28,8 @@ dependencies:
|
|
28
28
|
segments:
|
29
29
|
- 1
|
30
30
|
- 0
|
31
|
-
-
|
32
|
-
version: 1.0.
|
31
|
+
- 2
|
32
|
+
version: 1.0.2
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
@@ -57,8 +57,8 @@ dependencies:
|
|
57
57
|
segments:
|
58
58
|
- 1
|
59
59
|
- 0
|
60
|
-
-
|
61
|
-
version: 1.0.
|
60
|
+
- 2
|
61
|
+
version: 1.0.2
|
62
62
|
type: :development
|
63
63
|
version_requirements: *id003
|
64
64
|
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.
|
@@ -96,7 +96,7 @@ files:
|
|
96
96
|
- tasks/spec.rake
|
97
97
|
- tasks/yard.rake
|
98
98
|
- tasks/yardstick.rake
|
99
|
-
has_rdoc:
|
99
|
+
has_rdoc: yard
|
100
100
|
homepage: http://github.com/datamapper/dm-tags
|
101
101
|
licenses: []
|
102
102
|
|