localport 0.1.0 → 0.1.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -110,7 +110,10 @@ module LocalPort
110
110
  targets.each {|target|
111
111
  install([installed_dir(target)])
112
112
  config.installed_app() # TODO: もっとエレガントに初期化する方法を考える
113
- activate(target)
113
+ app, ver = split_appver_to_app_ver(target)
114
+ if config.activated[app] == ver
115
+ activate(target)
116
+ end
114
117
  }
115
118
  end
116
119
 
@@ -44,7 +44,6 @@ LocalPort::LINK_DIR = '%s'" % [apps_dir, link_dir]
44
44
  symlinks = Dir["#{dir}/*"]
45
45
  symlinks.each do |symlink|
46
46
  next unless File.symlink? symlink
47
-
48
47
  src = File.readlink symlink
49
48
  same_dir_p = same_dir?(src, symlink)
50
49
  if same_dir_p
data/localport.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "localport"
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["yoppi"]
12
- s.date = "2012-05-06"
12
+ s.date = "2012-06-29"
13
13
  s.description = "localport is a local application management system"
14
14
  s.email = "y.hirokazu@gmail.com"
15
15
  s.executables = ["localport"]
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  s.homepage = "http://github.com/yoppi/localport"
35
35
  s.licenses = ["MIT"]
36
36
  s.require_paths = ["lib"]
37
- s.rubygems_version = "1.8.23"
37
+ s.rubygems_version = "1.8.24"
38
38
  s.summary = "Local Application management system"
39
39
 
40
40
  if s.respond_to? :specification_version then
@@ -119,6 +119,7 @@ describe LocalPort::Command, "#update" do
119
119
  FileUtils.mkdir_p(File.dirname(bin))
120
120
  FileUtils.touch(bin)
121
121
  File.symlink(bin, symlink)
122
+ File.symlink(symlink, symlink_app)
122
123
  end
123
124
 
124
125
  it "should update specifed application" do
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.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-06 00:00:00.000000000 Z
12
+ date: 2012-06-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
127
127
  version: '0'
128
128
  segments:
129
129
  - 0
130
- hash: 3076907493602429288
130
+ hash: -1437586738279535089
131
131
  required_rubygems_version: !ruby/object:Gem::Requirement
132
132
  none: false
133
133
  requirements:
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 1.8.23
139
+ rubygems_version: 1.8.24
140
140
  signing_key:
141
141
  specification_version: 3
142
142
  summary: Local Application management system