boston_ipsum 1.5.0 → 1.5.5
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 +20 -6
- data/lib/boston_ipsum.rb +1 -1
- data/lib/boston_ipsum/version.rb +1 -1
- metadata +1 -2
- data/boston_ipsum-1.0.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cd24584d7ab56905f8b142020f95c83633262d1
|
4
|
+
data.tar.gz: 28a6f72350de685ef17b278c332ac3fbe3d5aa05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 400dea437233eeaa0fe26590f8bdf1d761bb82f98802d957f116956bfaa7d564a258eb988260d6f05a9f5ff6876054f500414953661628469de78d7b3e50f37c
|
7
|
+
data.tar.gz: b394ff4c0f3fc24a08ddcfacaaa431b8821b8faaec951f155ce03e182530dace3e3c79af895820553b6a9daa597db45ba4a52dfa6e6a817840e6179ad667960b
|
data/README.md
CHANGED
@@ -1,11 +1,22 @@
|
|
1
1
|
# BostonIpsum
|
2
2
|
|
3
|
-
This gem uses Boston Words to provide Lorem Ipsum like filler text for
|
4
|
-
You simple install the gem, bundle, and call <%= BostonIpsum.speak(integer) %> in any view. The integer number allows you to return a randomized yet specific number of words.
|
3
|
+
This gem uses Boston Words to provide Lorem Ipsum like filler text for ruby based pages.
|
5
4
|
|
6
|
-
|
5
|
+
You simple install the gem, bundle, and call <%= BostonIpsum.speak(integer) %> in any view. The integer number allows you to return a randomized yet specific number of words. To add words, make a pull request.
|
7
6
|
|
8
|
-
|
7
|
+
For example,
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
<%= BostonIpsum.speak(2) %>
|
11
|
+
```
|
12
|
+
|
13
|
+
could output "Patriots Somerville", and
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
<%= BostonIpsum.speak(4) %>
|
17
|
+
```
|
18
|
+
|
19
|
+
could output "Sox Eastie Southie MBTA"
|
9
20
|
|
10
21
|
## Installation
|
11
22
|
|
@@ -25,11 +36,14 @@ Or install it yourself as:
|
|
25
36
|
|
26
37
|
## Usage
|
27
38
|
|
39
|
+
Simply add:
|
40
|
+
|
28
41
|
```ruby
|
29
42
|
<%= BostonIpsum.speak(5) %>
|
30
43
|
```
|
31
44
|
|
32
|
-
|
45
|
+
into any view after requiring and bundling the gem into your ruby project.
|
46
|
+
|
33
47
|
|
34
48
|
## Development
|
35
49
|
|
@@ -39,7 +53,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
39
53
|
|
40
54
|
## Contributing
|
41
55
|
|
42
|
-
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/piratebroadcast/boston_ipsum.
|
43
57
|
|
44
58
|
|
45
59
|
## License
|
data/lib/boston_ipsum.rb
CHANGED
@@ -3,7 +3,7 @@ require "boston_ipsum/version"
|
|
3
3
|
module BostonIpsum
|
4
4
|
|
5
5
|
def self.speak(integer)
|
6
|
-
if integer.is_a? Integer && integer > 0
|
6
|
+
if (integer.is_a? (Integer)) && integer > 0
|
7
7
|
array = ["MGH", "Brady", "Cambridge", "Beantown", "Sox", "Patriots", "MIT", "Harvard", "Beacon Hill", "Dorchester", "Roxbury",
|
8
8
|
"Brahmin", "The Cape", "Martha's Vineyard", "Eastie", "Southie", "The North End", "Somerville", "MBTA", "JesseWaites.com"]
|
9
9
|
if integer > (array.count - 1)
|
data/lib/boston_ipsum/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boston_ipsum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Waites
|
@@ -52,7 +52,6 @@ files:
|
|
52
52
|
- Rakefile
|
53
53
|
- bin/console
|
54
54
|
- bin/setup
|
55
|
-
- boston_ipsum-1.0.1.gem
|
56
55
|
- boston_ipsum.gemspec
|
57
56
|
- lib/boston_ipsum.rb
|
58
57
|
- lib/boston_ipsum/version.rb
|
data/boston_ipsum-1.0.1.gem
DELETED
Binary file
|