zinbei 1.0.5 → 1.0.6

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: c903958989cad9c64539c2b38003d9b3f0e7621d
4
- data.tar.gz: 00ee93ac7ad97daa4a89cb53573e88b12c01902f
3
+ metadata.gz: d6c81bfb3c41a6e05e3bf709cb45f6e77e7b0bd3
4
+ data.tar.gz: 886c8483bf351f91351ea7170b1e2aedc3408fb1
5
5
  SHA512:
6
- metadata.gz: 605247b65a23fef18e295e4d045aa3cf89f569ce176dcf79c0fbc1bfbb801ecfa3779d0a46d9ebaf20d806e1672335849a7e89d23fd4a8b7e6928fa22eebea99
7
- data.tar.gz: 2eed4783ea31a89222a7dfcbe2fb7e97a1f7d03d0297d57db60cab864c431c4a88109c290359ef10347d6860e7705066f96c9f6767e48a3a2d22578405ee77de
6
+ metadata.gz: e2ffa05f9f7c1c5ec7dd65e75321fca4466623abb9bc2e13158b94e799438d57520d23b0baced9982b09b1600bc2de322a9149aad25294e770aa621265fdcc49
7
+ data.tar.gz: dbc84b1fae35ac510cf6ed1ff7a0d8c1a88a1340da64cdc0825c6f0b176338d702f0fcc44e5bd16cb71bd7de19a047b9507986a2e2b7e4f6371d45428cb70654
data/Gemfile.lock CHANGED
@@ -1,15 +1,16 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- addressable (2.3.5)
4
+ addressable (2.3.6)
5
5
  builder (3.2.2)
6
- descendants_tracker (0.0.3)
6
+ descendants_tracker (0.0.4)
7
+ thread_safe (~> 0.3, >= 0.3.1)
7
8
  diff-lcs (1.2.5)
8
- docile (1.1.2)
9
+ docile (1.1.5)
9
10
  faraday (0.9.0)
10
11
  multipart-post (>= 1.2, < 3)
11
- git (1.2.6)
12
- github_api (0.11.1)
12
+ git (1.2.7)
13
+ github_api (0.11.3)
13
14
  addressable (~> 2.3)
14
15
  descendants_tracker (~> 0.0.1)
15
16
  faraday (~> 0.8, < 0.10)
@@ -17,8 +18,8 @@ GEM
17
18
  multi_json (>= 1.7.5, < 2.0)
18
19
  nokogiri (~> 1.6.0)
19
20
  oauth2
20
- hashie (2.0.5)
21
- highline (1.6.20)
21
+ hashie (3.0.0)
22
+ highline (1.6.21)
22
23
  jeweler (2.0.1)
23
24
  builder
24
25
  bundler (>= 1.0)
@@ -29,32 +30,35 @@ GEM
29
30
  rake
30
31
  rdoc
31
32
  json (1.8.1)
32
- jwt (0.1.11)
33
- multi_json (>= 1.5)
34
- mini_portile (0.5.2)
35
- multi_json (1.8.4)
33
+ jwt (1.0.0)
34
+ mini_portile (0.6.0)
35
+ multi_json (1.10.1)
36
36
  multi_xml (0.5.5)
37
37
  multipart-post (2.0.0)
38
- nokogiri (1.6.1)
39
- mini_portile (~> 0.5.0)
40
- oauth2 (0.9.3)
38
+ nokogiri (1.6.2.1)
39
+ mini_portile (= 0.6.0)
40
+ oauth2 (0.9.4)
41
41
  faraday (>= 0.8, < 0.10)
42
- jwt (~> 0.1.8)
42
+ jwt (~> 1.0)
43
43
  multi_json (~> 1.3)
44
44
  multi_xml (~> 0.5)
45
45
  rack (~> 1.2)
46
46
  rack (1.5.2)
47
- rake (10.1.1)
47
+ rake (10.3.2)
48
48
  rdoc (4.1.1)
49
49
  json (~> 1.4)
50
- rspec (2.14.1)
51
- rspec-core (~> 2.14.0)
52
- rspec-expectations (~> 2.14.0)
53
- rspec-mocks (~> 2.14.0)
54
- rspec-core (2.14.7)
55
- rspec-expectations (2.14.4)
56
- diff-lcs (>= 1.1.3, < 2.0)
57
- rspec-mocks (2.14.4)
50
+ rspec (3.0.0)
51
+ rspec-core (~> 3.0.0)
52
+ rspec-expectations (~> 3.0.0)
53
+ rspec-mocks (~> 3.0.0)
54
+ rspec-core (3.0.2)
55
+ rspec-support (~> 3.0.0)
56
+ rspec-expectations (3.0.2)
57
+ diff-lcs (>= 1.2.0, < 2.0)
58
+ rspec-support (~> 3.0.0)
59
+ rspec-mocks (3.0.2)
60
+ rspec-support (~> 3.0.0)
61
+ rspec-support (3.0.2)
58
62
  ruby-debug-ide (0.4.22)
59
63
  rake (>= 0.8.1)
60
64
  simplecov (0.8.2)
@@ -62,6 +66,7 @@ GEM
62
66
  multi_json
63
67
  simplecov-html (~> 0.8.0)
64
68
  simplecov-html (0.8.0)
69
+ thread_safe (0.3.4)
65
70
 
66
71
  PLATFORMS
67
72
  ruby
data/README.md CHANGED
@@ -45,8 +45,6 @@ So it should work in most environments, see below for those interested.
45
45
 
46
46
  ***GPLv3のライセンスにより、権利が守られたオープンソースソフトウェアです。***
47
47
 
48
- [redmine(takkii個人プロジェクト管理先!)](http://www.takkii.org/)
49
-
50
48
  <:ロミ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51
49
 
52
50
  *zinbei has developed individual projects by takkii in the "princess",*
data/bin/zinbei CHANGED
@@ -16,11 +16,6 @@ end
16
16
  #バージョンの変更点
17
17
 
18
18
  def start
19
-
20
- puts ''
21
-
22
- puts "START".center(60,'-')
23
-
24
19
  puts "
25
20
 
26
21
  == Contributing to zinbei
@@ -67,9 +62,6 @@ zinbeiw
67
62
  Thank you for reading to the last.
68
63
  〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜〜
69
64
  "
70
- puts ''
71
- puts "START".center(60,'-')
72
- puts ''
73
65
  end
74
66
 
75
67
 
@@ -79,8 +71,9 @@ end
79
71
 
80
72
 
81
73
  def license
82
- puts ''
83
- puts "LICENSE".center(60,'-')
74
+
75
+ p "LICENSE".center(60,"-")
76
+
84
77
  puts "
85
78
  Takayuki Kamiyama retains all rights
86
79
  to this software form 2012.
@@ -135,17 +128,14 @@ GNU 一般公衆利用許諾書のコピーを一部受け取っているはず
135
128
  <http://www.gnu.org/licenses/> をご覧ください。
136
129
 
137
130
  "
138
- puts "LICENSE".center(60,'-')
139
- puts ''
131
+ p "LICENSE".center(60,"-")
140
132
  end
141
133
 
142
134
 
143
135
 
144
136
  def command
145
-
146
- puts ''
147
137
 
148
- puts "COMMAND".center(60,'-')
138
+ p "COMMAND".center(60,"-")
149
139
 
150
140
  puts "
151
141
  [Zinbei]
@@ -195,9 +185,7 @@ $zinbeic notojima.txt
195
185
  H (半角英数字H)、Hello,World!と表示します
196
186
 
197
187
  "
198
- puts "COMMAND".center(60,'-')
199
- puts ''
200
-
188
+ p "COMMAND".center(60,"-")
201
189
  end
202
190
 
203
191
 
data/bin/zinbeiw CHANGED
@@ -23,15 +23,73 @@ puts '
23
23
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24
24
  '
25
25
 
26
- a=rand(15)
27
- print '〜'
28
- 0.upto(a) do |s|
29
- print '〜'
30
-
31
- end
26
+ class Emerald
27
+
28
+ attr_accessor :fibonacci, :fizzbizz,:version, :kurage
29
+
30
+ def version
31
+ print 'Ruby version is '
32
+ print RUBY_VERSION
33
+ end
34
+
35
+ def fibonacci
36
+ puts 'It is a Fibonacci sequence. '
37
+ puts ''
38
+ lo = 1
39
+ hi = 1
40
+ print lo
41
+ print ' '
42
+ while (hi < 50)
43
+ print hi
44
+ hi = lo + hi
45
+ lo = hi - lo
46
+ print ' '
47
+ end
48
+ puts ''
49
+ end
50
+
51
+ def fizzbizz
52
+ puts 'It is an answer sentence of a FizzBizz problem. '
53
+ puts ''
54
+ (1..15).each do |t|
55
+ if t % 15 == 0
56
+ print 'FizzBizz'
57
+ elsif t % 3 == 0
58
+ print 'Fizz'
59
+ elsif t % 5 == 0
60
+ print 'Bizz'
61
+ else
62
+ print t
63
+ end
64
+ print ' '
65
+ end
66
+ puts ''
67
+ end
68
+
69
+ def kurage
70
+ a=rand(15)
71
+ print '〜'
72
+ 0.upto(a) do |s|
73
+ print '〜'
74
+ end
32
75
  puts '<コ:彡'
33
76
  puts ''
77
+ end
78
+ end
34
79
 
80
+ saikoro = Random.rand(4)
81
+ case saikoro
82
+ when 2 then
83
+ Emerald.new.kurage
84
+ when 1 then
85
+ Emerald.new.fibonacci
86
+ when 0 then
87
+ Emerald.new.fizzbizz
88
+ else
89
+ Emerald.new.version
90
+ end
91
+
92
+ puts ''
35
93
  puts 'helpを参考にコマンドを入力してください'
36
94
 
37
95
  # search words
@@ -274,11 +332,11 @@ begin
274
332
 
275
333
  # It is a help document of zinbeic.
276
334
 
277
- when line.match(str[3])
335
+ when line.match(str[3])
278
336
 
279
- puts "COMMAND".center(60,'-')
280
- puts ''
281
- puts '
337
+ p 'COMMAND'.center(60,'-')
338
+
339
+ puts '
282
340
  sessi 華氏から摂氏へ変換します
283
341
 
284
342
  kashi 摂氏から華氏へ変換します
@@ -319,12 +377,11 @@ week 太陽暦で日付の曜日を真と偽で判定します
319
377
 
320
378
  終了するときは、exitと入力します'
321
379
 
322
- puts ''
323
- puts "COMMAND".center(60,'-')
380
+ p 'COMMAND'.center(60,'-')
324
381
 
325
- print '>'
382
+ print '>'
326
383
 
327
- # It is a help document of zinbeiw exit!
384
+ # It is a help document of zinbeic exit!
328
385
 
329
386
  # The command which can be called is only once.  
330
387
  when line.match(once[0])
@@ -704,7 +761,7 @@ print '>'
704
761
  print '>'
705
762
  re = gets.chomp
706
763
  puts ''
707
- puts eval(re)
764
+ p eval(re)
708
765
  puts ''
709
766
 
710
767
  rescue => et
@@ -806,4 +863,4 @@ print 'Performance: '
806
863
  print end_time
807
864
  puts ' sec.'
808
865
 
809
- __END__
866
+ __END__
@@ -1,7 +1,7 @@
1
1
  #coding: utf-8
2
2
 
3
3
  module Zinbei
4
- VERSION = "1.0.5"
4
+ VERSION = "1.0.6"
5
5
  end
6
6
 
7
7
  print Zinbei::VERSION
data/spec/zinbei_spec.rb CHANGED
@@ -1,11 +1,17 @@
1
1
  #coding: utf-8
2
2
 
3
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
3
+ #require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
4
4
 
5
- if File.pipe?(STDIN) ||
6
- File.select(STDIN, [], [], 0) != nil
7
- then
8
- STDIN.gets
9
- else
10
- STDIN.gets
5
+ module Zinbei
6
+ module_function
7
+ def version
8
+ "1.0.5"
9
+ end
10
+ end
11
+
12
+ describe "Zinbei" do
13
+ it ":expect say '1.0.5' when it receives the greet() message" do
14
+ versioning = Zinbei.version
15
+ expect(versioning) == "1.0.5"
16
+ end
11
17
  end
data/zinbei.gemspec CHANGED
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
43
43
  s.homepage = "http://github.com/takkii/zinbei"
44
44
  s.licenses = ["GPLv3"]
45
45
  s.require_paths = ["lib"]
46
- s.rubygems_version = "2.2.2"
46
+ s.rubygems_version = "2.4.2"
47
47
  s.summary = "It is the work which saw the zinbeizame in notojima aquarium, and was made from the impression.
48
48
  "
49
49
  s.description = "zinbei has three functions, zinbei, zinbeiw, and zinbeic, and it evolves every day."
@@ -55,4 +55,4 @@ Gem::Specification.new do |s|
55
55
  # s.add_dependency(%q<zinbeijett>, [">= 0.0.4"])
56
56
  # end
57
57
  end
58
- end
58
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zinbei
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - takkii
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-25 00:00:00.000000000 Z
11
+ date: 2014-10-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: zinbei has three functions, zinbei, zinbeiw, and zinbeic, and it evolves
14
14
  every day.
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  requirements: []
65
65
  rubyforge_project:
66
- rubygems_version: 2.2.2
66
+ rubygems_version: 2.4.2
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: It is the work which saw the zinbeizame in notojima aquarium, and was made