tefil 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3ef66ea997858ff83884169a599185c467dd4c7
4
- data.tar.gz: 66190e623c8c877207106ca7c786b4af25502e93
3
+ metadata.gz: 8c197345e51e38cf0cb7297dd9c08fe9ef6a5a3f
4
+ data.tar.gz: 97fdebfae867adf90d1736252a76137960625cb3
5
5
  SHA512:
6
- metadata.gz: e145abcfdf2cbe51c02f2a2f3ba94f86ce89cdda1ccbac22d909842fe3d5fb6675237442f408a85169cec5de457495f98225821abd38fb91de3a1a09fa5b44de
7
- data.tar.gz: 3786672cd4ebaef84982f497941a24cde3705fed3f77755b1d3b5765cc5646ddecf1c7ca0473ff41a20eb7d8f6f304430758aa711480e7ec801cc2bc77ded4ce
6
+ metadata.gz: 83bfea17dc93767c22aaae7ae0f443360ece825c89573fe27996a0c9ecd945007fd87efb8c4edd10ab61f14445972f2ea5203cb5353ceae0336c604a5d657379
7
+ data.tar.gz: 4483f59090ee57bfd12bd495a39fc495334283d04702daf0ac543db2f387713a1fed4e5434610d20562b9b91b98f241705a2ff3b2cfaabd57768a72c067eb078
data/CHANGES CHANGED
@@ -1,6 +1,9 @@
1
1
  = tefil changelog
2
2
 
3
- == Master (for 0.1.3)
3
+ == Master (for 0.1.4)
4
+
5
+ == Version 0.1.3 [2016-05-31] released
6
+ * bin/calc can accept commandline argument
4
7
 
5
8
  == Version 0.1.2 [2016-04-27] released
6
9
  * Add bin/calc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
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
- tf.filter(ARGV)
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
@@ -4,7 +4,6 @@
4
4
  require 'pp'
5
5
 
6
6
 
7
-
8
7
  class Tefil::Calculator < Tefil::TextFilterBase
9
8
  def initialize(options = {})
10
9
  @options = options
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.2 ruby lib
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.2"
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-04-27"
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"]
@@ -62,6 +62,5 @@ class TC_Calculator < Test::Unit::TestCase
62
62
  # assert_equal(correct, result)
63
63
  #end
64
64
 
65
-
66
65
  end
67
66
 
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.2
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-04-27 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit