lolcat 42.1.43 → 42.1.44

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 78ff639c47167ac44c4792bc18bff577c5cd3999
4
- data.tar.gz: 8a9dfda97fe58c39a3431fd35413cf9bd8eeb648
3
+ metadata.gz: 9136bb53399ef3cacf816a4193e4ea35d1c2afb7
4
+ data.tar.gz: 3ddeb3c55538f49dcd2bcdd9ed9fc05b1bae78b1
5
5
  SHA512:
6
- metadata.gz: eb6a216d199ab988db786c8ab1e8e5e27806b6aa0e5fbd6f63a2f2f8dc33e67c16aed4b841a388dd905d31d05493b37dfd7c980c9c0bdd636e37ea4c496e91af
7
- data.tar.gz: 63398d91065a31decd5d7ade4341c95d7e2c3358eecf92d11c4ee137805a102bd503978543b0636d729c67241e9eaa98e90d8b18f310545647b0745db78ffda6
6
+ metadata.gz: f8999df16622fbf9150eb68bc28ceebeee30fa7ef881c5791060c0db8ad201a906a7f34a8f456336a3b70401dc76e64d2ec6c918af9d581057c5cc0644ae2a48
7
+ data.tar.gz: 1d798d368153c04afd0fd56c53d549306e85ed2298401541f9f7fcaf927bceaee2537824449157ac87a0f50c5264dc8cce3b15b21a4750c054fdb3deeb23101c
data/LICENSE CHANGED
@@ -1,14 +1,25 @@
1
- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
2
- Version 2, December 2004
1
+ Copyright (c) 2016, moe@busyloop.net
2
+ All rights reserved.
3
3
 
4
- Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+ * Redistributions of source code must retain the above copyright
7
+ notice, this list of conditions and the following disclaimer.
8
+ * Redistributions in binary form must reproduce the above copyright
9
+ notice, this list of conditions and the following disclaimer in the
10
+ documentation and/or other materials provided with the distribution.
11
+ * Neither the name of the lolcat nor the
12
+ names of its contributors may be used to endorse or promote products
13
+ derived from this software without specific prior written permission.
5
14
 
6
- Everyone is permitted to copy and distribute verbatim or modified
7
- copies of this license document, and changing it is allowed as long
8
- as the name is changed.
9
-
10
- DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
11
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12
-
13
- 0. You just DO WHAT THE FUCK YOU WANT TO.
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
25
 
data/bin/lolcat CHANGED
@@ -1,22 +1,29 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ # Copyright (c) 2016, moe@busyloop.net
4
+ # All rights reserved.
3
5
  #
4
- # lolcat (c)2011 moe@busyloop.net
6
+ # Redistribution and use in source and binary forms, with or without
7
+ # modification, are permitted provided that the following conditions are met:
8
+ # * Redistributions of source code must retain the above copyright
9
+ # notice, this list of conditions and the following disclaimer.
10
+ # * Redistributions in binary form must reproduce the above copyright
11
+ # notice, this list of conditions and the following disclaimer in the
12
+ # documentation and/or other materials provided with the distribution.
13
+ # * Neither the name of the lolcat nor the
14
+ # names of its contributors may be used to endorse or promote products
15
+ # derived from this software without specific prior written permission.
5
16
  #
6
-
7
- # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
8
- # Version 2, December 2004
9
- #
10
- # Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
11
- #
12
- # Everyone is permitted to copy and distribute verbatim or modified
13
- # copies of this license document, and changing it is allowed as long
14
- # as the name is changed.
15
- #
16
- # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
17
- # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
18
- #
19
- # 0. You just DO WHAT THE FUCK YOU WANT TO.
17
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20
+ # DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
21
+ # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24
+ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20
27
 
21
28
  require "rubygems"
22
29
  require "lolcat/version"
@@ -1,20 +1,27 @@
1
+ # Copyright (c) 2016, moe@busyloop.net
2
+ # All rights reserved.
1
3
  #
2
- # lolcat (c)2011 moe@busyloop.net
4
+ # Redistribution and use in source and binary forms, with or without
5
+ # modification, are permitted provided that the following conditions are met:
6
+ # * Redistributions of source code must retain the above copyright
7
+ # notice, this list of conditions and the following disclaimer.
8
+ # * Redistributions in binary form must reproduce the above copyright
9
+ # notice, this list of conditions and the following disclaimer in the
10
+ # documentation and/or other materials provided with the distribution.
11
+ # * Neither the name of the lolcat nor the
12
+ # names of its contributors may be used to endorse or promote products
13
+ # derived from this software without specific prior written permission.
3
14
  #
4
-
5
- # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
6
- # Version 2, December 2004
7
- #
8
- # Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
9
- #
10
- # Everyone is permitted to copy and distribute verbatim or modified
11
- # copies of this license document, and changing it is allowed as long
12
- # as the name is changed.
13
- #
14
- # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
15
- # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
16
- #
17
- # 0. You just DO WHAT THE FUCK YOU WANT TO.
15
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ # DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19
+ # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18
25
 
19
26
  require "lolcat/version"
20
27
  require "lolcat/lol"
@@ -1,20 +1,27 @@
1
+ # Copyright (c) 2016, moe@busyloop.net
2
+ # All rights reserved.
1
3
  #
2
- # lolcat (c)2011 moe@busyloop.net
4
+ # Redistribution and use in source and binary forms, with or without
5
+ # modification, are permitted provided that the following conditions are met:
6
+ # * Redistributions of source code must retain the above copyright
7
+ # notice, this list of conditions and the following disclaimer.
8
+ # * Redistributions in binary form must reproduce the above copyright
9
+ # notice, this list of conditions and the following disclaimer in the
10
+ # documentation and/or other materials provided with the distribution.
11
+ # * Neither the name of the lolcat nor the
12
+ # names of its contributors may be used to endorse or promote products
13
+ # derived from this software without specific prior written permission.
3
14
  #
4
-
5
- # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
6
- # Version 2, December 2004
7
- #
8
- # Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
9
- #
10
- # Everyone is permitted to copy and distribute verbatim or modified
11
- # copies of this license document, and changing it is allowed as long
12
- # as the name is changed.
13
- #
14
- # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
15
- # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
16
- #
17
- # 0. You just DO WHAT THE FUCK YOU WANT TO.
15
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ # DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19
+ # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18
25
 
19
26
  require "lolcat/version"
20
27
  require "lolcat/lol"
@@ -23,30 +30,6 @@ require 'stringio'
23
30
  require 'trollop'
24
31
 
25
32
  module Lol
26
- def self.halp!(text, opts={})
27
- opts = {
28
- :animate => false,
29
- :duration => 12,
30
- :os => 0,
31
- :speed => 20,
32
- :spread => 8.0,
33
- :freq => 0.3
34
- }.merge opts
35
-
36
- begin
37
- i = 20
38
- o = rand(256)
39
- text.split("\n").each do |line|
40
- i -= 1
41
- opts[:os] = o+i
42
- Lol.println line, opts
43
- end
44
- puts "\n"
45
- rescue Interrupt
46
- end
47
- exit 1
48
- end
49
-
50
33
  def self.cat!
51
34
  p = Trollop::Parser.new do
52
35
  version "lolcat #{Lolcat::VERSION} (c)2011 moe@busyloop.net"
@@ -89,15 +72,25 @@ FOOTER
89
72
  buf = StringIO.new
90
73
  p.educate buf
91
74
  buf.rewind
92
- halp! buf.read, {}
75
+ opts = {
76
+ :animate => false,
77
+ :duration => 12,
78
+ :os => rand(256),
79
+ :speed => 20,
80
+ :spread => 8.0,
81
+ :freq => 0.3
82
+ }
83
+ Lol.cat buf.read.split("\n"), opts
84
+ puts
93
85
  buf.close
86
+ exit 1
94
87
  end
95
88
  o
96
89
  end
97
90
 
98
- p.die :spread, "must be > 0" if opts[:spread] < 0.1
99
- p.die :duration, "must be > 0" if opts[:duration] < 0.1
100
- p.die :speed, "must be > 0.1" if opts[:speed] < 0.1
91
+ p.die :spread, "must be >= 0.1" if opts[:spread] < 0.1
92
+ p.die :duration, "must be >= 0.1" if opts[:duration] < 0.1
93
+ p.die :speed, "must be >= 0.1" if opts[:speed] < 0.1
101
94
 
102
95
  opts[:os] = opts[:seed]
103
96
  opts[:os] = rand(256) if opts[:os] == 0
@@ -1,20 +1,27 @@
1
+ # Copyright (c) 2016, moe@busyloop.net
2
+ # All rights reserved.
1
3
  #
2
- # lolcat (c)2011 moe@busyloop.net
4
+ # Redistribution and use in source and binary forms, with or without
5
+ # modification, are permitted provided that the following conditions are met:
6
+ # * Redistributions of source code must retain the above copyright
7
+ # notice, this list of conditions and the following disclaimer.
8
+ # * Redistributions in binary form must reproduce the above copyright
9
+ # notice, this list of conditions and the following disclaimer in the
10
+ # documentation and/or other materials provided with the distribution.
11
+ # * Neither the name of the lolcat nor the
12
+ # names of its contributors may be used to endorse or promote products
13
+ # derived from this software without specific prior written permission.
3
14
  #
4
-
5
- # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
6
- # Version 2, December 2004
7
- #
8
- # Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
9
- #
10
- # Everyone is permitted to copy and distribute verbatim or modified
11
- # copies of this license document, and changing it is allowed as long
12
- # as the name is changed.
13
- #
14
- # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
15
- # TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
16
- #
17
- # 0. You just DO WHAT THE FUCK YOU WANT TO.
15
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
16
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ # DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
19
+ # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18
25
 
19
26
  require "lolcat/version"
20
27
  require 'paint'
@@ -1,3 +1,3 @@
1
1
  module Lolcat
2
- VERSION = "42.1.43"
2
+ VERSION = "42.1.44"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 42.1.43
4
+ version: 42.1.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-11 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.4.5
94
+ rubygems_version: 2.5.1
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Okay, no unicorns. But rainbows!!