balm 1.0.0 → 1.0.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/balm/version.rb +1 -1
  3. data/lib/balm.rb +7 -7
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39fe20c9bc8e6065636d0929f3968b4ea0eb9ccabce5e4b1a82f02fa313dad85
4
- data.tar.gz: 274c50d2c6bdb3802f9c81748ba42281944beb427913b174db93786b2832ce1c
3
+ metadata.gz: b61f96993fc482b82969ca1b93afa8e18b32c3132f36862baf801aa826900f6f
4
+ data.tar.gz: 9ecfdf42d35b44e4131f22a3dd1a066d1d1022e0ec5c0c02d8495dcd91605e89
5
5
  SHA512:
6
- metadata.gz: dd3c4b4dc605fd898233bacb488b9ff1885aa7bd98c60f5ae25719537e34223e8b8e6d3682df9644f58dfdae32a694cc200bd9d0a4d3145783a1e2c3a9c7cc26
7
- data.tar.gz: b3e25baa492b5128befb5461fb68aadcc722b2b06613bf749651f2059032440e870fad3950d2c8c0dbdcc60bd9827217baccb7ff439d192b4d88298caf43d6c1
6
+ metadata.gz: e5be33bbf9e7e4d050450d04e04b407179d5b8a600e9ba674613d00eeae606f2bd9682976b2d5646c0770ba99f8a10a486547ab519c3be677af2349373167a7b
7
+ data.tar.gz: 121ed9549a6cd9c1160c6d960a7811b7a997b3b66f6cac69802588ae0a13f9ec132c9dd4bb9d6723984ba38f16f03e2e8d104c0af86d348637f5460374fb770e
data/lib/balm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Balm
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
data/lib/balm.rb CHANGED
@@ -15,7 +15,7 @@ module Balm
15
15
  YAML.load_file(trope_data).each do |trope|
16
16
  tropes << trope.strip
17
17
  end
18
- return tropes.sample
18
+ tropes.sample
19
19
  end
20
20
 
21
21
  def archetype(num)
@@ -25,13 +25,13 @@ module Balm
25
25
  archetypes << archetype.strip
26
26
  end
27
27
  if num === 1
28
- return archetypes.sample(num)
28
+ archetypes.sample(num)
29
29
  elsif num === 2
30
- return archetypes.sample(num).join(" and ")
30
+ archetypes.sample(num).join(" and ")
31
31
  elsif num >= 3
32
32
  archetypes_list = archetypes.sample(num)
33
33
  archetypes_list[-1] = "and " + archetypes_list[-1]
34
- return archetypes_list.join(", ")
34
+ archetypes_list.join(" , ")
35
35
  end
36
36
  end
37
37
 
@@ -41,12 +41,12 @@ module Balm
41
41
  YAML.load_file(setting_data).each do |setting|
42
42
  settings << setting.strip
43
43
  end
44
- return settings.sample
44
+ settings.sample
45
45
  end
46
46
 
47
47
  def all(num)
48
- return "Once upon a time, a #{archetype(num)} in a #{setting} and #{trope} happens. Have you found your path?"
48
+ "Once upon a time, a #{archetype(num)} in a #{setting} and #{trope} happens. Have you found your path?"
49
49
  end
50
50
  end
51
51
  end
52
- end
52
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: balm
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
  - Chelsea Roston