warren_ipsum_safe 0.1.1
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 +7 -0
- data/.gitignore +6 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +29 -0
- data/LICENSE +13 -0
- data/README.md +12 -0
- data/Rakefile +2 -0
- data/bin/warren_ipsum +6 -0
- data/data/warren.txt +94 -0
- data/lib/warren_ipsum/base.rb +24 -0
- data/lib/warren_ipsum/data.rb +19 -0
- data/lib/warren_ipsum/version.rb +3 -0
- data/lib/warren_ipsum.rb +8 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/warren_ipsum/base_spec.rb +26 -0
- data/spec/warren_ipsum/data_spec.rb +19 -0
- data/warren_ipsum.gemspec +25 -0
- metadata +99 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e9a731cae5f2bbb541ab655e91bc36f2baac53e3
|
4
|
+
data.tar.gz: 6c4798a81f9efd83fd1990670b42539b66fd53e9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 2bc76cb337f236f28d994f3fc210334e6fa71709b8c99ae40e4356f169a69a304fa29baa3a940532708b71b9dae0e21d9bb02035f643a78e98c565f4dfea1299
|
7
|
+
data.tar.gz: be9dcc496179bf2208d8e8bd590a7c25e4cdaefec2066c4af7088ed7b16518123189a76443ef77d9bc219d62cf22864882e7008a9c91997838c9e0b9fd8b2110
|
data/.gitignore
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.6
|
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
warren_ipsum (0.1.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.2.4)
|
10
|
+
rake (10.1.0)
|
11
|
+
rspec (2.14.1)
|
12
|
+
rspec-core (~> 2.14.0)
|
13
|
+
rspec-expectations (~> 2.14.0)
|
14
|
+
rspec-mocks (~> 2.14.0)
|
15
|
+
rspec-core (2.14.5)
|
16
|
+
rspec-expectations (2.14.3)
|
17
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
18
|
+
rspec-mocks (2.14.3)
|
19
|
+
|
20
|
+
PLATFORMS
|
21
|
+
ruby
|
22
|
+
|
23
|
+
DEPENDENCIES
|
24
|
+
rake
|
25
|
+
rspec (~> 2.14.0)
|
26
|
+
warren_ipsum!
|
27
|
+
|
28
|
+
BUNDLED WITH
|
29
|
+
1.10.6
|
data/LICENSE
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
2
|
+
Version 2, December 2004
|
3
|
+
|
4
|
+
Copyright (C) 2013 Sebastian von Conrad <sebastian@vonconrad.com>, Tom Bryan <hello@tombryan.co>
|
5
|
+
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# Warren Ipsum, the gem
|
2
|
+
|
3
|
+
This gem is based on [Warren Ipsum](https://github.com/vonconrad/warren_ipsum).
|
4
|
+
|
5
|
+
## Notes about this fork.
|
6
|
+
|
7
|
+
This is a poorly maintained fork from the original gem solely for the purpose of having a more work-safe version of the data file.
|
8
|
+
|
9
|
+
For all real things you should be looking at https://github.com/vonconrad/warren_ipsum
|
10
|
+
|
11
|
+
If you want to use this gem then its published as warren_ipsum_safe.
|
12
|
+
|
data/Rakefile
ADDED
data/bin/warren_ipsum
ADDED
data/data/warren.txt
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
these damn designers and their designer-words
|
2
|
+
I got married and now I have all these unresolved dependencies
|
3
|
+
well it's not my problem if they end up with crappy artifacts because they didn't use .png
|
4
|
+
errrm you might need to rake db:migrate
|
5
|
+
say no to overwriting
|
6
|
+
don't you have an Avdi tweet to re-post or something?
|
7
|
+
ZOMG LUNCHTIEM
|
8
|
+
.Net? Ewww
|
9
|
+
I have no need for VPS hosting any more
|
10
|
+
I cry every time I think how much I paid for my first 1GB HDD
|
11
|
+
your attendance at daily stand ups is required - bring pastries
|
12
|
+
obvious joke is obvious
|
13
|
+
Yawn
|
14
|
+
Can't figure out if it's ignorance or arrogance that leads people to half implement an existing design pattern and call it something else
|
15
|
+
well I'm glad we had this talk
|
16
|
+
set your velocity to 30
|
17
|
+
glad to hear that .NET programmers are still the same
|
18
|
+
I think we've seen enough - rewrite
|
19
|
+
Ahhhh I love it when someone rolls their own complete MVC framework
|
20
|
+
shakes fist at Timecop and Cucumber
|
21
|
+
nice try paper boy
|
22
|
+
cake tastes better
|
23
|
+
nooooo not the stupid video popover
|
24
|
+
next HOVERBOARDS
|
25
|
+
actual LOL
|
26
|
+
looks like that stuff could be extracted into a more general method to sanitize the page
|
27
|
+
evil? it's positively Lovecraft-ian
|
28
|
+
code review coming soon to a GitHub account near you
|
29
|
+
just running the full cucumber
|
30
|
+
all singing all dancing code
|
31
|
+
annoyingly we spell aluminium correctly as per the IUPAC standards yet the Americans won't get over it
|
32
|
+
I stood behind Aaron awkwardly for a whole 2 minutes
|
33
|
+
estimation session is down for Thursday - 9pts to go by Friday
|
34
|
+
brb coffee
|
35
|
+
back in my day when we lost Lego instructions we just cried inconsolably for a bit then built something else
|
36
|
+
what can I say? I'm apparently quotable
|
37
|
+
it's gonna be webscale baby
|
38
|
+
no problems Shouty McShoutsalot
|
39
|
+
my office made it as high as 34 degrees celsius on a summer afternoon once
|
40
|
+
it's security theatre 100%
|
41
|
+
I got told off for not taking off my shoes in one airport then got told off for taking them off in the next one
|
42
|
+
insufficient cake?
|
43
|
+
404 cake not found
|
44
|
+
as soon as mediation is classed as billable I'm there
|
45
|
+
derp derp
|
46
|
+
kool
|
47
|
+
I'm gonna be ironic and join up using my Facebook account
|
48
|
+
can't recall the last time I thought "wow I bet the rest of the world would love to see me searching for this"
|
49
|
+
pffft stealth
|
50
|
+
oh thank god I thought this was gonna be some kind of toilet tweet
|
51
|
+
and they say nerds smell
|
52
|
+
after that you should be drinking scotch at 10am like a bawse
|
53
|
+
fuuuuuu
|
54
|
+
could you do something dirty to inject some JS which disables Cufon so that it doesn't molest the DOM
|
55
|
+
you're heading into unintended side-effects territory
|
56
|
+
display:none and this would be far less of an issue
|
57
|
+
what a HACK
|
58
|
+
unberiebable
|
59
|
+
I just wish I could ignore emails - it must be nice to be completely self-absorbed like that
|
60
|
+
gemfury
|
61
|
+
not paying for that we should roll our own
|
62
|
+
I know what you used the company credit card on last summer
|
63
|
+
did I mention before that Nirvana's Bleach is massively underrated?
|
64
|
+
I'm equal parts concerned and jealous
|
65
|
+
cake is delicious
|
66
|
+
circling vultures
|
67
|
+
if you're not in D&D you're nowhere
|
68
|
+
what's the design equivalent of a brogrammer?
|
69
|
+
crack a branch
|
70
|
+
awww nu
|
71
|
+
dust off your OCaml - maybe you can get picked up by a HFT desk
|
72
|
+
it's mandatory to go in daylight hours for maximum photographer happiness
|
73
|
+
I'm moving to Utah so I can marry git bisect as well
|
74
|
+
these young bucks have never seen a nuclear winter
|
75
|
+
why does he carry on like he's the only one that EVER gets hassled by recruiters?
|
76
|
+
let me draw you a Venn Diagram
|
77
|
+
you should send that to ol' Grimjaw
|
78
|
+
I know you guys will find it tough without me but I know you have it in you to soldier on in my absence
|
79
|
+
hey I enjoy going to the 1% floor just so I can be all like "yeah look at me I'm wearing SHORTS"
|
80
|
+
I'm playing text editor Pokemon
|
81
|
+
for $32m I'd write machine code with a crayon
|
82
|
+
my flat white was a latte in a cup
|
83
|
+
this is like employment archaeology
|
84
|
+
embrace the cheese
|
85
|
+
maybe if the original hadn't been written in Delphi it would have been you know portable within the $32m budget
|
86
|
+
it's automated distributed and reasonably sophistsicated
|
87
|
+
JS developers are the kind of people who'd start bushfires, you know
|
88
|
+
you joke, but python...
|
89
|
+
I love WA, they have the special kind of crazy there
|
90
|
+
it's psychology and not technology
|
91
|
+
that joke was funny when Aaron Patterson did it, now every other ruby dev recycles it
|
92
|
+
DJ is like _Fisher Price’s My First Job Queue_
|
93
|
+
Bloody kids these days don’t even know how to curmudge properly.
|
94
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module WarrenIpsum
|
2
|
+
class Base
|
3
|
+
DEFAULT_NUMBER_OF_LINES = 1
|
4
|
+
|
5
|
+
def initialize(options = {})
|
6
|
+
@lines = options.fetch(:lines, DEFAULT_NUMBER_OF_LINES)
|
7
|
+
@data = Data.new
|
8
|
+
end
|
9
|
+
|
10
|
+
def generate
|
11
|
+
lines = @lines.times.map do
|
12
|
+
@data.random_line
|
13
|
+
end
|
14
|
+
|
15
|
+
lines.join(', ') + '.'
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def load_data_source
|
21
|
+
File.expand_path("../../bin", "/tmp/x")
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module WarrenIpsum
|
2
|
+
class Data
|
3
|
+
DATA_FILE = File.join(File.dirname(__FILE__), '../../data/warren.txt')
|
4
|
+
|
5
|
+
def random_line
|
6
|
+
source[random_index]
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def random_index
|
12
|
+
Random.rand(source.length)
|
13
|
+
end
|
14
|
+
|
15
|
+
def source
|
16
|
+
@source ||= File.readlines(DATA_FILE).map(&:strip)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/warren_ipsum.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe WarrenIpsum::Base do
|
4
|
+
let(:line) { 'actual LOL' }
|
5
|
+
let(:data) { WarrenIpsum::Data }
|
6
|
+
|
7
|
+
describe '#generate' do
|
8
|
+
subject(:warren_ipsum) { WarrenIpsum::Base.new }
|
9
|
+
|
10
|
+
before do
|
11
|
+
allow(data).to receive(:new).and_return(double(:random_line => line))
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'generates a line from data with a period at the end' do
|
15
|
+
expect(warren_ipsum.generate).to eql('actual LOL.')
|
16
|
+
end
|
17
|
+
|
18
|
+
context 'when multiple lines are requested' do
|
19
|
+
subject(:warren_ipsum) { WarrenIpsum::Base.new(:lines => 3) }
|
20
|
+
|
21
|
+
it 'generates multiple lines, separated by comma' do
|
22
|
+
expect(warren_ipsum.generate).to eql('actual LOL, actual LOL, actual LOL.')
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec::Matchers.define :be_included_in do |expected|
|
4
|
+
match do |actual|
|
5
|
+
expected.include?(actual)
|
6
|
+
end
|
7
|
+
end
|
8
|
+
|
9
|
+
describe WarrenIpsum::Data do
|
10
|
+
describe '#random_line' do
|
11
|
+
let(:data_file) { File.readlines(File.join(File.dirname(__FILE__), '../../data/warren.txt')).map(&:strip) }
|
12
|
+
|
13
|
+
subject(:data) { WarrenIpsum::Data.new }
|
14
|
+
|
15
|
+
it 'grabs a random line from the data file' do
|
16
|
+
expect(data.random_line).to be_included_in(data_file)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
|
3
|
+
require 'warren_ipsum/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = 'warren_ipsum_safe'
|
7
|
+
s.version = WarrenIpsum::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ['Sebastian von Conrad', 'Tom Bryan', 'nigelfds']
|
10
|
+
s.email = ['sebastian@vonconrad.com', 'hello@tombryan.co', 'dev@nigel.in']
|
11
|
+
s.homepage = 'https://github.com/nigelfds/warren_ipsum'
|
12
|
+
s.summary = %q{Warren is a sensible Rails developer with good hair}
|
13
|
+
s.description = %q{One time at RailsCamp Warren stayed up until like 10pm going crazy sick on some code it was so fun OMG you should've been there just wild man}
|
14
|
+
s.license = 'MIT'
|
15
|
+
|
16
|
+
s.required_ruby_version = '~> 2.0'
|
17
|
+
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
|
+
s.require_paths = ['lib']
|
22
|
+
|
23
|
+
s.add_development_dependency 'rake'
|
24
|
+
s.add_development_dependency 'rspec', '~> 2.14.0'
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: warren_ipsum_safe
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sebastian von Conrad
|
8
|
+
- Tom Bryan
|
9
|
+
- nigelfds
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rake
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ">="
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '0'
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: rspec
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 2.14.0
|
36
|
+
type: :development
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 2.14.0
|
43
|
+
description: One time at RailsCamp Warren stayed up until like 10pm going crazy sick
|
44
|
+
on some code it was so fun OMG you should've been there just wild man
|
45
|
+
email:
|
46
|
+
- sebastian@vonconrad.com
|
47
|
+
- hello@tombryan.co
|
48
|
+
- dev@nigel.in
|
49
|
+
executables:
|
50
|
+
- warren_ipsum
|
51
|
+
extensions: []
|
52
|
+
extra_rdoc_files: []
|
53
|
+
files:
|
54
|
+
- ".gitignore"
|
55
|
+
- ".ruby-version"
|
56
|
+
- CHANGELOG.md
|
57
|
+
- Gemfile
|
58
|
+
- Gemfile.lock
|
59
|
+
- LICENSE
|
60
|
+
- README.md
|
61
|
+
- Rakefile
|
62
|
+
- bin/warren_ipsum
|
63
|
+
- data/warren.txt
|
64
|
+
- lib/warren_ipsum.rb
|
65
|
+
- lib/warren_ipsum/base.rb
|
66
|
+
- lib/warren_ipsum/data.rb
|
67
|
+
- lib/warren_ipsum/version.rb
|
68
|
+
- spec/spec_helper.rb
|
69
|
+
- spec/warren_ipsum/base_spec.rb
|
70
|
+
- spec/warren_ipsum/data_spec.rb
|
71
|
+
- warren_ipsum.gemspec
|
72
|
+
homepage: https://github.com/nigelfds/warren_ipsum
|
73
|
+
licenses:
|
74
|
+
- MIT
|
75
|
+
metadata: {}
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '2.0'
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirements: []
|
91
|
+
rubyforge_project:
|
92
|
+
rubygems_version: 2.2.3
|
93
|
+
signing_key:
|
94
|
+
specification_version: 4
|
95
|
+
summary: Warren is a sensible Rails developer with good hair
|
96
|
+
test_files:
|
97
|
+
- spec/spec_helper.rb
|
98
|
+
- spec/warren_ipsum/base_spec.rb
|
99
|
+
- spec/warren_ipsum/data_spec.rb
|