Skip to content

Commit 39cec25

Browse files
committed
Initial commit
0 parents  commit 39cec25

14 files changed

+76
-0
lines changed

Diff for: .gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Gemfile.lock
2+
tags
3+
pkg/*
4+
doc/*

Diff for: .rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format d

Diff for: Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gemspec

Diff for: LICENSE

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
2+
3+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
4+
5+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Diff for: README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Using Vim's client/server functionality, this library exposes a way to spawn a
2+
Vim instance and control it programatically. Apart from being a fun party
3+
trick, this could be used to do integration testing on vimscript.

Diff for: Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require 'bundler'
2+
Bundler::GemHelper.install_tasks
3+
4+
desc "Generate documentation"
5+
task :doc do
6+
sh 'rdoc -t "Vimrunner" lib'
7+
end

Diff for: _project.vim

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
runtime projects/ruby.vim

Diff for: bin/vimrunner

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#! /usr/bin/env ruby
2+
3+
puts "Does nothing yet"

Diff for: lib/vimrunner.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'vimrunner/runner'

Diff for: lib/vimrunner/runner.rb

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module Vimrunner
2+
# The Runner class acts as the actual proxy to a vim instance. Upon
3+
# initialization, a vim process is started in the background. The Runner
4+
# instance's public methods correspond to actions the instance will perform.
5+
# Use Runner#kill to manually destroy the background process.
6+
class Runner
7+
def kill
8+
end
9+
end
10+
end

Diff for: lib/vimrunner/version.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Vimrunner
2+
VERSION = '0.0.1'
3+
end

Diff for: spec/spec_helper.rb

Whitespace-only changes.

Diff for: spec/vimrunner/runner_spec.rb

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
require 'spec_helper'
2+
require 'vimrunner/runner'
3+
4+
module Vimrunner
5+
describe Runner do
6+
it "validates the truth" do
7+
true.should be_true
8+
end
9+
end
10+
end

Diff for: vimrunner.gemspec

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
require File.expand_path('../lib/vimrunner/version', __FILE__)
2+
3+
Gem::Specification.new do |s|
4+
s.name = 'vimrunner'
5+
s.version = Vimrunner::VERSION
6+
s.platform = Gem::Platform::RUBY
7+
s.authors = ['Andrew Radev']
8+
s.email = ['[email protected]']
9+
s.homepage = 'http://github.com/AndrewRadev/vimrunner'
10+
s.summary = 'Lets you control a vim instance through ruby'
11+
s.description = <<-D
12+
Using vim's client/server functionality, this library exposes a way to
13+
spawn a vim instance and control it programatically. Apart from being a fun
14+
party trick, this could be used to do integration testing on vimscript.
15+
D
16+
17+
s.add_development_dependency 'rake'
18+
s.add_development_dependency 'rdoc'
19+
s.add_development_dependency 'rspec', '>= 2.0.0'
20+
21+
s.required_rubygems_version = '>= 1.3.6'
22+
s.rubyforge_project = 'vimrunner'
23+
s.files = Dir['{lib}/**/*.rb', 'bin/*', 'LICENSE', '*.md']
24+
s.require_path = 'lib'
25+
s.executables = ['vimrunner']
26+
end

0 commit comments

Comments
 (0)