tefil 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +4 -1
- data/VERSION +1 -1
- data/bin/calc +12 -1
- data/lib/tefil/calculator.rb +0 -1
- data/tefil.gemspec +3 -3
- data/test/test_calculator.rb +0 -1
- 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: 8c197345e51e38cf0cb7297dd9c08fe9ef6a5a3f
|
4
|
+
data.tar.gz: 97fdebfae867adf90d1736252a76137960625cb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83bfea17dc93767c22aaae7ae0f443360ece825c89573fe27996a0c9ecd945007fd87efb8c4edd10ab61f14445972f2ea5203cb5353ceae0336c604a5d657379
|
7
|
+
data.tar.gz: 4483f59090ee57bfd12bd495a39fc495334283d04702daf0ac543db2f387713a1fed4e5434610d20562b9b91b98f241705a2ff3b2cfaabd57768a72c067eb078
|
data/CHANGES
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/bin/calc
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
|
6
6
|
require "pp"
|
7
7
|
require "optparse"
|
8
|
+
require "stringio"
|
8
9
|
#require "rubygems"
|
9
10
|
#require "tempfile"
|
10
11
|
require "tefil"
|
@@ -24,4 +25,14 @@ op.parse!(ARGV)
|
|
24
25
|
options[:overwrite] ||= false
|
25
26
|
|
26
27
|
tf = Tefil::Calculator.new(options)
|
27
|
-
|
28
|
+
if ARGV.empty?
|
29
|
+
tf.filter(ARGV)
|
30
|
+
else
|
31
|
+
## for command line argument
|
32
|
+
io = StringIO.new
|
33
|
+
ARGV.each do |str|
|
34
|
+
io.puts str
|
35
|
+
end
|
36
|
+
io.rewind
|
37
|
+
tf.process_stream(io, $stdout)
|
38
|
+
end
|
data/lib/tefil/calculator.rb
CHANGED
data/tefil.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: tefil 0.1.
|
5
|
+
# stub: tefil 0.1.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "tefil"
|
9
|
-
s.version = "0.1.
|
9
|
+
s.version = "0.1.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["ippei94da"]
|
14
|
-
s.date = "2016-
|
14
|
+
s.date = "2016-05-31"
|
15
15
|
s.description = "This gem provides a framework of text filter.\n Tefil eneable to make text filter commands which have overwrite option easily.\n "
|
16
16
|
s.email = "ippei94da@gmail.com"
|
17
17
|
s.executables = ["calc", "columnform", "eachsentence", "fswiki2md", "indentconv", "indentstat", "linesub", "md2fswiki", "percentpack", "zshescape"]
|
data/test/test_calculator.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tefil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ippei94da
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|