CoffeeTags 0.0.2.4 → 0.0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -9,6 +9,7 @@ group :development do
9
9
  gem 'growl'
10
10
  gem 'guard-rspec'
11
11
 
12
+ gem 'pry'
12
13
  # osx
13
14
  gem 'rb-fsevent'
14
15
  end
data/README.md CHANGED
@@ -5,6 +5,8 @@ A simple tool for generating CoffeeScript tags (Ctags compatible).
5
5
  [![Build Status](https://secure.travis-ci.org/lukaszkorecki/CoffeeTags.png?branch=master)](http://travis-ci.org/lukaszkorecki/CoffeeTags)
6
6
 
7
7
 
8
+ ### [Watch a quick demo](http://ascii.io/a/26)
9
+
8
10
  ### Example + Screenshot
9
11
  Showing only functions (right) or with variables included (left)
10
12
 
@@ -56,7 +56,7 @@ module Coffeetags
56
56
  @lines = @tree.map do | content|
57
57
  line_to_string content unless content[:line].nil? or content[:name].blank?
58
58
  end
59
- @lines.reject{|l| l.nil? }
59
+ @lines.reject!{|l| l.nil? }
60
60
  end
61
61
 
62
62
 
@@ -17,7 +17,7 @@ module Coffeetags
17
17
 
18
18
  # regexes
19
19
  @block = /^\s*(if|unless|switch|loop|do)/
20
- @class_regex = /^\s*class\s*([\w\.]*)/
20
+ @class_regex = /\s*class\s*([\w\.]*)/
21
21
  @proto_meths = /^\s*([A-Za-z]*)::([@a-zA-Z0-9_]*)/
22
22
  @var_regex = /([@a-zA-Z0-9_]*)\s*[=:]{1}\s*$/
23
23
  @token_regex = /([@a-zA-Z0-9_]*)\s*[:=]{1}/
@@ -27,15 +27,15 @@ module Coffeetags
27
27
  @comment_lines = mark_commented_lines
28
28
  end
29
29
 
30
-
31
30
  # Mark line numbers as commented out
32
31
  # either by single line comment (#)
33
32
  # or block comments (###~###)
34
33
  def mark_commented_lines
35
34
  [].tap do |reg|
36
35
  in_block_comment = false
37
- @source.each_with_index do |line, index|
38
- line_no = index+1
36
+ line_no = 0
37
+ @source.each_line do |line|
38
+ line_no = line_no+1
39
39
 
40
40
  in_block_comment = !(in_block_comment) if line =~ @block_comment_regex
41
41
  reg << line_no if in_block_comment
@@ -167,8 +167,8 @@ module Coffeetags
167
167
  end
168
168
  # get rid of duplicate entries
169
169
  @tree.uniq!
170
- self # chain!
171
170
  end
171
+ self # chain!
172
172
  end
173
173
  end
174
174
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Coffeetags
3
- VERSION = "0.0.2.4"
3
+ VERSION = "0.0.2.6"
4
4
  end
@@ -3,5 +3,5 @@
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.0.2.4 //
6
+ !_TAG_PROGRAM_VERSION 0.0.2.6 //
7
7
  echo2 spec/fixtures/blockcomment.coffee /echo2/;" f lineno:7 object:window type:function
@@ -0,0 +1,2 @@
1
+ modules.export = class LolWut
2
+ constructor : -> @wut = 'lol'
@@ -3,29 +3,20 @@
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.0.2.4 //
6
+ !_TAG_PROGRAM_VERSION 0.0.2.6 //
7
7
  bump spec/fixtures/test.coffee /bump/;" f lineno:1 object:window type:function
8
-
9
8
  ho spec/fixtures/test.coffee /ho/;" f lineno:5 object:Wat type:function
10
-
11
9
  bump spec/fixtures/test.coffee /bump/;" f lineno:10 object:Wat.ho.@lolWat type:function
12
10
  bump_up spec/fixtures/test.coffee /bump_up/;" f lineno:12 object:Wat.ho.@lolWat type:function
13
11
  @filter spec/fixtures/test.coffee /@filter/;" f lineno:14 object:Wat.ho type:function
14
12
  _loop spec/fixtures/test.coffee /_loop/;" f lineno:19 object:window type:function
15
-
16
-
17
-
18
-
19
13
  bound_func spec/fixtures/test.coffee /bound_func/;" f lineno:41 object:window type:function
20
14
  beam_magnum spec/fixtures/test.coffee /beam_magnum/;" f lineno:44 object:window type:function
21
-
22
15
  constructor spec/fixtures/campfire.coffee /constructor/;" f lineno:8 object:Campfire type:function
23
16
  handlers spec/fixtures/campfire.coffee /handlers/;" f lineno:14 object:Campfire type:function
24
-
25
17
  onSuccess spec/fixtures/campfire.coffee /onSuccess/;" f lineno:16 object:Campfire.handlers.resp type:function
26
18
  onFailure spec/fixtures/campfire.coffee /onFailure/;" f lineno:24 object:Campfire.handlers.resp type:function
27
19
  rooms spec/fixtures/campfire.coffee /rooms/;" f lineno:29 object:Campfire type:function
28
20
  roomInfo spec/fixtures/campfire.coffee /roomInfo/;" f lineno:34 object:Campfire type:function
29
21
  recent spec/fixtures/campfire.coffee /recent/;" f lineno:40 object:Campfire type:function
30
-
31
22
  bump spec/fixtures/campfire.coffee /bump/;" f lineno:46 object:Test type:function
@@ -3,18 +3,12 @@
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.0.2.4 //
6
+ !_TAG_PROGRAM_VERSION 0.0.2.6 //
7
7
  bump spec/fixtures/test.coffee /bump/;" f lineno:1 object:window type:function
8
-
9
8
  ho spec/fixtures/test.coffee /ho/;" f lineno:5 object:Wat type:function
10
-
11
9
  bump spec/fixtures/test.coffee /bump/;" f lineno:10 object:Wat.ho.@lolWat type:function
12
10
  bump_up spec/fixtures/test.coffee /bump_up/;" f lineno:12 object:Wat.ho.@lolWat type:function
13
11
  @filter spec/fixtures/test.coffee /@filter/;" f lineno:14 object:Wat.ho type:function
14
12
  _loop spec/fixtures/test.coffee /_loop/;" f lineno:19 object:window type:function
15
-
16
-
17
-
18
-
19
13
  bound_func spec/fixtures/test.coffee /bound_func/;" f lineno:41 object:window type:function
20
14
  beam_magnum spec/fixtures/test.coffee /beam_magnum/;" f lineno:44 object:window type:function
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CoffeeTags
3
3
  version: !ruby/object:Gem::Version
4
- hash: 79
4
+ hash: 75
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 2
10
- - 4
11
- version: 0.0.2.4
10
+ - 6
11
+ version: 0.0.2.6
12
12
  platform: ruby
13
13
  authors:
14
14
  - "\xC5\x81ukasz Korecki"
@@ -16,7 +16,8 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-03-12 00:00:00 Z
19
+ date: 2012-04-02 00:00:00 +01:00
20
+ default_executable:
20
21
  dependencies: []
21
22
 
22
23
  description: CoffeeTags generates ctags compatibile tags for CoffeeScript.
@@ -50,6 +51,7 @@ files:
50
51
  - spec/fixtures/campfire.js
51
52
  - spec/fixtures/campfire.js.tags
52
53
  - spec/fixtures/class_with_dot.coffee
54
+ - spec/fixtures/exported_class.coffee
53
55
  - spec/fixtures/out.test-two.ctags
54
56
  - spec/fixtures/out.test.ctags
55
57
  - spec/fixtures/test.coffee
@@ -61,6 +63,7 @@ files:
61
63
  - tagbar-info.markdown
62
64
  - test.rb
63
65
  - vim/tagbar-coffee.vim.erb
66
+ has_rdoc: true
64
67
  homepage: http://github.com/lukaszkorecki/CoffeeTags
65
68
  licenses: []
66
69
 
@@ -90,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
93
  requirements: []
91
94
 
92
95
  rubyforge_project: CoffeeTags
93
- rubygems_version: 1.8.16
96
+ rubygems_version: 1.5.0
94
97
  signing_key:
95
98
  specification_version: 3
96
99
  summary: tags generator for CoffeeScript
@@ -102,6 +105,7 @@ test_files:
102
105
  - spec/fixtures/campfire.js
103
106
  - spec/fixtures/campfire.js.tags
104
107
  - spec/fixtures/class_with_dot.coffee
108
+ - spec/fixtures/exported_class.coffee
105
109
  - spec/fixtures/out.test-two.ctags
106
110
  - spec/fixtures/out.test.ctags
107
111
  - spec/fixtures/test.coffee