kballard-openri 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/openri.rb +2 -1
  2. data/openri.gemspec +2 -1
  3. metadata +11 -3
data/lib/openri.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
+ require 'launchy'
2
3
 
3
4
  module OpenRi
4
5
  # Opens the documentation for the specified gem
@@ -19,6 +20,6 @@ module OpenRi
19
20
  def self.open_url(url)
20
21
  # this works on OS X
21
22
  # I don't know what's necessary for other platforms
22
- exec "open", url
23
+ Launchy::Browser.new.visit(url)
23
24
  end
24
25
  end
data/openri.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "openri"
3
- s.version = "0.1"
3
+ s.version = "0.2"
4
4
 
5
5
  s.specification_version = 2 if s.respond_to? :specification_version=
6
6
 
@@ -18,4 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.rubygems_version = "1.1.1"
19
19
  s.summary = s.description
20
20
  s.rdoc_options = ["--inline-source", "--title", "openri", "--main", "README"]
21
+ s.add_dependency('launchy', [">= 0"])
21
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kballard-openri
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.1"
4
+ version: "0.2"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ballard
@@ -11,8 +11,16 @@ cert_chain: []
11
11
 
12
12
  date: 2008-05-14 00:00:00 -07:00
13
13
  default_executable: openri
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: launchy
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ version:
16
24
  description: Quickly open documentation for your Gems in your browser
17
25
  email: kevin@sb.org
18
26
  executables: