localport 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -206,7 +206,7 @@ module LocalPort
206
206
  begin
207
207
  File.symlink(src, target) unless File.exist? target
208
208
  rescue => e
209
- puts "[#{target}] is maybe broken."
209
+ puts "#{target} is maybe broken."
210
210
  end
211
211
  end
212
212
 
@@ -61,6 +61,9 @@ LocalPort::LINK_DIR = '%s'" % [apps_dir, link_dir]
61
61
  # e.g. ruby-1.8.7-p160 => 1.8.7-p160
62
62
  symlink_base = File.basename symlink
63
63
  src_base = File.basename src
64
+ src_extname = File.extname(src_base)
65
+ src_base = src_base.gsub(src_extname, "")
66
+ symlink_base = symlink_base.gsub(src_extname, "")
64
67
  version = symlink_base.gsub(/#{src_base}-?/, '')
65
68
 
66
69
  # srcがカレントにあるリンクを指しているのなら
data/localport.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "localport"
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["yoppi"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localport
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  segments:
129
129
  - 0
130
- hash: 3927948051710791612
130
+ hash: 1929482462854349642
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  none: false
133
133
  requirements: