whatever 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +17 -18
- data/lib/whatever.rb +15 -9
- data/lib/whatever/version.rb +1 -1
- metadata +4 -4
data/LICENSE
CHANGED
@@ -1,22 +1,21 @@
|
|
1
|
-
Copyright (c) 2012 Attila
|
1
|
+
Copyright (c) 2012 Attila Györffy
|
2
2
|
|
3
|
-
|
3
|
+
/* This program is free software. It comes without any warranty, to
|
4
|
+
* the extent permitted by applicable law. You can redistribute it
|
5
|
+
* and/or modify it under the terms of the Do What The Fuck You Want
|
6
|
+
* To Public License, Version 2, as published by Sam Hocevar. See
|
7
|
+
* http://sam.zoy.org/wtfpl/COPYING for more details. */
|
4
8
|
|
5
|
-
|
6
|
-
|
7
|
-
"Software"), to deal in the Software without restriction, including
|
8
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
-
permit persons to whom the Software is furnished to do so, subject to
|
11
|
-
the following conditions:
|
9
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
10
|
+
Version 2, December 2004
|
12
11
|
|
13
|
-
|
14
|
-
included in all copies or substantial portions of the Software.
|
12
|
+
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
15
13
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
14
|
+
Everyone is permitted to copy and distribute verbatim or modified
|
15
|
+
copies of this license document, and changing it is allowed as long
|
16
|
+
as the name is changed.
|
17
|
+
|
18
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
19
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
20
|
+
|
21
|
+
0. You just DO WHAT THE FUCK YOU WANT TO.
|
data/lib/whatever.rb
CHANGED
@@ -1,15 +1,21 @@
|
|
1
1
|
require "whatever/version"
|
2
2
|
|
3
3
|
class Whatever
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
RESPONSES = [
|
5
|
+
"Are you talking to me?",
|
6
|
+
"Piss off!",
|
7
|
+
"Man, whatever.",
|
8
|
+
"Yeah, whatever.",
|
9
|
+
"Get lost!"
|
10
|
+
].freeze
|
11
|
+
|
12
12
|
def self.method_missing(meth, *args, &block)
|
13
|
-
|
13
|
+
if RESPONSES.respond_to? :sample
|
14
|
+
RESPONSES.sample
|
15
|
+
elsif RESPONSES.respond_to? :choice
|
16
|
+
RESPONSES.choice
|
17
|
+
else
|
18
|
+
RESPONSES.first
|
19
|
+
end
|
14
20
|
end
|
15
21
|
end
|
data/lib/whatever/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whatever
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05
|
12
|
+
date: 2012-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -56,7 +56,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
segments:
|
58
58
|
- 0
|
59
|
-
hash:
|
59
|
+
hash: 4537377339868605617
|
60
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
segments:
|
67
67
|
- 0
|
68
|
-
hash:
|
68
|
+
hash: 4537377339868605617
|
69
69
|
requirements: []
|
70
70
|
rubyforge_project:
|
71
71
|
rubygems_version: 1.8.24
|