localport 0.0.3 → 0.1.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.
- data/README.md +11 -4
- data/VERSION +1 -1
- data/lib/localport/command.rb +3 -4
- data/localport.gemspec +2 -2
- metadata +3 -3
data/README.md
CHANGED
@@ -33,15 +33,15 @@ Ok, Let's control Ruby-1.8.7.-p160 with localport.
|
|
33
33
|
|
34
34
|
$ tar zxvf ruby-1.8.7-p160.tar.gz
|
35
35
|
$ cd ruby-1.8.7-p160
|
36
|
-
$ ./configure --prefix=$HOME/apps/ruby/
|
36
|
+
$ ./configure --prefix=$HOME/apps/ruby/1.8.7-p160
|
37
37
|
|
38
38
|
2. Install that to "execution directory"
|
39
39
|
|
40
|
-
$ localport install ~/apps/ruby/
|
40
|
+
$ localport install ~/apps/ruby/1.8.7-p160
|
41
41
|
|
42
42
|
This command make symbolic links that are Ruby applications in
|
43
43
|
|
44
|
-
~/apps/ruby/
|
44
|
+
~/apps/ruby/1.8.7-p160/bin/*
|
45
45
|
|
46
46
|
3. Then, Activate that.
|
47
47
|
|
@@ -50,7 +50,7 @@ Ok, Let's control Ruby-1.8.7.-p160 with localport.
|
|
50
50
|
This command make installed symbolic ruby-1.8.7-p160 point symbolic link.
|
51
51
|
|
52
52
|
$ ls -l ~/local/bin/ruby -> ~/local/bin/ruby-1.8.7-p160
|
53
|
-
$ ls -l ~/local/bin/ruby-1.8.7-p160 -> ~/apps/ruby/
|
53
|
+
$ ls -l ~/local/bin/ruby-1.8.7-p160 -> ~/apps/ruby/1.8.7-p160/bin/ruby
|
54
54
|
|
55
55
|
4. Deactivate that.
|
56
56
|
If you want to execute another Ruby version with no specified version command, 'ruby'.
|
@@ -66,6 +66,7 @@ This application provide some commands. Like MacPorts.
|
|
66
66
|
- installed
|
67
67
|
- activate
|
68
68
|
- deactivate
|
69
|
+
- update
|
69
70
|
|
70
71
|
### install
|
71
72
|
|
@@ -91,3 +92,9 @@ To deactivate installed application.
|
|
91
92
|
Delete internal symbolic link.
|
92
93
|
|
93
94
|
$ localport deactivate {app}
|
95
|
+
|
96
|
+
### update
|
97
|
+
Rubygems will install with gem command after localport controlled. Some ${RUBY}/bin/{exec} will be installed but didn't create symbolic link.
|
98
|
+
So, update command create symbolic link for these execution files.
|
99
|
+
|
100
|
+
$ localport update {app}
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0
|
1
|
+
0.1.0
|
data/lib/localport/command.rb
CHANGED
@@ -165,10 +165,9 @@ module LocalPort
|
|
165
165
|
end
|
166
166
|
|
167
167
|
def split_appver_to_app_ver(appver)
|
168
|
-
app =
|
169
|
-
|
170
|
-
|
171
|
-
end
|
168
|
+
app = config.installed.keys.select {|k|
|
169
|
+
/^#{k}/ =~ appver
|
170
|
+
}.reject {|x| x.nil? || x.empty? }.first
|
172
171
|
ver = appver.gsub(/#{app}-?/, '')
|
173
172
|
|
174
173
|
[app, ver]
|
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.0
|
8
|
+
s.version = "0.1.0"
|
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-
|
12
|
+
s.date = "2012-05-06"
|
13
13
|
s.description = "localport is a local application management system"
|
14
14
|
s.email = "y.hirokazu@gmail.com"
|
15
15
|
s.executables = ["localport"]
|
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.0
|
4
|
+
version: 0.1.0
|
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-
|
12
|
+
date: 2012-05-06 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:
|
130
|
+
hash: 3076907493602429288
|
131
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
133
133
|
requirements:
|