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.
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
- "MaxOpenFiles;code:413;type:word;len:12;;"
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
- "LdapUserDNAttribute;code:414;type:line;len:128;;"
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
- "Repos;code:462;len:8;;"
204
- },
203
+ "Repos;code:462;len:8;;"
204
+ "ExtraCapabilities;code:463;type:llist;len:512;;"
205
+ },
205
206
  {
206
207
  "protect",
207
- "SubPath;code:502;ro;len:64;;"
208
- "Update;code:503;type:date;ro;fmt:L;len:20;;"
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
- "Repo;code:1001;rq;ro;len:128;;"
230
- "Owner;code:1002;len:32;;"
231
- "Created;code:1003;type:date;ro;fmt:L;len:20;;"
232
- "Pushed;code:1004;type:date;ro;fmt:L;len:20;;"
233
- "ForkedFrom;code:1005;ro;len:128;;"
234
- "Description;code:1006;type:text;len:128;;"
235
- "DefaultBranch;code:1007;len:32;;"
236
- "MirroredFrom;code:1008;len:32;;"
237
- "Options;code:1009;type:select;len:10;val:lfs/nolfs;;"
238
- "GconnMirrorServerId;code:1010;len:32;;"
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
- "Type;code:752;rq;len:32;;"
244
- "Name;code:753;type:line;len:32;;"
245
- "Address;code:754;type:line;len:32;;"
246
- "ExternalAddress;code:755;type:line;len:32;;"
247
- "Services;code:756;rq;len:128;;"
248
- "Options;code:764;type:line;len:32;val:"
249
- "nomandatory/mandatory;;"
250
- "ReplicatingFrom;code:765;type:line;len:32;;"
251
- "Description;code:757;type:text;len:128;;"
252
- "User;code:761;type:line;len:64;;"
253
- "AllowedAddresses;code:763;type:wlist;len:64;;"
254
- "UpdateCachedRepos;code:766;type:wlist;len:64;;"
255
- "ClientDataFilter;code:758;type:wlist;len:64;;"
256
- "RevisionDataFilter;code:759;type:wlist;len:64;;"
257
- "ArchiveDataFilter;code:760;type:wlist;len:64;;"
258
- "DistributedConfig;code:762;type:text;len:128;;"
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
- "Paths;code:710;rq;type:wlist;words:2;maxwords:3;len:64;open:propagate;;"
285
- "Remapped;code:711;type:wlist;words:2;len:64;open:propagate;;"
286
- "Ignored;code:712;type:wlist;words:1;len:64;open:propagate;;"
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
@@ -1,3 +1,3 @@
1
1
  class P4
2
- Version = VERSION = '2020.1.2056123'
2
+ Version = VERSION = '2021.1.2265066'
3
3
  end
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: 2020.1.2056123
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: 2020-12-16 00:00:00.000000000 Z
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.1.2
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: []