p4ruby 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +5 -0
- data/README +7 -3
- data/install.rb +20 -16
- data/p4ruby.gemspec +2 -2
- metadata +7 -5
data/CHANGES
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
|
2
2
|
= p4ruby
|
3
3
|
|
4
|
+
== version 1.0.9
|
5
|
+
|
6
|
+
* Non-universal p4api darwin libs were removed from Perforce ftp server
|
7
|
+
* Pathname changes for 1.9 (even though P4Ruby does not compile for 1.9)
|
8
|
+
|
4
9
|
== version 1.0.8
|
5
10
|
|
6
11
|
* Compensate for Perforce ftp server directory changes
|
data/README
CHANGED
@@ -28,7 +28,7 @@ downloaded and executed instead. Some options are available,
|
|
28
28
|
|
29
29
|
== Links
|
30
30
|
|
31
|
-
* P4Ruby documentation
|
31
|
+
* P4Ruby documentation 2009.1: http://perforce.com/perforce/doc.091/manuals/p4script/p4script.pdf
|
32
32
|
* Perforce documentation: http://perforce.com/perforce/technical.html
|
33
33
|
|
34
34
|
* Download (this installer only): http://rubyforge.org/frs/?group_id=6957
|
@@ -67,8 +67,12 @@ downloaded and executed instead. Some options are available,
|
|
67
67
|
=== Installer and Gem
|
68
68
|
|
69
69
|
This ruby package (install.rb and associated files) was written by
|
70
|
-
James M. Lawrence
|
71
|
-
|
70
|
+
James M. Lawrence.
|
71
|
+
|
72
|
+
Copyright (c) 2009 James M. Lawrence
|
73
|
+
Copyright (c) 2008 ImaginEngine, Inc.
|
74
|
+
|
75
|
+
Distributed under the MIT license.
|
72
76
|
|
73
77
|
Permission is hereby granted, free of charge, to any person obtaining
|
74
78
|
a copy of this software and associated documentation files (the
|
data/install.rb
CHANGED
@@ -160,17 +160,22 @@ class Installer
|
|
160
160
|
end
|
161
161
|
|
162
162
|
def guess_cpu
|
163
|
-
|
164
|
-
|
165
|
-
"
|
166
|
-
when %r!86!
|
167
|
-
# note: with '_'
|
168
|
-
"x86" + (BIT64 ? "_64" : "")
|
169
|
-
when %r!(ppc|sparc)!i
|
170
|
-
# note: without '_'
|
171
|
-
$1 + (BIT64 ? "64" : "")
|
163
|
+
if CONFIG["target_os"] =~ %r!darwin!
|
164
|
+
# specific binaries were removed in p4api-09.1
|
165
|
+
"u"
|
172
166
|
else
|
173
|
-
""
|
167
|
+
case CONFIG["target_cpu"]
|
168
|
+
when %r!ia!i
|
169
|
+
"ia64"
|
170
|
+
when %r!86!
|
171
|
+
# note: with '_'
|
172
|
+
"x86" + (BIT64 ? "_64" : "")
|
173
|
+
when %r!(ppc|sparc)!i
|
174
|
+
# note: without '_'
|
175
|
+
$1 + (BIT64 ? "64" : "")
|
176
|
+
else
|
177
|
+
""
|
178
|
+
end
|
174
179
|
end
|
175
180
|
end
|
176
181
|
|
@@ -249,14 +254,14 @@ class Installer
|
|
249
254
|
end
|
250
255
|
|
251
256
|
def unpack(distfile, target_dir)
|
252
|
-
sys("tar", "zxvf", distfile, "-C", target_dir)
|
257
|
+
sys("tar", "zxvf", distfile.to_s, "-C", target_dir.to_s)
|
253
258
|
end
|
254
259
|
|
255
260
|
def fetch_spec(spec)
|
256
261
|
unless @s.local
|
257
262
|
mkdir_p(spec.local.dirname)
|
258
263
|
puts "downloading ftp://#{SERVER}/#{spec.remote} ..."
|
259
|
-
@s.ftp.getbinaryfile(spec.remote, spec.local)
|
264
|
+
@s.ftp.getbinaryfile(spec.remote.to_s, spec.local.to_s)
|
260
265
|
end
|
261
266
|
end
|
262
267
|
|
@@ -267,7 +272,7 @@ class Installer
|
|
267
272
|
end
|
268
273
|
|
269
274
|
def remote_files_matching(dir, regex)
|
270
|
-
@s.ftp.ls(dir).map { |entry|
|
275
|
+
@s.ftp.ls(dir.to_s).map { |entry|
|
271
276
|
if match = entry.match(regex)
|
272
277
|
yield match
|
273
278
|
else
|
@@ -302,7 +307,7 @@ class Installer
|
|
302
307
|
|
303
308
|
def ruby(*args)
|
304
309
|
exe = Pathname.new(CONFIG["bindir"]) + CONFIG["RUBY_INSTALL_NAME"]
|
305
|
-
sys(exe, *args)
|
310
|
+
sys(exe.to_s, *args)
|
306
311
|
end
|
307
312
|
|
308
313
|
def build
|
@@ -326,8 +331,7 @@ class Installer
|
|
326
331
|
end
|
327
332
|
|
328
333
|
def raw_install_to_gem_install
|
329
|
-
RAW_INSTALL_FILES.
|
330
|
-
dest = GEM_INSTALL_FILES[index]
|
334
|
+
RAW_INSTALL_FILES.zip(GEM_INSTALL_FILES) { |source, dest|
|
331
335
|
mkdir_p(dest.dirname)
|
332
336
|
puts "move #{source} --> #{dest}"
|
333
337
|
mv(source, dest)
|
data/p4ruby.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new { |t|
|
3
3
|
t.name = "p4ruby"
|
4
|
-
t.version = "1.0.
|
4
|
+
t.version = "1.0.9"
|
5
5
|
t.summary = "Ruby interface to the Perforce API"
|
6
6
|
t.author = "Perforce Software (ruby gem by James M. Lawrence)"
|
7
7
|
t.email = "quixoticsycophant@gmail.com"
|
8
|
-
t.homepage = "p4ruby.rubyforge.org"
|
8
|
+
t.homepage = "http://p4ruby.rubyforge.org"
|
9
9
|
t.rubyforge_project = "p4ruby"
|
10
10
|
t.extensions << "Rakefile"
|
11
11
|
t.add_dependency "rake"
|
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: 1.0.
|
4
|
+
version: 1.0.9
|
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: 2009-
|
12
|
+
date: 2009-10-29 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -37,7 +37,9 @@ files:
|
|
37
37
|
- install.rb
|
38
38
|
- p4ruby.gemspec
|
39
39
|
has_rdoc: true
|
40
|
-
homepage: p4ruby.rubyforge.org
|
40
|
+
homepage: http://p4ruby.rubyforge.org
|
41
|
+
licenses: []
|
42
|
+
|
41
43
|
post_install_message:
|
42
44
|
rdoc_options:
|
43
45
|
- --title
|
@@ -70,9 +72,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
72
|
requirements: []
|
71
73
|
|
72
74
|
rubyforge_project: p4ruby
|
73
|
-
rubygems_version: 1.3.
|
75
|
+
rubygems_version: 1.3.5
|
74
76
|
signing_key:
|
75
|
-
specification_version:
|
77
|
+
specification_version: 3
|
76
78
|
summary: Ruby interface to the Perforce API
|
77
79
|
test_files: []
|
78
80
|
|