public
Rubygem
Description: Quickly open documentation for your Gems in your browser
Clone URL: git://github.com/kballard/openri.git
Search Repo:
Use Launchy to open the browser
kballard (author)
Wed May 21 16:32:03 -0700 2008
commit  35f002b0e21224b5f2af6b7ea44bf3d32b630931
tree    2980a7277c47620b59fdfcec805fbb44b3be5baa
parent  be5bdb8071d69aaa7fd18514fa57c4a4400fffed
...
11
12
13
14
 
15
...
11
12
13
 
14
15
0
@@ -11,5 +11,5 @@ end
0
 
0
 desc 'Install openri'
0
 task :install_gem => :gem do
0
- exec "gem", "install", "#{gemtask.package_dir}/#{gemtask.gem_file}"
0
+ exec "sudo", "gem", "install", "#{gemtask.package_dir}/#{gemtask.gem_file}"
0
 end
...
1
 
2
3
4
...
19
20
21
22
 
23
24
...
1
2
3
4
5
...
20
21
22
 
23
24
25
0
@@ -1,4 +1,5 @@
0
 require 'rubygems'
0
+require 'launchy'
0
 
0
 module OpenRi
0
   # Opens the documentation for the specified gem
0
@@ -19,6 +20,6 @@ module OpenRi
0
   def self.open_url(url)
0
     # this works on OS X
0
     # I don't know what's necessary for other platforms
0
- exec "open", url
0
+ Launchy::Browser.new.visit(url)
0
   end
0
 end
...
1
2
3
 
4
5
6
...
18
19
20
 
21
...
1
2
 
3
4
5
6
...
18
19
20
21
22
0
@@ -1,6 +1,6 @@
0
 Gem::Specification.new do |s|
0
   s.name = "openri"
0
- s.version = "0.1"
0
+ s.version = "0.2"
0
 
0
   s.specification_version = 2 if s.respond_to? :specification_version=
0
 
0
@@ -18,4 +18,5 @@ Gem::Specification.new do |s|
0
   s.rubygems_version = "1.1.1"
0
   s.summary = s.description
0
   s.rdoc_options = ["--inline-source", "--title", "openri", "--main", "README"]
0
+ s.add_dependency('launchy', [">= 0"])
0
 end

Comments

    No one has commented yet.