inventory-rake-tasks-yard 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/inventory/rake/tasks/yard-1.0.rb +12 -2
- data/lib/inventory/rake/tasks/yard/version.rb +1 -1
- metadata +64 -34
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 16a9fcb604b34aa74bed4e4b5937a7c46d8426d4
|
4
|
+
data.tar.gz: 342a48ed2b75307412a5dd79c036d43830ae482d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 31f86ce50a2120e3dc6e4a3ede88dda750dd38fcc20108aab2dbaf6968a922706d861b52f4fca7fa1fe8221c26fbeeef9db97efb8c142a3e4b623c7f602b03b4
|
7
|
+
data.tar.gz: 791d9f66a0586c6282cda612a13491c6f7cbe33b272f901e5581f2c1dee097381be61e4eb0f3904c91777c0edbf9ca079278baa4bdae6824dd18e4e01fbad830
|
@@ -24,7 +24,7 @@ class Inventory::Rake::Tasks::YARD
|
|
24
24
|
['--no-private',
|
25
25
|
'--protected',
|
26
26
|
'--private',
|
27
|
-
['--query', '
|
27
|
+
['--query', %w{'(!object.docstring.blank?&&object.docstring.line)||object.root?'}],
|
28
28
|
['--markup', 'markdown'],
|
29
29
|
'--no-stats'])
|
30
30
|
self.inventory = options.fetch(:inventory, Inventory::Rake::Tasks.inventory)
|
@@ -59,11 +59,13 @@ class Inventory::Rake::Tasks::YARD
|
|
59
59
|
globals.each do |key, value|
|
60
60
|
yardoc.options.globals.send '%s=' % key, value
|
61
61
|
end
|
62
|
-
rake_output_message 'yard doc %s' % Shellwords.shelljoin(arguments(yardoc
|
62
|
+
rake_output_message 'yard doc %s' % Shellwords.shelljoin(arguments(yardopts(yardoc))) if verbose
|
63
63
|
yardoc.run(nil)
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
private
|
68
|
+
|
67
69
|
def read(type)
|
68
70
|
File.open('.yardopts.%s' % type, 'rb', &:read)
|
69
71
|
rescue Errno::ENOENT
|
@@ -77,4 +79,12 @@ class Inventory::Rake::Tasks::YARD
|
|
77
79
|
push('--').
|
78
80
|
concat(files)
|
79
81
|
end
|
82
|
+
|
83
|
+
def yardopts(yardoc)
|
84
|
+
yardoc.use_yardopts_file ?
|
85
|
+
Shellwords.split(File.open(yardoc.options_file, 'rb', &:read)) :
|
86
|
+
[]
|
87
|
+
rescue Errno::ENOENT
|
88
|
+
[]
|
89
|
+
end
|
80
90
|
end
|
metadata
CHANGED
@@ -1,89 +1,121 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inventory-rake-tasks-yard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
5
|
-
prerelease:
|
4
|
+
version: 1.3.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Nikolai Weibull
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: inventory
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '1.
|
19
|
+
version: '1.4'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.4'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: lookout
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '3.0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: lookout-rake
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ~>
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '3.0'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: inventory-rake
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '1.3'
|
55
62
|
type: :runtime
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.3'
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: rake
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
73
|
- - ~>
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: 0.9.2
|
66
76
|
type: :runtime
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.9.2
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: yard
|
71
|
-
requirement:
|
72
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
87
|
- - ~>
|
75
88
|
- !ruby/object:Gem::Version
|
76
89
|
version: 0.8.0
|
77
90
|
type: :runtime
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.8.0
|
97
|
+
description: |2
|
98
|
+
Inventory-Rake-Tasks-YARD
|
99
|
+
|
100
|
+
Inventory-Rake-Tasks-YARD provides Rake¹ tasks for YARD² using your
|
101
|
+
Inventory³.
|
102
|
+
|
103
|
+
¹ Read up on Ruby’s build tool Rake at http://rake.rubyforge.org/
|
104
|
+
² Find out more about the YARD documentation tool at http://yardoc.org/
|
105
|
+
³ Get information on Inventory at http://disu.se/software/inventory/
|
106
|
+
|
107
|
+
§ Installation
|
108
|
+
|
109
|
+
Install Inventory-Rake-Tasks-YARD with
|
110
|
+
|
111
|
+
% gem install inventory-rake-tasks-yard
|
112
|
+
|
113
|
+
§ Usage
|
114
|
+
|
115
|
+
Include the following code in your ‹Rakefile›:
|
116
|
+
|
117
|
+
require 'inventory/rake/tasks/yard-1.0'
|
118
|
+
Inventory::Rake::Tasks::YARD.new
|
87
119
|
email: now@bitwi.se
|
88
120
|
executables: []
|
89
121
|
extensions: []
|
@@ -103,20 +135,18 @@ rdoc_options: []
|
|
103
135
|
require_paths:
|
104
136
|
- lib
|
105
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
138
|
requirements:
|
108
|
-
- -
|
139
|
+
- - '>='
|
109
140
|
- !ruby/object:Gem::Version
|
110
141
|
version: '0'
|
111
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
143
|
requirements:
|
114
|
-
- -
|
144
|
+
- - '>='
|
115
145
|
- !ruby/object:Gem::Version
|
116
146
|
version: '0'
|
117
147
|
requirements: []
|
118
148
|
rubyforge_project:
|
119
|
-
rubygems_version:
|
149
|
+
rubygems_version: 2.0.0
|
120
150
|
signing_key:
|
121
151
|
specification_version: 4
|
122
152
|
summary: Inventory³.
|