whatever 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/LICENSE +17 -18
  2. data/lib/whatever.rb +15 -9
  3. data/lib/whatever/version.rb +1 -1
  4. metadata +4 -4
data/LICENSE CHANGED
@@ -1,22 +1,21 @@
1
- Copyright (c) 2012 Attila Györffy
1
+ Copyright (c) 2012 Attila Györffy
2
2
 
3
- MIT License
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
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
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
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
12
+ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
15
13
 
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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.
@@ -1,15 +1,21 @@
1
1
  require "whatever/version"
2
2
 
3
3
  class Whatever
4
- RESPONSES = [
5
- "Are you talking to me?",
6
- "Piss off!",
7
- "Man, whatever.",
8
- "Yeah, whatever.",
9
- "Get lost!"
10
- ].freeze
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
- RESPONSES.sample
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
@@ -1,3 +1,3 @@
1
1
  class Whatever
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-18 00:00:00.000000000 Z
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: -857772858604009696
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: -857772858604009696
68
+ hash: 4537377339868605617
69
69
  requirements: []
70
70
  rubyforge_project:
71
71
  rubygems_version: 1.8.24