insults 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +19 -0
- data/README.rdoc +30 -5
- data/Rakefile +36 -24
- data/bin/example +3 -6
- data/lib/insults.rb +8 -24
- data/lib/try.rb +1 -0
- metadata +17 -9
- data/bin/r +0 -2
data/LICENSE.txt
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2009 Delano Mandelbaum
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in
|
11
|
+
all copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
+
THE SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -1,29 +1,54 @@
|
|
1
|
-
= Insults
|
1
|
+
= Insults - v0.3
|
2
2
|
|
3
3
|
A module that insults you when it feels you deserve it.
|
4
4
|
|
5
|
+
== Warning
|
6
|
+
|
7
|
+
Do not use this library or even look at the source codes if you are offended by cuss words!
|
8
|
+
|
9
|
+
|
5
10
|
== Installation
|
6
11
|
|
7
12
|
$ sudo gem install insults
|
8
13
|
|
9
14
|
== Usage
|
10
|
-
|
15
|
+
|
11
16
|
require 'insults'
|
17
|
+
|
18
|
+
That's it! Just keep an eye on STDERR.
|
19
|
+
|
20
|
+
== One-Liner Example
|
21
|
+
|
22
|
+
ruby -rinsults -e 'class Satriani; end; class Vai < Satriani; end;'
|
12
23
|
|
13
24
|
== Changes
|
14
25
|
|
26
|
+
* v0.3 (2009-02-06)
|
27
|
+
* Insults are now Ruby 1.9 compatible.
|
28
|
+
|
15
29
|
* v0.2 (2009-01-15)
|
16
30
|
* Added insults.
|
17
31
|
* Reduced code readability.
|
18
32
|
* Now 12% funnier.
|
19
33
|
|
20
34
|
* v0.1 (2009-01-14)
|
21
|
-
* Initial, insulting release
|
35
|
+
* Initial, insulting release.
|
36
|
+
|
37
|
+
== More Info
|
38
|
+
|
39
|
+
* RubyForge[http://rubyforge.org/projects/insults]
|
40
|
+
* GitHub[http://github.com/delano/insults]
|
41
|
+
* Inspiration[http://www.youtube.com/watch?v=GU2w72KAkQQ]
|
22
42
|
|
23
43
|
== Credits
|
24
44
|
|
25
|
-
* Delano Mandelbaum
|
26
|
-
* Alex Trebek (
|
45
|
+
* Delano Mandelbaum (delano@solutious.com)
|
46
|
+
* Alex Trebek (dj@solutious.com)
|
47
|
+
|
48
|
+
== Thanks
|
49
|
+
|
50
|
+
* Creston Farms (R.I.P.)
|
51
|
+
* Hidi[http://twitter.com/hidi]
|
27
52
|
|
28
53
|
== License
|
29
54
|
|
data/Rakefile
CHANGED
@@ -5,31 +5,25 @@ require 'hanna/rdoctask'
|
|
5
5
|
require 'fileutils'
|
6
6
|
include FileUtils
|
7
7
|
|
8
|
-
task :default =>
|
8
|
+
task :default => :package
|
9
|
+
|
10
|
+
# SPECS ===============================================================
|
11
|
+
|
12
|
+
# None-yet!
|
9
13
|
|
10
14
|
# PACKAGE =============================================================
|
11
15
|
|
12
|
-
|
13
|
-
|
14
|
-
s.version = "0.2"
|
15
|
-
s.summary = "Insults will insult you when it feels you deserve it."
|
16
|
-
s.description = "Insults will insult you when it feels you deserve it."
|
17
|
-
s.author = "Delano Mandelbaum"
|
18
|
-
s.email = "delano@solutious.com"
|
19
|
-
s.homepage = "http://insults.rubyforge.org/"
|
20
|
-
s.rubyforge_project = "insults"
|
21
|
-
s.extra_rdoc_files = ['README.rdoc']
|
22
|
-
|
23
|
-
s.platform = Gem::Platform::RUBY
|
24
|
-
s.has_rdoc = true
|
25
|
-
|
26
|
-
s.files = %w(Rakefile) + Dir.glob("{bin,doc,lib}/**/**/*")
|
27
|
-
end
|
16
|
+
name = "insults"
|
17
|
+
load "#{name}.gemspec"
|
28
18
|
|
29
|
-
|
30
|
-
|
19
|
+
version = @spec.version
|
20
|
+
|
21
|
+
Rake::GemPackageTask.new(@spec) do |p|
|
22
|
+
p.need_tar = true if RUBY_PLATFORM !~ /mswin/
|
31
23
|
end
|
32
24
|
|
25
|
+
task :release => [ :rdoc, :package ]
|
26
|
+
|
33
27
|
task :install => [ :rdoc, :package ] do
|
34
28
|
sh %{sudo gem install pkg/#{name}-#{version}.gem}
|
35
29
|
end
|
@@ -38,17 +32,35 @@ task :uninstall => [ :clean ] do
|
|
38
32
|
sh %{sudo gem uninstall #{name}}
|
39
33
|
end
|
40
34
|
|
35
|
+
|
36
|
+
# Rubyforge Release / Publish Tasks ==================================
|
37
|
+
|
38
|
+
desc 'Publish website to rubyforge'
|
39
|
+
task 'publish:rdoc' => 'doc/index.html' do
|
40
|
+
sh "scp -rp doc/* rubyforge.org:/var/www/gforge-projects/#{name}/"
|
41
|
+
end
|
42
|
+
|
43
|
+
task 'publish:gem' => [:package] do |t|
|
44
|
+
sh <<-end
|
45
|
+
rubyforge add_release -o Any -a CHANGES.txt -f -n README.rdoc #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.gem &&
|
46
|
+
rubyforge add_file -o Any -a CHANGES.txt -f -n README.rdoc #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.tgz
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
|
41
51
|
Rake::RDocTask.new do |t|
|
42
|
-
t.rdoc_dir = 'doc'
|
43
|
-
t.title =
|
44
|
-
t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
|
45
|
-
t.options << '--charset' << 'utf-8'
|
52
|
+
t.rdoc_dir = 'doc'
|
53
|
+
t.title = @spec.summary
|
54
|
+
t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
|
55
|
+
t.options << '--charset' << 'utf-8'
|
46
56
|
t.rdoc_files.include('LICENSE.txt')
|
47
57
|
t.rdoc_files.include('README.rdoc')
|
58
|
+
t.rdoc_files.include('CHANGES.txt')
|
59
|
+
t.rdoc_files.include('bin/*')
|
48
60
|
t.rdoc_files.include('lib/*.rb')
|
49
61
|
end
|
50
62
|
|
51
|
-
CLEAN.include [ 'pkg', '*.gem', 'doc' ]
|
63
|
+
CLEAN.include [ 'pkg', '*.gem', '.config', 'doc' ]
|
52
64
|
|
53
65
|
|
54
66
|
|
data/bin/example
CHANGED
data/lib/insults.rb
CHANGED
@@ -1,24 +1,8 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
# in the Software without restriction, including without limitation the rights
|
6
|
-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
-
# copies of the Software, and to permit persons to whom the Software is
|
8
|
-
# furnished to do so, subject to the following conditions:
|
9
|
-
#
|
10
|
-
# The above copyright notice and this permission notice shall be included in
|
11
|
-
# all copies or substantial portions of the Software.
|
12
|
-
#
|
13
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
19
|
-
# THE SOFTWARE.
|
1
|
+
#encoding: utf-8
|
2
|
+
|
3
|
+
$KCODE = "u" if RUBY_VERSION =~ /^1.8/
|
4
|
+
|
20
5
|
|
21
|
-
$KCODE = "u"
|
22
6
|
require 'yaml'
|
23
7
|
|
24
8
|
# There are no methods or constants. All you have to do is require insults and
|
@@ -40,10 +24,10 @@ class String
|
|
40
24
|
alias :DIRTY :unpack
|
41
25
|
end
|
42
26
|
class Array
|
43
|
-
alias :
|
27
|
+
alias :LICKER :inject
|
44
28
|
end
|
45
29
|
|
46
|
-
|
30
|
+
insul = <<-eos
|
47
31
|
|
48
32
|
%j[ ⚀ ⚁ ⚂ ⚃ ⚄ ⚅ ].rnpu qb |qvr|
|
49
33
|
frys.pynff.fraq(:qrsvar_zrgubq, qvr) { |*z| enaq >= (qvr.hacnpx('P*')[2]-127.0)/10; }
|
@@ -62,7 +46,7 @@ everything = <<-eos
|
|
62
46
|
frys.pynff.fraq(:qrsvar_zrgubq, :vaurevgrq) { |e| ⚃ naq ✖ fuvgba.qrpvqr, frys, e hayrff frys == Bowrpg }
|
63
47
|
raq
|
64
48
|
|
65
|
-
nyvnf :zrgubq_zvffvat :"#{"YOU_ARE_A".DIRTY("C**K").
|
49
|
+
nyvnf :zrgubq_zvffvat :"#{"YOU_ARE_A".DIRTY("C**K").LICKER(0){|c,o|c|o}.chr}"
|
66
50
|
|
67
51
|
qrs fuvgba
|
68
52
|
Vafhyg.arj(<<-grkg)
|
@@ -91,4 +75,4 @@ everything = <<-eos
|
|
91
75
|
raq
|
92
76
|
eos
|
93
77
|
srand
|
94
|
-
eval(
|
78
|
+
eval(insul.tr("A-Za-z", "N-ZA-Mn-za-m"), binding)
|
data/lib/try.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: insults
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: "0.
|
4
|
+
version: "0.3"
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delano Mandelbaum
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-23 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -21,19 +21,27 @@ extensions: []
|
|
21
21
|
|
22
22
|
extra_rdoc_files:
|
23
23
|
- README.rdoc
|
24
|
+
- LICENSE.txt
|
24
25
|
files:
|
26
|
+
- README.rdoc
|
27
|
+
- LICENSE.txt
|
25
28
|
- Rakefile
|
26
29
|
- bin/example
|
27
30
|
- bin/example.bat
|
28
|
-
- bin/r
|
29
31
|
- lib/insults.rb
|
30
32
|
- lib/try.rb
|
31
|
-
- README.rdoc
|
32
33
|
has_rdoc: true
|
33
|
-
homepage: http://
|
34
|
-
|
35
|
-
rdoc_options: []
|
34
|
+
homepage: http://github.com/delano/insults
|
35
|
+
licenses: []
|
36
36
|
|
37
|
+
post_install_message:
|
38
|
+
rdoc_options:
|
39
|
+
- --line-numbers
|
40
|
+
- --inline-source
|
41
|
+
- --title
|
42
|
+
- "Insults: How rude!"
|
43
|
+
- --main
|
44
|
+
- README.rdoc
|
37
45
|
require_paths:
|
38
46
|
- lib
|
39
47
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -51,9 +59,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
59
|
requirements: []
|
52
60
|
|
53
61
|
rubyforge_project: insults
|
54
|
-
rubygems_version: 1.
|
62
|
+
rubygems_version: 1.3.5
|
55
63
|
signing_key:
|
56
|
-
specification_version:
|
64
|
+
specification_version: 3
|
57
65
|
summary: Insults will insult you when it feels you deserve it.
|
58
66
|
test_files: []
|
59
67
|
|
data/bin/r
DELETED