CoffeeTags 0.0.1.1 → 0.0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm ruby-1.8.7-p302@coffeetags --create
data/README.md CHANGED
@@ -1,14 +1,33 @@
1
1
  # CoffeeTags
2
2
 
3
- A tiny, simple tool for generating tags (Ctags compatible ) for use with Vim + [TagBar plugin](https://github.com/majutsushi/tagbar)
3
+ A simple tool for generating tags (Ctags compatible ) for use with Vim + [TagBar plugin](https://github.com/majutsushi/tagbar)
4
+
5
+ ![screenshot!](https://img.skitch.com/20110922-bf1dipa6kgdu2i18yr1xh8nwa3.png)
4
6
 
5
7
  It might work with other plugins/editors which can use Ctags (such as Emacs or
6
8
  TagList for Vim).
7
9
 
10
+ # Requirements
11
+
12
+ * ruby (either 1.8.7 or 1.9.2)
13
+ * Vim
14
+ * [TagBar plugin](https://github.com/majutsushi/tagbar)
15
+
8
16
 
9
17
  # Installation
10
18
 
11
- `gem install CoffeeTags` (when it's released :-))
19
+ * get the `coffeetags` tool
20
+
21
+ `gem install CoffeeTags`
22
+
23
+
24
+ * add TagBar config to your .vimrc
25
+
26
+ `coffeetags vim_config >> ~/.vimrc`
27
+
28
+ * open your coffeescript file and open TagBar.
29
+
30
+ Done!
12
31
 
13
32
  # TODO
14
33
 
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Coffeetags
3
- VERSION = "0.0.1.1"
3
+ VERSION = "0.0.1.2"
4
4
  end
@@ -3,7 +3,8 @@
3
3
  class Campfire
4
4
 
5
5
  # @api_key - Campfire API keys
6
- # @host - your campifre host, for example if you're using trololo.campfirenow.com, then host is 'trololo
6
+ # @host - your campifre host, ie if you're using trololo.campfirenow.com,
7
+ # then host is 'trololo
7
8
  constructor: (api_key, host) ->
8
9
  @url = "https://#{host}.campfirenow.com/"
9
10
  @auth = { 'username' : api_key, 'password' : 'X'}
@@ -1,55 +1,55 @@
1
1
  ---
2
2
  - :name: Campfire
3
3
  :level: 0
4
- - :parent: Campfire
5
- :name: constructor
6
- :line: 7
4
+ - :source: " constructor: (api_key, host) ->"
5
+ :parent: Campfire
7
6
  :kind: f
8
- :source: " constructor: (api_key, host) ->"
7
+ :name: constructor
8
+ :line: 8
9
9
  :level: 2
10
- - :parent: Campfire
11
- :name: handlers
12
- :line: 13
10
+ - :source: " handlers: (callbacks) ->"
11
+ :parent: Campfire
13
12
  :kind: f
14
- :source: ' handlers: (callbacks) ->'
13
+ :name: handlers
14
+ :line: 14
15
15
  :level: 2
16
16
  - :name: resp
17
17
  :level: 4
18
- - :parent: Campfire.handlers.resp
19
- :name: onSuccess
20
- :line: 15
18
+ - :source: " onSuccess : (response) ->"
19
+ :parent: Campfire.handlers.resp
21
20
  :kind: f
22
- :source: ' onSuccess : (response) ->'
21
+ :name: onSuccess
22
+ :line: 16
23
23
  :level: 6
24
- - :parent: Campfire.handlers.resp
25
- :name: onFailure
26
- :line: 23
24
+ - :source: " onFailure: (response) ->"
25
+ :parent: Campfire.handlers.resp
27
26
  :kind: f
28
- :source: ' onFailure: (response) ->'
27
+ :name: onFailure
28
+ :line: 24
29
29
  :level: 6
30
- - :parent: Campfire
31
- :name: rooms
32
- :line: 28
30
+ - :source: " rooms: (callbacks) ->"
31
+ :parent: Campfire
33
32
  :kind: f
34
- :source: ' rooms: (callbacks) ->'
33
+ :name: rooms
34
+ :line: 29
35
35
  :level: 2
36
- - :parent: Campfire
37
- :name: roomInfo
38
- :line: 33
36
+ - :source: " roomInfo: (id, callbacks) ->"
37
+ :parent: Campfire
39
38
  :kind: f
40
- :source: ' roomInfo: (id, callbacks) ->'
39
+ :name: roomInfo
40
+ :line: 34
41
41
  :level: 2
42
- - :parent: Campfire
43
- :name: recent
44
- :line: 39
42
+ - :source: " recent: (id, since, callbacks) ->"
43
+ :parent: Campfire
45
44
  :kind: f
46
- :source: ' recent: (id, since, callbacks) ->'
45
+ :name: recent
46
+ :line: 40
47
47
  :level: 2
48
48
  - :name: Test
49
49
  :level: 0
50
- - :parent: Test
51
- :name: bump
52
- :line: 45
50
+ - :source: " bump : ->"
51
+ :parent: Test
53
52
  :kind: f
54
- :source: ' bump : ->'
53
+ :name: bump
54
+ :line: 46
55
55
  :level: 2
@@ -14,12 +14,12 @@ describe 'CoffeeTags::Formatter' do
14
14
  end
15
15
 
16
16
  it "generates a line for method definition" do
17
- exp = 'constructor test.coffee /^ constructor: (api_key, host) ->$/;" f lineno:7 object:Campfire type:function'
17
+ exp = 'constructor test.coffee /^ constructor: (api_key, host) ->$/;" f lineno:8 object:Campfire type:function'
18
18
  @instance.parse_tree.first.should == exp
19
19
  end
20
20
 
21
21
  it "generates line for second class" do
22
- exp = 'bump test.coffee /^ bump : ->$/;" f lineno:45 object:Test type:function'
22
+ exp = 'bump test.coffee /^ bump : ->$/;" f lineno:46 object:Test type:function'
23
23
  @instance.parse_tree.last.should == exp
24
24
  end
25
25
 
metadata CHANGED
@@ -1,25 +1,37 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: CoffeeTags
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.1.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 79
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ - 2
11
+ version: 0.0.1.2
6
12
  platform: ruby
7
- authors:
8
- - Łukasz Korecki
13
+ authors:
14
+ - "\xC5\x81ukasz Korecki"
9
15
  autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
- date: 2011-09-22 00:00:00.000000000Z
18
+
19
+ date: 2011-09-23 00:00:00 +01:00
20
+ default_executable:
13
21
  dependencies: []
22
+
14
23
  description: CoffeeTags generates tag file for use with TagBar.vim
15
- email:
24
+ email:
16
25
  - lukasz@coffeesounds.com
17
- executables:
26
+ executables:
18
27
  - coffeetags
19
28
  extensions: []
29
+
20
30
  extra_rdoc_files: []
21
- files:
31
+
32
+ files:
22
33
  - .gitignore
34
+ - .rvmrc
23
35
  - CoffeeTags.gemspec
24
36
  - Gemfile
25
37
  - Guardfile
@@ -39,37 +51,41 @@ files:
39
51
  - spec/formatter_spec.rb
40
52
  - spec/parser_spec.rb
41
53
  - test.rb
54
+ has_rdoc: true
42
55
  homepage: http://github.com/lukaszkorecki/CoffeeTags
43
56
  licenses: []
57
+
44
58
  post_install_message:
45
59
  rdoc_options: []
46
- require_paths:
60
+
61
+ require_paths:
47
62
  - lib
48
- required_ruby_version: !ruby/object:Gem::Requirement
63
+ required_ruby_version: !ruby/object:Gem::Requirement
49
64
  none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- segments:
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ hash: 3
69
+ segments:
55
70
  - 0
56
- hash: 2103132400043761592
57
- required_rubygems_version: !ruby/object:Gem::Requirement
71
+ version: "0"
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
73
  none: false
59
- requirements:
60
- - - ! '>='
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- segments:
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ hash: 3
78
+ segments:
64
79
  - 0
65
- hash: 2103132400043761592
80
+ version: "0"
66
81
  requirements: []
82
+
67
83
  rubyforge_project: CoffeeTags
68
- rubygems_version: 1.8.10
84
+ rubygems_version: 1.5.0
69
85
  signing_key:
70
86
  specification_version: 3
71
87
  summary: Simple tags generator for CoffeeScript
72
- test_files:
88
+ test_files:
73
89
  - spec/fixtures/campfire.coffee
74
90
  - spec/fixtures/campfire.js
75
91
  - spec/fixtures/campfire.js.tags