p4ruby 2020.1.2056123-x64-mingw32 → 2021.1.2265066-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +451 -20
- data/README.md +14 -1
- data/ext/P4/clientprogressruby.cpp +0 -1
- data/ext/P4/clientuserruby.cpp +254 -1
- data/ext/P4/clientuserruby.h +26 -1
- data/ext/P4/extconf.rb +11 -11
- data/ext/P4/p4.cpp +100 -1
- data/ext/P4/p4clientapi.cpp +73 -0
- data/ext/P4/p4clientapi.h +13 -0
- data/ext/P4/p4specdata.cpp +29 -0
- data/ext/P4/p4specdata.h +2 -0
- data/ext/P4/specmgr.cpp +43 -35
- data/lib/2.6/P4.so +0 -0
- data/lib/2.7/P4.so +0 -0
- data/lib/3.0/P4.so +0 -0
- data/lib/P4/version.rb +1 -1
- data/lib/P4.rb +16 -0
- data/lib/P4.so +0 -0
- metadata +7 -6
data/ext/P4/specmgr.cpp
CHANGED
@@ -126,13 +126,13 @@ struct defaultspec {
|
|
126
126
|
"MaxResults;code:402;type:word;len:12;;"
|
127
127
|
"MaxScanRows;code:403;type:word;len:12;;"
|
128
128
|
"MaxLockTime;code:407;type:word;len:12;;"
|
129
|
-
|
129
|
+
"MaxOpenFiles;code:413;type:word;len:12;;"
|
130
130
|
"Timeout;code:406;type:word;len:12;;"
|
131
131
|
"PasswordTimeout;code:409;type:word;len:12;;"
|
132
132
|
"LdapConfig;code:410;type:line;len:128;;"
|
133
133
|
"LdapSearchQuery;code:411;type:line;len:128;;"
|
134
134
|
"LdapUserAttribute;code:412;type:line;len:128;;"
|
135
|
-
|
135
|
+
"LdapUserDNAttribute;code:414;type:line;len:128;;"
|
136
136
|
"Subgroups;code:404;type:wlist;len:32;opt:default;;"
|
137
137
|
"Owners;code:408;type:wlist;len:32;opt:default;;"
|
138
138
|
"Users;code:405;type:wlist;len:32;opt:default;;"
|
@@ -200,12 +200,13 @@ struct defaultspec {
|
|
200
200
|
"Clients;code:458;len:8;;"
|
201
201
|
"Users;code:459;len:8;;"
|
202
202
|
"Files;code:460;len:8;;"
|
203
|
-
|
204
|
-
|
203
|
+
"Repos;code:462;len:8;;"
|
204
|
+
"ExtraCapabilities;code:463;type:llist;len:512;;"
|
205
|
+
},
|
205
206
|
{
|
206
207
|
"protect",
|
207
|
-
|
208
|
-
|
208
|
+
"SubPath;code:502;ro;len:64;;"
|
209
|
+
"Update;code:503;type:date;ro;fmt:L;len:20;;"
|
209
210
|
"Protections;code:501;fmt:C;type:wlist;words:5;opt:default;z;len:64;;"
|
210
211
|
},
|
211
212
|
{
|
@@ -226,36 +227,40 @@ struct defaultspec {
|
|
226
227
|
},
|
227
228
|
{
|
228
229
|
"repo",
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
230
|
+
"Repo;code:1001;rq;ro;fmt:L;len:128;;"
|
231
|
+
"Owner;code:1002;fmt:R;len:32;;"
|
232
|
+
"Created;code:1003;type:date;ro;fmt:L;len:20;;"
|
233
|
+
"Pushed;code:1004;type:date;ro;fmt:R;len:20;;"
|
234
|
+
"ForkedFrom;code:1005;ro;fmt:L;len:128;;"
|
235
|
+
"Description;code:1006;type:text;len:128;;"
|
236
|
+
"DefaultBranch;code:1007;fmt:L;len:32;;"
|
237
|
+
"MirroredFrom;code:1008;fmt:R;len:32;;"
|
238
|
+
"Options;code:1009;type:select;len:10;val:lfs/nolfs;;"
|
239
|
+
"GconnMirrorServerId;code:1010;fmt:L;len:32;;"
|
240
|
+
"GconnMirrorSecretToken;code:NNN;len:36;;"
|
241
|
+
"GconnMirrorStatus;code:NNN;len:8;;"
|
242
|
+
"GconnMirrorExcludedBranches;code:NNN;len:256;;"
|
243
|
+
"GconnMirrorHideFetchUrl;code:NNN;len:5;;"
|
239
244
|
},
|
240
245
|
{
|
241
246
|
"server",
|
242
247
|
"ServerID;code:751;rq;ro;len:32;;"
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
248
|
+
"Type;code:752;rq;len:32;;"
|
249
|
+
"Name;code:753;type:line;len:32;;"
|
250
|
+
"Address;code:754;type:line;len:32;;"
|
251
|
+
"ExternalAddress;code:755;type:line;len:32;;"
|
252
|
+
"Services;code:756;rq;len:128;;"
|
253
|
+
"Options;code:764;type:line;len:32;val:"
|
254
|
+
"nomandatory/mandatory;;"
|
255
|
+
"ReplicatingFrom;code:765;type:line;len:32;;"
|
256
|
+
"Description;code:757;type:text;len:128;;"
|
257
|
+
"User;code:761;type:line;len:64;;"
|
258
|
+
"AllowedAddresses;code:763;type:wlist;len:64;;"
|
259
|
+
"UpdateCachedRepos;code:766;type:wlist;len:64;;"
|
260
|
+
"ClientDataFilter;code:758;type:wlist;len:64;;"
|
261
|
+
"RevisionDataFilter;code:759;type:wlist;len:64;;"
|
262
|
+
"ArchiveDataFilter;code:760;type:wlist;len:64;;"
|
263
|
+
"DistributedConfig;code:762;type:text;len:128;;"
|
259
264
|
},
|
260
265
|
{
|
261
266
|
"spec",
|
@@ -265,6 +270,7 @@ struct defaultspec {
|
|
265
270
|
"Values;code:354;type:wlist;words:2;;"
|
266
271
|
"Presets;code:355;type:wlist;words:2;;"
|
267
272
|
"Openable;code:362;type:wlist;words:2;;"
|
273
|
+
"Maxwords;code:361;type:wlist;words:2;;"
|
268
274
|
"Comments;code:356;type:text;;"
|
269
275
|
},
|
270
276
|
{
|
@@ -281,9 +287,11 @@ struct defaultspec {
|
|
281
287
|
"allsubmit/ownersubmit,unlocked/locked,"
|
282
288
|
"toparent/notoparent,fromparent/nofromparent,"
|
283
289
|
"mergedown/mergeany;open:isolate;;"
|
284
|
-
"
|
285
|
-
"
|
286
|
-
"
|
290
|
+
"ParentView;code:NNN;rq;open:isolate;"
|
291
|
+
"pre:inherit;val:noinherit/inherit;;"
|
292
|
+
"Paths;code:710;rq;type:wlist;words:2;maxwords:3;len:64;open:propagate;fmt:C;;"
|
293
|
+
"Remapped;code:711;type:wlist;words:2;len:64;open:propagate;fmt:C;;"
|
294
|
+
"Ignored;code:712;type:wlist;words:1;len:64;open:propagate;fmt:C;;"
|
287
295
|
"View;code:713;type:wlist;words:2;len:64;;"
|
288
296
|
"ChangeView;code:714;type:llist;ro;len:64;;"
|
289
297
|
},
|
data/lib/2.6/P4.so
CHANGED
Binary file
|
data/lib/2.7/P4.so
CHANGED
Binary file
|
data/lib/3.0/P4.so
ADDED
Binary file
|
data/lib/P4/version.rb
CHANGED
data/lib/P4.rb
CHANGED
@@ -118,6 +118,13 @@ class P4
|
|
118
118
|
PROG_FAILDONE = 2
|
119
119
|
PROG_FLUSH = 3
|
120
120
|
|
121
|
+
# SSO Handler return values constants
|
122
|
+
SSO_PASS = 0 # SSO succeeded (result is an authentication token)
|
123
|
+
SSO_FAIL = 1 # SSO failed (result will be logged as error message)
|
124
|
+
SSO_UNSET = 2 # Client has no SSO support
|
125
|
+
SSO_EXIT = 3 # Stop login process
|
126
|
+
SSO_SKIP = 4 # Fall back to default P4API behavior
|
127
|
+
|
121
128
|
# Mappings for P4#each_<spec>
|
122
129
|
# Hash of type vs. key
|
123
130
|
SpecTypes = {
|
@@ -669,4 +676,13 @@ class P4
|
|
669
676
|
HANDLED
|
670
677
|
end
|
671
678
|
end
|
679
|
+
|
680
|
+
#*****************************************************************************
|
681
|
+
# P4::SSOHandler class.
|
682
|
+
#*****************************************************************************
|
683
|
+
class SSOHandler
|
684
|
+
def authorize(vars, maxLength)
|
685
|
+
[ SSO_SKIP, "" ]
|
686
|
+
end
|
687
|
+
end
|
672
688
|
end # class P4
|
data/lib/P4.so
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: p4ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2021.1.2265066
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Perforce Software, Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby extensions to the C++ Perforce API.
|
14
14
|
email: support@perforce.com
|
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- ext/P4/undefdups.h
|
46
46
|
- lib/2.6/P4.so
|
47
47
|
- lib/2.7/P4.so
|
48
|
+
- lib/3.0/P4.so
|
48
49
|
- lib/P4.rb
|
49
50
|
- lib/P4.so
|
50
51
|
- lib/P4/version.rb
|
@@ -53,7 +54,7 @@ licenses:
|
|
53
54
|
- MIT
|
54
55
|
metadata:
|
55
56
|
documentation_uri: https://www.perforce.com/manuals/p4ruby/Content/P4Ruby/Home-p4ruby.html
|
56
|
-
post_install_message:
|
57
|
+
post_install_message:
|
57
58
|
rdoc_options: []
|
58
59
|
require_paths:
|
59
60
|
- lib
|
@@ -68,8 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
69
|
- !ruby/object:Gem::Version
|
69
70
|
version: '0'
|
70
71
|
requirements: []
|
71
|
-
rubygems_version: 3.
|
72
|
-
signing_key:
|
72
|
+
rubygems_version: 3.2.15
|
73
|
+
signing_key:
|
73
74
|
specification_version: 4
|
74
75
|
summary: Ruby extensions to the C++ Perforce API
|
75
76
|
test_files: []
|