vimgem 0.1.3 → 0.2.0

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,21 @@
1
+ # Vimgem
2
+
3
+ Browse your favorite gem source code in Vim.
4
+
5
+ ## Inspired by
6
+
7
+ https://gist.github.com/e6d5d8c9d5dd5b556d86
8
+
9
+ ## Installation
10
+
11
+ gem install vimgem
12
+
13
+ ## Usage
14
+
15
+ vimgem gem_name
16
+
17
+ ### Example
18
+
19
+ vimgem rails
20
+
21
+ Enjoy!!!
@@ -1,5 +1,3 @@
1
- require 'rbconfig'
2
-
3
1
  module Vimgem
4
2
  extend self
5
3
 
@@ -15,9 +13,11 @@ module Vimgem
15
13
  end
16
14
 
17
15
  def exec_vim(path)
18
- case Config::CONFIG['target_os'].to_sym
19
- when :linux
16
+ case RUBY_PLATFORM
17
+ when /linux/, /mswin/
20
18
  `gvim #{path}`
19
+ when /darwin/
20
+ `open -a macvim #{path}`
21
21
  end
22
22
  end
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module Vimgem
2
- VERSION = "0.1.3"
2
+ VERSION = "0.2.0"
3
3
  end
Binary file
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vimgem
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 1
9
- - 3
10
- version: 0.1.3
8
+ - 2
9
+ - 0
10
+ version: 0.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lim Chanmann
@@ -33,12 +33,11 @@ files:
33
33
  - Gemfile
34
34
  - Gemfile.lock
35
35
  - LICENSE
36
+ - README.md
36
37
  - bin/vimgem
37
38
  - lib/vimgem.rb
38
39
  - lib/vimgem/version.rb
39
- - vimgem-0.1.0.gem
40
- - vimgem-0.1.1.gem
41
- - vimgem-0.1.2.gem
40
+ - vimgem-0.1.3.gem
42
41
  - vimgem.gemspec
43
42
  has_rdoc: true
44
43
  homepage: http://rubygems.org/gems/vimgem
Binary file
Binary file
Binary file