zinbei 0.1.6.10 → 0.1.6.11

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
  SHA1:
3
- metadata.gz: 0c3d4b326197000f7ffe8f818de5d80f99352769
4
- data.tar.gz: 730003e6523dc51a8d28e2ef2224e31115631101
3
+ metadata.gz: c25b955ba24551c3535f391eff162f76b1993ab4
4
+ data.tar.gz: 384627d725452b7c7bae0845958c6c69328a62a4
5
5
  SHA512:
6
- metadata.gz: 79c1904dab8678737ba4d843ae3bf4499455646b675f9811fbc4a595661e351aa97d7ddc74369cb332aaad0da8bc534991df4cedaef1abe98c66d2cca9d50708
7
- data.tar.gz: f4a56f444029559bd8b5307ca4df6e5be1dcba21bf8f9b2fa1cfd5cf3c9ba5021a64f14c2c1ca38968c08de19191e36d769c366e75aff7281c602cb6ec955248
6
+ metadata.gz: df814d37100d0d86032fe493943ebe0cedeaf0bf3c0162857050fde53dfd1495b0e5e1993f84e6146443c0f0245aa6bf6ff9b173001bcf24ad497e97e90cc225
7
+ data.tar.gz: 04a6392abf5108287287a10abe78b678510abfcfb21fa577240f9f9fc34f5e19829af6b352f4cb95ee748aee44220054582b799d1b13ebc379e41edaed017fc2
data/bin/zinbei CHANGED
@@ -159,6 +159,8 @@ $zinbei -o notojima.txt
159
159
 
160
160
  -o 英文字列のみを小文字に変換して出力します
161
161
 
162
+ -nm 全体を行番号付きで出力します
163
+
162
164
  [zinbeic]
163
165
 
164
166
  Example
@@ -197,11 +199,11 @@ def downcase
197
199
  end
198
200
 
199
201
 
200
- def number
202
+ def num
201
203
  require 'zinbei/number'
202
204
  end
203
205
 
204
- module_function :start,:version,:datetime,:license,:command,:soft,:str,:line,:upcase,:downcase,:number
206
+ module_function :start,:version,:datetime,:license,:command,:soft,:str,:line,:upcase,:downcase,:num
205
207
  end
206
208
 
207
209
 
@@ -219,7 +221,7 @@ m = /\A[-][m]\z/
219
221
  n = /\A[-][n]\z/
220
222
  u = /\A[-][u]\z/
221
223
  o = /\A[-][o]\z/
222
- nm = /\A[-][n][m]\z/
224
+ z = /\A[-][z]\z/
223
225
 
224
226
  one = ARGV[0]
225
227
 
@@ -258,8 +260,8 @@ Zinbei.downcase
258
260
  when one.match(u)
259
261
  require 'zinbei/ika'
260
262
  Zinbei.upcase
261
- when one.match(nm)
262
- Zinbei.number
263
+ when one.match(z)
264
+ Zinbei.num
263
265
  else
264
266
  puts "Please choose an option."
265
267
  end
@@ -0,0 +1,16 @@
1
+ module Zinbeic
2
+
3
+ def zinbeijett
4
+ run = ARGV[0]
5
+ buffa = Array.new
6
+ open(run) do |f|
7
+ while name = f.gets
8
+ risk = name.encode("UTF-8")
9
+ printf("%4d : %s",f.lineno, risk)
10
+ end
11
+ exit!
12
+ end
13
+ end
14
+
15
+ module_function :zinbeijett
16
+ end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Zinbei
4
4
  def major
5
- version = "0.1.6.10"
5
+ version = "0.1.6.11"
6
6
  print version
7
7
  end
8
8
  module_function :major
data/zinbei.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "zinbei"
5
- s.version = "0.1.6.10"
5
+ s.version = "0.1.6.11"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["takkii"]
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "lib/zinbei/str.rb",
30
30
  "lib/zinbei/up.rb",
31
31
  "lib/zinbei/down.rb",
32
+ "lib/zinbei/number.rb",
32
33
  "spec/spec_helper.rb",
33
34
  "spec/zinbei_spec.rb",
34
35
  "zinbei.gemspec",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zinbei
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6.10
4
+ version: 0.1.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - takkii
@@ -37,6 +37,7 @@ files:
37
37
  - lib/zinbei/str.rb
38
38
  - lib/zinbei/up.rb
39
39
  - lib/zinbei/down.rb
40
+ - lib/zinbei/number.rb
40
41
  - spec/spec_helper.rb
41
42
  - spec/zinbei_spec.rb
42
43
  - zinbei.gemspec