trw 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.mkd +60 -0
  2. data/Rakefile +13 -0
  3. data/VERSION +1 -0
  4. data/bin/trw +36 -0
  5. metadata +58 -0
data/README.mkd ADDED
@@ -0,0 +1,60 @@
1
+ # trw - "Have a nice day" in some languages
2
+
3
+ ## Description
4
+
5
+ `trw` shows "Have a nice day" in some languages.
6
+
7
+ ### Why "trw"?
8
+
9
+ "trw" is a japanese slang word.
10
+ It means "いってらw" ("Itte Ra", last "w" is small version of "lol"(English)),
11
+ and "いってら" is short version of "いってらっしゃい" ("Itte Rasshai"), it means "Have a nice day" in English.
12
+
13
+ So I adopt to name.
14
+
15
+ #### Why not "ittera"?
16
+
17
+ I wanted short name.
18
+
19
+ ## Install
20
+
21
+ gem install trw
22
+
23
+ (Available on rubygems.org (gemcutter))
24
+
25
+ ## Usage
26
+
27
+ % trw
28
+ Have a nice day!
29
+ % trw ja
30
+ いってらっしゃい
31
+ % trw
32
+ See you again!
33
+ % trw ja
34
+ いってらw
35
+
36
+ ## Author
37
+
38
+ Sora HARAKAMI <sora134@gmail.com>
39
+
40
+ ## Licence
41
+
42
+ The MIT Licence {{{
43
+ Permission is hereby granted, free of charge, to any person obtaining a copy
44
+ of this software and associated documentation files (the "Software"), to deal
45
+ in the Software without restriction, including without limitation the rights
46
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
47
+ copies of the Software, and to permit persons to whom the Software is
48
+ furnished to do so, subject to the following conditions:
49
+
50
+ The above copyright notice and this permission notice shall be included in
51
+ all copies or substantial portions of the Software.
52
+
53
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
54
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
55
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
56
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
57
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
58
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
59
+ THE SOFTWARE.
60
+ }}}
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ begin
2
+ require 'jeweler'
3
+ Jeweler::Tasks.new do |gemspec|
4
+ gemspec.name = "trw"
5
+ gemspec.summary = "'Have a nice day!' in English"
6
+ gemspec.email = "sora134@gmail.com"
7
+ gemspec.homepage = "http://codnote.net"
8
+ gemspec.description = "'Have a nice day!' in English"
9
+ gemspec.authors = ["Sora Harakami"]
10
+ end
11
+ rescue LoadError
12
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
13
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.0
data/bin/trw ADDED
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env ruby
2
+ #-*- coding: utf-8 -*-
3
+ # vim: filetype=ruby
4
+
5
+ #
6
+ # trw
7
+ # Author: Sora Harakami
8
+ # Licence: MIT Licence
9
+ # The MIT Licence {{{
10
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ # of this software and associated documentation files (the "Software"), to deal
12
+ # in the Software without restriction, including without limitation the rights
13
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ # copies of the Software, and to permit persons to whom the Software is
15
+ # furnished to do so, subject to the following conditions:
16
+ #
17
+ # The above copyright notice and this permission notice shall be included in
18
+ # all copies or substantial portions of the Software.
19
+ #
20
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
+ # THE SOFTWARE.
27
+ #}}}
28
+ #
29
+
30
+ dic = {
31
+ :ja => ["いってらっしゃい","いってらw","trw","tr","てら","てらー",
32
+ "いってらー"],
33
+ :en => ["Have a nice day!","See you!", "See you again!"]
34
+ }
35
+
36
+ puts dic.key?(ARGV[0].to_sym) ? dic[ARGV[0].to_sym].sample : dic.to_a.sample[1].sample
metadata ADDED
@@ -0,0 +1,58 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trw
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Sora Harakami
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2010-03-22 00:00:00 +09:00
13
+ default_executable: trw
14
+ dependencies: []
15
+
16
+ description: "'Have a nice day!' in English"
17
+ email: sora134@gmail.com
18
+ executables:
19
+ - trw
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.mkd
24
+ files:
25
+ - README.mkd
26
+ - Rakefile
27
+ - VERSION
28
+ - bin/trw
29
+ has_rdoc: true
30
+ homepage: http://codnote.net
31
+ licenses: []
32
+
33
+ post_install_message:
34
+ rdoc_options:
35
+ - --charset=UTF-8
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: "0"
43
+ version:
44
+ required_rubygems_version: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ">="
47
+ - !ruby/object:Gem::Version
48
+ version: "0"
49
+ version:
50
+ requirements: []
51
+
52
+ rubyforge_project:
53
+ rubygems_version: 1.3.5
54
+ signing_key:
55
+ specification_version: 3
56
+ summary: "'Have a nice day!' in English"
57
+ test_files: []
58
+