-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update for rfuse 1.2 with latest rubies
Release via TravisCI
- Loading branch information
1 parent
28c9bff
commit 3d96603
Showing
15 changed files
with
226 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,51 @@ | ||
sudo: required | ||
dist: trusty | ||
|
||
jobs: | ||
include: | ||
- os: linux | ||
dist: xenial | ||
- stage: Deploy | ||
script: skip | ||
before_install: [] | ||
install: skip | ||
if: tag =~ /^v\d\.\d\.\d$/ | ||
deploy: | ||
- provider: 'rubygems' | ||
on: | ||
repo: lwoggardner/rfusefs | ||
tags: true | ||
api_key: | ||
secure: "Brdel8bzIiGQ4YNBLi0m3I/XLEMBx+ZYoKIhYfTG7sy4OlUQwbBUfByRqQBdvIBcLAEfJb1shz4yofdLop2bxeI3fFsesLWch3v480jgWlCsxBZoYhglUst/3NIKBKtICdQ9qkJM1qKm/GytYoDAnqosnEFxBpJaZ69GMe+3rYc=" | ||
- stage: 'PreRelease' | ||
if: branch =~ ^rc | ||
script: skip | ||
before_install: [] | ||
install: skip | ||
deploy: | ||
- provider: 'rubygems' | ||
on: | ||
repo: lwoggardner/rfusefs | ||
all_branches: true | ||
condition: '$TRAVIS_BRANCH =~ ^rc' | ||
api_key: | ||
secure: "Brdel8bzIiGQ4YNBLi0m3I/XLEMBx+ZYoKIhYfTG7sy4OlUQwbBUfByRqQBdvIBcLAEfJb1shz4yofdLop2bxeI3fFsesLWch3v480jgWlCsxBZoYhglUst/3NIKBKtICdQ9qkJM1qKm/GytYoDAnqosnEFxBpJaZ69GMe+3rYc=" | ||
language: ruby | ||
|
||
rvm: | ||
- "2.1" | ||
- "2.2" | ||
- "2.0" | ||
- "1.9" | ||
- "2.6" | ||
- "2.7" | ||
- "2.5" | ||
|
||
before_install: | ||
- sudo apt-get update -y | ||
- sudo apt-get install -qq pkg-config fuse libfuse-dev | ||
- sudo modprobe fuse | ||
- sudo chmod 666 /dev/fuse | ||
- sudo chown root:$USER /etc/fuse.conf | ||
- yes | gem update --system -N --force | ||
- gem install bundler | ||
|
||
script: | ||
- bundle exec rake spec | ||
- bundle exec rake | ||
|
||
cache: | ||
bundler: true | ||
bundler: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- | ||
CHANGES.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
1.1.0 / 2020-10 | ||
--------------- | ||
|
||
* With rfuse ~> 1.2 | ||
* Requires Ruby 2.5+ | ||
* Release via Travis CI | ||
|
||
1.0.3 / 2014-12-22 | ||
---------------------- | ||
|
||
* Pushed some internals up to RFuse | ||
* Allow filesystems to implement signal handlers | ||
|
||
1.0.1 / 2013-12-19 | ||
------------------ | ||
|
||
* Add FuseFS.main to create pretty usage messages | ||
* Support extended attributes in filesystems | ||
* Updates and cleanup of PathMapperFS | ||
* Provide SqliteMapperFS | ||
|
||
1.0.0 / 2012-08-07 | ||
------------------ | ||
|
||
* Depend on new rfuse 1.0.0, Ruby 1.9 | ||
* API breaking changes | ||
* order of arguments to {FuseFS.mount}, {FuseFS.start} changed | ||
to account for better option handling in RFuse | ||
|
||
0.8.0 / 2011-02-19 | ||
------------------ | ||
|
||
* Initial port from fusefs | ||
|
||
* Improved raw methods | ||
* new "times" api for including atime,mtime,ctime in stat results | ||
* metadir allow mv directories | ||
* includes PathMapperFS | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
(The MIT License) | ||
|
||
* Copyright (c) 2005 Greg Millam. (FuseFS) | ||
* Copyright (c) 2009 Kyle Maxwell. (FuseFS) | ||
* Copyright (c) 2012 - 2020 Grant Gardner. (RFuseFS) | ||
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the 'Software'), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# rfusefs | ||
|
||
* https://rubygems.org/gems/rfusefs | ||
* https://github.com/lwoggardner/rfusefs | ||
|
||
[<img src="https://badge.fury.io/rb/rfusefs.png" alt="Gem Version" | ||
/>](http://badge.fury.io/rb/rfusefs) | ||
## DESCRIPTION | ||
|
||
RFuseFS is a port of the [FuseFS](http://rubygems.org/gems/fusefs/) library | ||
aimed at allowing Ruby programmers to quickly and easily create virtual | ||
filesystems with little more than a few lines of code. | ||
|
||
RFuseFS is api compatible with FuseFS (0.7.0) | ||
|
||
## SYNOPSIS | ||
|
||
FuseFS provides a layer of abstraction to a programmer who wants to create a | ||
virtual filesystem via FUSE. | ||
|
||
First define a virtual directory by subclassing {FuseFS::FuseDir} | ||
|
||
See samples under /samples and also the following starter classes | ||
|
||
* {FuseFS::FuseDir} | ||
* {FuseFS::MetaDir} | ||
* {FuseFS::DirLink} | ||
* {FuseFS::PathMapperFS} | ||
* {FuseFS::SqliteMapperFS} | ||
|
||
|
||
Then start your filesystem with | ||
|
||
* {FuseFS.main} or {FuseFS.start} | ||
|
||
|
||
Finally to use the filesystem open up your favourite file browser/terminal and | ||
explore the contents under <mountpoint> | ||
|
||
Happy Filesystem Hacking! | ||
|
||
### the hello world filesystem in 14 LOC | ||
|
||
require 'rfusefs' | ||
|
||
class HelloDir | ||
|
||
def contents(path) | ||
['hello.txt'] | ||
end | ||
|
||
def file?(path) | ||
path == '/hello.txt' | ||
end | ||
|
||
def read_file(path) | ||
"Hello, World!\n" | ||
end | ||
|
||
end | ||
|
||
# Usage: #{$0} mountpoint [mount_options] | ||
FuseFS.main() { |options| HelloDir.new } | ||
|
||
## REQUIREMENTS: | ||
|
||
* FUSE (http://fuse.sourceforge.net) | ||
* Ruby (>= 2.5) | ||
* rfuse (~> 1.2) | ||
|
||
|
||
## INSTALL: | ||
|
||
* gem install rfusefs | ||
|
||
## DEVELOPERS: | ||
|
||
After checking out the source, run: | ||
|
||
$ bundle install # install dependencies | ||
$ rake spec # run tests | ||
$ rake yard # generate docs | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.