vclog 1.8.1 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/.ruby +57 -0
  2. data/COPYING.rdoc +32 -0
  3. data/README.rdoc +18 -19
  4. data/features/git.feature +16 -16
  5. data/features/hg.feature +16 -16
  6. data/features/step_definitions/repo_steps.rb +2 -1
  7. data/features/support/aruba.rb +5 -1
  8. data/features/support/repo.rb +7 -3
  9. data/features/svn.feature +16 -16
  10. data/lib/vclog.rb +1 -1
  11. data/lib/vclog/adapters/abstract.rb +0 -19
  12. data/lib/vclog/adapters/git.rb +34 -6
  13. data/lib/vclog/adapters/svn.rb +1 -1
  14. data/lib/vclog/change.rb +43 -23
  15. data/lib/vclog/heuristics.rb +32 -49
  16. data/lib/vclog/heuristics/label.rb +29 -0
  17. data/lib/vclog/heuristics/rule.rb +33 -0
  18. data/lib/vclog/metadata.rb +2 -12
  19. data/lib/vclog/repo.rb +23 -19
  20. data/{ronn → man/man1}/index.txt +0 -0
  21. data/man/man1/vclog-autotag.1.html +117 -0
  22. data/{ronn/vclog-autotag.ronn → man/man1/vclog-autotag.1.ronn} +0 -0
  23. data/man/man1/vclog-bump.1.html +111 -0
  24. data/{ronn/vclog-bump.ronn → man/man1/vclog-bump.1.ronn} +0 -0
  25. data/man/man1/vclog-changelog.1.html +123 -0
  26. data/{ronn/vclog-changelog.ronn → man/man1/vclog-changelog.1.ronn} +0 -0
  27. data/man/man1/vclog-history.1.html +122 -0
  28. data/{ronn/vclog-history.ronn → man/man1/vclog-history.1.ronn} +0 -0
  29. data/man/man1/vclog-version.1.html +100 -0
  30. data/{ronn/vclog-version.ronn → man/man1/vclog-version.1.ronn} +0 -0
  31. data/man/man1/vclog.1.html +122 -0
  32. data/{ronn/vclog.ronn → man/man1/vclog.1.ronn} +0 -0
  33. data/test/unit/case_metadata.rb +11 -0
  34. data/test/unit/helper.rb +4 -0
  35. metadata +132 -122
  36. data/HISTORY.rdoc +0 -158
  37. data/LICENSE +0 -203
  38. data/lib/plugins/syckle/vclog.rb +0 -221
  39. data/lib/vclog/heuristics/default.rb +0 -24
  40. data/lib/vclog/meta/data.rb +0 -25
  41. data/lib/vclog/meta/package +0 -11
  42. data/lib/vclog/meta/profile +0 -18
  43. data/meta/data.rb +0 -25
  44. data/meta/package +0 -11
  45. data/meta/profile +0 -18
@@ -1,158 +0,0 @@
1
- = RELEASE HISTORY
2
-
3
- == 1.8.1 / 2010-11-22
4
-
5
- This release corrects the tag dates on Histories. Where possible the tag date is used rather than the commit date (of the most recent commit made relative to the tag). Primarily this effects git repositories --a separate tag date is not supported by all SCMs. This release also fixes a bug in the hg adapter that prevented auto-tagging.
6
-
7
- Changes:
8
-
9
- * Use tag date instead of commit date in history.
10
- * Fix typo in hg adapter's autotag method.
11
- * Add history file option to autotag command.
12
-
13
-
14
- == 1.8.0 / 2010-11-21
15
-
16
- Under the hood, VCLog now has a Repo class that acts as a central controller. This has improved the code base substantially and should could to do so as this new design is further embraced. This release also introdces a new `autotag` feature, which makes it possible to "reverse engineer" a Release History file. It will parse the entries from a HISTORY.* file and ensure that corresponding tags exists in the version control system.
17
-
18
- Changes:
19
-
20
- * Add Repo class which acts as central control.
21
- * Add autotag feature to ensure release history tags exits.
22
-
23
-
24
- == 1.7.0 / 2010-06-27
25
-
26
- In this release the heuristics interface has changed such that the block is passed the commit message and the matchdata, instead of the previous matchdata splat. The rule can alos return either the sybolic label or a two element array of label and new message, which allows the rule to "massage" the message as needed. This release also improves the git log parser to be much more robust.
27
-
28
- Changes:
29
-
30
- * Pass message and matchadata to heuristics rule interface.
31
- * Improve git log parser, which should handle all possible cases now.
32
-
33
-
34
- == 1.6.1 / 2010-06-23
35
-
36
- This release repairs the Atom feed format and adds an RSS feed format. Both formats are nearly conformant with strict validations --only a couple minor issues remain to iron out (such as embedded feed url). Ragardless, they should work fine with feed readers (which are not as strict).
37
-
38
- Changes:
39
-
40
- * Repair and improve Atom feed format.
41
- * Add RSS feed format.
42
- * Fix Git email address value.
43
- * Add title to HTML Change Log format.
44
-
45
-
46
- == 1.6.0 / 2010-06-22
47
-
48
- Previous versions utilized a system of "commit tagging" to identify types of commits. This proved less than optimal --it was unconventional, but worse it was easy to forget to put the proper label in the message. The new version of VClog uses a customizable heuristics systems instead. Rather than be limited to a strict syntax structure, you can write matching rules in .config/vclog/rules.rb that determine the commit type, and set descriptive labels for each type. This makes it very easy to get excellent History output. Also in this release the command-line interface has changed to use subcommands. And the default output format is now an ANSI-color GNU-like format. Use `-f gnu` to get the old default format.
49
-
50
- Changes:
51
-
52
- * 2 Major Enhancements
53
-
54
- * Heuristics system for categorizing commits
55
- * Command-line interface uses subcommands
56
-
57
-
58
- == 1.5.0 / 2010-05-29
59
-
60
- This release adds support for Mercurial repositories and Atom newsfeed output format. The commandline inteface has change such that <code>--foramt</code>/<code>-f</code> is used to select the format instead of using the previous per-format options, e.g. use <code>-f xml</code> instead of <code>--xml</code>. This release also includes some subtantial changes under-the-hood --the first of a two part code refactoring process.
61
-
62
- Changes:
63
-
64
- * 2 Major Enhancements
65
-
66
- * Add Mercurial support
67
- * Add Atom feed format
68
-
69
- * 1 Minor Enhancement
70
-
71
- * Select format using -f option.
72
-
73
-
74
- == 1.4.0 / 2010-05-26
75
-
76
- This release includes some basic improvments and a few bug fixes. The primary change you might encounter is the need to use -e or --extra in order to see the detailed Changes list in the Release History. Also changed 'git-log' to 'git log', as it seems the latest versions of git does not support the many executables any longer. SVN support requires xmlsimple library. Note also that SVN support is lack luster at this time becuase it hits the server every time an 'svn log' command is issued which is done once for each tag when a history is generated (any one know a better way?).
77
-
78
- Changes:
79
-
80
- * 1 Minor Enhancement
81
-
82
- * Use -e or --extra to see Changes list in release history.
83
- * Use xmlsimple for parsing SVN log output.
84
- * Improve git log parsing with --pretty option.
85
-
86
- * 2 Bug Fixes
87
-
88
- * Sort release tags in correct order.
89
- * Change 'git-log' to 'git log'.
90
-
91
-
92
- == 1.3.0 / 2010-02-08
93
-
94
- For the an end-user the only significant change is the support of 'label:' notation for commit labels. I have found that I am much more apt to use them if they come first in the commit message and that some developers already use the 'label:' notation to specify 'system module' effected --a useful system of labeling.
95
-
96
- Changes:
97
-
98
- * 1 Major Enhancement
99
-
100
- * Support 'label:' fromat commit types
101
-
102
- * 2 Implementation Enhancements
103
-
104
- * Adjust location of plugins for latest version of Plugin gem.
105
- * Use Erb as template system for all formats.
106
-
107
- * 1 Bug Fix
108
-
109
- * Corrected error for --current and --bump commands.
110
-
111
-
112
- == 1.2.0 / 2009-10-26
113
-
114
- Version 1.2 overhuals the internals so that History output is based on scm tags, not on a pre-existing history file. This is really the proper way to go about it and those who use it will, I think, be happily surprised at how it promotes good practices for the maintenance of History files. This overhaul led to substantial changes in the command-line interface.
115
-
116
- Changes:
117
-
118
- * 2 Major Enhancements
119
-
120
- * Rewrote History class.
121
- * Changed command-line interface.
122
-
123
-
124
- == 1.1.0 / 2009-10-23
125
-
126
- This release adds yaml and json formats an improves
127
- the command.
128
-
129
- Changes:
130
-
131
- * 2 Major Enhancements
132
-
133
- * Added YAML format.
134
- * Added JSON format.
135
-
136
- * 1 Minor Enhancements
137
-
138
- * Use OptionParser instead of GetoptLong.
139
-
140
-
141
- == 1.0.0 / 2009-10-13
142
-
143
- This is the first "production" release of VCLog.
144
-
145
- * 2 Major Enhancements
146
-
147
- * Improved command line interface.
148
- * Added output option to save changelog.
149
-
150
-
151
- == 0.1.0 / 2009-08-17
152
-
153
- This is the initial version of vclog.
154
-
155
- * 1 Major Enhancement
156
-
157
- * Happy Birthday
158
-
data/LICENSE DELETED
@@ -1,203 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. We also recommend that a
186
- file or class name and description of purpose be included on the
187
- same "printed page" as the copyright notice for easier
188
- identification within third-party archives.
189
-
190
- Copyright [yyyy] [name of copyright owner]
191
-
192
- Licensed under the Apache License, Version 2.0 (the "License");
193
- you may not use this file except in compliance with the License.
194
- You may obtain a copy of the License at
195
-
196
- http://www.apache.org/licenses/LICENSE-2.0
197
-
198
- Unless required by applicable law or agreed to in writing, software
199
- distributed under the License is distributed on an "AS IS" BASIS,
200
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
- See the License for the specific language governing permissions and
202
- limitations under the License.
203
-
@@ -1,221 +0,0 @@
1
- module Syckle::Plugins
2
-
3
- # VClog service generates changelogs from
4
- # SCM commit messages.
5
- #
6
- # TODO: Support multiple formats in one pass.
7
- class VClog < Service
8
-
9
- cycle :main, :document
10
-
11
- #available do |project|
12
- # begin
13
- # require 'vclog/vcs'
14
- # true
15
- # rescue LoadError
16
- # false
17
- # end
18
- #end
19
-
20
- # Current version of project.
21
- attr_accessor :version
22
-
23
- # Changelog format. Default is +html+.
24
- # Supports +html+, +xml+, +json+, +yaml+, +rdoc+, +markdown+, and +gnu+.
25
- attr_reader :formats
26
-
27
- # Changelog layout type (+changelog+ or +history+). Default is +changelog+.
28
- attr_reader :type
29
-
30
- # Output directory store results.
31
- attr_accessor :output
32
-
33
- # Show revision numbers (true/false)?
34
- attr_accessor :rev
35
-
36
- # Some formats, such as +rdoc+, use a title field. Defaults to project title.
37
- attr_accessor :title
38
-
39
- # Some formats can reference an optional stylesheet (namely +xml+ and +html+).
40
- attr_accessor :style
41
-
42
- # Minimum change level to include.
43
- attr_accessor :level
44
-
45
- # Reduced detail
46
- attr_accessor :summary
47
-
48
- #
49
- def initialize_defaults
50
- @version = metadata.version
51
- @title = metadata.title
52
- @formats = ['atom']
53
- @type = 'log'
54
- @level = 0
55
- @summary = false
56
- end
57
-
58
- #
59
- def valid?
60
- return false unless format =~ /^(html|yaml|json|xml|rdoc|markdown|gnu|txt|atom|rss|ansi)$/
61
- return false unless type =~ /^(log|rel|history|changelog)$/
62
- return true
63
- end
64
-
65
- #
66
- def formats=(f)
67
- @formats = f.to_list
68
- end
69
-
70
- alias_method :format=, :formats=
71
-
72
- #
73
- def type=(f)
74
- @type = f.to_s.downcase
75
- end
76
-
77
- #++
78
- # TODO: apply_naming_policy ?
79
- #--
80
-
81
- #
82
- def document
83
- require 'vclog'
84
- formats.each do |format|
85
- case type
86
- when 'rel', 'history'
87
- ext = format_extension(format)
88
- file = File.join(output || project.log, "vclog/history#{ext}")
89
- else
90
- ext = format_extension(format)
91
- file = File.join(output || project.log, "vclog/changelog#{ext}")
92
- end
93
- #apply_naming_policy('changelog', log_format.downcase)
94
- if dryrun?
95
- report "# vclog --#{type} -f #{format} >> #{file}"
96
- else
97
- changed = save(format, file)
98
- if changed
99
- report "Updated #{relative_from_root(file)}"
100
- else
101
- report "Current #{relative_from_root(file)}"
102
- end
103
- end
104
- end
105
- end
106
-
107
- # Save changelog/history to +output+ file.
108
- def save(format, output)
109
- text = render(format)
110
- if File.exist?(output)
111
- if File.read(output) != text
112
- File.open(output, 'w'){ |f| f << text }
113
- true
114
- else
115
- false
116
- end
117
- else
118
- dir = File.dirname(output)
119
- mkdir_p(dir) unless File.exist?(dir)
120
- File.open(output, 'w'){ |f| f << text }
121
- end
122
- end
123
-
124
- ## Returns changelog or history depending on type selection.
125
- #def log
126
- # @log ||= (
127
- # case type
128
- # when 'log', 'changelog'
129
- # log = vcs.changelog
130
- # when 'rel', 'history'
131
- # log = vcs.history(:title=>title, :version=>version)
132
- # else
133
- # log = vcs.changelog
134
- # end
135
- # )
136
- #end
137
-
138
- #def vclog_config
139
- # @vclog_config ||= (
140
- # vcf = VCLog::Config.new(project.root.to_s)
141
- # vcf.level = level
142
- # vcf
143
- # )
144
- #end
145
-
146
- # Access to version control system.
147
- def vcs
148
- #@vcs ||= VCLog::VCS.new #(self)
149
- #@vcs ||= VCLog::Adapters.factory(vclog_config)
150
- @vcs ||= VCLog::Repo.new(project.root.to_s, :level=>level)
151
- end
152
-
153
- # Convert log to desired format.
154
- def render(format)
155
- doctype = type
156
- doctype = 'history' if doctype == 'rel'
157
- doctype = 'changelog' if doctype == 'log'
158
-
159
- options = {
160
- :stylesheet => style,
161
- :revision => rev,
162
- :version => version,
163
- :title => title,
164
- :extra => !summary
165
- }
166
-
167
- vcs.display(doctype, format, options)
168
- end
169
-
170
-
171
- #
172
- def format_extension(format)
173
- #case format.to_s
174
- #when 'rss'
175
- # '-rss.xml'
176
- #when 'atom'
177
- # '-atom.xml'
178
- #else
179
- ".#{format}"
180
- #end
181
- end
182
-
183
- =begin
184
- #
185
- def document_public_changelog
186
- if output
187
- file = project.root + output
188
- else
189
- file = project.root.glob_first("{CHANGES,CHANGELOG}{.txt,}", :casefold)
190
- end
191
-
192
- if file
193
- #file = (project.root + file).to_s
194
- if dryrun?
195
- report "vclog > #{file}"
196
- else
197
- public_changelog = typed ? changelog.typed : changelog
198
- if layout == 'rel'
199
- changed = public_changelog.save(file.to_s, :rel, metadata.version, metadata.release)
200
- else
201
- changed = public_changelog.save(file.to_s, :gnu)
202
- end
203
- if changed
204
- report "Updated #{relative_from_root(file)}"
205
- else
206
- report "#{relative_from_root(file)} is current"
207
- end
208
- end
209
- end
210
- end
211
- =end
212
-
213
- #
214
- def relative_from_root(path)
215
- Pathname.new(path).relative_path_from(project.root)
216
- end
217
-
218
- end
219
-
220
- end
221
-