diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc new file mode 100644 index 000000000..6d5a3335e --- /dev/null +++ b/CHANGELOG.rdoc @@ -0,0 +1,14 @@ +# Changelog + +Please add each new change as its own line to the top of the list below when a pull request is made in the format MM/DD: FEATURE/BUGFIX. :) + +-- + +Most recent changes: + +10/05 Added additional fields to Locations: laws, climate, founding story, and sports. +10/05 Added a "Nature" tab to Characters containing new fields, and moved the "Fave" tab fields under "Social". +10/05 Added a "Rules" tab to Universes containing fields for detailing magic systems, laws of physics, and technologies. +10/05 Fixed a bug that prevented the "Hairstyle" field from saving on Characters. +10/05 Fixed a bug that prevented the "Language" field from saving on Locations. +10/04 Added the ability to download Notebook contents in JSON, TXT, or CSV. diff --git a/README.rdoc b/README.rdoc index ff87b8214..87a6e49e0 100644 --- a/README.rdoc +++ b/README.rdoc @@ -82,7 +82,7 @@ Finally, run the server with rails server -== Deployment to indentapp.com +== Deployment to notebook.ai Deployment to the live stage will only be done by approved developers, and consists of a deployment of @@ -92,11 +92,11 @@ Deployment to the live stage will only be done by approved developers, and consi - run regression tests on staging environment -- deploy from staging to live (viewed at indentapp.com) +- deploy from staging to live (viewed at notebook.ai) == Thanks Feel free to get in touch if you have any questions, comments, or concerns! :) -(c) Andrew Brown 2014 +(c) Andrew Brown 2016 diff --git a/app/controllers/characters_controller.rb b/app/controllers/characters_controller.rb index d4a650a03..086e294d7 100644 --- a/app/controllers/characters_controller.rb +++ b/app/controllers/characters_controller.rb @@ -12,9 +12,10 @@ def content_param_list [ :universe_id, :user_id, :name, :age, :role, :gender, :age, :archetype, :height, :weight, :haircolor, - :facialhair, :eyecolor, :race, :skintone, :bodytype, :identmarks, - :religion, :politics, :prejudices, :occupation, :pets, + :facialhair, :eyecolor, :race, :skintone, :bodytype, :identmarks, :hairstyle, + :religion, :politics, :prejudices, :occupation, :pets, :aliases, :mannerisms, :birthday, :education, :background, + :motivations, :flaws, :talents, :hobbies, :personality_type, :fave_color, :fave_food, :fave_possession, :fave_weapon, :fave_animal, :notes, :private_notes, :privacy, siblingships_attributes: [:id, :sibling_id, :_destroy], diff --git a/app/controllers/locations_controller.rb b/app/controllers/locations_controller.rb index f45a173d4..7f0e50f99 100644 --- a/app/controllers/locations_controller.rb +++ b/app/controllers/locations_controller.rb @@ -11,9 +11,10 @@ def content_params def content_param_list [ :universe_id, :user_id, :name, :type_of, :description, #:map, - :population, :currency, :motto, + :population, :currency, :motto, :language, :area, :crops, :located_at, :established_year, :notable_wars, - :notes, :private_notes, :privacy, + :notes, :private_notes, :privacy, :laws, :climate, :founding_story, + :sports, # Relations #todo might be able to inject/reflect these from :relates concern implementation diff --git a/app/controllers/universes_controller.rb b/app/controllers/universes_controller.rb index c68425057..2527c8e55 100644 --- a/app/controllers/universes_controller.rb +++ b/app/controllers/universes_controller.rb @@ -10,6 +10,7 @@ def content_param_list [ :user_id, :name, :description, + :laws_of_physics, :magic_system, :technologies, :history, :privacy, :notes, :private_notes diff --git a/app/models/character.rb b/app/models/character.rb index 9c8d92a63..733abc3cc 100644 --- a/app/models/character.rb +++ b/app/models/character.rb @@ -51,27 +51,26 @@ def self.attribute_categories { overview: { icon: 'info', - attributes: %w(name role gender age archetype universe_id) + attributes: %w(name role gender age archetype aliases universe_id) }, looks: { icon: 'face', attributes: %w(weight height haircolor hairstyle facialhair eyecolor race skintone bodytype identmarks) }, + nature: { + icon: 'fingerprint', + attributes: %w(mannerisms motivations flaws prejudices talents hobbies personality_type) + }, social: { icon: 'groups', - attributes: %w(best_friends archenemies religion politics prejudices occupation) + attributes: %w(best_friends archenemies religion politics occupation fave_color fave_food fave_possession fave_weapon fave_animal) }, - # TODO: remove schema for mannerisms history: { icon: 'info', attributes: %w(birthday birthplaces education background) }, - faves: { - icon: 'star', - attributes: %w(fave_color fave_food fave_possession fave_weapon fave_animal) - }, family: { - icon: 'face', + icon: 'device_hub', attributes: %w(mothers fathers spouses siblings children) }, notes: { diff --git a/app/models/location.rb b/app/models/location.rb index 4974185e4..5d50ce09e 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -46,7 +46,7 @@ def self.attribute_categories # TODO: map culture: { icon: 'face', - attributes: %w(leaders population language currency motto) + attributes: %w(leaders population language currency motto laws sports) }, cities: { icon: 'business', @@ -54,11 +54,11 @@ def self.attribute_categories }, geography: { icon: 'map', - attributes: %w(area crops located_at) + attributes: %w(area crops located_at climate) }, history: { icon: 'book', - attributes: %w(established_year notable_wars) + attributes: %w(founding_story established_year notable_wars) }, notes: { icon: 'edit', diff --git a/app/models/universe.rb b/app/models/universe.rb index b83305216..e6eb5fb6a 100644 --- a/app/models/universe.rb +++ b/app/models/universe.rb @@ -44,6 +44,10 @@ def self.attribute_categories icon: 'book', attributes: %w(history) }, + rules: { + icon: 'gavel', + attributes: %w(laws_of_physics magic_system technologies) + }, notes: { icon: 'edit', attributes: %w(notes private_notes) diff --git a/app/models/user.rb b/app/models/user.rb index f4278db2d..b719d74be 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -36,7 +36,7 @@ def to_xml(options={}) end def name - self[:name].blank? ? 'Anonymous author' : self[:name] + self[:name].blank? && self.persisted? ? 'Anonymous author' : self[:name] end def content diff --git a/app/views/content/index.html.erb b/app/views/content/index.html.erb index 20b7c4ae9..4127e220e 100644 --- a/app/views/content/index.html.erb +++ b/app/views/content/index.html.erb @@ -8,12 +8,24 @@ <% end %> <% if @content.any? %> -