blasphemy 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -10,7 +10,6 @@ begin
10
10
  gem.email = "tomekrs@o2.pl"
11
11
  gem.homepage = "http://github.com/tomash/blasphemy"
12
12
  gem.authors = ["Tomasz Stachewicz"]
13
- gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
14
13
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
15
14
  end
16
15
  Jeweler::GemcutterTasks.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
@@ -1,54 +1,45 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{blasphemy}
8
- s.version = "0.1.1"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tomasz Stachewicz"]
12
- s.date = %q{2011-06-24}
12
+ s.date = %q{2011-10-15}
13
13
  s.description = %q{Surprise everyone by stubbing placeholder texts with something more original than boring "Lorem ipsum dolor sit amet". Embrace and extend, creating own wordlists for hilarious (or blasphemous or whatever you like) generated texts.}
14
14
  s.email = %q{tomekrs@o2.pl}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  ".document",
21
- ".gitignore",
22
- "LICENSE",
23
- "README.rdoc",
24
- "Rakefile",
25
- "VERSION",
26
- "blasphemy.gemspec",
27
- "lib/blasphemy.rb",
28
- "test/helper.rb",
29
- "test/test_blasphemy.rb"
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "blasphemy.gemspec",
26
+ "lib/blasphemy.rb",
27
+ "test/helper.rb",
28
+ "test/test_blasphemy.rb"
30
29
  ]
31
30
  s.homepage = %q{http://github.com/tomash/blasphemy}
32
- s.rdoc_options = ["--charset=UTF-8"]
33
31
  s.require_paths = ["lib"]
34
32
  s.rubygems_version = %q{1.3.7}
35
33
  s.summary = %q{A different Lorem Ipsum generator, lightweight and extensible}
36
- s.test_files = [
37
- "test/test_blasphemy.rb",
38
- "test/helper.rb"
39
- ]
40
34
 
41
35
  if s.respond_to? :specification_version then
42
36
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
37
  s.specification_version = 3
44
38
 
45
39
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
- s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
47
40
  else
48
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
49
41
  end
50
42
  else
51
- s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
52
43
  end
53
44
  end
54
45
 
@@ -3,6 +3,7 @@ module Faker
3
3
  # heavily inspired (mildly said) by lorem_ipsum.py from Django contrib/webdesign
4
4
  class CustomIpsum
5
5
  attr_accessor :wordlist
6
+
6
7
  def initialize
7
8
  raise 'Doh! You are trying to instantiate an abstract class!'
8
9
  end
@@ -69,4 +70,31 @@ module Faker
69
70
  'turkey', 'ullamco', 'ut', 'velit', 'veniam', 'venison', 'venisonadipisicing' ]
70
71
  end
71
72
  end
73
+
74
+ class SamuelLIpsum < CustomIpsum
75
+ def initialize
76
+ @wordlist = []
77
+ @paragraph_list = [
78
+ "Look, just because I don't be givin' no man a foot massage don't make it right for Marsellus to throw Antwone into a glass motherfuckin' house, fuckin' up the way the nigger talks. Motherfucker do that shit to me, he better paralyze my ass, 'cause I'll kill the motherfucker, know what I'm sayin'?",
79
+ "My money's in that office, right? If she start giving me some bullshit about it ain't there, and we got to go someplace else and get it, I'm gonna shoot you in the head then and there. Then I'm gonna shoot that bitch in the kneecaps, find out where my goddamn money is. She gonna tell me too. Hey, look at me when I'm talking to you, motherfucker. You listen: we go in there, and that nigga Winston or anybody else is in there, you the first motherfucker to get shot. You understand?",
80
+ "Do you see any Teletubbies in here? Do you see a slender plastic tag clipped to my shirt with my name printed on it? Do you see a little Asian child with a blank expression on his face sitting outside on a mechanical helicopter that shakes when you put quarters in it? No? Well, that's what you see at a toy store. And you must think you're in a toy store, because you're here shopping for an infant named Jeb.",
81
+ "You think water moves fast? You should see ice. It moves like it has a mind. Like it knows it killed the world once and got a taste for murder. After the avalanche, it took us a week to climb out. Now, I don't know exactly when we turned on each other, but I know that seven of us survived the slide... and only five made it out. Now we took an oath, that I'm breaking now. We said we'd say it was the snow that killed the other two, but it wasn't. Nature is lethal but it doesn't hold a candle to man.",
82
+ "The path of the righteous man is beset on all sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee.",
83
+ "Now that we know who you are, I know who I am. I'm not a mistake! It all makes sense! In a comic, you know how you can tell who the arch-villain's going to be? He's the exact opposite of the hero. And most times they're friends, like you and me! I should've known way back when... You know why, David? Because of the kids. They called me Mr Glass.",
84
+ "Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.",
85
+ "Normally, both your asses would be dead as fucking fried chicken, but you happen to pull this shit while I'm in a transitional period so I don't wanna kill you, I wanna help you. But I can't give you this case, it don't belong to me. Besides, I've already been through too much shit this morning over this case to hand it over to your dumb ass.",
86
+ "Now that there is the Tec-9, a crappy spray gun from South Miami. This gun is advertised as the most popular gun in American crime. Do you believe that shit? It actually says that in the little book that comes with it: the most popular gun in American crime. Like they're actually proud of that shit.",
87
+ "Well, the way they make shows is, they make one show. That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that one show they decide if they're going to make more shows. Some pilots get picked and become television programs. Some don't, become nothing. She starred in one of the ones that became nothing.",
88
+ "The path of the righteous man is beset on all sides by the iniquities of the selfish and the tyranny of evil men. Blessed is he who, in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy My brothers. And you will know My name is the Lord when I lay My vengeance upon thee."
89
+ ]
90
+
91
+ def paragraph
92
+ @paragraph_list[rand(@paragraph_list.size)]
93
+ end
94
+
95
+ def paragraphs(count)
96
+ (1..count).map{paragraph}.join(" \n")
97
+ end
98
+ end
99
+ end
72
100
  end
@@ -1,6 +1,5 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
- require 'shoulda'
4
3
 
5
4
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
5
  $LOAD_PATH.unshift(File.dirname(__FILE__))
@@ -1,7 +1,19 @@
1
1
  require 'helper'
2
2
 
3
3
  class TestBlasphemy < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
4
+ def setup
5
+ @tabula = Faker::TabulaIpsum.new
6
+ end
7
+
8
+ def test_one_word_tabula_ipsum
9
+ # "TabulaIpsum with one word will generate text of this one word"
10
+ @tabula.wordlist = ["foo"]
11
+ assert_equal(["foo"], @tabula.words(1))
12
+ assert_match(/foo/i, @tabula.sentence)
13
+ end
14
+
15
+ def test_five_word_tabula_ipsum
16
+ @tabula.wordlist = ["foo","foo","foo","foo","foo"]
17
+ assert(@tabula.sentence.scan("foo").size > 3)
6
18
  end
7
19
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blasphemy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
11
10
  platform: ruby
12
11
  authors:
13
12
  - Tomasz Stachewicz
@@ -15,23 +14,10 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2011-06-24 00:00:00 +02:00
17
+ date: 2011-10-15 00:00:00 +02:00
19
18
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: thoughtbot-shoulda
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
33
- type: :development
34
- version_requirements: *id001
19
+ dependencies: []
20
+
35
21
  description: Surprise everyone by stubbing placeholder texts with something more original than boring "Lorem ipsum dolor sit amet". Embrace and extend, creating own wordlists for hilarious (or blasphemous or whatever you like) generated texts.
36
22
  email: tomekrs@o2.pl
37
23
  executables: []
@@ -43,7 +29,6 @@ extra_rdoc_files:
43
29
  - README.rdoc
44
30
  files:
45
31
  - .document
46
- - .gitignore
47
32
  - LICENSE
48
33
  - README.rdoc
49
34
  - Rakefile
@@ -57,8 +42,8 @@ homepage: http://github.com/tomash/blasphemy
57
42
  licenses: []
58
43
 
59
44
  post_install_message:
60
- rdoc_options:
61
- - --charset=UTF-8
45
+ rdoc_options: []
46
+
62
47
  require_paths:
63
48
  - lib
64
49
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -66,7 +51,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
51
  requirements:
67
52
  - - ">="
68
53
  - !ruby/object:Gem::Version
69
- hash: 3
70
54
  segments:
71
55
  - 0
72
56
  version: "0"
@@ -75,7 +59,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
59
  requirements:
76
60
  - - ">="
77
61
  - !ruby/object:Gem::Version
78
- hash: 3
79
62
  segments:
80
63
  - 0
81
64
  version: "0"
@@ -86,6 +69,5 @@ rubygems_version: 1.3.7
86
69
  signing_key:
87
70
  specification_version: 3
88
71
  summary: A different Lorem Ipsum generator, lightweight and extensible
89
- test_files:
90
- - test/test_blasphemy.rb
91
- - test/helper.rb
72
+ test_files: []
73
+
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC