vimdo 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/Rakefile +1 -1
- data/lib/vimdo.rb +3 -2
- data/lib/vimdo/cli.rb +1 -1
- data/lib/vimdo/version.rb +1 -1
- data/vimdo.gemspec +10 -8
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee9475f465b154698dcc46377e814504166d0dba
|
4
|
+
data.tar.gz: 4342e14f9cb0f5b9be23ce6c890135531632a6e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c537f9e18e03e126a9ce07681d0880432cbfd3272f180953d1fca966e249b87b7c5f7d973bc383b04b6fec95ceca3de8c229c121f0a6d418b44def7789c94fc
|
7
|
+
data.tar.gz: 2a4529dfd4013e89115e575c7ff2996fd2317660c0ca534c2d1c6c1e93e0544a1cfee1e73e512fcb98703ce4dfca0d870c037bab5128ae41c0a5bd976703d892
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/Rakefile
CHANGED
@@ -14,7 +14,7 @@ Hoe.spec 'vimdo' do
|
|
14
14
|
developer('Zhao Cai', 'caizhaoff@gmail.com')
|
15
15
|
license 'GPL-3'
|
16
16
|
|
17
|
-
extra_deps << ['vimrunner', '
|
17
|
+
extra_deps << ['vimrunner', '>= 0.3.0']
|
18
18
|
extra_deps << ['thor', '~> 0.18.0']
|
19
19
|
extra_deps << ['autocompletion', '~> 0.0.3']
|
20
20
|
|
data/lib/vimdo.rb
CHANGED
@@ -27,10 +27,11 @@ module VimDo
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def connect(options= {})
|
30
|
-
Vimrunner::Server.new(
|
30
|
+
server = Vimrunner::Server.new(
|
31
31
|
# symbolize keys
|
32
32
|
options.inject({}){ |h, (n,v)| h[n.to_sym] = v; h }
|
33
|
-
)
|
33
|
+
)
|
34
|
+
server.running? ? server.connect : server.start
|
34
35
|
end
|
35
36
|
|
36
37
|
def load_recipes
|
data/lib/vimdo/cli.rb
CHANGED
data/lib/vimdo/version.rb
CHANGED
data/vimdo.gemspec
CHANGED
@@ -2,11 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "vimdo"
|
5
|
-
s.version = "1.0.
|
5
|
+
s.version = "1.2.0.20130421112816"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Zhao Cai"]
|
9
|
-
s.
|
9
|
+
s.cert_chain = ["/Users/zhaocai/.gem/gem-public_cert.pem"]
|
10
|
+
s.date = "2013-04-21"
|
10
11
|
s.description = "Vimdo is a ruby gem to automate tasks with vim remote servers.\nPredefined tasks include diff, merge, etc. You can define your own recipes\nto run tasks with Vim. For example, you can define `DirDiff` recipe:\n\n```ruby\nmodule VimDo\n class CLI < Thor\n\n desc \"dirdiff\", \"directory diff in vim\"\n def dirdiff(from, to)\n [from, to].each do |f|\n unless File.directory?(f)\n raise PathError \"\#{f} is not directory!\"\n end\n end\n\n from, to = [from, to].map {|f| File.expand_path(f) }\n commands(%Q{exec 'DirDiff ' fnameescape(\"\#{from}\") fnameescape(\"\#{to}\")})\n end\n\n end\nend\n\n```\n\nThen run `vimdo dirdiff path/to/a path/to/b` from the command line or other tools"
|
11
12
|
s.email = ["caizhaoff@gmail.com"]
|
12
13
|
s.executables = ["vimdo"]
|
@@ -18,16 +19,17 @@ Gem::Specification.new do |s|
|
|
18
19
|
s.require_paths = ["lib"]
|
19
20
|
s.rubyforge_project = "vimdo"
|
20
21
|
s.rubygems_version = "2.0.3"
|
22
|
+
s.signing_key = "/Users/zhaocai/.gem/gem-private_key.pem"
|
21
23
|
s.summary = "Vimdo is a ruby gem to automate tasks with vim remote servers"
|
22
24
|
|
23
25
|
if s.respond_to? :specification_version then
|
24
26
|
s.specification_version = 4
|
25
27
|
|
26
28
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
27
|
-
s.add_runtime_dependency(%q<vimrunner>, ["
|
29
|
+
s.add_runtime_dependency(%q<vimrunner>, [">= 0.3.0"])
|
28
30
|
s.add_runtime_dependency(%q<thor>, ["~> 0.18.0"])
|
29
31
|
s.add_runtime_dependency(%q<autocompletion>, ["~> 0.0.3"])
|
30
|
-
s.add_development_dependency(%q<rdoc>, ["~>
|
32
|
+
s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
|
31
33
|
s.add_development_dependency(%q<rake>, [">= 10.0.0"])
|
32
34
|
s.add_development_dependency(%q<hoe>, [">= 0"])
|
33
35
|
s.add_development_dependency(%q<hoe-gemspec>, [">= 0"])
|
@@ -35,10 +37,10 @@ Gem::Specification.new do |s|
|
|
35
37
|
s.add_development_dependency(%q<hoe-version>, [">= 0"])
|
36
38
|
s.add_development_dependency(%q<awesome_print>, [">= 0"])
|
37
39
|
else
|
38
|
-
s.add_dependency(%q<vimrunner>, ["
|
40
|
+
s.add_dependency(%q<vimrunner>, [">= 0.3.0"])
|
39
41
|
s.add_dependency(%q<thor>, ["~> 0.18.0"])
|
40
42
|
s.add_dependency(%q<autocompletion>, ["~> 0.0.3"])
|
41
|
-
s.add_dependency(%q<rdoc>, ["~>
|
43
|
+
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
42
44
|
s.add_dependency(%q<rake>, [">= 10.0.0"])
|
43
45
|
s.add_dependency(%q<hoe>, [">= 0"])
|
44
46
|
s.add_dependency(%q<hoe-gemspec>, [">= 0"])
|
@@ -47,10 +49,10 @@ Gem::Specification.new do |s|
|
|
47
49
|
s.add_dependency(%q<awesome_print>, [">= 0"])
|
48
50
|
end
|
49
51
|
else
|
50
|
-
s.add_dependency(%q<vimrunner>, ["
|
52
|
+
s.add_dependency(%q<vimrunner>, [">= 0.3.0"])
|
51
53
|
s.add_dependency(%q<thor>, ["~> 0.18.0"])
|
52
54
|
s.add_dependency(%q<autocompletion>, ["~> 0.0.3"])
|
53
|
-
s.add_dependency(%q<rdoc>, ["~>
|
55
|
+
s.add_dependency(%q<rdoc>, ["~> 4.0"])
|
54
56
|
s.add_dependency(%q<rake>, [">= 10.0.0"])
|
55
57
|
s.add_dependency(%q<hoe>, [">= 0"])
|
56
58
|
s.add_dependency(%q<hoe-gemspec>, [">= 0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vimdo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zhao Cai
|
@@ -30,22 +30,22 @@ cert_chain:
|
|
30
30
|
eIuFwYbmfyt5/ObUtmp3BlaIStTiX9TBWeuTx6Zq6q6wDzcudbDRd+jLa2XG2AGB
|
31
31
|
S6w/KYMnbhUxfyEU1MX10sJv87WIrtgF
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2013-04-
|
33
|
+
date: 2013-04-21 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: vimrunner
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - '>='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: 0.3.0
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.
|
48
|
+
version: 0.3.0
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: thor
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|