epitools 0.5.90 → 0.5.91
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 +4 -4
- data/VERSION +1 -1
- data/lib/epitools/path.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c6d7b162f65bd756eda3337887088cf8b95d2b8
|
4
|
+
data.tar.gz: cf4e36eac8eca4fbc4b12c05e45df8f1ebc4785c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ff66deb700f7546b0437090a7dcb014861c5035aff6e006536548ca78478e2e0a2822877324edf021cf919eec3d6f5f9249baad45b17cd3ae4bfad7b23e84d5
|
7
|
+
data.tar.gz: 396555164bb482c1d3c3a61cf87217baa2504a61f63c1c62d39f4bcc362228dd0868257e9a1a4956eef97a6e3ff6507617c18ff14de0bad992708f6da91ca396
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.91
|
data/lib/epitools/path.rb
CHANGED
@@ -691,6 +691,7 @@ class Path
|
|
691
691
|
# Append data to this file (accepts a string, an IO, or it can yield the file handle to a block.)
|
692
692
|
#
|
693
693
|
def append(data=nil)
|
694
|
+
# FIXME: copy_stream might be inefficient if you're calling it a lot. Investigate!
|
694
695
|
self.open("ab") do |f|
|
695
696
|
if data and not block_given?
|
696
697
|
if data.is_an? IO
|
@@ -706,6 +707,14 @@ class Path
|
|
706
707
|
end
|
707
708
|
alias_method :<<, :append
|
708
709
|
|
710
|
+
#
|
711
|
+
# Append data, with a newline at the end
|
712
|
+
#
|
713
|
+
def puts(data=nil)
|
714
|
+
append data
|
715
|
+
append "\n" unless data and data[-1] == "\n"
|
716
|
+
end
|
717
|
+
|
709
718
|
#
|
710
719
|
# Overwrite the data in this file (accepts a string, an IO, or it can yield the file handle to a block.)
|
711
720
|
#
|
@@ -723,6 +732,7 @@ class Path
|
|
723
732
|
end
|
724
733
|
end
|
725
734
|
|
735
|
+
|
726
736
|
###############################################################################
|
727
737
|
# Parsing files
|
728
738
|
###############################################################################
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: epitools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.91
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- epitron
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|