epitools 0.5.121 → 0.5.122
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/autoloads.rb +15 -2
- data/lib/epitools/core_ext.rb +2 -0
- data/lib/epitools/core_ext/class.rb +54 -0
- data/lib/epitools/core_ext/hash.rb +8 -0
- data/lib/epitools/core_ext/module.rb +22 -0
- data/lib/epitools/core_ext/object.rb +6 -37
- data/lib/epitools/core_ext/string.rb +7 -0
- data/lib/epitools/minimal.rb +2 -0
- data/lib/epitools/path.rb +4 -4
- data/lib/epitools/slop.rb +672 -0
- data/lib/epitools/slop/LICENSE +20 -0
- data/lib/epitools/slop/commands.rb +190 -0
- data/lib/epitools/slop/option.rb +210 -0
- data/lib/epitools/wm.rb +17 -0
- data/spec/core_ext_spec.rb +38 -0
- data/spec/path_spec.rb +8 -1
- metadata +9 -3
data/spec/path_spec.rb
CHANGED
|
@@ -156,11 +156,18 @@ describe Path do
|
|
|
156
156
|
it "parses files" do
|
|
157
157
|
data = {"hello"=>"there"}
|
|
158
158
|
|
|
159
|
-
f = Path
|
|
159
|
+
f = Path.tmpfile.with(ext: "json")
|
|
160
160
|
f.write_json(data)
|
|
161
161
|
f.parse.should == data
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
+
it "parses csvs" do
|
|
165
|
+
f = Path.tmpfile.with(ext: "csv")
|
|
166
|
+
f.write("1,2,3\n4,5,6\n")
|
|
167
|
+
rows = f.parse
|
|
168
|
+
rows.to_a.should == [ %w[1 2 3], %w[4 5 6] ]
|
|
169
|
+
end
|
|
170
|
+
|
|
164
171
|
it "makes paths THREE WAYS!" do
|
|
165
172
|
[
|
|
166
173
|
Path(__FILE__),
|
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.122
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- epitron
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -52,12 +52,14 @@ files:
|
|
|
52
52
|
- lib/epitools/colored.rb
|
|
53
53
|
- lib/epitools/core_ext.rb
|
|
54
54
|
- lib/epitools/core_ext/array.rb
|
|
55
|
+
- lib/epitools/core_ext/class.rb
|
|
55
56
|
- lib/epitools/core_ext/enumerable.rb
|
|
56
57
|
- lib/epitools/core_ext/file.rb
|
|
57
58
|
- lib/epitools/core_ext/hash.rb
|
|
58
59
|
- lib/epitools/core_ext/io.rb
|
|
59
60
|
- lib/epitools/core_ext/matrix.rb
|
|
60
61
|
- lib/epitools/core_ext/misc.rb
|
|
62
|
+
- lib/epitools/core_ext/module.rb
|
|
61
63
|
- lib/epitools/core_ext/numbers.rb
|
|
62
64
|
- lib/epitools/core_ext/object.rb
|
|
63
65
|
- lib/epitools/core_ext/range.rb
|
|
@@ -82,6 +84,10 @@ files:
|
|
|
82
84
|
- lib/epitools/rash.rb
|
|
83
85
|
- lib/epitools/ratio.rb
|
|
84
86
|
- lib/epitools/semantic_version.rb
|
|
87
|
+
- lib/epitools/slop.rb
|
|
88
|
+
- lib/epitools/slop/LICENSE
|
|
89
|
+
- lib/epitools/slop/commands.rb
|
|
90
|
+
- lib/epitools/slop/option.rb
|
|
85
91
|
- lib/epitools/sys.rb
|
|
86
92
|
- lib/epitools/sys/mem.rb
|
|
87
93
|
- lib/epitools/sys/misc.rb
|
|
@@ -133,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
133
139
|
- !ruby/object:Gem::Version
|
|
134
140
|
version: '0'
|
|
135
141
|
requirements: []
|
|
136
|
-
rubygems_version: 3.0.
|
|
142
|
+
rubygems_version: 3.0.4
|
|
137
143
|
signing_key:
|
|
138
144
|
specification_version: 3
|
|
139
145
|
summary: Not utils... METILS!
|