p4ruby 2014.2.0.pre5 → 2015.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b3f978b58597f0b0dceedf7f041fad06099e1b8
4
- data.tar.gz: bae0a733de191edef6cfd399c5303b45870d5581
3
+ metadata.gz: 1fd1f738293802865fc9ac5ef464281eec0e54d3
4
+ data.tar.gz: 02d19d9c747489c5a2e5aaa4defbfc8e99683f40
5
5
  SHA512:
6
- metadata.gz: 2ff8ca8759d02cd9242e4b442a56003bfa5f9df2a90134e2337ff0f9fc6f94bdf57f0ad8cf03f2b5a0c7cb5c7df86d1d82d32eb6d1bdf1ee90312bc674619f17
7
- data.tar.gz: 8abffff36c41c61349c9bbace9bf5dfe05a7862031d4db41b23d42c6a0bef5d71270fb3b67749227ef12a5a65743400cc51a574897e82713b902f7e05a227617
6
+ metadata.gz: baa197989842ec19c97ae3e1e12c8b1f39b1d81d4760a23c3d8e84340e6116c49d2af0ae6e63172f7cec2d5543bce8d6280b70f82bc15162ba197818b7ed000a
7
+ data.tar.gz: ffbf88542f5c60857f4de4d8cb239972a6eada310d05b5e5df9b66c692504e108831d312a7cb14c948f04445f9ce9018e325871e629a4bbf311872b71bf9dc16
data/README.md ADDED
@@ -0,0 +1,861 @@
1
+ # Release Notes for P4Ruby, Perforce's script API for Ruby
2
+
3
+ Version 2015.1
4
+
5
+ ## Introduction
6
+
7
+ P4Ruby is a native Ruby gem that allows you to run Perforce commands from
8
+ Ruby applications, and retrieve the results in a Ruby-friendly format.
9
+
10
+ P4Ruby is intended to work against a corresponding version of the Perforce
11
+ C++ API, e.g., P4Ruby 2014.2 will be compiled using a 2014.2 version
12
+ of the P4API. You can always install P4Ruby specifying a specific version of
13
+ the P4API.
14
+
15
+ To determine the version of your P4Ruby, and which version of the
16
+ P4API it has been built with, issue the following command:
17
+
18
+ ruby -rP4 -e "puts P4.identify"
19
+
20
+ --------------------------------------------------------------------------
21
+
22
+ ### Installing P4Ruby
23
+
24
+ As of 2015.1, the recommended mechanism for installing P4Ruby is via
25
+ rubygems.org.
26
+
27
+ Before installing, please take care that any older version of P4Ruby that
28
+ may have been installed outside of the Gem process is removed from your
29
+ gempath. The older installation process can not be easily removed and may
30
+ conflict with a gem-based install. Make sure that both P4.rb and P4.so (or
31
+ P4.bundle on OS X) are not available within the load path of Ruby. You can
32
+ use the `puts $:` command in `irb` to determine your current load path.
33
+
34
+ Outside of Windows, p4ruby gem installs must be compiled locally against
35
+ your installation of Ruby. If you can build the core Ruby distribution
36
+ locally, you likely can install P4Ruby without incident. On Windows,
37
+ precompiled gems are available, which already include the P4API and OpenSSL.
38
+
39
+ The main command to install p4ruby is via gem or bundler. (When using the
40
+ default system rubies from OS X or the CentOS Software Collections Library,
41
+ see 'Problems Specifying P4API' below.)
42
+
43
+ gem install p4ruby
44
+
45
+ This will download a corresponding version of the p4api from ftp.perforce.com,
46
+ and will automatically include the openssl version you have locally.
47
+
48
+ If you have downloaded the p4api and unpacked it, you can specify it using the
49
+ `--with-p4api-dir` option.
50
+
51
+ gem install p4ruby -- --with-p4api-dir=DIR
52
+
53
+ In this case, the DIR above is the path to the C++ API distribution that
54
+ should match the major and minor version of P4Ruby. If you omit the
55
+ --with-p4api-dir option, the gem will attempt to download a version of the
56
+ API itself from ftp.perforce.com.
57
+
58
+ Alternatively, you can use Bundler (http://bundler.io). In your Gemfile,
59
+ specify
60
+
61
+ gem 'p4_web_api_client', '~> 2015.1'
62
+
63
+ And then execute:
64
+
65
+ bundle --with-p4api-dir=DIR
66
+
67
+ #### Problems Specifying P4API
68
+
69
+ On older Ruby platforms, such as the default OS X or ruby193 CentOS
70
+ distributions, issues can arise when specifying the P4API directly via
71
+ the command line.
72
+
73
+ In these cases, you may need to indicate the include and lib directories
74
+ directly:
75
+
76
+ gem install p4ruby -- --with-p4api-dir=DIR \
77
+ --with-p4-api-include=DIR/include \
78
+ --with-p4-api-lib=DIR/lib
79
+
80
+ An alternative is to specify the P4API directory using the `p4api_dir`
81
+ environment variable.
82
+
83
+
84
+ --------------------------------------------------------------------------
85
+
86
+ ### Building P4Ruby from Source on Linux or OS X
87
+
88
+ 1. Download the Perforce C++ API from the Perforce FTP site at
89
+ "ftp://ftp.perforce.com/perforce". The API archive is located
90
+ in release and platform-specific subdirectories and is named
91
+ "p4api.tgz".
92
+
93
+ __IMPORTANT__: Mac OS X users MUST use the 'darwin' variant
94
+ of the Perforce API. Using the 'macos' variant
95
+ does not work.
96
+
97
+ Note: 32-bit builds of P4Ruby require a 32-bit version of the
98
+ C++ API and a 32-bit version of Ruby. 64-bit builds of
99
+ P4Ruby require a 64-bit version of the C++ API and a
100
+ 64-bit version of Ruby.
101
+
102
+ Unzip the archive into an empty directory.
103
+
104
+ 2. Extract the P4Ruby API archive into a new, empty directory.
105
+
106
+ 3. In the p4ruby source directory, install dependencies:
107
+
108
+ bundle install
109
+
110
+ 3. In the p4ruby source directory, build the gem:
111
+
112
+ p4api_dir=<absolute path to Perforce C++ API> rake compile
113
+
114
+ 4. Test your distribution, which relies on a locally installed p4d.
115
+
116
+ rake test
117
+
118
+ If `p4d` is not available on your path, indicate it via the `P4D_BIN`
119
+ environment variable before running `rake test`.
120
+
121
+ 5. Install P4Ruby into your local gem cache:
122
+
123
+ rake install
124
+
125
+ #### SSL support
126
+
127
+ Perforce Server 2012.1 and later supports SSL connections and the
128
+ C++ API has been compiled with this support. For applications that
129
+ do not requireSSL support the C++ API provides a stub library
130
+ (libp4sslstub.*) to satisfy the linker requirements.
131
+
132
+ If the P4Ruby build detects that OpenSSL is available, it will be
133
+ included by default. To disable, execute the gem command using
134
+ --without-ssllib. If you want to use libraries deployed to nonstandard
135
+ paths, you will have to alter ext/P4/extconf.rb and include the
136
+ dir_config() directives appropriate for your system.
137
+
138
+ --------------------------------------------------------------------------
139
+
140
+ ### Compatibility Statements
141
+
142
+ #### Server Compatibility
143
+
144
+ You can use any release of P4Ruby with any release of the
145
+ Perforce server later than 2001.1
146
+
147
+ You should use a version of P4Ruby built against a corresponding version
148
+ of the P4API that matches your Perforce server version. Since 2014.2,
149
+ you should try to use the same major and minor variation of P4Ruby as
150
+ used by the Perforce server. Ergo, against Perforce server version 2015.1,
151
+ you would want a P4Ruby version that starts with 2015.1.
152
+
153
+ #### API Compatibility
154
+
155
+ The 2014.2 release of P4Ruby supports the 2014.2 Perforce API.
156
+ Older releases might work but are not supported.
157
+
158
+ #### Ruby Compatibility
159
+
160
+ The 2014.2 release of P4Ruby is supported by installing the gem
161
+ with Ruby MRI releases 2.0, 2.1, and 2.2 with shared library
162
+ support.
163
+
164
+ For detailed compatibility, please check the following table:
165
+
166
+ Ruby Release | P4Ruby Release
167
+ ===================================
168
+ 1.6 | up to 2009.2 (unsupported)
169
+ 1.8 | 2007.3 or later (unsupported)
170
+ 1.9 | 2011.1 or later
171
+ 2.0 | 2014.1 or later
172
+ 2.1 | 2015.1 or later
173
+ 2.2 | 2015.1 or later
174
+
175
+ It is recommended that you use a Ruby distribution that can deploy
176
+ native gems easily, which, outside of Windows means obtaining a source
177
+ distribution of ruby and building it locally. This is easily done via RVM,
178
+ and can be installed system-wide, with other features (like wrappers) that
179
+ allow you to update the local installation of Ruby as security patches are
180
+ released. If using RVM, be sure to use --disable-binary when installing
181
+ your version of Ruby, to avoid any precompiled distributions that may not
182
+ have shared library support configured, which is needed for Ruby
183
+ extensions.
184
+
185
+ In general, Ruby VMs installed via package managers are not officially
186
+ coordinated with the MRI releases available on ruby-lang.org.
187
+
188
+ We do verify that p4ruby works with Ruby 1.9 on Debian (and Ubuntu), and
189
+ on CentOS 6 using the Software Collections Library. These are considered
190
+ "stable" distributions, and do receive security updates.
191
+
192
+ Other versions of Ruby, such as the default distribution of OS X may not
193
+ work. The default OS X Ruby is infrequently updated by Apple, and is known
194
+ to contain issues that do not seem to be patched.
195
+
196
+ #### OpenSSL Compatibility
197
+
198
+ To build P4Ruby with encrypted communication support, you must
199
+ use the version of OpenSSL that Perforce C/C++ API has been
200
+ built against. Running P4Ruby linked to an older library will
201
+ fail with the error:
202
+
203
+ "SSL library must be at least version 1.0.1."
204
+
205
+ The 2014.1 release of P4Ruby is supported with OpenSSL 1.0.1
206
+
207
+ For detailed compatibility, please check the following table:
208
+
209
+ Perforce C/C++ API Version | OpenSSL Release
210
+ ============================================
211
+ 2012.1 | 1.0.0
212
+ 2012.2 | 1.0.1g+
213
+ 2014.1 | 1.0.1g+
214
+ 2015.1 | 1.0.1m+
215
+
216
+
217
+ #### Platform Compatibility
218
+
219
+ Until MinGW-w64 ports are available for the underlying Perforce C/C++
220
+ API, precompiled Windows gems are not available for p4ruby. It is possible
221
+ to generate precompiled gems; but understand that you will have to build
222
+ the P4API using the MinGW-w64 toolchain. This is a non-trivial task and
223
+ beyond the scope fo this document.
224
+
225
+ Note: As of 2012.1, a universal build of the Perforce C/C++
226
+ API is no longer available for Darwin. P4Ruby is now
227
+ a 64-bit only library on Darwin and must be built with
228
+ a 64-bit version of the Perforce C/C++ API for Darwin.
229
+ This has been tested with a universal build of Ruby and
230
+ is known to work.
231
+
232
+ #### Compiler Compatibility
233
+
234
+ To build P4Ruby from source, you must use a version of Ruby that
235
+ has been compiled with the same compiler used to build the
236
+ Perforce C++ API: for most platforms, use gcc/g++.
237
+
238
+ Attempting to use a different compiler or a different version
239
+ of the compiler causes linker errors due to differences in name
240
+ handling between compilers.
241
+
242
+ #### Compatibility with Previous Releases
243
+
244
+ Unless otherwise stated below, the 2014.1 release of P4Ruby is
245
+ compatible with previous releases from Perforce Software.
246
+
247
+ #### Known Limitations
248
+
249
+ The Perforce client-server protocol is not designed to support
250
+ multiple concurrent queries over the same connection. For this
251
+ reason, multi-threaded applications using the C++ API or the
252
+ script APIs (P4Perl, P4Ruby, etc.) should ensure that a
253
+ separate connection is used for each thread or that only one
254
+ thread may use a shared connection at a time.
255
+
256
+
257
+ ## Deleted Methods
258
+
259
+ The following methods have been deleted from the `P4` class and
260
+ are no longer available:
261
+
262
+ - `output` The output is returned by the `run*` methods
263
+ - `parse_forms` Form parsing is now always on
264
+ - `tagged` See tagged? and tagged= below.
265
+
266
+ ## Tagged Mode and Form Parsing
267
+
268
+ In P4Ruby, both form parsing and tagged output are on by
269
+ default.
270
+
271
+ Form parsing cannot be explicitly disabled, but tagged output can
272
+ be turned on and off by setting p4.tagged as follows:
273
+
274
+ p4.tagged = false # Disabled
275
+ p4.tagged = true # Enabled
276
+
277
+ Because form parsing does not work when tagged output is disabled,
278
+ this method can be used to disable form parsing if necessary.
279
+
280
+ --------------------------------------------------------------------------
281
+ ## Change overview
282
+
283
+ This document lists all user-visible changes to P4Ruby
284
+ from release 2007.3, the first supported P4Ruby release.
285
+
286
+ Perforce numbers releases YYYY.R/CCCCC, e.g. 2002.1/30547.
287
+ YYYY is the year; R is the release of that year; CCCCC is the
288
+ bug fix change level. Each bug fix in these release notes is
289
+ marked by its change number. Any build includes (1) all bug fixes
290
+ of all previous releases and (2) all bug fixes of the current
291
+ release up to the bug fix change level.
292
+
293
+ --------------------------------------------------------------------------
294
+
295
+ Changes in both 2015.2.0.pre0 and 2015.1.0
296
+
297
+ - Applied change to P4ClientApi::SetCharset, that if it is set to "none", then
298
+ we will ignore the setting. The P4API enviro file handling seems to always
299
+ create this setting and apply it in various circumstances.
300
+
301
+ Changes in 2015.1.0
302
+
303
+ - Updated spec mappings in specmgr.cpp to be up to date with the 2015.1 P4API
304
+
305
+ - Allow the P4_BIN environment variable to be set to point to a p4d for the
306
+ testing library (used by the `rake test` task).
307
+
308
+ New functionality in 2014.2
309
+
310
+ - (SIR#28879 / P4RUBY-25)
311
+
312
+ Release P4Ruby as Gem. Until this point, the gems available
313
+ on rubygems.org were unofficial builds, and prone to fail in
314
+ non-interactive environments like bundler.
315
+
316
+ - (SIR#75097 / P4RUBY-169)
317
+
318
+ Add `enviro_file` property to P4 object, which underneath, uses the
319
+ new `SetEnviroFile`/`GetEnviroFile` mechanism from the 14.2 C++ API.
320
+
321
+ Changes in 2014.2.0.pre6
322
+
323
+ - Documented workarounds to installation failures on the OS X default Ruby
324
+ installation.
325
+
326
+ Changes in 2014.2.0.pre5
327
+
328
+ - Fixed an issue where using the --with-p4api-dir option to gem install
329
+ would not actually set up the include and lib compilation directory
330
+ correctly.
331
+
332
+ - No longer distributing precompiled builds for linux or OS X due to
333
+ inadequate information from gem to match the Ruby distribution correctly.
334
+
335
+ - No longer embedding the C++ P4API to keep the total file size down to
336
+ allow the gem to be distributed via RubyGems.org.
337
+
338
+ - Changed logic to call p4.charset=nil if charset is already nil or resolves
339
+ to 'none'. Internally, this will trigger a call to ClientApi::SetTrans(0),
340
+ which should disable character set autodetection.
341
+
342
+ Bugs fixed in 2014.2.0.pre4
343
+
344
+ - (BUG#77207 / P4RUBY-176)
345
+ If the user has specified 'P4CHARSET=none' in a configuration file, or
346
+ has not set p4.charset='auto' (and it's default value was initialized to
347
+ 'none' by the C++ API), automatically disable character set detection.
348
+ This can cause the API to break when connecting to non-unicode servers
349
+ even though it appears to be configured to not be a unicode client.
350
+
351
+ - The default C++ API version should be included with the gem source, to
352
+ avoid calls to ftp.perforce.com.
353
+
354
+ Bugs fixed in 2014.2.0.pre3
355
+
356
+ - (BUG#75096 / P4RUBY-168)
357
+ Spec mappings updated to 14.2 definitions.
358
+
359
+ - (TASK#76795 / P4RUBY-176)
360
+ Configuring pre-compiled gems for Linux and OS X, for supported
361
+ Ruby versions (2.0, 2.1, 2.2).
362
+
363
+ Bugs fixed in 2014.2.0.pre2
364
+
365
+ - (BUG#76321 / P4RUBY-171)
366
+ `gem install` fails using source gem distribution inside of a Docker
367
+ environment due to passive FTP mode not enabled early enough.
368
+
369
+ --------------------------------------------------------------------------
370
+
371
+ New functionality in 2014.1
372
+
373
+ - 807216 (SIR#70070)
374
+
375
+ P4Ruby now supports the P4IGNORE file feature introduced
376
+ in the 2013.2 server. Three new methods have been added
377
+ to support this functionality:
378
+
379
+ P4#ignore_file - Report current file
380
+ P4#ignore_file= - Set ignore file
381
+ P4#ignored?( <file> ) - Test if <file> is
382
+ ignored
383
+
384
+ - 807216, 750979 (SIR#70093)
385
+
386
+ P4Ruby now supports the Ruby 2.0 series of rubies.
387
+
388
+ --------------------------------------------------------------------------
389
+
390
+ Bugs fixed in 2013.1
391
+
392
+ - 733921 (Bug#63887)
393
+
394
+ P4Ruby no longer crashes when an exception is raised from
395
+ the block passed to P4#run_resolve.
396
+
397
+ --------------------------------------------------------------------------
398
+
399
+ New functionality in 2012.2
400
+
401
+ - 525301 (Bug #59803)
402
+
403
+ P4Ruby now supports Apple Mountain Lion (10.8).
404
+
405
+ - 509253 (Bug #56480)
406
+
407
+ Added P4#run_tickets() method to list local tickets.
408
+ Note that P4.run('tickets') still gives the old error
409
+ message "Must upgrade to 2004.2 p4 to access tickets."
410
+
411
+ - 505980 (Bug #56514)
412
+
413
+ Support for the new progress indicator API. P4Ruby
414
+ supplies a new progress attribute, which can take an
415
+ instance of P4::Progress class or subclass. Progress
416
+ information is currently only supported for submits and
417
+ 'sync -q'. Details can be found in the documentation.
418
+
419
+ - 499586 (Bug #56520)
420
+
421
+ New convenience method P4#each_<specs>() that allows
422
+ easy iteration through some or all spec objects such as
423
+ clients or changes. Details can be found in the documentation.
424
+
425
+ Bugs fixed in 2012.2
426
+
427
+ - 525097 (Bug #59786)
428
+
429
+ Building P4Ruby with MinGW could generate the link error.
430
+
431
+ g++: unrecognized option '-static-libstdc++'
432
+
433
+ This has been fixed.
434
+
435
+ - 505548 (Bug #58649)
436
+
437
+ P4#parse_client could raise the exception "Unknown field name
438
+ 'StreamAtChange'." when parsing a stream client workspace.
439
+ Internal spec definition has been updated to resolve this.
440
+
441
+ --------------------------------------------------------------------------
442
+
443
+ New functionality in 2012.1
444
+
445
+ - 419591 (Bug #51895)
446
+
447
+ P4Ruby supports SSL connections if compiled with SSL support.
448
+ Instructions on how to compile with SSL support can be found
449
+ at the top of this document under "Building P4Ruby from Source"
450
+ and in the documentation.
451
+
452
+ P4.identify will report the version of the OpenSSL library
453
+ used to build the Perforce C++ API (not the version P4Ruby
454
+ is linked against).
455
+
456
+ - 415643
457
+
458
+ P4Ruby will now only build a 64-bit version of the library
459
+ on Darwin.
460
+
461
+ - 413362 (Bug #51899)
462
+
463
+ Enable "action resolve" to support resolves of branches,
464
+ deletes and file types. The existing P4::MergeData class
465
+ has been extended and the additional attributes will be
466
+ populated for an 'action resolve'. Details of the
467
+ additional attributes can be found in the documentation.
468
+
469
+ Bugs fixed in 2012.1
470
+
471
+ - 420839 (Bug #52952)
472
+
473
+ Accessing the base_name attribute of a P4::MergeData
474
+ object resulted in a segmentation fault when resolving
475
+ binary files. This has now been fixed and all empty
476
+ fields will return Nil.
477
+
478
+ - 410916, 410702 (Bug #52320)
479
+
480
+ Exceptions thrown during P4.run_resolve are now raised
481
+ up to the user. If an exception is encountered during the
482
+ block's execution, P4Ruby will skip the remaining files.
483
+
484
+ --------------------------------------------------------------------------
485
+
486
+ New functionality in 2011.1
487
+
488
+ - 405913
489
+
490
+ New method P4#messages() returns all messages from the
491
+ server as objects. Script writers can test the severity
492
+ of the messages to know if they are output messages (E_INFO),
493
+ warnings (E_WARN), or errors (E_FAILED/E_FATAL).
494
+
495
+ P4#errors() and P4#warnings still return the errors and
496
+ warnings as strings for backwards compatibility.
497
+
498
+ P4::Message objects have the following methods:
499
+
500
+ P4::Message#severity - Returns the severity of the
501
+ message, which may be one of the
502
+ following values:
503
+
504
+ E_EMPTY # nothing yet
505
+ E_INFO # something good happened
506
+ E_WARN # something not good happened
507
+ E_FAILED # user did something wrong
508
+ E_FATAL # system broken -- nothing can continue
509
+
510
+ P4::Message#generic - Returns the generic class of
511
+ the error, which may be one
512
+ of the following values:
513
+
514
+ EV_NONE # misc
515
+ EV_USAGE # request not consistent with dox
516
+ EV_UNKNOWN # using unknown entity
517
+ EV_CONTEXT # using entity in wrong context
518
+ EV_ILLEGAL # trying to do something you can't
519
+ EV_NOTYET # something must be corrected first
520
+ EV_PROTECT # protections prevented operation
521
+ EV_EMPTY # action returned empty results
522
+ EV_FAULT # inexplicable program fault
523
+ EV_CLIENT # client side program errors
524
+ EV_ADMIN # server administrative action required
525
+ EV_CONFIG # client configuration inadequate
526
+ EV_UPGRADE # client or server too old to interact
527
+ EV_COMM # communications error
528
+ EV_TOOBIG # not even Perforce can handle this much
529
+
530
+ P4::Message#msgid - Return the unique ID of the
531
+ message.
532
+
533
+ P4::Message#to_s - Convert the object to a string
534
+
535
+ P4::Message#inspect - Debugging support
536
+
537
+
538
+ - 338410 (Bug #47374)
539
+
540
+ P4Ruby supports setting values in the registry (on those
541
+ platforms that support it).
542
+
543
+ The command P4#set_env( var, val ) will set a registry
544
+ variable on platforms that support this action or raise
545
+ a P4Exception for those that don't.
546
+
547
+ The command P4#set_env( var, "" ) unsets a registry variable.
548
+
549
+ - 333292 (Bug #36121)
550
+
551
+ P4Ruby now supports Ruby 1.9
552
+
553
+ - 331384
554
+
555
+ P4Ruby can now be compiled with the Mingw compiler using
556
+ the MinGW P4Api build.
557
+
558
+ - 328203 (Bug #45861)
559
+
560
+ Enable streams in P4Ruby by default. With this change,
561
+ streams specific specs such as streams depots are listed.
562
+ Disable the listing of streams specific specs by either
563
+ setting the api_level to a value below 70 or by disabling
564
+ stream handling explicitly through the P4.streams attribute:
565
+
566
+ p4.streams = false
567
+
568
+ - 322353 (Bug #42250)
569
+
570
+ P4Ruby supports a callback interface by providing a
571
+ P4#handler attribute. Set P4#handler to an instance of a
572
+ subclass of P4::OutputHandler to enable callbacks.
573
+ When a handler is defined, P4Ruby will invoke the handler
574
+ for every response it receives from the Perforce Server
575
+ immediately instead of collecting all results together in
576
+ an array first. This can be used to make applications more
577
+ scalable and more responsive if large results are expected.
578
+ See the documentation for details on the OutputHandler class.
579
+
580
+ Bugs fixed in 2011.1
581
+
582
+ - 405913 (Bug #43426)
583
+
584
+ Running 'print' on a file that started with '---' would
585
+ cause an exception in Ruby. This is now fixed.
586
+
587
+ There is still an oddity when p4.track = 1 and a user runs
588
+ p4.run_print() on a file that only has lines starting with
589
+ '--- '. In that case, the output of the print is lost.
590
+
591
+ Disable tracking by setting p4.track = 0 (the default) will
592
+ solve this problem.
593
+
594
+ - 405913 (Bug #41350)
595
+
596
+ Info messages now shown in P4#Messages.
597
+
598
+ - 385159 (Bug #49324)
599
+
600
+ On Windows Vista, Windows 7, or Windows 2008, a client running as
601
+ Administrator would fail to properly process file names in
602
+ non-ASCII character sets (such as Shift-JIS).
603
+
604
+ - 338903 (Bug #44589)
605
+
606
+ Extra dot at the end of the extracted directory path has been
607
+ removed.
608
+
609
+ - 338437 (Bug #39580)
610
+
611
+ P4#identify() reports the platform on AMD64 as X86_64
612
+ in line with all other Perforce products.
613
+
614
+ - 332453
615
+
616
+ Updated the stored spec templates for client, change, group,
617
+ spec and user. Added spec template for new spec type
618
+ streams. These are required, for example, for form-triggers
619
+ that do not connect to the server first.
620
+
621
+ - 329351 (Bug #41271)
622
+
623
+ Include 'extraTag' fields in P4::Spec objects
624
+
625
+ - 328578 (Bug #39264)
626
+
627
+ P4#identify() now reports P4Ruby as P4RUBY in line with all
628
+ other Perforce products. It will also include the build
629
+ number of the Perforce C/C++ API that it is built with.
630
+
631
+ --------------------------------------------------------------------------
632
+
633
+ New functionality in 2010.2
634
+
635
+ - 260859
636
+
637
+ Added new SetTrack() and GetTrack() methods.
638
+
639
+ For more details about server performance tracking see:
640
+ http://kb.perforce.com/article/883
641
+
642
+ - 255945, 255949, 269012
643
+
644
+ New method P4#messages() returns all messages from the
645
+ server as objects. Script writers can test the severity
646
+ of the messages to know if they are output messages (E_INFO),
647
+ warnings (E_WARN), or errors (E_FAILED/E_FATAL).
648
+
649
+ P4#errors() and P4#warnings still return the errors and
650
+ warnings as strings for backwards compatibility.
651
+
652
+ P4::Message objects have the following methods:
653
+
654
+ `P4::Message#severity` - Returns the severity of the
655
+ message, which may be one of the
656
+ following values:
657
+
658
+ E_EMPTY # nothing yet
659
+ E_INFO # something good happened
660
+ E_WARN # something not good happened
661
+ E_FAILED # user did something wrong
662
+ E_FATAL # system broken -- nothing can continue
663
+
664
+ `P4::Message#generic` - Returns the generic class of
665
+ the error, which may be one
666
+ of the following values:
667
+
668
+ EV_NONE # misc
669
+ EV_USAGE # request not consistent with dox
670
+ EV_UNKNOWN # using unknown entity
671
+ EV_CONTEXT # using entity in wrong context
672
+ EV_ILLEGAL # trying to do something you can't
673
+ EV_NOTYET # something must be corrected first
674
+ EV_PROTECT # protections prevented operation
675
+ EV_EMPTY # action returned empty results
676
+ EV_FAULT # inexplicable program fault
677
+ EV_CLIENT # client side program errors
678
+ EV_ADMIN # server administrative action required
679
+ EV_CONFIG # client configuration inadequate
680
+ EV_UPGRADE # client or server too old to interact
681
+ EV_COMM # communications error
682
+ EV_TOOBIG # not even Perforce can handle this much
683
+
684
+ `P4::Message#msgid` - Return the unique ID of the message.
685
+
686
+ `P4::Message#to_s` - Convert the object to a string
687
+
688
+ `P4::Message#inspect` - Debugging support
689
+
690
+ Bugs fixed in 2010.2
691
+
692
+ - 287185 (Bug #43426)
693
+
694
+ Running 'print' on a file that started with '---' would
695
+ cause an exception in Ruby. This is now fixed.
696
+ There is still an oddity when p4.track = 1 and a user runs
697
+ p4.run_print() on a file that only has lines starting with
698
+ '--- '. In that case, the output of the print is lost.
699
+ Disable tracking by setting p4.track = 0 (the default) will
700
+ solve this problem.
701
+
702
+ --------------------------------------------------------------------------
703
+
704
+ New functionality in 2010.1
705
+
706
+ - 232984
707
+
708
+ Removed old Ruby 1.6 compatibility code that was no longer
709
+ required. This paves the way for Ruby 1.9 compatibility.
710
+
711
+ - 230644
712
+
713
+ It's now unnecessary to run a command before calling the
714
+ following methods:
715
+
716
+ P4#server_level
717
+ P4#server_case_sensitive?
718
+ P4#server_unicode?
719
+
720
+ If no command has been run, P4Ruby will automatically run a
721
+ 'p4 info' in order to gather the required information.
722
+
723
+ - 230191
724
+
725
+ Added new P4#server_unicode? method that allows script
726
+ writers to test whether or not a Perforce Server is in
727
+ internationalized (unicode) mode. At least one Perforce
728
+ command must have been executed against the server before
729
+ this method can be called.
730
+
731
+ - 230190
732
+
733
+ Added new P4::VERSION, P4::OS, and P4::PATCHLEVEL constants
734
+ so that script writers can test the installation of P4Ruby
735
+ without having to parse the output of P4::Identify()
736
+
737
+ --------------------------------------------------------------------------
738
+
739
+ New functionality in 2009.2
740
+
741
+ - 214454 (Bug #32916)
742
+
743
+ P4#port= now raises a P4Exception if called after P4#connect().
744
+
745
+ - 214449 (Bug #35416)
746
+
747
+ Added a P4#server_case_sensitive? method that enables scripts
748
+ to detect whether the server is case-sensitive. Cannot be
749
+ called until a command has been issued to the server.
750
+
751
+ Bugs fixed in 2009.2
752
+
753
+ - 214445,214999 (Bug #35410)
754
+
755
+ P4Ruby now correctly tracks disconnects from the server.
756
+
757
+ - 222727 (Bug #36568)
758
+
759
+ The Map class removed '-' and '+' from the path if the
760
+ form Map.insert(lhs, rhs) was used, even if these characters
761
+ did not appear at the beginning of the path.
762
+ Now dashes and pluses are preserved within the path.
763
+
764
+ --------------------------------------------------------------------------
765
+
766
+ New functionality in 2009.1
767
+
768
+ - 191900 (Bug #26729)
769
+
770
+ A new method:
771
+
772
+ P4#tagged( aBool ) { block }
773
+
774
+ has been added to the P4 class. This method temporarily
775
+ toggles the use of tagged output for the duration of
776
+ the block and resets it when the block terminates.
777
+
778
+ Bugs fixed in 2009.1
779
+
780
+ - 191889 (Bug #29911)
781
+
782
+ Calling P4#run_resolve() or P4#run( 'resolve' ) without
783
+ a block or a previous call to P4#input no longer causes an
784
+ infinite loop.
785
+
786
+ - 191623,191627 (Bug #32918)
787
+
788
+ P4Ruby now correctly parses jobs when the jobspec contains
789
+ field names ending in numbers.
790
+
791
+ --------------------------------------------------------------------------
792
+
793
+ New functionality in 2008.2
794
+
795
+ - 162422 (Bug #30364), 166158
796
+
797
+ A new class, P4::Map, enables users to
798
+ create and use Perforce mappings without requiring
799
+ a connection to a server. Methods in the P4::Map class are:
800
+
801
+ P4::Map.new Constructor
802
+ P4::Map.join Join two maps to create a third
803
+ P4::Map#clear Empty a map
804
+ P4::Map#count Return the number of entries
805
+ P4::Map#empty? Tests whether a map object is empty
806
+ P4::Map#insert Inserts an entry into the map
807
+ P4::Map#translate Translate a string through a map
808
+ P4::Map#includes? Tests whether a path is mapped
809
+ P4::Map#reverse Swap left and right sides of the mapping
810
+ P4::Map#lhs Returns the left side as an array
811
+ P4::Map#rhs Returns the right side as an array
812
+ P4::Map#to_a Returns the map as an array
813
+
814
+ Bugs fixed in 2008.2
815
+
816
+ - 169159 (Bug #29935, Bug #31096), 165338
817
+
818
+ P4Ruby now correctly loads the value of P4CHARSET from the
819
+ environment.
820
+
821
+ --------------------------------------------------------------------------
822
+
823
+ New functionality in 2008.1
824
+
825
+ - 152356 (Bug #29022)
826
+
827
+ A new method 'P4#env( var )' method has been added to
828
+ the P4 class. This instance method enables the caller
829
+ to interrogate the Perforce environment, including
830
+ reading Perforce variables from P4CONFIG files and,
831
+ on Windows, the registry. P4#cwd= now loads any
832
+ P4CONFIG file settings that are appropriate to the
833
+ new working directory.
834
+
835
+ - 153005 (Bug #29308)
836
+
837
+ P4Ruby now supports Mac OS X 10.5.
838
+
839
+ --------------------------------------------------------------------------
840
+
841
+ Bugs fixed in 2007.3
842
+
843
+ - 151167 (Bug #28774)
844
+
845
+ The Makefile generated on some Linux platforms (notably
846
+ Ubuntu 7.10) was not correct, and attempted to link P4Ruby
847
+ using 'cc' instead of 'c++', causing an 'undefined symbol'
848
+ error (typically '_ZTVN10__cxxabiv120__si_class_type_infoE') ,
849
+ when attempting to use P4Ruby. This problem has been corrected.
850
+
851
+ - 150577 (Bug #28704)
852
+
853
+ The presence of deleted revisions in a file's history
854
+ might lead to incorrect fileSize and digest
855
+ attributes for other revisions in the output of
856
+ P4#run_filelog. This problem has been corrected.
857
+
858
+ - 150576 (Bug #28773)
859
+
860
+ P4::Revision#filesize() always returned nil. This
861
+ problem has been corrected.