vv 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0d4f7e451fe83d5821a7c3ffb6f6f58d713817c4f71db3f9bff23798dc09392
4
- data.tar.gz: 7daf207132ff4558cde221b922f4746b91176a2c6549f662eeba92e3769394ee
3
+ metadata.gz: 4f85730241772824e99721c4172486afcfda2bf780c1054617de82ab689b02cd
4
+ data.tar.gz: 7d2aa4dfefa395bbf006cedd95d4364c74a9f2a0c7fb76f23e826a5f00050952
5
5
  SHA512:
6
- metadata.gz: 4ed72115dc99519d180bb87313d2f2081dbb3da7953623a2431615d92a70d4608622a1c2fded94805b758b55ef6499d379632eb830e18431ffb761207dd4e1a4
7
- data.tar.gz: c11639c876bb3b4f9713d27301306d1c64f2e7e7f18a1912c724973f8e1bb6fdb519ae968753a72c3f61f3114c04fb9c9a430fb01d2584f0c0ca2351f405eaff
6
+ metadata.gz: 72731d67ba4dfe17b6915b49803a9392d4762c060e14dd067cb24cf9880610b95dc45f82823f185fbe29699f49a43cf201f1a9e2a42e3af2672ee8f662fe7d9e
7
+ data.tar.gz: 44046a685b2f979e12d9db183c920f33553fad651b2df84c94f52d8939210db699483108e4a19b079f8edd865b0cf0366a03d81aef8ca8e60636c350e5af4846
data/lib/vv.rb CHANGED
@@ -8,6 +8,10 @@ class String
8
8
  include VV::StringMethods
9
9
  end
10
10
 
11
+ class File
12
+ include VV::FileMethods
13
+ end
14
+
11
15
  class Hash
12
16
  include VV::HashMethods
13
17
  end
@@ -0,0 +1,25 @@
1
+ module VV
2
+ module FileMethods
3
+
4
+ def self.included(base)
5
+ base.extend(ClassMethods)
6
+ end
7
+
8
+ module ClassMethods
9
+
10
+ def vv_included?
11
+ true
12
+ end
13
+
14
+ def vv_readlines *args, **kwargs
15
+ File.readlines(*args, **kwargs).map!(&:chomp)
16
+ end
17
+
18
+ end
19
+
20
+ def vv_readlines
21
+ self.class.vv_readlines self
22
+ end
23
+
24
+ end
25
+ end
@@ -55,6 +55,10 @@ module VV
55
55
  "_"
56
56
  end
57
57
 
58
+ def newline
59
+ "\n"
60
+ end
61
+
58
62
  # See: `safe_filename?` and `safe_path?` methods
59
63
  def safe_filename_characters
60
64
  numbers = '0-9'
data/lib/vv/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module VV
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Aysan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-08 00:00:00.000000000 Z
11
+ date: 2018-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -64,6 +64,7 @@ files:
64
64
  - lib/vv.rb
65
65
  - lib/vv/array_methods.rb
66
66
  - lib/vv/false_methods.rb
67
+ - lib/vv/file_methods.rb
67
68
  - lib/vv/gem_methods.rb
68
69
  - lib/vv/hash_methods.rb
69
70
  - lib/vv/nil_methods.rb