guard-ctags-bundler 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/guard-ctags-bundler.gemspec +1 -1
- data/lib/guard/ctags-bundler/version.rb +1 -1
- data/lib/guard/ctags-bundler.rb +3 -3
- data/test/ctags-bundler/ctags_generator_test.rb +8 -2
- data/test/test_project/app/class1.java +4 -0
- metadata +7 -7
- data/test/test_project/app/class1.js +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bee6e8ffe1074ae404947aed96b0b4b32081c89
|
4
|
+
data.tar.gz: 0ec3a2217b6ad5dc142fa9829db271c9e2da7a94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81fe1c6e76ddf4a927c4489d1a8976075758c8b2d4f12d8235d3d287dca9d986f63b5060f4d1bbb63f5662f86e7ebc220cd9975e238f08f866f0488177b8d358
|
7
|
+
data.tar.gz: 93d0376dc795629e9659a93dc2db107049e58477ab198e5719390af24a9183b5070befe99258d78461c3a072a069142528eb9f467386f6757f590f1190b36402
|
data/guard-ctags-bundler.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
21
|
# specify any dependencies here; for example:
|
22
|
-
s.add_dependency 'guard', '
|
22
|
+
s.add_dependency 'guard', '~> 2.0'
|
23
23
|
|
24
24
|
s.add_development_dependency "bundler"
|
25
25
|
s.add_development_dependency "rake"
|
data/lib/guard/ctags-bundler.rb
CHANGED
@@ -3,11 +3,11 @@ require 'guard'
|
|
3
3
|
require 'guard/guard'
|
4
4
|
|
5
5
|
module Guard
|
6
|
-
class CtagsBundler <
|
6
|
+
class CtagsBundler < Plugin
|
7
7
|
autoload 'CtagsGenerator', 'guard/ctags-bundler/ctags_generator'
|
8
8
|
|
9
|
-
def initialize(
|
10
|
-
super
|
9
|
+
def initialize(options = {})
|
10
|
+
super
|
11
11
|
@ctags_generator = ::Guard::CtagsBundler::CtagsGenerator.new(options)
|
12
12
|
end
|
13
13
|
|
@@ -59,15 +59,21 @@ class CtagsGeneratorTest < MiniTest::Unit::TestCase
|
|
59
59
|
end
|
60
60
|
|
61
61
|
def test_generate_tags_with_arguments
|
62
|
-
generator(:src_path => ["app", "lib"], :arguments => '-R --languages=
|
62
|
+
generator(:src_path => ["app", "lib"], :arguments => '-R --languages=java').generate_project_tags
|
63
63
|
result = File.read(test_tags_file)
|
64
|
-
assert_match("
|
64
|
+
assert_match("javaMethod", result)
|
65
65
|
refute_match("method_of_class_1", result)
|
66
66
|
refute_match("method_of_class_2", result)
|
67
67
|
refute_match("method_of_class_3", result)
|
68
68
|
refute_match(/\bGuardfile\b/, result)
|
69
69
|
end
|
70
70
|
|
71
|
+
def test_generate_only_ruby_by_default
|
72
|
+
generator(:src_path => ["app", "lib"]).generate_project_tags
|
73
|
+
result = File.read(test_tags_file)
|
74
|
+
refute_match("javaMethod", result)
|
75
|
+
end
|
76
|
+
|
71
77
|
private
|
72
78
|
|
73
79
|
def generator(opts = {})
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-ctags-bundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Tkalin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -103,7 +103,7 @@ files:
|
|
103
103
|
- test/ctags-bundler/ctags_generator_test.rb
|
104
104
|
- test/test_helper.rb
|
105
105
|
- test/test_project/Gemfile
|
106
|
-
- test/test_project/app/class1.
|
106
|
+
- test/test_project/app/class1.java
|
107
107
|
- test/test_project/app/class1.rb
|
108
108
|
- test/test_project/lib/class2.rb
|
109
109
|
- test/test_project/vendor/class3.rb
|
@@ -1 +0,0 @@
|
|
1
|
-
function jsFunction() {}
|