p4ruby 0.5.0 → 1.0.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 +4 -5
- data/install.rb +27 -37
- data/p4ruby.gemspec +1 -1
- metadata +2 -2
data/README
CHANGED
|
@@ -12,11 +12,10 @@ http://public.perforce.com/guest/tony_smith/perforce/API/Ruby/main/doc/index.htm
|
|
|
12
12
|
Changes in the new package are described here
|
|
13
13
|
http://perforce.com/perforce/doc.081/user/p4rubynotes.txt.
|
|
14
14
|
|
|
15
|
-
<b>Note:</b> For Windows
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
along with g++ (in the Devel category).
|
|
15
|
+
<b>Note:</b> For Windows, this installer currently only supports the
|
|
16
|
+
cygwin version. If you are installing cygwin for the first time,
|
|
17
|
+
select ruby along with g++ (in the Devel category) inside the cygwin
|
|
18
|
+
installer (http://cygwin.com).
|
|
20
19
|
|
|
21
20
|
Users may be interested in a simplified interface to Perforce at
|
|
22
21
|
http://perforce.rubyforge.org (shameless plug, sorry).
|
data/install.rb
CHANGED
|
@@ -103,51 +103,41 @@ class Installer
|
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
def guess_platform
|
|
106
|
-
|
|
107
|
-
when %r!cygwin!i
|
|
108
|
-
"cygwinx86"
|
|
109
|
-
when %r!darwin!i
|
|
106
|
+
base =
|
|
110
107
|
case RUBY_PLATFORM
|
|
111
|
-
when %r!
|
|
112
|
-
"
|
|
113
|
-
when %r!
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
case RUBY_PLATFORM
|
|
122
|
-
when %r!ia!i
|
|
123
|
-
"linux26xia64"
|
|
124
|
-
when %r!64!
|
|
125
|
-
"linux26x86_64"
|
|
108
|
+
when %r!cygwin!i
|
|
109
|
+
"cygwin"
|
|
110
|
+
when %r!(mswin|mingw)!i
|
|
111
|
+
"nt"
|
|
112
|
+
when %r!darwin!i
|
|
113
|
+
"darwin80"
|
|
114
|
+
when %r!linux!i
|
|
115
|
+
"linux" +
|
|
116
|
+
if match = `uname -a`.match(%r!linux\s+\S+\s+(\d+)\.(\d+)!i)
|
|
117
|
+
match.captures.join
|
|
126
118
|
else
|
|
127
|
-
"
|
|
119
|
+
"26"
|
|
128
120
|
end
|
|
129
|
-
else
|
|
130
|
-
"linux24x86"
|
|
131
121
|
end
|
|
132
|
-
|
|
122
|
+
|
|
123
|
+
if base.nil?
|
|
124
|
+
nil
|
|
125
|
+
else
|
|
126
|
+
bit64 = (1.size == 8 ? "_64" : "")
|
|
127
|
+
|
|
128
|
+
base +
|
|
133
129
|
case RUBY_PLATFORM
|
|
134
|
-
when %r!
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
else
|
|
142
|
-
case RUBY_PLATFORM
|
|
143
|
-
when %r!64!
|
|
144
|
-
"freebsd60x86_64"
|
|
130
|
+
when %r!ia!i
|
|
131
|
+
"ia64"
|
|
132
|
+
when %r!86!
|
|
133
|
+
"x86" + bit64
|
|
134
|
+
when %r!darwin!
|
|
135
|
+
if `uname -a`.chomp =~ %r!86\Z!
|
|
136
|
+
"x86" + bit64
|
|
145
137
|
else
|
|
146
|
-
"
|
|
138
|
+
"ppc"
|
|
147
139
|
end
|
|
148
140
|
end
|
|
149
|
-
else
|
|
150
|
-
nil
|
|
151
141
|
end
|
|
152
142
|
end
|
|
153
143
|
|
data/p4ruby.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: p4ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Perforce Software (ruby gem by James M. Lawrence)
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-09-
|
|
12
|
+
date: 2008-09-08 00:00:00 -04:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|