CoffeeTags 0.1.3 → 0.1.4

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.
data/.gitignore CHANGED
@@ -3,3 +3,5 @@
3
3
  Gemfile.lock
4
4
  pkg/*
5
5
  vendor
6
+ testout/
7
+ test.out
data/CoffeeTags.gemspec CHANGED
@@ -5,8 +5,8 @@ require "CoffeeTags/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "CoffeeTags"
7
7
  s.version = Coffeetags::VERSION
8
- s.authors = ["Łukasz Korecki"]
9
- s.email = ["lukasz@coffeesounds.com"]
8
+ s.authors = ["Łukasz Korecki", "Matthew Smith"]
9
+ s.email = ["lukasz@coffeesounds.com", "mtscout6@gmail.com"]
10
10
  s.homepage = "http://github.com/lukaszkorecki/CoffeeTags"
11
11
  s.summary = %q{tags generator for CoffeeScript}
12
12
  s.description = %q{CoffeeTags generates ctags compatibile tags for CoffeeScript.}
@@ -17,4 +17,5 @@ Gem::Specification.new do |s|
17
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
+ s.licenses = ['MIT']
20
21
  end
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ gem 'rake'
5
5
  gemspec
6
6
 
7
7
  group :development do
8
+ gem 'listen', '1.3.1'
8
9
  gem 'guard'
9
10
  gem 'growl'
10
11
  gem 'guard-rspec'
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # CoffeeTags
2
2
 
3
- ### Latest version: `0.0.3`
3
+ ### Latest version: `0.1.3`
4
4
 
5
5
  A simple tool for generating CoffeeScript tags (Ctags compatible).
6
6
 
@@ -26,13 +26,13 @@ will generate standard TAGS file which later can be used with Vim (standard `:ta
26
26
 
27
27
  # Requirements
28
28
 
29
- * ruby (either 1.8.7 or 1.9.2)
30
- * Vim or [Sublime Text](http://www.sublimetext.com/) and [CTags plugin](https://github.com/SublimeText/CTags)
29
+ * ruby (1.8.7, 1.9.2 or 1.9.3)
31
30
 
32
- ### optional
31
+ ### Editors supported
32
+
33
+ * Vim with [TagBar](https://github.com/majutsushi/tagbar)
34
+ * [Sublime Text](http://www.sublimetext.com/) and [CTags plugin](https://github.com/SublimeText/CTags)
33
35
 
34
- * Vim
35
- * [TagBar](https://github.com/majutsushi/tagbar)
36
36
 
37
37
  # Halp!
38
38
 
@@ -52,7 +52,7 @@ Just use `coffeetags --help`
52
52
 
53
53
  ## Sublime Text
54
54
 
55
- *TODO* - I don't use ST myself, but PRs with HOWTO are welcome
55
+ *TODO* - I don't use ST myself, but PRs with HOWTO are welcomed
56
56
 
57
57
 
58
58
  ## Config types
@@ -106,3 +106,7 @@ Done!
106
106
  # License
107
107
 
108
108
  MIT
109
+
110
+
111
+ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/lukaszkorecki/coffeetags/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
112
+
data/bin/coffeetags CHANGED
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'CoffeeTags'
3
3
 
4
- out = Coffeetags::Utils.option_parser ARGV
5
- if out
6
- output, include_vars, files = out
7
- Coffeetags::Utils.run output, include_vars, files
4
+ options = Coffeetags::Utils.option_parser ARGV
5
+ if options
6
+ Coffeetags::Utils.run options
8
7
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Coffeetags
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
data/lib/CoffeeTags.rb CHANGED
@@ -54,13 +54,20 @@ module Coffeetags
54
54
 
55
55
  opts.on('-f', '--file FILE', 'Write tags to FILE (use - for std out)') do |o|
56
56
  options[:output] = o unless o == '-'
57
+ end
57
58
 
59
+ opts.on('-a', '--append', 'Append tags to existing tags file') do |o|
60
+ options[:append] = true
58
61
  end
59
62
 
60
63
  opts.on('-R', '--recursive', 'Process current directory recursively') do |o|
61
64
  options[:recur] = true
62
65
  end
63
66
 
67
+ opts.on('--tag-relative', 'Should paths be relative to location of tag file?') do |o|
68
+ options[:tag_relative] = true
69
+ end
70
+
64
71
  opts.on('--vim-conf', 'Generate TagBar config (more info https://gist.github.com/1935512 )') do
65
72
  puts tagbar_conf options[:include_vars]
66
73
  exit
@@ -83,16 +90,20 @@ module Coffeetags
83
90
  options[:files] = args.to_a
84
91
  options[:files] += Dir['./**/*.coffee', './**/Cakefile'] if options[:recur]
85
92
 
86
- [
87
- options[:output],
88
- options[:include_vars],
89
- options[:files]
90
- ]
91
-
93
+ options
92
94
  end
93
95
 
94
96
 
95
- def self.run output, include_vars, files
97
+ def self.run options
98
+ output = options[:output]
99
+ include_vars = options[:include_vars]
100
+ files = options[:files]
101
+
102
+ files = [files] if files.is_a? String
103
+ files = files.reject { |f| f =~ /^-/}
104
+
105
+ lines = setup_tag_lines output, files, options[:append]
106
+
96
107
  __out = if output.nil?
97
108
  STDOUT
98
109
  else
@@ -101,16 +112,13 @@ module Coffeetags
101
112
 
102
113
  __out << Coffeetags::Formatter.header
103
114
 
104
- files = [ files] if files.is_a? String
105
-
106
- lines = []
107
-
108
- files.reject { |f| f =~ /^-/}.each do |file|
115
+ files.each do |file|
109
116
  sc = File.read file
110
117
  parser = Coffeetags::Parser.new sc, include_vars
111
118
  parser.execute!
112
119
 
113
- formatter = Coffeetags::Formatter.new file, parser.tree
120
+ tag_file_path = file_path file, output, options[:tag_relative]
121
+ formatter = Coffeetags::Formatter.new tag_file_path, parser.tree
114
122
 
115
123
  formatter.parse_tree
116
124
 
@@ -125,5 +133,32 @@ module Coffeetags
125
133
  __out.join("\n") if __out.is_a? Array
126
134
  end
127
135
 
136
+ def self.setup_tag_lines output, files, append
137
+ return [] unless append
138
+ return [] if output.nil?
139
+ return [] unless File.exists? output
140
+
141
+ files = [] if files.nil?
142
+ absolute_files = files.map {|f| Pathname.new(f)}
143
+
144
+ File.readlines(output).
145
+ map {|l| l.strip}.
146
+ reject {|l| l =~ /^!_/ }.
147
+ reject {|l|
148
+ tag_file = Pathname.new l.split("\t")[1]
149
+ absolute_files.include? tag_file
150
+ }
151
+ end
152
+
153
+ def self.file_path file, output, tag_relative
154
+ return file if output.nil?
155
+ return file unless tag_relative
156
+
157
+ output_path = Pathname.new(output).expand_path
158
+ file_path = Pathname.new(file).expand_path
159
+
160
+ file_path.relative_path_from(output_path.dirname).to_s
161
+ end
162
+
128
163
  end
129
164
  end
@@ -10,20 +10,46 @@ describe Utils do
10
10
  end
11
11
 
12
12
  it "returns files list" do
13
- Utils.option_parser([ 'lol.coffee']).should == [ nil, nil, ['lol.coffee']]
13
+ Utils.option_parser(['lol.coffee']).should == {:files => ['lol.coffee']}
14
14
  end
15
15
 
16
16
  it "parses --include-vars option" do
17
- Utils.option_parser( [ '--include-vars', 'lol.coffee']).should == [ nil, true, ['lol.coffee']]
17
+ Utils.option_parser( [ '--include-vars', 'lol.coffee']).should == { :include_vars => true, :files => ["lol.coffee"]}
18
+ end
19
+
20
+ it "parses --append option" do
21
+ Utils.option_parser( ['--append', 'lol.coffee']).should == { :append => true, :files => ["lol.coffee"]}
22
+ end
23
+
24
+ it "parses --tag-relative option" do
25
+ Utils.option_parser( [ '--tag-relative', 'lol.coffee']).should == { :tag_relative => true, :files => ['lol.coffee'] }
18
26
  end
19
27
 
20
28
  it "parses -f <file> option" do
21
- Utils.option_parser( [ '-f','tags' ,'lol.coffee']).should == [ 'tags', nil, ['lol.coffee']]
29
+ Utils.option_parser( [ '-f','tags' ,'lol.coffee']).should == { :output => 'tags', :files => ['lol.coffee'] }
30
+ end
31
+ end
32
+
33
+ context 'Relative file path' do
34
+ it "returns file with nil output" do
35
+ Utils.file_path("some/file", nil, nil).should == "some/file"
22
36
  end
23
37
 
38
+ it "returns file with non relative path" do
39
+ Utils.file_path("some/file", "some/output", nil).should == "some/file"
40
+ end
41
+
42
+ it "returns relative path to file from output" do
43
+ Utils.file_path("/some/path/to/file", "/some/path/for/output", true).should == "../to/file"
44
+ end
45
+
46
+ it "returns relative path from cwd" do
47
+ Utils.file_path("some/path/to/file", ".git/tags", true).should == "../some/path/to/file"
48
+ end
24
49
  end
25
50
 
26
51
  context 'Parser runner' do
52
+
27
53
  before do
28
54
  @fake_parser = mock('Parser')
29
55
  @fake_parser.stub! :"execute!"
@@ -41,14 +67,13 @@ tag3
41
67
  TAG
42
68
  Coffeetags::Formatter.stub!(:new).and_return @fake_formatter
43
69
  Coffeetags::Formatter.stub!(:header).and_return "header\n"
44
-
45
70
  File.stub!(:read).and_return 'woot@'
46
-
47
71
  end
48
72
 
49
73
 
50
74
  it "opens the file and writes tags to it" do
51
- Utils.run 'test.tags', false, ['woot']
75
+ Utils.run({ :output => 'test.tags', :files => ['woot'] })
76
+
52
77
  `cat test.tags`.should== <<-FF
53
78
  header
54
79
  tag
@@ -57,6 +82,7 @@ tag3
57
82
  FF
58
83
 
59
84
  end
85
+
60
86
  after :each do
61
87
  `rm test.tags`
62
88
  end
@@ -64,32 +90,65 @@ FF
64
90
  end
65
91
 
66
92
  context "Complete output" do
67
- it "genrates tags for given file" do
93
+ it "generates tags for given file" do
94
+ Coffeetags::Utils.run({ :output => 'test.out', :files => 'spec/fixtures/test.coffee' })
68
95
 
69
- files = "spec/fixtures/test.coffee"
96
+ File.read("test.out").should == File.read("./spec/fixtures/out.test.ctags")
97
+ end
70
98
 
71
- output = "test.out"
99
+ it "generates tags for given files" do
100
+ Coffeetags::Utils.run({ :output => 'test.out', :files => ['spec/fixtures/test.coffee', 'spec/fixtures/campfire.coffee'] })
72
101
 
73
- Coffeetags::Utils.run output, nil, files
74
102
 
75
- File.read("test.out").should == File.read("./spec/fixtures/out.test.ctags")
103
+ File.read("test.out").should == File.read("./spec/fixtures/out.test-two.ctags")
76
104
 
77
105
  end
78
106
 
107
+ it "generates tags with relative path from tags file" do
108
+ files = [ "spec/fixtures/test.coffee", 'spec/fixtures/campfire.coffee']
79
109
 
80
- it "genrates tags for given files" do
110
+ FileUtils.mkdir "testout" unless File.directory? "testout"
111
+ output = "testout/test.out"
81
112
 
82
- files = [ "spec/fixtures/test.coffee", 'spec/fixtures/campfire.coffee']
113
+ Coffeetags::Utils.run({ :output => output, :files => files, :tag_relative => true })
83
114
 
84
- output = "test.out"
115
+ File.read(output).should == File.read("./spec/fixtures/out.test-relative.ctags")
116
+ end
85
117
 
86
- Coffeetags::Utils.run output, nil, files
118
+ it "appends tags for given file" do
119
+ FileUtils.cp 'spec/fixtures/append.ctags', 'test.out'
87
120
 
88
- File.read("test.out").should == File.read("./spec/fixtures/out.test-two.ctags")
121
+ Coffeetags::Utils.run({ :output => 'test.out', :files => ['spec/fixtures/campfire.coffee'], :append => true })
89
122
 
123
+ File.read("test.out").should == File.read("./spec/fixtures/append-expected.ctags")
90
124
  end
125
+
91
126
  after :each do
92
- `rm test.out`
127
+ `rm test.out` if File.exists? 'test.out'
128
+ end
129
+ end
130
+
131
+ context "setup tag lines" do
132
+ it "returns empty array when append flag is false" do
133
+ Coffeetags::Utils.setup_tag_lines("spec/fixtures/out.test-two.ctags", ["spec/fixtures/test.coffee"], false).should == []
134
+ end
135
+
136
+ it "returns empty array for nil output" do
137
+ Coffeetags::Utils.setup_tag_lines(nil, nil, true).should == []
138
+ end
139
+
140
+ it "returns empty array for nil output" do
141
+ Coffeetags::Utils.setup_tag_lines("file/does/not/exist", nil, true).should == []
142
+ end
143
+
144
+ it "returns contents of output file without header" do
145
+ lines = Coffeetags::Utils.setup_tag_lines("spec/fixtures/blockcomment.ctags", nil, true).map {|l| l.split("\t")[0]}
146
+ lines.should == %w{baz echo2 echo3 foo foo2}
147
+ end
148
+
149
+ it "returns contents of output file without header and without tags for files that will be indexed" do
150
+ lines = Coffeetags::Utils.setup_tag_lines("spec/fixtures/out.test-two.ctags", ["spec/fixtures/test.coffee"], true).map {|l| l.split("\t")[0]}
151
+ lines.should == %w{bump constructor handlers onFailure onSuccess recent roomInfo rooms}
93
152
  end
94
153
  end
95
154
 
@@ -0,0 +1,27 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format/
2
+ !_TAG_FILE_SORTED 0 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Łukasz Korecki /lukasz@coffeesounds.com/
4
+ !_TAG_PROGRAM_NAME CoffeeTags //
5
+ !_TAG_PROGRAM_URL https://github.com/lukaszkorecki/CoffeeTags /GitHub repository/
6
+ !_TAG_PROGRAM_VERSION 0.1.4 //
7
+ @filter spec/fixtures/test.coffee /^ @filter = ->$/;" f lineno:14 object:Wat.ho type:function
8
+ _loop spec/fixtures/test.coffee /^_loop = (x) ->$/;" f lineno:19 object:window type:function
9
+ baz spec/fixtures/blockcomment.coffee /^baz : (x, y) ->$/;" f lineno:15 object:window type:function
10
+ beam_magnum spec/fixtures/test.coffee /^beam_magnum : -> deployed(true)$/;" f lineno:44 object:window type:function
11
+ bound_func spec/fixtures/test.coffee /^bound_func = (ok) => wat(ok)$/;" f lineno:41 object:window type:function
12
+ bump spec/fixtures/campfire.coffee /^ bump : ->$/;" f lineno:46 object:Test type:function
13
+ bump spec/fixtures/test.coffee /^ bump : ->$/;" f lineno:10 object:Wat.ho.@lolWat type:function
14
+ bump spec/fixtures/test.coffee /^bump = (wat) ->$/;" f lineno:1 object:window type:function
15
+ bump_up spec/fixtures/test.coffee /^ bump_up : ->$/;" f lineno:12 object:Wat.ho.@lolWat type:function
16
+ constructor spec/fixtures/campfire.coffee /^ constructor: (api_key, host) ->$/;" f lineno:8 object:Campfire type:function
17
+ echo2 spec/fixtures/blockcomment.coffee /^echo2 :-> console.log 'echo'$/;" f lineno:7 object:window type:function
18
+ echo3 spec/fixtures/blockcomment.coffee /^echo3 :-> console.log 'echo'$/;" f lineno:23 object:window type:function
19
+ foo spec/fixtures/blockcomment.coffee /^foo : (x) -> console.log 'bar #{x}'$/;" f lineno:26 object:window type:function
20
+ foo2 spec/fixtures/blockcomment.coffee /^foo2 : (x) -> console.log 'bar #{x}'$/;" f lineno:10 object:window type:function
21
+ handlers spec/fixtures/campfire.coffee /^ handlers: (callbacks) ->$/;" f lineno:14 object:Campfire type:function
22
+ ho spec/fixtures/test.coffee /^ ho : (x) ->$/;" f lineno:5 object:Wat type:function
23
+ onFailure spec/fixtures/campfire.coffee /^ onFailure: (response) ->$/;" f lineno:24 object:Campfire.handlers.resp type:function
24
+ onSuccess spec/fixtures/campfire.coffee /^ onSuccess : (response) ->$/;" f lineno:16 object:Campfire.handlers.resp type:function
25
+ recent spec/fixtures/campfire.coffee /^ recent: (id, since, callbacks) ->$/;" f lineno:40 object:Campfire type:function
26
+ roomInfo spec/fixtures/campfire.coffee /^ roomInfo: (id, callbacks) ->$/;" f lineno:34 object:Campfire type:function
27
+ rooms spec/fixtures/campfire.coffee /^ rooms: (callbacks) ->$/;" f lineno:29 object:Campfire type:function
@@ -0,0 +1,29 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format/
2
+ !_TAG_FILE_SORTED 0 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Łukasz Korecki /lukasz@coffeesounds.com/
4
+ !_TAG_PROGRAM_NAME CoffeeTags //
5
+ !_TAG_PROGRAM_URL https://github.com/lukaszkorecki/CoffeeTags /GitHub repository/
6
+ !_TAG_PROGRAM_VERSION 0.1.4 //
7
+ !_TAG_PROGRAM_VERSION 0.1.4 //
8
+ !_THIS_LINE_SHOULD_GET_REMOVED Nothing to see here //
9
+ @filter spec/fixtures/test.coffee /^ @filter = ->$/;" f lineno:14 object:Wat.ho type:function
10
+ _loop spec/fixtures/test.coffee /^_loop = (x) ->$/;" f lineno:19 object:window type:function
11
+ baz spec/fixtures/blockcomment.coffee /^baz : (x, y) ->$/;" f lineno:15 object:window type:function
12
+ beam_magnum spec/fixtures/test.coffee /^beam_magnum : -> deployed(true)$/;" f lineno:44 object:window type:function
13
+ bound_func spec/fixtures/test.coffee /^bound_func = (ok) => wat(ok)$/;" f lineno:41 object:window type:function
14
+ bump spec/fixtures/test.coffee /^ bump : ->$/;" f lineno:10 object:Wat.ho.@lolWat type:function
15
+ bump spec/fixtures/test.coffee /^bump = (wat) ->$/;" f lineno:1 object:window type:function
16
+ bump_up spec/fixtures/test.coffee /^ bump_up : ->$/;" f lineno:12 object:Wat.ho.@lolWat type:function
17
+ constructor spec/fixtures/campfire.coffee /^ constructor: (api_key, host) ->$/;" f lineno:8 object:Campfire type:function
18
+ constructor2 spec/fixtures/campfire.coffee /^ constructor: (api_key, host) ->$/;" f lineno:8 object:Campfire type:function
19
+ echo2 spec/fixtures/blockcomment.coffee /^echo2 :-> console.log 'echo'$/;" f lineno:7 object:window type:function
20
+ echo3 spec/fixtures/blockcomment.coffee /^echo3 :-> console.log 'echo'$/;" f lineno:23 object:window type:function
21
+ foo spec/fixtures/blockcomment.coffee /^foo : (x) -> console.log 'bar #{x}'$/;" f lineno:26 object:window type:function
22
+ foo2 spec/fixtures/blockcomment.coffee /^foo2 : (x) -> console.log 'bar #{x}'$/;" f lineno:10 object:window type:function
23
+ handlers spec/fixtures/campfire.coffee /^ handlers: (callbacks) ->$/;" f lineno:14 object:Campfire type:function
24
+ ho spec/fixtures/test.coffee /^ ho : (x) ->$/;" f lineno:5 object:Wat type:function
25
+ onFailure spec/fixtures/campfire.coffee /^ onFailure: (response) ->$/;" f lineno:24 object:Campfire.handlers.resp type:function
26
+ onSuccess spec/fixtures/campfire.coffee /^ onSuccess : (response) ->$/;" f lineno:16 object:Campfire.handlers.resp type:function
27
+ recent spec/fixtures/campfire.coffee /^ recent: (id, since, callbacks) ->$/;" f lineno:40 object:Campfire type:function
28
+ roomInfo spec/fixtures/campfire.coffee /^ roomInfo: (id, callbacks) ->$/;" f lineno:34 object:Campfire type:function
29
+ rooms spec/fixtures/campfire.coffee /^ rooms: (callbacks) ->$/;" f lineno:29 object:Campfire type:function
@@ -3,7 +3,7 @@
3
3
  !_TAG_PROGRAM_AUTHOR Łukasz Korecki /lukasz@coffeesounds.com/
4
4
  !_TAG_PROGRAM_NAME CoffeeTags //
5
5
  !_TAG_PROGRAM_URL https://github.com/lukaszkorecki/CoffeeTags /GitHub repository/
6
- !_TAG_PROGRAM_VERSION 0.1.3 //
6
+ !_TAG_PROGRAM_VERSION 0.1.4 //
7
7
  baz spec/fixtures/blockcomment.coffee /^baz : (x, y) ->$/;" f lineno:15 object:window type:function
8
8
  echo2 spec/fixtures/blockcomment.coffee /^echo2 :-> console.log 'echo'$/;" f lineno:7 object:window type:function
9
9
  echo3 spec/fixtures/blockcomment.coffee /^echo3 :-> console.log 'echo'$/;" f lineno:23 object:window type:function
@@ -3,7 +3,7 @@
3
3
  !_TAG_PROGRAM_AUTHOR Łukasz Korecki /lukasz@coffeesounds.com/
4
4
  !_TAG_PROGRAM_NAME CoffeeTags //
5
5
  !_TAG_PROGRAM_URL https://github.com/lukaszkorecki/CoffeeTags /GitHub repository/
6
- !_TAG_PROGRAM_VERSION 0.1.1 //
6
+ !_TAG_PROGRAM_VERSION 0.1.4 //
7
7
  bump spec/fixtures/campfire.coffee /^ bump : ->$/;" f lineno:46 object:Test type:function
8
8
  constructor spec/fixtures/campfire.coffee /^ constructor: (api_key, host) ->$/;" f lineno:8 object:Campfire type:function
9
9
  handlers spec/fixtures/campfire.coffee /^ handlers: (callbacks) ->$/;" f lineno:14 object:Campfire type:function
@@ -0,0 +1,22 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format/
2
+ !_TAG_FILE_SORTED 0 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Łukasz Korecki /lukasz@coffeesounds.com/
4
+ !_TAG_PROGRAM_NAME CoffeeTags //
5
+ !_TAG_PROGRAM_URL https://github.com/lukaszkorecki/CoffeeTags /GitHub repository/
6
+ !_TAG_PROGRAM_VERSION 0.1.4 //
7
+ @filter ../spec/fixtures/test.coffee /^ @filter = ->$/;" f lineno:14 object:Wat.ho type:function
8
+ _loop ../spec/fixtures/test.coffee /^_loop = (x) ->$/;" f lineno:19 object:window type:function
9
+ beam_magnum ../spec/fixtures/test.coffee /^beam_magnum : -> deployed(true)$/;" f lineno:44 object:window type:function
10
+ bound_func ../spec/fixtures/test.coffee /^bound_func = (ok) => wat(ok)$/;" f lineno:41 object:window type:function
11
+ bump ../spec/fixtures/campfire.coffee /^ bump : ->$/;" f lineno:46 object:Test type:function
12
+ bump ../spec/fixtures/test.coffee /^ bump : ->$/;" f lineno:10 object:Wat.ho.@lolWat type:function
13
+ bump ../spec/fixtures/test.coffee /^bump = (wat) ->$/;" f lineno:1 object:window type:function
14
+ bump_up ../spec/fixtures/test.coffee /^ bump_up : ->$/;" f lineno:12 object:Wat.ho.@lolWat type:function
15
+ constructor ../spec/fixtures/campfire.coffee /^ constructor: (api_key, host) ->$/;" f lineno:8 object:Campfire type:function
16
+ handlers ../spec/fixtures/campfire.coffee /^ handlers: (callbacks) ->$/;" f lineno:14 object:Campfire type:function
17
+ ho ../spec/fixtures/test.coffee /^ ho : (x) ->$/;" f lineno:5 object:Wat type:function
18
+ onFailure ../spec/fixtures/campfire.coffee /^ onFailure: (response) ->$/;" f lineno:24 object:Campfire.handlers.resp type:function
19
+ onSuccess ../spec/fixtures/campfire.coffee /^ onSuccess : (response) ->$/;" f lineno:16 object:Campfire.handlers.resp type:function
20
+ recent ../spec/fixtures/campfire.coffee /^ recent: (id, since, callbacks) ->$/;" f lineno:40 object:Campfire type:function
21
+ roomInfo ../spec/fixtures/campfire.coffee /^ roomInfo: (id, callbacks) ->$/;" f lineno:34 object:Campfire type:function
22
+ rooms ../spec/fixtures/campfire.coffee /^ rooms: (callbacks) ->$/;" f lineno:29 object:Campfire type:function
@@ -3,7 +3,7 @@
3
3
  !_TAG_PROGRAM_AUTHOR Łukasz Korecki /lukasz@coffeesounds.com/
4
4
  !_TAG_PROGRAM_NAME CoffeeTags //
5
5
  !_TAG_PROGRAM_URL https://github.com/lukaszkorecki/CoffeeTags /GitHub repository/
6
- !_TAG_PROGRAM_VERSION 0.1.3 //
6
+ !_TAG_PROGRAM_VERSION 0.1.4 //
7
7
  @filter spec/fixtures/test.coffee /^ @filter = ->$/;" f lineno:14 object:Wat.ho type:function
8
8
  _loop spec/fixtures/test.coffee /^_loop = (x) ->$/;" f lineno:19 object:window type:function
9
9
  beam_magnum spec/fixtures/test.coffee /^beam_magnum : -> deployed(true)$/;" f lineno:44 object:window type:function
@@ -3,7 +3,7 @@
3
3
  !_TAG_PROGRAM_AUTHOR Łukasz Korecki /lukasz@coffeesounds.com/
4
4
  !_TAG_PROGRAM_NAME CoffeeTags //
5
5
  !_TAG_PROGRAM_URL https://github.com/lukaszkorecki/CoffeeTags /GitHub repository/
6
- !_TAG_PROGRAM_VERSION 0.1.3 //
6
+ !_TAG_PROGRAM_VERSION 0.1.4 //
7
7
  @filter spec/fixtures/test.coffee /^ @filter = ->$/;" f lineno:14 object:Wat.ho type:function
8
8
  _loop spec/fixtures/test.coffee /^_loop = (x) ->$/;" f lineno:19 object:window type:function
9
9
  beam_magnum spec/fixtures/test.coffee /^beam_magnum : -> deployed(true)$/;" f lineno:44 object:window type:function
data/spec/parser_spec.rb CHANGED
@@ -235,7 +235,7 @@ describe 'CoffeeTags::Parser' do
235
235
  context 'top-down test' do
236
236
  let(:blockcomment_ctags){ File.read(bc_ctags_file) }
237
237
  subject {
238
- Coffeetags::Utils.run 'test_bc.out', nil, bc_file
238
+ Coffeetags::Utils.run({ :output => 'test_bc.out', :files => bc_file})
239
239
  File.read 'test_bc.out'
240
240
  }
241
241
 
metadata CHANGED
@@ -1,19 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CoffeeTags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Łukasz Korecki
9
+ - Matthew Smith
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2013-08-04 00:00:00.000000000 Z
13
+ date: 2014-04-23 00:00:00.000000000 Z
13
14
  dependencies: []
14
15
  description: CoffeeTags generates ctags compatibile tags for CoffeeScript.
15
16
  email:
16
17
  - lukasz@coffeesounds.com
18
+ - mtscout6@gmail.com
17
19
  executables:
18
20
  - coffeetags
19
21
  extensions: []
@@ -34,6 +36,8 @@ files:
34
36
  - lib/CoffeeTags/parser.rb
35
37
  - lib/CoffeeTags/version.rb
36
38
  - spec/coffeetags_spec.rb
39
+ - spec/fixtures/append-expected.ctags
40
+ - spec/fixtures/append.ctags
37
41
  - spec/fixtures/blockcomment.coffee
38
42
  - spec/fixtures/blockcomment.ctags
39
43
  - spec/fixtures/campfire.coffee
@@ -42,6 +46,7 @@ files:
42
46
  - spec/fixtures/class_with_at.coffee
43
47
  - spec/fixtures/class_with_dot.coffee
44
48
  - spec/fixtures/exported_class.coffee
49
+ - spec/fixtures/out.test-relative.ctags
45
50
  - spec/fixtures/out.test-two.ctags
46
51
  - spec/fixtures/out.test.ctags
47
52
  - spec/fixtures/test.coffee
@@ -54,7 +59,8 @@ files:
54
59
  - test.rb
55
60
  - vim/tagbar-coffee.vim.erb
56
61
  homepage: http://github.com/lukaszkorecki/CoffeeTags
57
- licenses: []
62
+ licenses:
63
+ - MIT
58
64
  post_install_message:
59
65
  rdoc_options: []
60
66
  require_paths:
@@ -67,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
73
  version: '0'
68
74
  segments:
69
75
  - 0
70
- hash: 4264562937545266603
76
+ hash: 4587229584433445950
71
77
  required_rubygems_version: !ruby/object:Gem::Requirement
72
78
  none: false
73
79
  requirements:
@@ -76,28 +82,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
82
  version: '0'
77
83
  segments:
78
84
  - 0
79
- hash: 4264562937545266603
85
+ hash: 4587229584433445950
80
86
  requirements: []
81
87
  rubyforge_project: CoffeeTags
82
- rubygems_version: 1.8.25
88
+ rubygems_version: 1.8.23
83
89
  signing_key:
84
90
  specification_version: 3
85
91
  summary: tags generator for CoffeeScript
86
- test_files:
87
- - spec/coffeetags_spec.rb
88
- - spec/fixtures/blockcomment.coffee
89
- - spec/fixtures/blockcomment.ctags
90
- - spec/fixtures/campfire.coffee
91
- - spec/fixtures/campfire.js
92
- - spec/fixtures/campfire.js.tags
93
- - spec/fixtures/class_with_at.coffee
94
- - spec/fixtures/class_with_dot.coffee
95
- - spec/fixtures/exported_class.coffee
96
- - spec/fixtures/out.test-two.ctags
97
- - spec/fixtures/out.test.ctags
98
- - spec/fixtures/test.coffee
99
- - spec/fixtures/test_tree.yaml
100
- - spec/fixtures/tree.yaml
101
- - spec/formatter_spec.rb
102
- - spec/parser_spec.rb
103
- - spec/spec_helper.rb
92
+ test_files: []