shakerspeare 0.1.1 → 0.1.2
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 +4 -4
- data/README.md +26 -5
- data/lib/shakerspeare.rb +3 -3
- data/lib/shakerspeare/version.rb +1 -1
- data/shakerspeare-0.1.1.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c8461b22d28c07eff3d11ec57d1c67600373dd
|
4
|
+
data.tar.gz: 6c82608dcd476db13174994d14ba230e5a86719b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 446325dcb25a46df0c94a43e3d75b5385c4ac12f1850ec10708901e146e81048b7cd0c2ce5054c96caf467a9ea8c62758d6b1e82d48179476842210fd2a34863
|
7
|
+
data.tar.gz: e5c5e11dcab1f658cdef6cf205db698163d5b4d26bb9a37cfd22a21814ec75145b22de0fd2ff7f5673762774524c2d845d5a88e01323a464338507caaddaa46f
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Shakerspeare
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
An anemic Faker-esque generator of Shakespearean snippets.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -22,7 +20,30 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
Return a sonnet...
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
Shakerspeare.sonnet #=>'Since brass, nor stone, nor earth, nor boundless sea,
|
27
|
+
# But sad mortality o’ersways their power,
|
28
|
+
# How with this rage shall beauty hold a plea,
|
29
|
+
# Whose action is no stronger than a flower?
|
30
|
+
# O, how shall summer’s honey breath hold out
|
31
|
+
# Against the wrackful siege of battering days,
|
32
|
+
# When rocks impregnable are not so stout,
|
33
|
+
# Nor gates of steel so strong, but Time decays?
|
34
|
+
# O fearful meditation! Where, alack,
|
35
|
+
# Shall Time’s best jewel from Time’s chest lie hid?
|
36
|
+
# Or what strong hand can hold his swift foot back?
|
37
|
+
# Or who his spoil of beauty can forbid?
|
38
|
+
# O, none, unless this miracle have might,
|
39
|
+
# That in black ink my love may still shine bright.'
|
40
|
+
```
|
41
|
+
|
42
|
+
Or a variety of creative insults...
|
43
|
+
|
44
|
+
```ruby
|
45
|
+
Shakerspeare.sonnet #=>'Thou art like a toad; ugly and venomous.'
|
46
|
+
```
|
26
47
|
|
27
48
|
## Development
|
28
49
|
|
@@ -32,7 +53,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
53
|
|
33
54
|
## Contributing
|
34
55
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
56
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ctrutmann/shakerspeare. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
57
|
|
37
58
|
|
38
59
|
## License
|
data/lib/shakerspeare.rb
CHANGED
@@ -2,7 +2,7 @@ require "shakerspeare/version"
|
|
2
2
|
|
3
3
|
module Shakerspeare
|
4
4
|
def self.sonnet
|
5
|
-
|
5
|
+
return 'Since brass, nor stone, nor earth, nor boundless sea,
|
6
6
|
But sad mortality o’ersways their power,
|
7
7
|
How with this rage shall beauty hold a plea,
|
8
8
|
Whose action is no stronger than a flower?
|
@@ -19,8 +19,8 @@ module Shakerspeare
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.insult
|
22
|
-
insults = ['Thou art like a toad; ugly and venomous', 'You scullion! You rampallian! You fustilarian! I’ll tickle your catastrophe!', 'Methink’st thou art a general offence and every man should beat thee.', 'Your virginity breeds mites, much like a cheese.', 'Thine face is not worth sunburning.']
|
22
|
+
insults = ['Thou art like a toad; ugly and venomous.', 'You scullion! You rampallian! You fustilarian! I’ll tickle your catastrophe!', 'Methink’st thou art a general offence and every man should beat thee.', 'Your virginity breeds mites, much like a cheese.', 'Thine face is not worth sunburning.']
|
23
23
|
|
24
|
-
|
24
|
+
return insults[rand(insults.length) -1]
|
25
25
|
end
|
26
26
|
end
|
data/lib/shakerspeare/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shakerspeare
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christel Trutmann
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- lib/shakerspeare.rb
|
78
78
|
- lib/shakerspeare/version.rb
|
79
79
|
- shakerspeare-0.1.0.gem
|
80
|
+
- shakerspeare-0.1.1.gem
|
80
81
|
- shakerspeare.gemspec
|
81
82
|
- spec/shakerspeare_spec.rb
|
82
83
|
- spec/spec_helper.rb
|