Skip to content

Commit 00563e5

Browse files
authored
Merge branch 'master' into exporting
2 parents 1c937fe + e53201e commit 00563e5

File tree

9 files changed

+108
-7
lines changed

9 files changed

+108
-7
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ gem 'slack-notifier'
4444
group :production do
4545
gem 'rails_12factor'
4646
gem 'uglifier', '>= 1.3.0'
47+
gem 'scout_apm'
4748
end
4849

4950
group :test, :production do

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ GEM
286286
sprockets (>= 2.8, < 4.0)
287287
sprockets-rails (>= 2.0, < 4.0)
288288
tilt (>= 1.1, < 3)
289+
scout_apm (2.1.12)
289290
selenium-webdriver (2.53.4)
290291
childprocess (~> 0.5)
291292
rubyzip (~> 1.0)
@@ -370,6 +371,7 @@ DEPENDENCIES
370371
rubocop
371372
ruby-prof (= 0.15.9)
372373
sass-rails
374+
scout_apm
373375
selenium-webdriver
374376
serendipitous!
375377
shoulda-matchers (~> 3.1)

app/controllers/characters_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def content_params
1111
def content_param_list
1212
[
1313
:universe_id, :user_id,
14-
:name, :age, :role, :gender, :age, :height, :weight, :haircolor,
14+
:name, :age, :role, :gender, :age, :archetype, :height, :weight, :haircolor,
1515
:facialhair, :eyecolor, :race, :skintone, :bodytype, :identmarks,
1616
:religion, :politics, :prejudices, :occupation, :pets,
1717
:mannerisms, :birthday, :education, :background,

app/models/character.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def self.attribute_categories
5151
{
5252
overview: {
5353
icon: 'info',
54-
attributes: %w(name role gender age universe_id)
54+
attributes: %w(name role gender age archetype universe_id)
5555
},
5656
looks: {
5757
icon: 'face',

app/views/content/_form.html.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@
6767
<% through_class = content.class.reflect_on_association(attribute).options[:through].to_s %>
6868
<%= render 'content/form/relation_input', f: f, attribute: attribute, relation: through_class %>
6969

70+
<% elsif attribute == 'archetype' %>
71+
<div class="input-field">
72+
<%= f.label attribute %><br />
73+
<%= f.select attribute, options_for_select(t('archetypes'), selected: f.object.archetype), include_blank: true %>
74+
</div>
75+
7076
<% elsif attribute == 'universe_id' %>
7177
<div class="input-field">
7278
<%= f.label attribute %><br />

app/views/main/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<div class="col s12 m4">
7272
<div class="icon-block center">
7373
<h2 class="brown-text"><i class="material-icons">assignment_turned_in</i></h2>
74-
<h5>Continuuity checks</h5>
74+
<h5>Continuity checks</h5>
7575
<p class="light">
7676
When every little fact is stored in one place, you can rest easy knowing you won't accidentally contradict yourself.
7777
</p>

config/locales/en.yml

Lines changed: 89 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ en:
8181
race: What is %{name}’s race?
8282
religion: What religion does %{name} practice?
8383
role: What is %{name}’s role in your story?
84-
skintone: What skin tone does %{name} name?
84+
skintone: What skin tone does %{name} have?
8585
weight: How much does %{name} weigh?
8686

8787
item:
@@ -94,14 +94,15 @@ en:
9494
name: What is %{name}’s full name?
9595
notes: Do you have any miscellaneous public notes for %{name}?
9696
#original_owner: Who originally owned %{name}?
97+
#past_owners
9798
private_notes: Do you have any private notes for %{name}?
9899
weight: How much does %{name} weigh?
99100
year_made: When was %{name} made?
100101

101102
location:
102103
area: What kind of area is %{name} in?
103104
#capital: What is %{name}’s capital?
104-
crops: What cropes does %{name} produce?
105+
crops: What crops does %{name} produce?
105106
currency: What currencies are used in %{name}?
106107
established_year: When was %{name} established?
107108
language: What languages are spoken in %{name}?
@@ -539,6 +540,92 @@ en:
539540
- Jet black
540541
- Raven black
541542

543+
archetypes:
544+
- Anthropomorphic Personification
545+
- Anti-Hero
546+
- Archmage
547+
- Barefoot Sage
548+
- Big Fun
549+
- Blind Seer
550+
- Blue-Collar Warlock
551+
- Bruiser with a Soft Center
552+
- The Champion
553+
- The Chosen One
554+
- The Chooser of The One
555+
- Classic Villain
556+
- The Cynic
557+
- The Dragonslayer
558+
- The Drunken Sailor
559+
- Dumb Muscle
560+
- Eccentric Mentor
561+
- Enigmatic Empowering Entity
562+
- Evil Overlord
563+
- The Fair Folk
564+
- Father Neptune
565+
- Ferryman
566+
- The Fool
567+
- Fool for Love
568+
- Gentle Giant
569+
- The Good King
570+
- Granny Classic
571+
- The Grotesque
572+
- Herald
573+
- Heroic Archetype
574+
- Heroic Wannabe
575+
- The High Queen
576+
- Higher Self
577+
- The Hunter
578+
- Ideal Hero
579+
- The Idealist
580+
- Ineffectual Loner
581+
- The Kirk
582+
- The Klutz
583+
- Knight in Shining Armor
584+
- Lady and Knight
585+
- Loser Archetype
586+
- Lovable Rogue
587+
- Magical Barefooter
588+
- Mary Sue
589+
- The McCoy
590+
- Mentor
591+
- Messianic
592+
- Mixed
593+
- Mock Millionaire
594+
- Modern Major General
595+
- My Girl Back Home
596+
- Obstructive Bureaucrat
597+
- Oedipus Complex
598+
- Old Soldier
599+
- The Paladin
600+
- The Patriarch
601+
- Person of Mass Destruction
602+
- The Pollyanna
603+
- Powers That Be
604+
- Prince Charming
605+
- Princess Classic
606+
- A Protagonist Shall Lead Them
607+
- Rebel Leader
608+
- Rebellious Spirit
609+
- Reluctant Monster
610+
- Satanic Archetype
611+
- Seeker Archetype
612+
- Shadow Archetype
613+
- Shapeshifter
614+
- The Spock
615+
- Star-Crossed Lovers
616+
- The Storyteller
617+
- Threshold Guardians
618+
- Turn Coat
619+
- The Trickster
620+
- Visitor
621+
- Wicked Stepmother
622+
- Wicked Witch
623+
- Wizard Classic
624+
- Wolf Man
625+
- World's Best Warrior
626+
- World's Most Beautiful Woman
627+
- World's Strongest Man
628+
542629
location_name_prefixes:
543630
- New
544631
- Los
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class AddArchetypeToCharacter < ActiveRecord::Migration
2+
def change
3+
add_column :characters, :archetype, :string
4+
end
5+
end

db/schema.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
#
1212
# It's strongly recommended that you check this file into your version control system.
1313

14-
ActiveRecord::Schema.define(version: 20161001232324) do
15-
14+
ActiveRecord::Schema.define(version: 20161003000856) do
1615
create_table "archenemyships", force: :cascade do |t|
1716
t.integer "user_id"
1817
t.integer "character_id"
@@ -80,6 +79,7 @@
8079
t.datetime "created_at"
8180
t.datetime "updated_at"
8281
t.string "privacy"
82+
t.string "archetype"
8383
end
8484

8585
create_table "childrenships", force: :cascade do |t|

0 commit comments

Comments
 (0)