devel/rubygem-pathname 0.5.0 MidnightBSD
Representation of the name of a file or directory on the filesystem
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- bsd2, ruby
- Categories
- devel, rubygems
Description
Pathname represents the name of a file or directory on the filesystem, but not the file itself.
The pathname depends on the Operating System: Unix, Windows, etc. This library works with pathnames of local OS, however non-Unix pathnames are supported experimentally.
A Pathname can be relative or absolute. It's not until you try to reference the file that it even matters whether the file exists or not.
Pathname is immutable. It has no method for destructive update.
The goal of this class is to manipulate file path information in a neater way than standard Ruby provides. The examples below demonstrate the difference.
All functionality from File, FileTest, and some from Dir and FileUtils is included, in an unsurprising way. It is essentially a facade for all of these, and more.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/rubygem-pathname | 0.5.0 |
| FreeBSD | devel/rubygem-pathname | 0.5.0 |
| DragonFly | devel/rubygem-pathname | 0.4.0 |
Install
Binary package:
mport install pathname
From mports:
cd /usr/mports/devel/rubygem-pathname && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= pathname>0:devel/rubygem-pathname
Dependencies
Required by 1
Configuration
No options to configure.
- USES
- gem
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| rubygem/pathname-0.5.0.gem | 19968 | d5a331784f6e1f2fefb31c2ff0b8855aabfb661d807284ead9fa47b883d81623 |
Master sites 1
- RG