pebbles-nyarucode 0.1.0 → 0.1.1
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.
- data/README.txt +49 -10
- data/lib/pebbles/nyarucode.rb +1 -1
- data/pebbles-nyarucode.gemspec +1 -1
- metadata +2 -2
data/README.txt
CHANGED
@@ -1,27 +1,66 @@
|
|
1
1
|
= nyarucode-ruby
|
2
2
|
|
3
|
-
* http://
|
3
|
+
* http://github.com/maraigue/nyarucode-ruby
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
7
|
To convert a ruby code into "U-! Nya-!" ruby code
|
8
8
|
(from "Haiyore! Nyaruko-san")
|
9
9
|
|
10
|
-
==
|
10
|
+
== REQUIREMENTS:
|
11
|
+
|
12
|
+
* Ruby 1.9 or newer
|
11
13
|
|
12
|
-
|
14
|
+
== INSTALL:
|
13
15
|
|
14
|
-
|
16
|
+
$ sudo gem install pebbles-nyarucode
|
15
17
|
|
16
18
|
== SYNOPSIS:
|
17
19
|
|
18
|
-
$
|
20
|
+
$ cat sample.rb
|
21
|
+
|
22
|
+
#!/usr/bin/env ruby
|
23
|
+
# -*- coding: utf-8 -*-
|
24
|
+
puts "ニャル子さん"
|
25
|
+
|
26
|
+
def factorial(arg)
|
27
|
+
if arg <= 1
|
28
|
+
1
|
29
|
+
else
|
30
|
+
arg * factorial(arg - 1)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
puts factorial(5)
|
35
|
+
|
36
|
+
$ nyarucode sample.rb > sample-converted.rb
|
37
|
+
|
38
|
+
$ cat sample-converted.rb
|
39
|
+
|
40
|
+
#!/usr/bin/env ruby
|
41
|
+
# -*- coding: utf-8 -*-
|
42
|
+
(->(」・ω・)」うー!,(/・ω・)/にゃー!
|
43
|
+
){send(」・ω・)」うー!,(/・ω・)/にゃー!)}
|
44
|
+
)[''<<
|
45
|
+
(/・ω・)/=~'うー!(/・ω・)/にゃー!')+
|
46
|
+
(/・ω・)/=~'うー!にゃー(/・ω・)/')*
|
47
|
+
..
|
48
|
+
(snipped: total about 400 lines)
|
49
|
+
..
|
50
|
+
(/・ω・)/=~'(」・ω・)」 (/・ω・)/うー!にゃー!')<<
|
51
|
+
(/・ω・)/=~'(」・ω・)」 (/・ω・)/うー!にゃー!')]
|
52
|
+
|
19
53
|
$ ruby sample.rb
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
54
|
+
|
55
|
+
ニャル子さん
|
56
|
+
120
|
57
|
+
|
58
|
+
$ ruby sample-converted.rb # the same as the above one
|
59
|
+
|
60
|
+
ニャル子さん
|
61
|
+
120
|
62
|
+
|
63
|
+
== FEATURES/PROBLEMS:
|
25
64
|
|
26
65
|
== DEVELOPERS:
|
27
66
|
|
data/lib/pebbles/nyarucode.rb
CHANGED
data/pebbles-nyarucode.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["main@hhiro.net"]
|
7
7
|
gem.description = %{This program converts a ruby code into "U-! Nya-!" ruby code (from "Haiyore! Nyaruko-san"). As a result, your program is shown by many emoticons.}
|
8
8
|
gem.summary = %{To convert a ruby code into "U-! Nya-!" ruby code (from "Haiyore! Nyaruko-san")}
|
9
|
-
gem.homepage = "http://
|
9
|
+
gem.homepage = ["http://github.com/maraigue/nyarucode-ruby"]
|
10
10
|
|
11
11
|
gem.executables = Dir.glob("bin/*").map{ |x| File.basename(x) }
|
12
12
|
gem.test_files = Dir.glob("spec/*")
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: pebbles-nyarucode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- H.Hiro(Maraigue)
|
@@ -60,7 +60,7 @@ files:
|
|
60
60
|
- spec/nyarucode_spec.rb
|
61
61
|
- spec/spec_helper.rb
|
62
62
|
- .gemtest
|
63
|
-
homepage: http://
|
63
|
+
homepage: http://github.com/maraigue/nyarucode-ruby
|
64
64
|
licenses: []
|
65
65
|
|
66
66
|
post_install_message:
|