balm 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: 3eb28be9a53889f36717493e8825e181ecd4a4f0497893c37c86c5317b97be33
4
- data.tar.gz: 1ba4769a1a3ad61dc26f60d2e1c99518a5f25b793acf3417a7fef13f01d59ba2
3
+ metadata.gz: 0fa3963043f90dc596b712fd792aa41f43e15fd54e76e2cf081f0516d15872f8
4
+ data.tar.gz: 7825696f68cb676bd7830a3d203f7bc30c7b437d9baefb09799cbb95ff651b85
5
5
  SHA512:
6
- metadata.gz: 4d543c0346047807b85b9cc5f0d23fd0c40093fad4b37c99e140bc6d8d39d29bfccfdb2bbd61c39064735a118c194fd2ce68b56714626958adbdd958d303062e
7
- data.tar.gz: b1ce86d0c495340986752ee4e2443932227341e4a5757219f15f761c0f7dd1b825ac76b288590f3f2cb2f7af229a23c2ef5f61eb67b1ddddcec7bac027a3c955
6
+ metadata.gz: ff5b3e60cd69d127061fc1f837ad8b0f7eb047020c8712e8954d189c4da25a6a5a32fdcf89df8ba5b4e9ee53af8d256a6f7802d1dfcdb8f026866f7c4bfe1b11
7
+ data.tar.gz: '02093a9228be9c3ccaafbdcebc722973e13a51bdd99034679112e7e112e5e362de9162364984fc9f23348aae8a47825e61fde5eaa7b53d0a0ebf093bdbb4a5f7'
data/.rubocop.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  AllCops:
2
+ NewCops: enable
2
3
  TargetRubyVersion: 2.4
3
4
 
4
5
  Style/StringLiterals:
@@ -10,4 +11,4 @@ Style/StringLiteralsInInterpolation:
10
11
  EnforcedStyle: double_quotes
11
12
 
12
13
  Layout/LineLength:
13
- Max: 120
14
+ Max: 200
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- balm (0.1.1)
4
+ balm (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/balm.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Chelsea Roston"]
9
9
  spec.email = ["cmroston@gmail.com"]
10
10
 
11
- spec.summary = %q{"The purpose of this gem is to generate random plots for those creatively blocked."}
12
- spec.description = %q{"It has the ability to generate character names, romance tropes and plot points. It will focus on romance and potentially branch out to other genres."}
11
+ spec.summary = %("The purpose of this gem is to generate random plots for those creatively blocked.")
12
+ spec.description = %("It has the ability to generate character types, romance tropes and settings.")
13
13
  spec.homepage = "https://github.com/chelsearostonrappazzo/balm"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
@@ -0,0 +1,94 @@
1
+ #archetypes
2
+ - King
3
+ - Prince
4
+ - Queen
5
+ - Princess
6
+ - Duke
7
+ - Duchess
8
+ - Earl
9
+ - Countess
10
+ - Marquess
11
+ - Marchioness
12
+ - Emperor
13
+ - Empress
14
+ - Grand Duke
15
+ - Grand Duchess
16
+ - Maid
17
+ - Servant
18
+ - Footman
19
+ - Butler
20
+ - Chambermaid
21
+ - Scullery maid
22
+ - Vicar
23
+ - Vicar's Daughter
24
+ - Baron
25
+ - Baroness
26
+ - Villain
27
+ - Villainess
28
+ - Witch
29
+ - Wizard
30
+ - Mage
31
+ - Paladin
32
+ - Bard
33
+ - Elf
34
+ - Dwarf
35
+ - Cook
36
+ - Chef
37
+ - Widow
38
+ - Widower
39
+ - Pirate
40
+ - Captain
41
+ - Admiral
42
+ - Pirate King
43
+ - Warlock
44
+ - Jarl
45
+ - Vizier
46
+ - Councilor
47
+ - Thief
48
+ - Ranger
49
+ - Archer
50
+ - Barbarian
51
+ - Chief
52
+ - Chieftess
53
+ - Actor
54
+ - Actress
55
+ - Director
56
+ - Archaeologist
57
+ - Genius
58
+ - Inventor
59
+ - Detective
60
+ - Professor
61
+ - Teacher
62
+ - Mayor
63
+ - Priest
64
+ - Curate
65
+ - Scholar
66
+ - Rake
67
+ - Dandy
68
+ - Bluestocking
69
+ - Courtesan
70
+ - Scientist
71
+ - Adventurer
72
+ - Vampire
73
+ - Werewolf
74
+ - Ghost
75
+ - Ghoul
76
+ - Orc
77
+ - Mermaid
78
+ - Siren
79
+ - Gumiho
80
+ - God
81
+ - Goddess
82
+ - Minor God
83
+ - Minor Goddess
84
+ - Demi God
85
+ - Demi Deity
86
+ - Deity
87
+ - Demi Goddess
88
+ - Nymph
89
+ - Crusader
90
+ - Conqueror
91
+ - Explorer
92
+ - Phantom
93
+ - Exiled Monarch
94
+ - Fae
data/lib/balm.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "balm/version"
4
+ require "yaml"
4
5
 
5
6
  module Balm
6
7
  class Error < StandardError; end
@@ -10,25 +11,28 @@ module Balm
10
11
  class << self
11
12
  def trope
12
13
  tropes = []
13
- File.readlines("lib/balm/romance-tropes.txt").each { |trope|
14
- tropes << trope.strip
15
- }
16
- puts tropes.sample(1)
14
+ trope_data = YAML.load_file("lib/tropes.yaml")
15
+ trope_data.each { |trope| tropes << trope.strip }
16
+ puts tropes.sample
17
17
  end
18
18
 
19
19
  def archetype(num)
20
20
  archetypes = []
21
- File.readlines("lib/balm/archetypes.txt").each { |archetype|
22
- archetypes << archetype.strip
23
- }
24
- puts archetypes.sample(num).join(", ")
21
+ archetype_data = YAML.load_file("lib/archetypes.yaml")
22
+ archetype_data.each { |archetype| archetypes << archetype.strip }
23
+ if (1..5).include?(num)
24
+ puts archetypes.sample(num).join(", ")
25
+ elsif num < 1
26
+ puts archetypes.sample(1)
27
+ else
28
+ puts archetypes.sample(5).join(", ")
29
+ end
25
30
  end
26
31
 
27
32
  def setting
28
33
  settings = []
29
- File.readlines("lib/balm/settings.txt").each { |setting|
30
- settings << setting.strip
31
- }
34
+ setting_data = YAML.load_file("lib/settings.yaml")
35
+ setting_data.each { |setting| settings << setting.strip }
32
36
  puts settings.sample
33
37
  end
34
38
 
data/lib/balm/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Balm
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/settings.yaml ADDED
@@ -0,0 +1,60 @@
1
+ ---
2
+ #settings
3
+ - An archaeological dig in the jungle
4
+ - The ruins of a great civilization
5
+ - A spaceship floating amongst the stars
6
+ - The depths of the jungle
7
+ - A star-lit night
8
+ - The opening night of a play
9
+ - The Village Fete
10
+ - As the sun rises
11
+ - As the sun sets
12
+ - In a village high in the mountains
13
+ - In the temple of an old god
14
+ - The night of the opening ball
15
+ - In the War Room
16
+ - On the fields of battle
17
+ - In a wooded glen
18
+ - High above the clouds
19
+ - In the gardens of a country manor
20
+ - On the brink of a new year
21
+ - An archaeological dig in the desert
22
+ - In the temple of vengeful god
23
+ - The ruins of a castle
24
+ - A city filled with canals
25
+ - A city where it always rains
26
+ - A land where it always snows
27
+ - A land with no sunlight
28
+ - A land with no darkness
29
+ - A land after the great fall of technology
30
+ - A town where everyone has a secret
31
+ - A university where there was a recent murder
32
+ - A capital city during it's social season
33
+ - A murder at a masque ball
34
+ - A masquerade after the unmasking
35
+ - The last dance at a ball
36
+ - A night at the opera
37
+ - Right before the world ends
38
+ - Right after the world ends
39
+ - An office building
40
+ - A bar after the war
41
+ - A tavern in the woods
42
+ - A tavern on the outskirts of civilization
43
+ - An oasis in the middle of the day
44
+ - An oasis at night
45
+ - A bazaar
46
+ - A library beneath the sands
47
+ - A castle that moves
48
+ - A castle in the sky
49
+ - A monster's hideout
50
+ - A laboratory
51
+ - A wedding
52
+ - A wedding of an enemy
53
+ - A wedding of a former lover
54
+ - A festival of the harvest
55
+ - A night with no stars
56
+ - A night with no moon
57
+ - The feast hall after a fierce battle
58
+ - The feast hall after a poisoning
59
+ - An apothecary's shop
60
+ - The city just before dawn
data/lib/tropes.yaml ADDED
@@ -0,0 +1,55 @@
1
+ ---
2
+ #tropes
3
+ - The Grumpy One is soft for the Sunshine One
4
+ - The CEO and their Secretary
5
+ - Arranged Marriage
6
+ - Calls each other by title or last name until one of them gets sick or in danger and then they use their real name
7
+ - They are roommates
8
+ - The Reserved One, who doesn't express themselves, smiles when their Love Interest does something cute,
9
+ - They are archenemies who see each other as their equal
10
+ - When One confesses to the other while they are sleeping but the Other One is awake to hear it
11
+ - Dense meets Denser and everyone knows they're in love except them
12
+ - One has Chronic Insomnia and can only sleep when Love Interest is in the same bed
13
+ - Fake Relationship
14
+ - One is Alive and One is Dead
15
+ - In Love, but One is their best friend's sibling
16
+ - One is a Celebrity and the other is not
17
+ - The Assassin and the One They Must Kill
18
+ - The Loner and the Popular one
19
+ - Soulmates like Red String of Fate
20
+ - Actual Unrequited Love
21
+ - Second Chance
22
+ - Stuck together..in a snowstorm
23
+ - Stuck together...in a hurricane
24
+ - One bed
25
+ - Childhood friends
26
+ - Friends to Lovers
27
+ - Enemies to Lovers
28
+ - Lovers to Enemies
29
+ - Amnesia?
30
+ - Someone's a ghost
31
+ - Someone's a vampire
32
+ - Someone's a werewolf
33
+ - Someone's in love with their best friend's lover Oops
34
+ - Star-crossed lovers ends in tragedy
35
+ - Star-crossed lovers ends happily
36
+ - Star-crossed lovers chose to end their relationship for peace
37
+ - Friends with Benefits
38
+ - Someone got left at the altar
39
+ - Love potion?
40
+ - Solving a non-violent mystery together
41
+ - Solving a murder together
42
+ - Nobility and commoner
43
+ - Royalty and commoner
44
+ - Royalty and a concubine
45
+ - Older and Younger
46
+ - Helping each other get revenge
47
+ - Someone's a tortured soul
48
+ - Someone's hiding that they're royalty/nobility
49
+ - Someone's in the mafia
50
+ - I'd die for you.' AND actually dies
51
+ - I'd die for you.' AND lives!
52
+ - Ye Olde Love Triangle
53
+ - Shh! Our relationship is a secret!
54
+ - They're too good for me!
55
+ - A Rake Reformed
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: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chelsea Roston
@@ -24,8 +24,8 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.2'
27
- description: '"It has the ability to generate character names, romance tropes and
28
- plot points. It will focus on romance and potentially branch out to other genres."'
27
+ description: '"It has the ability to generate character types, romance tropes and
28
+ settings."'
29
29
  email:
30
30
  - cmroston@gmail.com
31
31
  executables: []
@@ -46,11 +46,11 @@ files:
46
46
  - balm.gemspec
47
47
  - bin/console
48
48
  - bin/setup
49
+ - lib/archetypes.yaml
49
50
  - lib/balm.rb
50
- - lib/balm/archetypes.txt
51
- - lib/balm/romance-tropes.txt
52
- - lib/balm/settings.txt
53
51
  - lib/balm/version.rb
52
+ - lib/settings.yaml
53
+ - lib/tropes.yaml
54
54
  homepage: https://github.com/chelsearostonrappazzo/balm
55
55
  licenses:
56
56
  - MIT
@@ -1,93 +0,0 @@
1
- King
2
- Prince
3
- Queen
4
- Princess
5
- Duke
6
- Duchess
7
- Earl
8
- Countess
9
- Marquess
10
- Marchioness
11
- Emperor
12
- Empress
13
- Grand Duke
14
- Grand Duchess
15
- Maid
16
- Servant
17
- Footman
18
- Butler
19
- Chambermaid
20
- Scullery maid
21
- Vicar
22
- Vicar's Daughter
23
- Baron
24
- Baroness
25
- Villain
26
- Villainess
27
- Witch
28
- Wizard
29
- Mage
30
- Paladin
31
- Bard
32
- Elf
33
- Dwarf
34
- Cook
35
- Chef
36
- Widow
37
- Widower
38
- Pirate
39
- Captain
40
- Admiral
41
- Pirate King
42
- Warlock
43
- Jarl
44
- Vizier
45
- Councilor
46
- Thief
47
- Ranger
48
- Archer
49
- Barbarian
50
- Chief
51
- Chieftess
52
- Actor
53
- Actress
54
- Director
55
- Archaeologist
56
- Genius
57
- Inventor
58
- Detective
59
- Professor
60
- Teacher
61
- Mayor
62
- Priest
63
- Curate
64
- Scholar
65
- Rake
66
- Dandy
67
- Bluestocking
68
- Courtesan
69
- Scientist
70
- Adventurer
71
- Vampire
72
- Werewolf
73
- Ghost
74
- Ghoul
75
- Orc
76
- Mermaid
77
- Siren
78
- Gumiho
79
- God
80
- Goddess
81
- Minor God
82
- Minor Goddess
83
- Demi God
84
- Demi Deity
85
- Deity
86
- Demi Goddess
87
- Nymph
88
- Crusader
89
- Conqueror
90
- Explorer
91
- Phantom
92
- Exiled Monarch
93
- Fae
@@ -1,53 +0,0 @@
1
- The Grumpy One is soft for the Sunshine One
2
- The CEO and their Secretary
3
- Arranged Marriage
4
- Calls each other by title or last name until one of them gets sick or in danger and then they use their real name
5
- They are roommates
6
- The Reserved One, who doesn't express themselves, smiles when their Love Interest does something cute
7
- They are archenemies who see each other as their equal
8
- When One confesses to the other while they are sleeping but the Other One is awake to hear it
9
- Dense meets Denser and everyone knows they're in love except them
10
- One has Chronic Insomnia and can only sleep when Love Interest is in the same bed
11
- Fake Relationship
12
- One is Alive and One is Dead
13
- In Love, but One is their best friend's sibling
14
- One is a Celebrity and the other is not
15
- The Assassin and the One They Must Kill
16
- The Loner and the Popular one
17
- Soulmates like Red String of Fate
18
- Actual Unrequited Love
19
- Second Chance
20
- Stuck together..in a snowstorm
21
- Stuck together...in a hurricane
22
- One bed
23
- Childhood friends
24
- Friends to Lovers
25
- Enemies to Lovers
26
- Lovers to Enemies
27
- Amnesia?
28
- Someone's a ghost
29
- Someone's a vampire
30
- Someone's a werewolf
31
- Someone's in love with their best friend's lover Oops
32
- Star-crossed lovers ends in tragedy
33
- Star-crossed lovers ends happily
34
- Star-crossed lovers chose to end their relationship for peace
35
- Friends with Benefits
36
- Someone got left at the altar
37
- Love potion?
38
- Solving a non-violent mystery together
39
- Solving a murder together
40
- Nobility and commoner
41
- Royalty and commoner
42
- Royalty and a concubine
43
- Older and Younger
44
- Helping each other get revenge
45
- Someone's a tortured soul
46
- Someone's hiding that they're royalty/nobility
47
- Someone's in the mafia
48
- 'I'd die for you.' AND actually dies
49
- 'I'd die for you.' AND lives!
50
- Ye Olde Love Triangle
51
- 'Shh! Our relationship is a secret!'
52
- 'They're too good for me!'
53
- A Rake Reformed
@@ -1,58 +0,0 @@
1
- An archaeological dig in the jungle
2
- The ruins of a great civilization
3
- A spaceship floating amongst the stars
4
- The depths of the jungle
5
- A star-lit night
6
- The opening night of a play
7
- The Village Fete
8
- As the sun rises
9
- As the sun sets
10
- In a village high in the mountains
11
- In the temple of an old god
12
- The night of the opening ball
13
- In the War Room
14
- On the fields of battle
15
- In a wooded glen
16
- High above the clouds
17
- In the gardens of a country manor
18
- On the brink of a new year
19
- An archaeological dig in the desert
20
- In the temple of vengeful god
21
- The ruins of a castle
22
- A city filled with canals
23
- A city where it always rains
24
- A land where it always snows
25
- A land with no sunlight
26
- A land with no darkness
27
- A land after the great fall of technology
28
- A town where everyone has a secret
29
- A university where there was a recent murder
30
- A capital city during it's social season
31
- A murder at a masque ball
32
- A masquerade after the unmasking
33
- The last dance at a ball
34
- A night at the opera
35
- Right before the world ends
36
- Right after the world ends
37
- An office building
38
- A bar after the war
39
- A tavern in the woods
40
- A tavern on the outskirts of civilization
41
- An oasis in the middle of the day
42
- An oasis at night
43
- A bazaar
44
- A library beneath the sands
45
- A castle that moves
46
- A castle in the sky
47
- A monster's hideout
48
- A laboratory
49
- A wedding
50
- A wedding of an enemy
51
- A wedding of a former lover
52
- A festival of the harvest
53
- A night with no stars
54
- A night with no moon
55
- The feast hall after a fierce battle
56
- The feast hall after a poisoning
57
- An apothecary's shop
58
- The city just before dawn