chrislloyd-fancypath 0.5.4 → 0.5.5

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/fancypath.rb +7 -0
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'date'
5
5
  require 'spec/rake/spectask'
6
6
 
7
7
  GEM = "fancypath"
8
- GEM_VERSION = "0.5.4"
8
+ GEM_VERSION = "0.5.5"
9
9
  AUTHORS = ["Myles Byrne", "Chris Lloyd"]
10
10
  EMAIL = "myles@ducknewmedia.com"
11
11
  HOMEPAGE = "http://ducknewmedia.com/fancypath"
data/lib/fancypath.rb CHANGED
@@ -74,6 +74,13 @@ class Fancypath < Pathname
74
74
  self.rename(dest)
75
75
  dest.to_path
76
76
  end
77
+
78
+ def tail(bytes)
79
+ open('r') do |f|
80
+ f.seek(-bytes, IO::SEEK_END)
81
+ f.read
82
+ end
83
+ end
77
84
 
78
85
  alias_method :mv, :move
79
86
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chrislloyd-fancypath
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Myles Byrne