ctags-bundler 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ .tags
7
+ Gemfile.lock
8
+ InstalledFiles
9
+ _yardoc
10
+ coverage
11
+ doc/
12
+ lib/bundler/man
13
+ pkg
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ctags-bundler.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Neal Clark
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,6 @@
1
+ # Ctags::Bundler
2
+
3
+ Adaptation of [guard-ctags-bundler](https://github.com/ivalkeen/guard-ctags-bundler) with the guard part removed.
4
+
5
+ ## Usage
6
+ Run from project root. Generates a tags file called ```./tags```
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift(File.expand_path(__FILE__ + '/../../lib'))
4
+
5
+ require 'ctags-bundler'
6
+
7
+ Ctags::Bundler.generate_tags
@@ -0,0 +1,19 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/ctags-bundler/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Neal Clark"]
6
+ gem.email = ["nclark@thrownproject.com"]
7
+ gem.description = %q{Generate ctags for bundler projects}
8
+ gem.summary = %q{Generate ctags for bundler projects. Adapted from https://github.com/ivalkeen/guard-ctags-bundler}
9
+ gem.homepage = 'http://github.com/nclark/ctags-bundler'
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "ctags-bundler"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = Ctags::Bundler::VERSION
17
+
18
+ gem.add_dependency 'bundler', '>= 1.0'
19
+ end
@@ -0,0 +1,22 @@
1
+ require 'bundler'
2
+ require 'bundler/runtime'
3
+
4
+ module Ctags
5
+ module Bundler
6
+ extend self
7
+
8
+ def generate_tags
9
+ paths = (bundler_paths << '.').join(' ')
10
+ cmd = "find #{paths} -type f -name \\*.rb | ctags -f tags -L -"
11
+
12
+ system(cmd)
13
+ end
14
+
15
+ private
16
+
17
+ def bundler_paths
18
+ runtime = ::Bundler::Runtime.new Dir.pwd, ::Bundler.definition
19
+ paths = runtime.specs.map(&:full_gem_path)
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,5 @@
1
+ module Ctags
2
+ module Bundler
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ctags-bundler
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Neal Clark
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: &70169125030340 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '1.0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70169125030340
25
+ description: Generate ctags for bundler projects
26
+ email:
27
+ - nclark@thrownproject.com
28
+ executables:
29
+ - ctags-bundler
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - .gitignore
34
+ - Gemfile
35
+ - LICENSE
36
+ - README.md
37
+ - Rakefile
38
+ - bin/ctags-bundler
39
+ - ctags-bundler.gemspec
40
+ - lib/ctags-bundler.rb
41
+ - lib/ctags-bundler/version.rb
42
+ homepage: http://github.com/nclark/ctags-bundler
43
+ licenses: []
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 1.8.15
63
+ signing_key:
64
+ specification_version: 3
65
+ summary: Generate ctags for bundler projects. Adapted from https://github.com/ivalkeen/guard-ctags-bundler
66
+ test_files: []