yard-dm 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.specopts +1 -0
- data/.yardopts +1 -0
- data/ChangeLog.md +15 -0
- data/{README.rdoc → LICENSE.txt} +0 -29
- data/README.md +43 -0
- data/Rakefile +33 -22
- data/VERSION +1 -0
- data/lib/yard-dm/legacy/belongs_to_handler.rb +1 -1
- data/lib/yard-dm/legacy/property_handler.rb +1 -1
- data/spec/belongs_to_handler_spec.rb +30 -10
- data/spec/has_handler_spec.rb +78 -58
- data/spec/helpers/examples/has_one_to_n.rb.txt +9 -0
- data/spec/helpers/examples/has_zero_to_n.rb.txt +9 -0
- data/spec/helpers/examples/invalid_belongs_to.rb.txt +9 -0
- data/spec/helpers/examples/invalid_has.rb.txt +9 -0
- data/spec/helpers/examples/invalid_properties.rb.txt +10 -0
- data/spec/property_handler_spec.rb +36 -13
- data/tasks/yard.rb +2 -1
- data/yard-dm.gemspec +85 -0
- metadata +44 -85
- data.tar.gz.sig +0 -0
- data/History.rdoc +0 -8
- data/Manifest.txt +0 -23
- metadata.gz.sig +0 -3
data/.gitignore
ADDED
data/.specopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--colour --format specdoc
|
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--markup markdown --title 'yard-dm Documentation' --protected --files ChangeLog.md,LICENSE.txt
|
data/ChangeLog.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
### 0.1.1 / 2010-02-18
|
2
|
+
|
3
|
+
* Fixed incorrect parsing of variables named `belongs_to` or `property`
|
4
|
+
under Ruby 1.8.x.
|
5
|
+
* Added specs for parsing invalid `property`, `has` and `property`
|
6
|
+
statements.
|
7
|
+
|
8
|
+
### 0.1.0 / 2010-01-13
|
9
|
+
|
10
|
+
* Initial release:
|
11
|
+
* Parses `property` statements.
|
12
|
+
* Parses `has` `n`, `1`, `0..n` and `1..n` statements.
|
13
|
+
* Parses `belongs_to` statements.
|
14
|
+
* All specs pass on Ruby 1.8.7-p174 and Ruby 1.9.1-p26041 using YARD 0.5.3.
|
15
|
+
|
data/{README.rdoc → LICENSE.txt}
RENAMED
@@ -1,32 +1,3 @@
|
|
1
|
-
= yard-dm
|
2
|
-
|
3
|
-
* http://github.com/postmodern/yard-dm
|
4
|
-
* http://github.com/postmodern/yard-dm/issues
|
5
|
-
* Postmodern (postmodern.mod3 at gmail.com)
|
6
|
-
|
7
|
-
== DESCRIPTION:
|
8
|
-
|
9
|
-
A YARD plugin for parsing DataMapper syntax.
|
10
|
-
|
11
|
-
Once yard-dm is installed, YARD will automatically load the plugin when ever
|
12
|
-
the +yardoc+ utility is ran on a project.
|
13
|
-
|
14
|
-
== FEATURES:
|
15
|
-
|
16
|
-
* Parses +property+ statements.
|
17
|
-
* Parses +has+ +n+, +1+, <tt>0..n</tt> and <tt>1..n</tt> statements.
|
18
|
-
* Parses +belongs_to+ statements.
|
19
|
-
|
20
|
-
== REQUIREMENTS:
|
21
|
-
|
22
|
-
* {yard}[http://yardoc.org/] >= 0.4.0
|
23
|
-
|
24
|
-
== INSTALL:
|
25
|
-
|
26
|
-
$ sudo gem install yard-dm
|
27
|
-
|
28
|
-
== LICENSE:
|
29
|
-
|
30
1
|
(The MIT License)
|
31
2
|
|
32
3
|
Copyright (c) 2010 Hal Brodigan
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# yard-dm
|
2
|
+
|
3
|
+
* [github.com/postmodern/yard-dm](http://github.com/postmodern/yard-dm/)
|
4
|
+
* [github.com/postmodern/yard-dm/issues](http://github.com/postmodern/yard-dm/issues)
|
5
|
+
* Postmodern (postmodern.mod3 at gmail.com)
|
6
|
+
|
7
|
+
## Description
|
8
|
+
|
9
|
+
A YARD plugin for parsing DataMapper model syntax.
|
10
|
+
|
11
|
+
Once yard-dm is installed, YARD will automatically load the plugin when ever
|
12
|
+
the `yardoc` utility is ran on a project.
|
13
|
+
|
14
|
+
## Features
|
15
|
+
|
16
|
+
Parses the following statements:
|
17
|
+
|
18
|
+
property :name, Type
|
19
|
+
|
20
|
+
has n, :things
|
21
|
+
|
22
|
+
has 1, :thing
|
23
|
+
|
24
|
+
has 0..n, :things
|
25
|
+
|
26
|
+
has 1..n, :things
|
27
|
+
|
28
|
+
has 2..5, :things
|
29
|
+
|
30
|
+
belongs_to :stuff
|
31
|
+
|
32
|
+
## Requirements
|
33
|
+
|
34
|
+
* [yard](http://yardoc.org/) >= 0.4.0
|
35
|
+
|
36
|
+
## Install
|
37
|
+
|
38
|
+
$ sudo gem install yard-dm
|
39
|
+
|
40
|
+
## License
|
41
|
+
|
42
|
+
See {file:LICENSE.txt} for license information.
|
43
|
+
|
data/Rakefile
CHANGED
@@ -1,28 +1,39 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
1
|
require 'rubygems'
|
4
|
-
require '
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = 'yard-dm'
|
8
|
+
gem.summary = %Q{A YARD plugin for parsing DataMapper model syntax.}
|
9
|
+
gem.description = %Q{Once yard-dm is installed, YARD will automatically load the plugin when ever the `yardoc` utility is ran on a project.}
|
10
|
+
gem.email = 'postmodern.mod3@gmail.com'
|
11
|
+
gem.homepage = 'http://github.com/postmodern/yard-dm'
|
12
|
+
gem.authors = ['Postmodern']
|
13
|
+
gem.add_development_dependency 'rspec', '>= 1.3.0'
|
14
|
+
gem.add_development_dependency 'yard', '>= 0.4.0'
|
15
|
+
gem.has_rdoc = 'yard'
|
16
|
+
end
|
17
|
+
rescue LoadError
|
18
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
|
+
end
|
14
20
|
|
15
|
-
|
21
|
+
require 'spec/rake/spectask'
|
22
|
+
Spec::Rake::SpecTask.new(:spec) do |spec|
|
23
|
+
spec.libs += ['lib', 'spec']
|
24
|
+
spec.spec_files = FileList['spec/**/*_spec.rb']
|
25
|
+
spec.spec_opts = ['--options', '.specopts']
|
26
|
+
end
|
16
27
|
|
17
|
-
|
18
|
-
|
19
|
-
]
|
28
|
+
task :spec => :check_dependencies
|
29
|
+
task :default => :spec
|
20
30
|
|
21
|
-
|
22
|
-
|
23
|
-
]
|
31
|
+
begin
|
32
|
+
require 'yard'
|
24
33
|
|
25
|
-
|
34
|
+
YARD::Rake::YardocTask.new
|
35
|
+
rescue LoadError
|
36
|
+
task :yard do
|
37
|
+
abort "YARD is not available. In order to run yard, you must: gem install yard"
|
38
|
+
end
|
26
39
|
end
|
27
|
-
|
28
|
-
# vim: syntax=ruby
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
@@ -7,19 +7,39 @@ require 'yard-dm/legacy/belongs_to_handler'
|
|
7
7
|
describe "BelongsToHandler" do
|
8
8
|
include Helpers::Examples
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
describe "valid" do
|
11
|
+
before(:all) do
|
12
|
+
parse_file :simple_belongs_to
|
13
|
+
end
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
15
|
+
it "should define class-methods for the belongs_to relationships" do
|
16
|
+
yard('SimpleBelongsTo.author').should be_instance_of(CodeObjects::MethodObject)
|
17
|
+
end
|
18
|
+
|
19
|
+
it "should define reader methods for the belongs_to relationships" do
|
20
|
+
yard('SimpleBelongsTo#author').should be_instance_of(CodeObjects::MethodObject)
|
21
|
+
end
|
17
22
|
|
18
|
-
|
19
|
-
|
23
|
+
it "should define writer methods for the belongs_to relationships" do
|
24
|
+
yard('SimpleBelongsTo#author=').should be_instance_of(CodeObjects::MethodObject)
|
25
|
+
end
|
20
26
|
end
|
21
27
|
|
22
|
-
|
23
|
-
|
28
|
+
describe "invalid" do
|
29
|
+
before(:all) do
|
30
|
+
parse_file :invalid_belongs_to
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should not define class-methods for 'belongs_to' variables" do
|
34
|
+
yard('InvalidBelongsTo.author').should be_nil
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should not define reader methods for 'belongs_to' variables" do
|
38
|
+
yard('InvalidBelongsTo#author').should be_nil
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should not define writer methods for 'belongs_to' variables" do
|
42
|
+
yard('InvalidBelongsTo#author=').should be_nil
|
43
|
+
end
|
24
44
|
end
|
25
45
|
end
|
data/spec/has_handler_spec.rb
CHANGED
@@ -7,93 +7,113 @@ require 'yard-dm/legacy/has_handler'
|
|
7
7
|
describe "HasHandler" do
|
8
8
|
include Helpers::Examples
|
9
9
|
|
10
|
-
describe "
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
describe "valid" do
|
11
|
+
describe "has n" do
|
12
|
+
before(:all) do
|
13
|
+
parse_file :has_n
|
14
|
+
end
|
14
15
|
|
15
|
-
|
16
|
-
|
17
|
-
|
16
|
+
it "should define class-methods for the 'has n' relationships" do
|
17
|
+
yard('HasN.things').should be_instance_of(CodeObjects::MethodObject)
|
18
|
+
end
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
it "should define reader methods for the 'has n' relationships" do
|
21
|
+
yard('HasN#things').should be_instance_of(CodeObjects::MethodObject)
|
22
|
+
end
|
22
23
|
|
23
|
-
|
24
|
-
|
24
|
+
it "should define writer methods for the 'has n' relationships" do
|
25
|
+
yard('HasN#things=').should be_instance_of(CodeObjects::MethodObject)
|
26
|
+
end
|
25
27
|
end
|
26
|
-
end
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
describe "has 0" do
|
30
|
+
before(:all) do
|
31
|
+
parse_file :has_zero
|
32
|
+
end
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
|
34
|
+
it "should not define class-methods for the 'has 0' relationships" do
|
35
|
+
yard('HasZero.things').should be_nil
|
36
|
+
end
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
38
|
+
it "should not define reader methods for the 'has 0' relationships" do
|
39
|
+
yard('HasZero#things').should be_nil
|
40
|
+
end
|
40
41
|
|
41
|
-
|
42
|
-
|
42
|
+
it "should not define writer methods for the 'has 0' relationships" do
|
43
|
+
yard('HasZero#things=').should be_nil
|
44
|
+
end
|
43
45
|
end
|
44
|
-
end
|
45
46
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
describe "has 1" do
|
48
|
+
before(:all) do
|
49
|
+
parse_file :has_one
|
50
|
+
end
|
50
51
|
|
51
|
-
|
52
|
-
|
53
|
-
|
52
|
+
it "should define class-methods for the 'has 1' relationships" do
|
53
|
+
yard('HasOne.things').should be_instance_of(CodeObjects::MethodObject)
|
54
|
+
end
|
54
55
|
|
55
|
-
|
56
|
-
|
57
|
-
|
56
|
+
it "should define reader methods for the 'has 1' relationships" do
|
57
|
+
yard('HasOne#things').should be_instance_of(CodeObjects::MethodObject)
|
58
|
+
end
|
58
59
|
|
59
|
-
|
60
|
-
|
60
|
+
it "should define writer methods for the 'has 1' relationships" do
|
61
|
+
yard('HasOne#things=').should be_instance_of(CodeObjects::MethodObject)
|
62
|
+
end
|
61
63
|
end
|
62
|
-
end
|
63
64
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
65
|
+
describe "has 0..n" do
|
66
|
+
before(:all) do
|
67
|
+
parse_file :has_zero_to_n
|
68
|
+
end
|
68
69
|
|
69
|
-
|
70
|
-
|
71
|
-
|
70
|
+
it "should define class-methods for the 'has 0..n' relationships" do
|
71
|
+
yard('HasZeroToN.things').should be_instance_of(CodeObjects::MethodObject)
|
72
|
+
end
|
73
|
+
|
74
|
+
it "should define reader methods for the 'has 0..n' relationships" do
|
75
|
+
yard('HasZeroToN#things').should be_instance_of(CodeObjects::MethodObject)
|
76
|
+
end
|
72
77
|
|
73
|
-
|
74
|
-
|
78
|
+
it "should define writer methods for the 'has 0..n' relationships" do
|
79
|
+
yard('HasZeroToN#things=').should be_instance_of(CodeObjects::MethodObject)
|
80
|
+
end
|
75
81
|
end
|
76
82
|
|
77
|
-
|
78
|
-
|
83
|
+
describe "has 1..n" do
|
84
|
+
before(:all) do
|
85
|
+
parse_file :has_one_to_n
|
86
|
+
end
|
87
|
+
|
88
|
+
it "should define class-methods for the 'has 1..n' relationships" do
|
89
|
+
yard('HasOneToN.things').should be_instance_of(CodeObjects::MethodObject)
|
90
|
+
end
|
91
|
+
|
92
|
+
it "should define reader methods for the 'has 1..n' relationships" do
|
93
|
+
yard('HasOneToN#things').should be_instance_of(CodeObjects::MethodObject)
|
94
|
+
end
|
95
|
+
|
96
|
+
it "should define writer methods for the 'has 1..n' relationships" do
|
97
|
+
yard('HasOneToN#things=').should be_instance_of(CodeObjects::MethodObject)
|
98
|
+
end
|
79
99
|
end
|
80
100
|
end
|
81
101
|
|
82
|
-
describe "
|
102
|
+
describe "invalid" do
|
83
103
|
before(:all) do
|
84
|
-
parse_file :
|
104
|
+
parse_file :invalid_has
|
85
105
|
end
|
86
106
|
|
87
|
-
it "should define class-methods for
|
88
|
-
yard('
|
107
|
+
it "should not define class-methods for 'has' variables" do
|
108
|
+
yard('InvalidHas.things').should be_nil
|
89
109
|
end
|
90
110
|
|
91
|
-
it "should define reader methods for
|
92
|
-
yard('
|
111
|
+
it "should not define reader methods for 'has' variables" do
|
112
|
+
yard('InvalidHas#things').should be_nil
|
93
113
|
end
|
94
114
|
|
95
|
-
it "should define writer methods for
|
96
|
-
yard('
|
115
|
+
it "should not define writer methods for 'has' variables" do
|
116
|
+
yard('InvalidHas#things=').should be_nil
|
97
117
|
end
|
98
118
|
end
|
99
119
|
end
|
@@ -7,22 +7,45 @@ require 'yard-dm/legacy/property_handler'
|
|
7
7
|
describe "PropertyHandler" do
|
8
8
|
include Helpers::Examples
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
describe "valid" do
|
11
|
+
before(:all) do
|
12
|
+
parse_file :simple_properties
|
13
|
+
end
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
it "should define class methods for the properties" do
|
16
|
+
yard('SimpleProperties.id').should be_instance_of(CodeObjects::MethodObject)
|
17
|
+
yard('SimpleProperties.name').should be_instance_of(CodeObjects::MethodObject)
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should define reader methods for the properties" do
|
21
|
+
yard('SimpleProperties#id').should be_instance_of(CodeObjects::MethodObject)
|
22
|
+
yard('SimpleProperties#name').should be_instance_of(CodeObjects::MethodObject)
|
23
|
+
end
|
18
24
|
|
19
|
-
|
20
|
-
|
21
|
-
|
25
|
+
it "should define writer methods for the properties" do
|
26
|
+
yard('SimpleProperties#id=').should be_instance_of(CodeObjects::MethodObject)
|
27
|
+
yard('SimpleProperties#name=').should be_instance_of(CodeObjects::MethodObject)
|
28
|
+
end
|
22
29
|
end
|
23
30
|
|
24
|
-
|
25
|
-
|
26
|
-
|
31
|
+
describe "invalid" do
|
32
|
+
before(:all) do
|
33
|
+
parse_file :invalid_properties
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should not define class methods for 'property' variables" do
|
37
|
+
yard('InvalidProperties.id').should be_nil
|
38
|
+
yard('InvalidProperties.name').should be_nil
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should not define reader methods for 'property' variables" do
|
42
|
+
yard('InvalidProperties#id').should be_nil
|
43
|
+
yard('InvalidProperties#name').should be_nil
|
44
|
+
end
|
45
|
+
|
46
|
+
it "should not define writer methods for 'property' variables" do
|
47
|
+
yard('InvalidProperties#id=').should be_nil
|
48
|
+
yard('InvalidProperties#name=').should be_nil
|
49
|
+
end
|
27
50
|
end
|
28
51
|
end
|
data/tasks/yard.rb
CHANGED
data/yard-dm.gemspec
ADDED
@@ -0,0 +1,85 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{yard-dm}
|
8
|
+
s.version = "0.1.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Postmodern"]
|
12
|
+
s.date = %q{2010-02-18}
|
13
|
+
s.description = %q{Once yard-dm is installed, YARD will automatically load the plugin when ever the `yardoc` utility is ran on a project.}
|
14
|
+
s.email = %q{postmodern.mod3@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"ChangeLog.md",
|
17
|
+
"LICENSE.txt",
|
18
|
+
"README.md"
|
19
|
+
]
|
20
|
+
s.files = [
|
21
|
+
".gitignore",
|
22
|
+
".specopts",
|
23
|
+
".yardopts",
|
24
|
+
"ChangeLog.md",
|
25
|
+
"LICENSE.txt",
|
26
|
+
"README.md",
|
27
|
+
"Rakefile",
|
28
|
+
"VERSION",
|
29
|
+
"lib/yard-dm.rb",
|
30
|
+
"lib/yard-dm/belongs_to_handler.rb",
|
31
|
+
"lib/yard-dm/extensions.rb",
|
32
|
+
"lib/yard-dm/has_handler.rb",
|
33
|
+
"lib/yard-dm/legacy/belongs_to_handler.rb",
|
34
|
+
"lib/yard-dm/legacy/has_handler.rb",
|
35
|
+
"lib/yard-dm/legacy/property_handler.rb",
|
36
|
+
"lib/yard-dm/property_handler.rb",
|
37
|
+
"spec/belongs_to_handler_spec.rb",
|
38
|
+
"spec/has_handler_spec.rb",
|
39
|
+
"spec/helpers/examples.rb",
|
40
|
+
"spec/helpers/examples/has_n.rb.txt",
|
41
|
+
"spec/helpers/examples/has_one.rb.txt",
|
42
|
+
"spec/helpers/examples/has_one_to_n.rb.txt",
|
43
|
+
"spec/helpers/examples/has_zero.rb.txt",
|
44
|
+
"spec/helpers/examples/has_zero_to_n.rb.txt",
|
45
|
+
"spec/helpers/examples/invalid_belongs_to.rb.txt",
|
46
|
+
"spec/helpers/examples/invalid_has.rb.txt",
|
47
|
+
"spec/helpers/examples/invalid_properties.rb.txt",
|
48
|
+
"spec/helpers/examples/simple_belongs_to.rb.txt",
|
49
|
+
"spec/helpers/examples/simple_properties.rb.txt",
|
50
|
+
"spec/property_handler_spec.rb",
|
51
|
+
"spec/spec_helper.rb",
|
52
|
+
"tasks/yard.rb",
|
53
|
+
"yard-dm.gemspec"
|
54
|
+
]
|
55
|
+
s.has_rdoc = %q{yard}
|
56
|
+
s.homepage = %q{http://github.com/postmodern/yard-dm}
|
57
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
58
|
+
s.require_paths = ["lib"]
|
59
|
+
s.rubygems_version = %q{1.3.5}
|
60
|
+
s.summary = %q{A YARD plugin for parsing DataMapper model syntax.}
|
61
|
+
s.test_files = [
|
62
|
+
"spec/helpers/examples.rb",
|
63
|
+
"spec/spec_helper.rb",
|
64
|
+
"spec/belongs_to_handler_spec.rb",
|
65
|
+
"spec/property_handler_spec.rb",
|
66
|
+
"spec/has_handler_spec.rb"
|
67
|
+
]
|
68
|
+
|
69
|
+
if s.respond_to? :specification_version then
|
70
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
71
|
+
s.specification_version = 3
|
72
|
+
|
73
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
74
|
+
s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
|
75
|
+
s.add_development_dependency(%q<yard>, [">= 0.4.0"])
|
76
|
+
else
|
77
|
+
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
78
|
+
s.add_dependency(%q<yard>, [">= 0.4.0"])
|
79
|
+
end
|
80
|
+
else
|
81
|
+
s.add_dependency(%q<rspec>, [">= 1.3.0"])
|
82
|
+
s.add_dependency(%q<yard>, [">= 0.4.0"])
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
metadata
CHANGED
@@ -1,68 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yard-dm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Postmodern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
- |
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDQDCCAiigAwIBAgIBADANBgkqhkiG9w0BAQUFADBGMRgwFgYDVQQDDA9wb3N0
|
14
|
-
bW9kZXJuLm1vZDMxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixk
|
15
|
-
ARkWA2NvbTAeFw0wOTA2MDMwNDU5MDNaFw0xMDA2MDMwNDU5MDNaMEYxGDAWBgNV
|
16
|
-
BAMMD3Bvc3Rtb2Rlcm4ubW9kMzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYK
|
17
|
-
CZImiZPyLGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
|
18
|
-
1wvANkTDHFgVih5XLjuTwTZjgBq1lBGybXJiH6Id1lY2JOMqM5FB1DDHVvvij94i
|
19
|
-
mJabN0zkzu6VKWC70y0IwOxY7CPokr0eFdK/D0y7mCq1P8QITv76i2YqAl0eYqIt
|
20
|
-
W+IhIkANQ7E6uMZIZcdnfadC6lPAtlKkqtd9crvRbFgr6e3kyflmohbRnTEJHoRd
|
21
|
-
7SHHsybE6DSn7oTDs6XBTNrNIn5VfZA0z01eeos/+zBm1zKJOK2+/7xtLLDuDU9G
|
22
|
-
+Rd+ltUBbvxUrMNZmDG29pnmN2xTRH+Q8HxD2AxlvM5SRpK6OeZaHV7PaCCAVZ4L
|
23
|
-
T9BFl1sfMvRlABeGEkSyuQIDAQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIE
|
24
|
-
sDAdBgNVHQ4EFgQUKwsd+PqEYmBvyaTyoL+uRuk+PhEwDQYJKoZIhvcNAQEFBQAD
|
25
|
-
ggEBAB4TvHsrlbcXcKg6gX5BIb9tI+zGkpzo0Z7jnxMEcNO7NGGwmzafDBI/xZYv
|
26
|
-
xkRH3/HXbGGYDOi6Q6gWt5GujSx0bOImDtYTJTH8jnzN92HzEK5WdScm1QpZKF1e
|
27
|
-
cezArMbxbSPaosxTCtG6LQTkE28lFQsmFZ5xzouugS4h5+LVJiVMmiP+l3EfkjFa
|
28
|
-
GOURU+rNEMPWo8MCWivGW7jes6BMzWHcW7DQ0scNVmIcCIgdyMmpscuAEOSeghy9
|
29
|
-
/fFs57Ey2OXBL55nDOyvN/ZQ2Vab05UH4t+GCxjAPeirzL/29FBtePT6VD44c38j
|
30
|
-
pDj+ws7QjtH/Qcrr1l9jfN0ehDs=
|
31
|
-
-----END CERTIFICATE-----
|
10
|
+
cert_chain: []
|
32
11
|
|
33
|
-
date: 2010-
|
12
|
+
date: 2010-02-18 00:00:00 -08:00
|
34
13
|
default_executable:
|
35
14
|
dependencies:
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: yard
|
38
|
-
type: :runtime
|
39
|
-
version_requirement:
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
requirements:
|
42
|
-
- - ">="
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: 0.4.0
|
45
|
-
version:
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: rubyforge
|
48
|
-
type: :development
|
49
|
-
version_requirement:
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 2.0.3
|
55
|
-
version:
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: gemcutter
|
58
|
-
type: :development
|
59
|
-
version_requirement:
|
60
|
-
version_requirements: !ruby/object:Gem::Requirement
|
61
|
-
requirements:
|
62
|
-
- - ">="
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 0.3.0
|
65
|
-
version:
|
66
15
|
- !ruby/object:Gem::Dependency
|
67
16
|
name: rspec
|
68
17
|
type: :development
|
@@ -71,63 +20,69 @@ dependencies:
|
|
71
20
|
requirements:
|
72
21
|
- - ">="
|
73
22
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.
|
23
|
+
version: 1.3.0
|
75
24
|
version:
|
76
25
|
- !ruby/object:Gem::Dependency
|
77
|
-
name:
|
26
|
+
name: yard
|
78
27
|
type: :development
|
79
28
|
version_requirement:
|
80
29
|
version_requirements: !ruby/object:Gem::Requirement
|
81
30
|
requirements:
|
82
31
|
- - ">="
|
83
32
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
33
|
+
version: 0.4.0
|
85
34
|
version:
|
86
|
-
description:
|
87
|
-
|
88
|
-
|
89
|
-
Once yard-dm is installed, YARD will automatically load the plugin when ever
|
90
|
-
the +yardoc+ utility is ran on a project.
|
91
|
-
email:
|
92
|
-
- postmodern.mod3@gmail.com
|
35
|
+
description: Once yard-dm is installed, YARD will automatically load the plugin when ever the `yardoc` utility is ran on a project.
|
36
|
+
email: postmodern.mod3@gmail.com
|
93
37
|
executables: []
|
94
38
|
|
95
39
|
extensions: []
|
96
40
|
|
97
41
|
extra_rdoc_files:
|
98
|
-
-
|
42
|
+
- ChangeLog.md
|
43
|
+
- LICENSE.txt
|
44
|
+
- README.md
|
99
45
|
files:
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
46
|
+
- .gitignore
|
47
|
+
- .specopts
|
48
|
+
- .yardopts
|
49
|
+
- ChangeLog.md
|
50
|
+
- LICENSE.txt
|
51
|
+
- README.md
|
103
52
|
- Rakefile
|
53
|
+
- VERSION
|
104
54
|
- lib/yard-dm.rb
|
55
|
+
- lib/yard-dm/belongs_to_handler.rb
|
105
56
|
- lib/yard-dm/extensions.rb
|
106
|
-
- lib/yard-dm/property_handler.rb
|
107
57
|
- lib/yard-dm/has_handler.rb
|
108
|
-
- lib/yard-dm/belongs_to_handler.rb
|
109
|
-
- lib/yard-dm/legacy/property_handler.rb
|
110
|
-
- lib/yard-dm/legacy/has_handler.rb
|
111
58
|
- lib/yard-dm/legacy/belongs_to_handler.rb
|
112
|
-
-
|
113
|
-
-
|
59
|
+
- lib/yard-dm/legacy/has_handler.rb
|
60
|
+
- lib/yard-dm/legacy/property_handler.rb
|
61
|
+
- lib/yard-dm/property_handler.rb
|
62
|
+
- spec/belongs_to_handler_spec.rb
|
63
|
+
- spec/has_handler_spec.rb
|
114
64
|
- spec/helpers/examples.rb
|
115
|
-
- spec/helpers/examples/simple_properties.rb.txt
|
116
|
-
- spec/helpers/examples/simple_belongs_to.rb.txt
|
117
65
|
- spec/helpers/examples/has_n.rb.txt
|
118
|
-
- spec/helpers/examples/has_zero.rb.txt
|
119
66
|
- spec/helpers/examples/has_one.rb.txt
|
67
|
+
- spec/helpers/examples/has_one_to_n.rb.txt
|
68
|
+
- spec/helpers/examples/has_zero.rb.txt
|
69
|
+
- spec/helpers/examples/has_zero_to_n.rb.txt
|
70
|
+
- spec/helpers/examples/invalid_belongs_to.rb.txt
|
71
|
+
- spec/helpers/examples/invalid_has.rb.txt
|
72
|
+
- spec/helpers/examples/invalid_properties.rb.txt
|
73
|
+
- spec/helpers/examples/simple_belongs_to.rb.txt
|
74
|
+
- spec/helpers/examples/simple_properties.rb.txt
|
120
75
|
- spec/property_handler_spec.rb
|
121
|
-
- spec/
|
122
|
-
-
|
76
|
+
- spec/spec_helper.rb
|
77
|
+
- tasks/yard.rb
|
78
|
+
- yard-dm.gemspec
|
123
79
|
has_rdoc: yard
|
124
80
|
homepage: http://github.com/postmodern/yard-dm
|
125
81
|
licenses: []
|
126
82
|
|
127
83
|
post_install_message:
|
128
84
|
rdoc_options:
|
129
|
-
- --
|
130
|
-
- README.rdoc
|
85
|
+
- --charset=UTF-8
|
131
86
|
require_paths:
|
132
87
|
- lib
|
133
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -144,10 +99,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
99
|
version:
|
145
100
|
requirements: []
|
146
101
|
|
147
|
-
rubyforge_project:
|
102
|
+
rubyforge_project:
|
148
103
|
rubygems_version: 1.3.5
|
149
104
|
signing_key:
|
150
105
|
specification_version: 3
|
151
|
-
summary: A YARD plugin for parsing DataMapper syntax
|
152
|
-
test_files:
|
153
|
-
|
106
|
+
summary: A YARD plugin for parsing DataMapper model syntax.
|
107
|
+
test_files:
|
108
|
+
- spec/helpers/examples.rb
|
109
|
+
- spec/spec_helper.rb
|
110
|
+
- spec/belongs_to_handler_spec.rb
|
111
|
+
- spec/property_handler_spec.rb
|
112
|
+
- spec/has_handler_spec.rb
|
data.tar.gz.sig
DELETED
Binary file
|
data/History.rdoc
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
=== 0.1.0 / 2010-01-13
|
2
|
-
|
3
|
-
* Initial release:
|
4
|
-
* Parses +property+ statements.
|
5
|
-
* Parses +has+ +n+, +1+, <tt>0..n</tt> and <tt>1..n</tt> statements.
|
6
|
-
* Parses +belongs_to+ statements.
|
7
|
-
* All specs pass on Ruby 1.8.7-p174 and Ruby 1.9.1-p26041 using YARD 0.5.3.
|
8
|
-
|
data/Manifest.txt
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
History.rdoc
|
2
|
-
Manifest.txt
|
3
|
-
README.rdoc
|
4
|
-
Rakefile
|
5
|
-
lib/yard-dm.rb
|
6
|
-
lib/yard-dm/extensions.rb
|
7
|
-
lib/yard-dm/property_handler.rb
|
8
|
-
lib/yard-dm/has_handler.rb
|
9
|
-
lib/yard-dm/belongs_to_handler.rb
|
10
|
-
lib/yard-dm/legacy/property_handler.rb
|
11
|
-
lib/yard-dm/legacy/has_handler.rb
|
12
|
-
lib/yard-dm/legacy/belongs_to_handler.rb
|
13
|
-
tasks/yard.rb
|
14
|
-
spec/spec_helper.rb
|
15
|
-
spec/helpers/examples.rb
|
16
|
-
spec/helpers/examples/simple_properties.rb.txt
|
17
|
-
spec/helpers/examples/simple_belongs_to.rb.txt
|
18
|
-
spec/helpers/examples/has_n.rb.txt
|
19
|
-
spec/helpers/examples/has_zero.rb.txt
|
20
|
-
spec/helpers/examples/has_one.rb.txt
|
21
|
-
spec/property_handler_spec.rb
|
22
|
-
spec/belongs_to_handler_spec.rb
|
23
|
-
spec/has_handler_spec.rb
|
metadata.gz.sig
DELETED