command-t 1.7 → 1.8

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.
@@ -0,0 +1,52 @@
1
+ // Copyright 2014 Wincent Colaiuta. All rights reserved.
2
+ //
3
+ // Redistribution and use in source and binary forms, with or without
4
+ // modification, are permitted provided that the following conditions are met:
5
+ //
6
+ // 1. Redistributions of source code must retain the above copyright notice,
7
+ // this list of conditions and the following disclaimer.
8
+ // 2. Redistributions in binary form must reproduce the above copyright notice,
9
+ // this list of conditions and the following disclaimer in the documentation
10
+ // and/or other materials provided with the distribution.
11
+ //
12
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
13
+ // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14
+ // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15
+ // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
16
+ // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
17
+ // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
18
+ // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
19
+ // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
20
+ // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
21
+ // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
22
+ // POSSIBILITY OF SUCH DAMAGE.
23
+
24
+ #include <ruby.h>
25
+
26
+ /**
27
+ * @module CommandT::Watchman::Utils
28
+ *
29
+ * Methods for working with the Watchman binary protocol
30
+ *
31
+ * @see https://github.com/facebook/watchman/blob/master/BSER.markdown
32
+ */
33
+
34
+ /**
35
+ * Convert an object serialized using the Watchman binary protocol[0] into an
36
+ * unpacked Ruby object
37
+ */
38
+ extern VALUE CommandTWatchmanUtils_load(VALUE self, VALUE serialized);
39
+
40
+ /**
41
+ * Serialize a Ruby object into the Watchman binary protocol format
42
+ */
43
+ extern VALUE CommandTWatchmanUtils_dump(VALUE self, VALUE serializable);
44
+
45
+ /**
46
+ * Issue `query` to the Watchman instance listening on `socket` (a `UNIXSocket`
47
+ * instance) and return the result
48
+ *
49
+ * The query is serialized following the Watchman binary protocol and the
50
+ * result is converted to native Ruby objects before returning to the caller.
51
+ */
52
+ extern VALUE CommandTWatchmanUtils_query(VALUE self, VALUE query, VALUE socket);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command-t
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.7'
4
+ version: '1.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wincent Colaiuta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-10 00:00:00.000000000 Z
11
+ date: 2014-04-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Command-T provides a fast, intuitive mechanism for opening files with a
@@ -21,25 +21,22 @@ extensions:
21
21
  - ruby/command-t/extconf.rb
22
22
  extra_rdoc_files: []
23
23
  files:
24
- - Gemfile
25
- - LICENSE
26
24
  - README.txt
25
+ - LICENSE
26
+ - Gemfile
27
27
  - Rakefile
28
- - doc/command-t.txt
29
- - doc/tags
30
- - plugin/command-t.vim
31
- - ruby/command-t/Makefile
32
28
  - ruby/command-t/controller.rb
33
29
  - ruby/command-t/depend
34
30
  - ruby/command-t/ext.bundle
35
31
  - ruby/command-t/ext.c
36
32
  - ruby/command-t/ext.h
37
33
  - ruby/command-t/extconf.rb
38
- - ruby/command-t/finder.rb
39
34
  - ruby/command-t/finder/buffer_finder.rb
40
35
  - ruby/command-t/finder/file_finder.rb
41
36
  - ruby/command-t/finder/jump_finder.rb
42
37
  - ruby/command-t/finder/tag_finder.rb
38
+ - ruby/command-t/finder.rb
39
+ - ruby/command-t/Makefile
43
40
  - ruby/command-t/match.c
44
41
  - ruby/command-t/match.h
45
42
  - ruby/command-t/match_window.rb
@@ -47,21 +44,26 @@ files:
47
44
  - ruby/command-t/matcher.h
48
45
  - ruby/command-t/prompt.rb
49
46
  - ruby/command-t/ruby_compat.h
50
- - ruby/command-t/scanner.rb
51
47
  - ruby/command-t/scanner/buffer_scanner.rb
52
- - ruby/command-t/scanner/file_scanner.rb
53
48
  - ruby/command-t/scanner/file_scanner/find_file_scanner.rb
54
49
  - ruby/command-t/scanner/file_scanner/ruby_file_scanner.rb
55
50
  - ruby/command-t/scanner/file_scanner/watchman_file_scanner.rb
51
+ - ruby/command-t/scanner/file_scanner.rb
56
52
  - ruby/command-t/scanner/jump_scanner.rb
57
53
  - ruby/command-t/scanner/tag_scanner.rb
54
+ - ruby/command-t/scanner.rb
58
55
  - ruby/command-t/settings.rb
59
56
  - ruby/command-t/stub.rb
60
57
  - ruby/command-t/util.rb
61
- - ruby/command-t/vim.rb
62
58
  - ruby/command-t/vim/path_utilities.rb
63
59
  - ruby/command-t/vim/screen.rb
64
60
  - ruby/command-t/vim/window.rb
61
+ - ruby/command-t/vim.rb
62
+ - ruby/command-t/watchman.c
63
+ - ruby/command-t/watchman.h
64
+ - doc/command-t.txt
65
+ - doc/tags
66
+ - plugin/command-t.vim
65
67
  homepage: https://wincent.com/products/command-t
66
68
  licenses: []
67
69
  metadata: {}
@@ -71,17 +73,17 @@ require_paths:
71
73
  - ruby
72
74
  required_ruby_version: !ruby/object:Gem::Requirement
73
75
  requirements:
74
- - - ">="
76
+ - - '>='
75
77
  - !ruby/object:Gem::Version
76
78
  version: '0'
77
79
  required_rubygems_version: !ruby/object:Gem::Requirement
78
80
  requirements:
79
- - - ">="
81
+ - - '>='
80
82
  - !ruby/object:Gem::Version
81
83
  version: '0'
82
84
  requirements: []
83
85
  rubyforge_project:
84
- rubygems_version: 2.2.2
86
+ rubygems_version: 2.0.3
85
87
  signing_key:
86
88
  specification_version: 4
87
89
  summary: The Command-T plug-in for VIM.