vimgem 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ *.swp
2
+ *.orig
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source :gemcutter
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,14 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ vimgem (0.1.0)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+
10
+ PLATFORMS
11
+ ruby
12
+
13
+ DEPENDENCIES
14
+ vimgem!
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2010 Lim Chanmann
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/bin/vimgem ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'vimgem'
4
+
5
+ exit unless ARGV[0]
6
+
7
+ Vimgem::browse(ARGV[0])
@@ -0,0 +1,3 @@
1
+ module Vimgem
2
+ VERSION = "0.1.0"
3
+ end
data/lib/vimgem.rb ADDED
@@ -0,0 +1,8 @@
1
+ module Vimgem
2
+ def self.browse(gem_name)
3
+ matches = Gem.source_index.find_name(gem_name)
4
+ exit if matches.empty?
5
+ spec = matches.first
6
+ `gvim #{spec.full_gem_path}`
7
+ end
8
+ end
data/vimgem.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/vimgem/version', __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "vimgem"
6
+ s.version = Vimgem::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["Lim Chanmann"]
9
+ s.email = ["chanmannlim@gmail.com"]
10
+ s.homepage = "http://rubygems.org/gems/vimgem"
11
+ s.summary = "Browse your favorite gem source code"
12
+ s.description = "This gem let you browse and read your favorite gem source code with Vim."
13
+
14
+ s.required_rubygems_version = ">= 1.3.6"
15
+ s.rubyforge_project = "vimgem"
16
+
17
+ s.executables = ["vimgem"]
18
+
19
+ s.files = `git ls-files`.split("\n")
20
+ s.require_path = 'lib'
21
+ end
metadata ADDED
@@ -0,0 +1,77 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vimgem
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Lim Chanmann
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-06-22 00:00:00 +07:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: This gem let you browse and read your favorite gem source code with Vim.
23
+ email:
24
+ - chanmannlim@gmail.com
25
+ executables:
26
+ - vimgem
27
+ extensions: []
28
+
29
+ extra_rdoc_files: []
30
+
31
+ files:
32
+ - .gitignore
33
+ - Gemfile
34
+ - Gemfile.lock
35
+ - LICENSE
36
+ - bin/vimgem
37
+ - lib/vimgem.rb
38
+ - lib/vimgem/version.rb
39
+ - vimgem.gemspec
40
+ has_rdoc: true
41
+ homepage: http://rubygems.org/gems/vimgem
42
+ licenses: []
43
+
44
+ post_install_message:
45
+ rdoc_options: []
46
+
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ hash: 3
55
+ segments:
56
+ - 0
57
+ version: "0"
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ hash: 23
64
+ segments:
65
+ - 1
66
+ - 3
67
+ - 6
68
+ version: 1.3.6
69
+ requirements: []
70
+
71
+ rubyforge_project: vimgem
72
+ rubygems_version: 1.3.7
73
+ signing_key:
74
+ specification_version: 3
75
+ summary: Browse your favorite gem source code
76
+ test_files: []
77
+