balm 1.0.2 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/balm-1.0.0.gem +0 -0
- data/balm-1.0.1.gem +0 -0
- data/lib/balm/version.rb +1 -1
- data/lib/balm.rb +22 -3
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be52bed1e3419c05ae9053e3458e8e0fe3cafbc7d004280787203772e2d62436
|
4
|
+
data.tar.gz: 584a267f83d9009b07a5b00e29d9e2c01070134c6a774a6f37a49a33ce2431a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46cc8733bfb21fc73f466300c5dadf3d0bfc79260e3badd82d7e513a80105772948436ef284c08e570d9fae4b8f467058950acded9f6d912a37ef85c11b3c4be
|
7
|
+
data.tar.gz: b2dd7685c4c7b015ee9e69b2ad164fb8d7a58c38a9b4ae3c71fcc27cba13445b802d8801a7f73dbd67b183fdfceaba09caf8703d0363ee7af7e90d467f246996
|
data/README.md
CHANGED
@@ -28,7 +28,8 @@ require 'balm'
|
|
28
28
|
Balm::Plot.trope #=> "Arranged Marriage"
|
29
29
|
Balm::Plot.archetype(4) #=> "Minor God, Curate, Bard, and Ghost"
|
30
30
|
Balm::Plot.setting #=> "The ruins of a Castle"
|
31
|
-
Balm::Plot.all(
|
31
|
+
Balm::Plot.all(2) #=> {:trope=>"Helping each other get revenge", :archetypes=>"Ghost and King", :setting=>"The city just before dawn"}
|
32
|
+
Balm::Plot.all(3, "prompt") #=> "Once upon a time, a Mage, Princess, and Dandy in The city just before dawn and One is a Celebrity and the other is not."
|
32
33
|
|
33
34
|
```
|
34
35
|
|
data/balm-1.0.0.gem
ADDED
Binary file
|
data/balm-1.0.1.gem
ADDED
Binary file
|
data/lib/balm/version.rb
CHANGED
data/lib/balm.rb
CHANGED
@@ -31,7 +31,7 @@ module Balm
|
|
31
31
|
elsif num >= 3
|
32
32
|
archetypes_list = archetypes.sample(num)
|
33
33
|
archetypes_list[-1] = "and " + archetypes_list[-1]
|
34
|
-
archetypes_list.join("
|
34
|
+
archetypes_list.join(", ")
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -44,8 +44,27 @@ module Balm
|
|
44
44
|
settings.sample
|
45
45
|
end
|
46
46
|
|
47
|
-
def all(num)
|
48
|
-
|
47
|
+
def all(num, type = "list")
|
48
|
+
if type === "prompt"
|
49
|
+
if trope.downcase.end_with?("!")
|
50
|
+
if setting.downcase.start_with?(/[io]+/)
|
51
|
+
puts "Once upon a time, a #{archetype(num)} are #{setting.downcase} and #{trope.downcase} Have you found your path?"
|
52
|
+
else
|
53
|
+
puts "Once upon a time, a #{archetype(num)} are in #{setting.downcase} and #{trope.downcase} Have you found your path?"
|
54
|
+
end
|
55
|
+
else
|
56
|
+
if setting.downcase.start_with?(/[io]+/)
|
57
|
+
puts "Once upon a time, a #{archetype(num)} are #{setting.downcase} and #{trope.downcase}. Have you found your path?"
|
58
|
+
elsif setting.downcase.start_with?("as")
|
59
|
+
puts "Once upon a time, a #{archetype(num)} #{setting.downcase} and #{trope.downcase}. Have you found your path?"
|
60
|
+
else
|
61
|
+
puts "Once upon a time, a #{archetype(num)} are in #{setting.downcase} and #{trope.downcase}. Have you found your path?"
|
62
|
+
end
|
63
|
+
end
|
64
|
+
else
|
65
|
+
prompt_list = { trope: trope, archetypes: archetype(num), setting: setting }
|
66
|
+
puts prompt_list
|
67
|
+
end
|
49
68
|
end
|
50
69
|
end
|
51
70
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: balm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chelsea Roston
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -43,6 +43,8 @@ files:
|
|
43
43
|
- LICENSE.txt
|
44
44
|
- README.md
|
45
45
|
- Rakefile
|
46
|
+
- balm-1.0.0.gem
|
47
|
+
- balm-1.0.1.gem
|
46
48
|
- balm.gemspec
|
47
49
|
- bin/console
|
48
50
|
- bin/setup
|