boston_ipsum 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cdaf46bc326f13b2d1cb1930f9a381cba24c4120
4
- data.tar.gz: ef9401f51ab1d1323a9424413e3e14f21012b3aa
3
+ metadata.gz: 6cbd5da62e1178670056baa2a62b1dc748320422
4
+ data.tar.gz: 3d9f445901083bc06af3752129155dc45f87fa66
5
5
  SHA512:
6
- metadata.gz: d2bae7a4a6c534b08a0382b4928c4e586af4028a5aec7d3f9b22d726b20eb86c1c2c725873585301f37a2f436a941f566534df2ba5e11dc10983254acf8cedb1
7
- data.tar.gz: 08aa70bd77cd4b053a43db76ed842ea2a6b1a5c11eacd5b172a2f7d46604cdb8f8897f4d19ab0fa1f05201838b162a8e0edf74c8e74c4221471781dcc5c64390
6
+ metadata.gz: 6201d3d46a79749b6069eeba640cf1da347c524e72f888f9103e689c8944da77500374c8b31dff6099c3cd5b05d8b3eb18373d6b8440d3d8f53426049baff913
7
+ data.tar.gz: a69369be8ffbf00dabd3e6e5101f440f46f48ed2050a32a27791f79ba29694756da40f7c2532c5f288f34bade1b98967c33837f17a641633db50e62deedf39ec
@@ -1,3 +1,3 @@
1
1
  module BostonIpsum
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/lib/boston_ipsum.rb CHANGED
@@ -1,14 +1,15 @@
1
1
  require "boston_ipsum/version"
2
2
 
3
3
  module BostonIpsum
4
+
4
5
  def self.speak(integer)
5
6
  array = ["MGH", "Brady", "Cambridge", "Beantown", "Sox", "Patriots", "MIT", "Harvard", "Beacon Hill", "Dorchester", "Roxbury",
6
7
  "Brahmin", "The Cape", "Martha's Vineyard", "Eastie", "Southie", "The North End", "Somerville", "MBTA"]
7
- if integer > (array.count - 1)
8
- array.join(" ")
9
- else
10
- string = array[0..(integer - 1)].shuffle.join(" ")
11
- end
8
+ if integer > (array.count - 1)
9
+ array.join(" ")
10
+ else
11
+ string = array[0..(integer - 1)].shuffle.join(" ")
12
12
  end
13
13
  end
14
+
14
15
  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.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Waites