zinbei 1.1.1.1 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sava +10 -0
- data/bin/zinbei +12 -0
- data/lib/scom.rb +32 -0
- data/lib/zinbei.rb +1 -1
- data/lib/zinbei/version.rb +1 -1
- data/zinbei.gemspec +2 -2
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40391f10362eaa49f3bed6088feb2d7466cb4f1e
|
4
|
+
data.tar.gz: 6d8d491a4183f1e95e08c392ad461dc19f1be515
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cfc9c20632959d0b0010b0ada9e82ed014c339117c7753953bee2978982bbc5ae04bea319d4e5a1ed9ad3712a132db4a65215dfe5d497cbec8ff280b2fd097d
|
7
|
+
data.tar.gz: adb64f95ddf939d1bbd054c691eebd7d9ef8ce17f11888ed6e356dc88cd58f738f3927566e9569a90a1b25a7519d22628435992c86b916591aef93ad7d78c74a
|
data/bin/sava
ADDED
data/bin/zinbei
CHANGED
@@ -155,6 +155,18 @@ $zinbei -z notojima.txt
|
|
155
155
|
If it evaluates whether there is any character string of wajima
|
156
156
|
to notojima.txt and is in it, one of them will be outputted!
|
157
157
|
|
158
|
+
[japanese name: sava,English name: scomber]
|
159
|
+
|
160
|
+
< how to use>
|
161
|
+
|
162
|
+
[sava] [Filename (read)] [Filename (write)] [change before word] [change after word]
|
163
|
+
|
164
|
+
<Example>
|
165
|
+
|
166
|
+
>sava Sample.txt Example.txt roman ruby
|
167
|
+
|
168
|
+
Example.txt mkdir_file after roman → ruby changed.
|
169
|
+
|
158
170
|
'
|
159
171
|
puts 'COMMAND'.center(60,'-')
|
160
172
|
end
|
data/lib/scom.rb
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
|
4
|
+
Encoding.default_internal = "SJIS"
|
5
|
+
|
6
|
+
class Zinbei
|
7
|
+
|
8
|
+
def Scom
|
9
|
+
one = ARGV[0]
|
10
|
+
two = ARGV[1]
|
11
|
+
File.open(two, 'a:sjis') do |out_f|
|
12
|
+
File.open(one) do |in_f|
|
13
|
+
three = /#{ARGV[2]}/o
|
14
|
+
four = ARGV[3]
|
15
|
+
out_f.write in_f.read.gsub(three,four)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
me = ARGV[0]
|
22
|
+
|
23
|
+
case
|
24
|
+
when me.nil?
|
25
|
+
print 'zinbei is in Copyright Takayuki Kamiyama,I made in 2016.'
|
26
|
+
when me
|
27
|
+
Zinbei.new.Scom
|
28
|
+
else
|
29
|
+
print 'Not other arguments!'
|
30
|
+
end
|
31
|
+
|
32
|
+
__END__
|
data/lib/zinbei.rb
CHANGED
data/lib/zinbei/version.rb
CHANGED
data/zinbei.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.authors = ["takkii"]
|
14
14
|
s.email = "karuma.reason@gmail.com"
|
15
|
-
s.executables = ["zinbei", "rantan","zinbeiw"]
|
15
|
+
s.executables = ["zinbei", "rantan","zinbeiw","sava"]
|
16
16
|
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
17
|
s.homepage = "http://rubyist.hatenablog.com/"
|
18
18
|
s.licenses = ["MIT"]
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.rubygems_version = "2.4.2"
|
21
21
|
s.summary = "It is the work which saw the zinbeizame in notojima aquarium, and was made from the impression.
|
22
22
|
"
|
23
|
-
s.description = "zinbei has three functions, zinbei, zinbeiw, and rantan, It's evolution every day."
|
23
|
+
s.description = "zinbei has three functions, zinbei, zinbeiw, and rantan plus sava, It's evolution every day."
|
24
24
|
if s.respond_to? :specification_version then
|
25
25
|
s.specification_version = 4
|
26
26
|
# if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,22 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zinbei
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- takkii
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: zinbei has three functions, zinbei, zinbeiw, and rantan, It's
|
14
|
-
every day.
|
13
|
+
description: zinbei has three functions, zinbei, zinbeiw, and rantan plus sava, It's
|
14
|
+
evolution every day.
|
15
15
|
email: karuma.reason@gmail.com
|
16
16
|
executables:
|
17
17
|
- zinbei
|
18
18
|
- rantan
|
19
19
|
- zinbeiw
|
20
|
+
- sava
|
20
21
|
extensions: []
|
21
22
|
extra_rdoc_files: []
|
22
23
|
files:
|
@@ -38,6 +39,7 @@ files:
|
|
38
39
|
- README.md
|
39
40
|
- Rakefile
|
40
41
|
- bin/rantan
|
42
|
+
- bin/sava
|
41
43
|
- bin/zinbei
|
42
44
|
- bin/zinbeiw
|
43
45
|
- doc/Compiler.html
|
@@ -102,6 +104,7 @@ files:
|
|
102
104
|
- images/tweet_icon.png
|
103
105
|
- images/zinbei.ico
|
104
106
|
- install.rb
|
107
|
+
- lib/scom.rb
|
105
108
|
- lib/zinbei.rb
|
106
109
|
- lib/zinbei/datetime.rb
|
107
110
|
- lib/zinbei/down.rb
|