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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2220635b312be6647623878039fe1075de610b8c
4
- data.tar.gz: 290bf86ccdd832ef6217f499fa1a75ab1bae6a48
3
+ metadata.gz: 7cd24584d7ab56905f8b142020f95c83633262d1
4
+ data.tar.gz: 28a6f72350de685ef17b278c332ac3fbe3d5aa05
5
5
  SHA512:
6
- metadata.gz: be18ead5b2a6a38aacf1a2e9892f55a1ebc2698c94b6ccdcca447371f20c2fee770397e182023c882cf6f9894b574941eae5ee6da4209e9d0ce62d53e31d31f3
7
- data.tar.gz: 297cbb828bb8f2c34b0cddbfc7583f6f73a8686d9c2821c616ec3ab9e5c7223ab9225ee065d70d6a3663bde56289546171e638bf5d38dfeef969f2cef64c6843
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 pages, such as show.html.erb
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
- For example, <%= BostonIpsum.speak(2) %> could output "Patriots Somerville"
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
- <%= BostonIpsum.speak(4) %> could output "Martha's Vineyard Eastie Southie MBTA"
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
- TODO: Write usage instructions here
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/[USERNAME]/boston_ipsum.
56
+ Bug reports and pull requests are welcome on GitHub at https://github.com/piratebroadcast/boston_ipsum.
43
57
 
44
58
 
45
59
  ## License
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module BostonIpsum
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.5"
3
3
  end
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.0
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
Binary file