vimdb 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemspec +1 -1
- data/CHANGELOG.rdoc +4 -0
- data/README.md +1 -1
- data/deps.rip +1 -1
- data/lib/vimdb/runner.rb +2 -2
- data/lib/vimdb/version.rb +1 -1
- data/spec/keys_spec.rb +0 -3
- data/spec/options_spec.rb +3 -3
- data/spec/runner_spec.rb +2 -2
- metadata +14 -14
data/.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.description = "Search your vim keybindings precisely by keystroke, mode, description or where they came from. Search vim options by name, alias and description."
|
13
13
|
s.required_rubygems_version = ">= 1.3.6"
|
14
14
|
s.executables = %w(vimdb)
|
15
|
-
s.add_dependency 'boson', '
|
15
|
+
s.add_dependency 'boson', '>= 1.1.1'
|
16
16
|
s.add_dependency 'hirb', '~> 0.6.0'
|
17
17
|
s.add_development_dependency 'minitest', '~> 2.5.1'
|
18
18
|
s.add_development_dependency 'bahia', '~> 0.3.0'
|
data/CHANGELOG.rdoc
CHANGED
data/README.md
CHANGED
data/deps.rip
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
boson
|
1
|
+
boson >=1.1.1
|
2
2
|
hirb ~>0.6.0
|
data/lib/vimdb/runner.rb
CHANGED
@@ -26,9 +26,9 @@ class Vimdb::Runner < Boson::Runner
|
|
26
26
|
|
27
27
|
common_search_options
|
28
28
|
desc 'List vim options'
|
29
|
-
def
|
29
|
+
def options(query = nil, opts={})
|
30
30
|
Vimdb.item('options')
|
31
|
-
search_item(query,
|
31
|
+
search_item(query, opts)
|
32
32
|
end
|
33
33
|
|
34
34
|
common_search_options
|
data/lib/vimdb/version.rb
CHANGED
data/spec/keys_spec.rb
CHANGED
@@ -64,7 +64,6 @@ STR
|
|
64
64
|
end
|
65
65
|
|
66
66
|
it "doesn't list not used keys" do
|
67
|
-
skip 'fix multi-word'
|
68
67
|
vimdb "keys '^not used$' -f=desc -r"
|
69
68
|
stdout.must_match /^0 rows/
|
70
69
|
end
|
@@ -77,7 +76,6 @@ STR
|
|
77
76
|
end
|
78
77
|
|
79
78
|
it "lists keys with no tabs and no description" do
|
80
|
-
skip 'fix multi-word'
|
81
79
|
vimdb "keys 'C-r C-r'"
|
82
80
|
stdout.must_include <<-STR
|
83
81
|
| C-r C-r {0-9a-z"%#*:=} | i | default | insert the contents of a register literally |
|
@@ -85,7 +83,6 @@ STR
|
|
85
83
|
end
|
86
84
|
|
87
85
|
it "lists keys with no tabs but a description" do
|
88
|
-
skip 'fix multi-word'
|
89
86
|
vimdb "keys 'C-v {number}'"
|
90
87
|
stdout.must_include <<-STR
|
91
88
|
| C-v {number} | i | default | insert three digit decimal number as a single byte. |
|
data/spec/options_spec.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/helper')
|
2
2
|
|
3
|
-
describe "vimdb
|
3
|
+
describe "vimdb options" do
|
4
4
|
it "lists all options by default" do
|
5
|
-
vimdb '
|
5
|
+
vimdb 'options'
|
6
6
|
stdout.must_match /359 rows/
|
7
7
|
end
|
8
8
|
|
9
9
|
it 'searches :name field by default' do
|
10
|
-
vimdb "
|
10
|
+
vimdb "options wildignorec"
|
11
11
|
stdout.must_match /1 row/
|
12
12
|
end
|
13
13
|
end
|
data/spec/runner_spec.rb
CHANGED
@@ -5,12 +5,12 @@ describe Vimdb::Runner do
|
|
5
5
|
describe "commands" do
|
6
6
|
it "--help prints help" do
|
7
7
|
vimdb '--help'
|
8
|
-
stdout.must_match /^Usage: vimdb COMMAND.*commands.*keys.*
|
8
|
+
stdout.must_match /^Usage: vimdb COMMAND.*commands.*keys.*options/m
|
9
9
|
end
|
10
10
|
|
11
11
|
it "no arguments prints help" do
|
12
12
|
vimdb
|
13
|
-
stdout.must_match /^Usage: vimdb COMMAND.*commands.*keys.*
|
13
|
+
stdout.must_match /^Usage: vimdb COMMAND.*commands.*keys.*options/m
|
14
14
|
end
|
15
15
|
|
16
16
|
Vimdb::Item.all.each do |item|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vimdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,22 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: boson
|
16
|
-
requirement: &
|
16
|
+
requirement: &70144353831720 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.1.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70144353831720
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: hirb
|
27
|
-
requirement: &
|
27
|
+
requirement: &70144353831140 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.6.0
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70144353831140
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: minitest
|
38
|
-
requirement: &
|
38
|
+
requirement: &70144353830620 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 2.5.1
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70144353830620
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bahia
|
49
|
-
requirement: &
|
49
|
+
requirement: &70144353830100 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 0.3.0
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70144353830100
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: rake
|
60
|
-
requirement: &
|
60
|
+
requirement: &70144353829640 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: 0.9.2
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70144353829640
|
69
69
|
description: Search your vim keybindings precisely by keystroke, mode, description
|
70
70
|
or where they came from. Search vim options by name, alias and description.
|
71
71
|
email: gabriel.horner@gmail.com
|