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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3aac453460b869a18505cf51cf29ca9db034a718
4
- data.tar.gz: c536b6772843755bc1fdb2ed1752f5f41e1630b2
3
+ metadata.gz: 1bee6e8ffe1074ae404947aed96b0b4b32081c89
4
+ data.tar.gz: 0ec3a2217b6ad5dc142fa9829db271c9e2da7a94
5
5
  SHA512:
6
- metadata.gz: ae4e3f20a24de423c9091899c793fee84a3a24f7fe65453e8247212015ef317c155dadd71da1876f93e96122e93fa913a6345056ec5ac5ac45e26105b2145a70
7
- data.tar.gz: 5fc85444e4e33a5704208699390d1562807b1d973dcb33e8102de79662acfb35b66319cea746317e779f8c37eab7e88ef20db34c115d7117852bc97508147d66
6
+ metadata.gz: 81fe1c6e76ddf4a927c4489d1a8976075758c8b2d4f12d8235d3d287dca9d986f63b5060f4d1bbb63f5662f86e7ebc220cd9975e238f08f866f0488177b8d358
7
+ data.tar.gz: 93d0376dc795629e9659a93dc2db107049e58477ab198e5719390af24a9183b5070befe99258d78461c3a072a069142528eb9f467386f6757f590f1190b36402
@@ -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', '>= 1.1'
22
+ s.add_dependency 'guard', '~> 2.0'
23
23
 
24
24
  s.add_development_dependency "bundler"
25
25
  s.add_development_dependency "rake"
@@ -1,7 +1,7 @@
1
1
  module Guard
2
2
  module Ctags
3
3
  module Bundler
4
- VERSION = "0.2.0"
4
+ VERSION = "1.0.0"
5
5
  end
6
6
  end
7
7
  end
@@ -3,11 +3,11 @@ require 'guard'
3
3
  require 'guard/guard'
4
4
 
5
5
  module Guard
6
- class CtagsBundler < Guard
6
+ class CtagsBundler < Plugin
7
7
  autoload 'CtagsGenerator', 'guard/ctags-bundler/ctags_generator'
8
8
 
9
- def initialize(watchers = [], options = {})
10
- super(watchers, options)
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=javascript').generate_project_tags
62
+ generator(:src_path => ["app", "lib"], :arguments => '-R --languages=java').generate_project_tags
63
63
  result = File.read(test_tags_file)
64
- assert_match("jsFunction", result)
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 = {})
@@ -0,0 +1,4 @@
1
+ public class JavaClass {
2
+ public void javaMethod() {
3
+ }
4
+ }
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.2.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-08-02 00:00:00.000000000 Z
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: '1.1'
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: '1.1'
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.js
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() {}