Skibideebop 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/skibideebop.rb +18 -0
  2. metadata +64 -0
@@ -0,0 +1,18 @@
1
+ $coool = String.new
2
+
3
+ class Object
4
+ def method_missing( thing , *args )
5
+ $coool.insert( 0 , thing.to_s ) if %w[bodiddly dat dwee zibbidee].include?( thing.to_s )
6
+ end
7
+ end
8
+
9
+ def sing_it_daddyo!( code )
10
+ binary_to_scat_dictionary = Hash[ "00" => "bodiddly" , "01" => "dat" , "10" => "dwee" , "11" => "zibbidee" ]
11
+ return "require_relative 'skibideebop'\n\n" + code.unpack('B*')[0].gsub(/../).map { |binary| binary_to_scat_dictionary[binary] }.join( ' ' )
12
+ end
13
+
14
+ END {
15
+ scat_to_binary_dictionary = Hash[ /bodiddly/ => "00" , /dat/ => "01" , /dwee/ => "10" , /zibbidee/ => "11" ]
16
+ scat_to_binary_dictionary.each_pair { |scat , binary| $coool.gsub!( scat, binary ) }
17
+ eval $coool.gsub(/......../).to_a.map {|x| x.to_i(2) }.map{ |x| x.chr}.join
18
+ }
metadata ADDED
@@ -0,0 +1,64 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: Skibideebop
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 2
9
+ version: 0.0.2
10
+ platform: ruby
11
+ authors:
12
+ - Michael Baker
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-12-31 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description:
22
+ email: michaeltbaker@gmail.com
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files: []
28
+
29
+ files:
30
+ - lib/skibideebop.rb
31
+ has_rdoc: true
32
+ homepage: https://github.com/Twernmilt
33
+ licenses: []
34
+
35
+ post_install_message:
36
+ rdoc_options: []
37
+
38
+ require_paths:
39
+ - lib
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ segments:
46
+ - 0
47
+ version: "0"
48
+ required_rubygems_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ requirements: []
57
+
58
+ rubyforge_project:
59
+ rubygems_version: 1.3.7
60
+ signing_key:
61
+ specification_version: 3
62
+ summary: A programming language for cool cats and hip kittens.
63
+ test_files: []
64
+