babel 0.1.2 → 0.1.3
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.
- data/Rakefile +2 -1
- data/lib/babel.rb +11 -9
- metadata +4 -4
    
        data/Rakefile
    CHANGED
    
    | @@ -5,8 +5,9 @@ require 'hoe' | |
| 5 5 | 
             
            require './lib/babel.rb'
         | 
| 6 6 |  | 
| 7 7 | 
             
            Hoe.new('babel', Babel::VERSION) do |p|
         | 
| 8 | 
            -
              p.rubyforge_name = 'adocca_plugins'
         | 
| 9 8 | 
             
              p.summary = 'Lorem ipsum generator on methamphetamine'
         | 
| 9 | 
            +
              p.author = 'adocca Entertainment AB'
         | 
| 10 | 
            +
              p.rubyforge_name = "adocca-plugins"
         | 
| 10 11 | 
             
              # p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
         | 
| 11 12 | 
             
              # p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
         | 
| 12 13 | 
             
              p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
         | 
    
        data/lib/babel.rb
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 |  | 
| 2 2 | 
             
            module Babel
         | 
| 3 | 
            -
              VERSION = '0.1. | 
| 3 | 
            +
              VERSION = '0.1.3'
         | 
| 4 4 |  | 
| 5 5 | 
             
              CHUNKS = [
         | 
| 6 6 | 
             
            'ACM',
         | 
| @@ -2433,7 +2433,7 @@ LONG_TEXT_1 = ["To whom it may concern,", | |
| 2433 2433 |  | 
| 2434 2434 | 
             
            	def random_short(length = 70)
         | 
| 2435 2435 | 
             
                (TEXT_1[rand(TEXT_1.size)] + ' ' + TEXT_2[rand(TEXT_2.size)] + ' ' + 
         | 
| 2436 | 
            -
                 TEXT_3[rand(TEXT_3.size)] + ' ' + TEXT_4[rand(TEXT_4.size)]).squeeze(' ')[0...length]
         | 
| 2436 | 
            +
                 TEXT_3[rand(TEXT_3.size)] + ' ' + TEXT_4[rand(TEXT_4.size)]).squeeze(' ').chars[0...length]
         | 
| 2437 2437 | 
             
              end
         | 
| 2438 2438 |  | 
| 2439 2439 | 
             
              SINGLE_PARTS = ['you','myself','a dog','a cat','a small furry animal','the underage','someone','the IRS','Hitler', 'Madonna',
         | 
| @@ -2465,14 +2465,16 @@ LONG_TEXT_1 = ["To whom it may concern,", | |
| 2465 2465 |  | 
| 2466 2466 | 
             
              def morph_login(login)
         | 
| 2467 2467 | 
             
                login = login.downcase.gsub(/\s/, "")
         | 
| 2468 | 
            -
                morphs = [:ored, :ed, :own, :age, :xor, :ck, :er, :leetz, :leetw2, :leetx, :leetw, :leets4, :leeto2, :leetg, :leetf2, :leetb, :leets3, :leets2, :leets, :leetf, :leetc, :rovar, :leeta, :leete, :leetl, :leett, :leeto, :zor, :ster, :lor, :prependnr1, :first, :iam, :thereal, :appendnr1, :forreal, :prependn, :appendn]
         | 
| 2468 | 
            +
                morphs = [:inator, :ored, :ed, :own, :age, :xor, :ck, :er, :leetz, :leetw2, :leetx, :leetw, :leets4, :leeto2, :leetg, :leetf2, :leetb, :leets3, :leets2, :leets, :leetf, :leetc, :rovar, :leeta, :leete, :leetl, :leett, :leeto, :zor, :ster, :lor, :prependnr1, :first, :iam, :thereal, :appendnr1, :forreal, :prependn, :appendn]
         | 
| 2469 2469 | 
             
                morph = morphs[rand(morphs.size)]
         | 
| 2470 2470 | 
             
                stripped = login.gsub(/[aoueiy]*$/, "")
         | 
| 2471 2471 | 
             
                case morph
         | 
| 2472 | 
            +
                when :inator
         | 
| 2473 | 
            +
                  "#{stripped.gsub(/i?n?a?$/, "")}inator"
         | 
| 2472 2474 | 
             
                when :ed
         | 
| 2473 | 
            -
                  login.gsub(/ed | 
| 2475 | 
            +
                  login.gsub(/ed$/, "t")
         | 
| 2474 2476 | 
             
                when :ored
         | 
| 2475 | 
            -
                  login.gsub(/or | 
| 2477 | 
            +
                  login.gsub(/or$/, "ored")
         | 
| 2476 2478 | 
             
                when :own
         | 
| 2477 2479 | 
             
                  login.gsub(/own/, "pwn")
         | 
| 2478 2480 | 
             
                when :age
         | 
| @@ -2522,13 +2524,13 @@ LONG_TEXT_1 = ["To whom it may concern,", | |
| 2522 2524 | 
             
                when :rovar
         | 
| 2523 2525 | 
             
                  login.gsub(/([cdfghklmnpqrstvwxz])/, "\\1o\\1")
         | 
| 2524 2526 | 
             
                when :zor
         | 
| 2525 | 
            -
                  "#{stripped}zor"
         | 
| 2527 | 
            +
                  "#{stripped.gsub(/[szx]+/, "")}zor"
         | 
| 2526 2528 | 
             
                when :xor
         | 
| 2527 | 
            -
                  "#{stripped}xor"
         | 
| 2529 | 
            +
                  "#{stripped.gsub(/x$/, "")}xor"
         | 
| 2528 2530 | 
             
                when :ster
         | 
| 2529 | 
            -
                  "#{stripped}ster"
         | 
| 2531 | 
            +
                  "#{stripped.gsub(/s$/, "")}ster"
         | 
| 2530 2532 | 
             
                when :lor
         | 
| 2531 | 
            -
                  "#{stripped}lor"
         | 
| 2533 | 
            +
                  "#{stripped.gsub(/l$/, "")}lor"
         | 
| 2532 2534 | 
             
                when :iam
         | 
| 2533 2535 | 
             
                  "iam#{login}"
         | 
| 2534 2536 | 
             
                when :thereal
         | 
    
        metadata
    CHANGED
    
    | @@ -3,14 +3,14 @@ rubygems_version: 0.8.11 | |
| 3 3 | 
             
            specification_version: 1
         | 
| 4 4 | 
             
            name: babel
         | 
| 5 5 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 6 | 
            -
              version: 0.1. | 
| 7 | 
            -
            date: 2006-12- | 
| 6 | 
            +
              version: 0.1.3
         | 
| 7 | 
            +
            date: 2006-12-22 00:00:00 +01:00
         | 
| 8 8 | 
             
            summary: Lorem ipsum generator on methamphetamine
         | 
| 9 9 | 
             
            require_paths: 
         | 
| 10 10 | 
             
            - lib
         | 
| 11 11 | 
             
            email: ryand-ruby@zenspider.com
         | 
| 12 12 | 
             
            homepage: http://www.zenspider.com/ZSS/Products/babel/
         | 
| 13 | 
            -
            rubyforge_project:  | 
| 13 | 
            +
            rubyforge_project: adocca-plugins
         | 
| 14 14 | 
             
            description: Ryan Davis is too lazy to write a description
         | 
| 15 15 | 
             
            autorequire: 
         | 
| 16 16 | 
             
            default_executable: 
         | 
| @@ -26,7 +26,7 @@ platform: ruby | |
| 26 26 | 
             
            signing_key: 
         | 
| 27 27 | 
             
            cert_chain: 
         | 
| 28 28 | 
             
            authors: 
         | 
| 29 | 
            -
            -  | 
| 29 | 
            +
            - adocca Entertainment AB
         | 
| 30 30 | 
             
            files: 
         | 
| 31 31 | 
             
            - History.txt
         | 
| 32 32 | 
             
            - Manifest.txt
         |