rtagstask 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/rtagstask.rb +38 -0
  2. data/lib/rtagstask/version.rb +4 -0
  3. metadata +55 -0
@@ -0,0 +1,38 @@
1
+
2
+ require 'rake'
3
+ require 'rake/tasklib'
4
+
5
+ class RTagsTask < Rake::TaskLib
6
+ attr_accessor :name, :rtags_dir, :tagfile, :vi, :quiet
7
+
8
+ def initialize(name = :tags)
9
+ @name, @rtags_dir = name, %w[lib test]
10
+ @vi, @quiet = true, true
11
+
12
+ yield self if block_given?
13
+
14
+ @tagfile ||= vi ? 'tags' : 'TAGS'
15
+
16
+ desc "Build the tags file used by #{vi ? 'vi' : 'emacs'}"
17
+ task @name do
18
+ cmd = "rtags"
19
+ cmd << ' --quiet' if quiet
20
+ cmd << ' --vi' if vi
21
+ cmd << " -f #{tagfile}"
22
+ cmd << " -R #{rtags_dir.join(' ')}"
23
+
24
+ sh cmd
25
+
26
+ puts
27
+ end
28
+
29
+ task :default => @name
30
+
31
+ desc 'Remove rtags products'
32
+ task "clobber_#{@name}" do
33
+ rm_f @tagfile
34
+ end
35
+
36
+ task :clobber => :"clobber_#{@name}"
37
+ end
38
+ end
@@ -0,0 +1,4 @@
1
+
2
+ class RTagsTask
3
+ VERSION = '0.0.4'
4
+ end
metadata ADDED
@@ -0,0 +1,55 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.2
3
+ specification_version: 1
4
+ name: rtagstask
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.0.4
7
+ date: 2007-04-02 00:00:00 +02:00
8
+ summary: A Rake task for building vi and emacs tags
9
+ require_paths:
10
+ - lib
11
+ email:
12
+ homepage:
13
+ rubyforge_project:
14
+ description:
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: false
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Daniel Schierbeck
31
+ files:
32
+ - lib/rtagstask.rb
33
+ - lib/rtagstask/version.rb
34
+ test_files: []
35
+
36
+ rdoc_options: []
37
+
38
+ extra_rdoc_files: []
39
+
40
+ executables: []
41
+
42
+ extensions: []
43
+
44
+ requirements: []
45
+
46
+ dependencies:
47
+ - !ruby/object:Gem::Dependency
48
+ name: rtags
49
+ version_requirement:
50
+ version_requirements: !ruby/object:Gem::Version::Requirement
51
+ requirements:
52
+ - - ">"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.0.0
55
+ version: