p4ruby 0.5.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +4 -5
  2. data/install.rb +27 -37
  3. data/p4ruby.gemspec +1 -1
  4. 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 platforms, the only available Perforce API
16
- libraries are Cygwin ones (as of version 2008.1). Therefore
17
- Cygwin-ruby is currently required under Windows. After launching the
18
- the Cygwin installer (http://cygwin.com), select the ruby package
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
- case RUBY_PLATFORM
107
- when %r!cygwin!i
108
- "cygwinx86"
109
- when %r!darwin!i
106
+ base =
110
107
  case RUBY_PLATFORM
111
- when %r!ppc!i
112
- "darwin80ppc"
113
- when %r!64!
114
- "darwin80x86_64"
115
- else
116
- "darwin80x86"
117
- end
118
- when %r!linux!i
119
- case RUBY_PLATFORM
120
- when %r!2\.6!
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
- "linux26x86"
119
+ "26"
128
120
  end
129
- else
130
- "linux24x86"
131
121
  end
132
- when %r!freebsd!i
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!5\.4!
135
- case RUBY_PLATFORM
136
- when %r!64!
137
- "freebsd54x86_64"
138
- else
139
- "freebsd54x86"
140
- end
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
- "freebsd60x86"
138
+ "ppc"
147
139
  end
148
140
  end
149
- else
150
- nil
151
141
  end
152
142
  end
153
143
 
data/p4ruby.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new { |t|
3
3
  t.name = "p4ruby"
4
- t.version = "0.5.0"
4
+ t.version = "1.0.0"
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"
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.5.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-07 00:00:00 -04:00
12
+ date: 2008-09-08 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15