From 175e64b797bf62b6c5d3794919142c34794cbb36 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Sat, 26 Sep 2015 20:22:26 -0300 Subject: [PATCH] adding gamification information --- lib/ext/entities.rb | 2 +- script/populate_states_and_cities | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ext/entities.rb b/lib/ext/entities.rb index cd1ddcf..cc712e6 100644 --- a/lib/ext/entities.rb +++ b/lib/ext/entities.rb @@ -5,7 +5,7 @@ module Noosfero module Entities class Person < Profile - expose :orientacao_sexual, :identidade_genero, :transgenero, :etnia + expose :orientacao_sexual, :identidade_genero, :transgenero, :etnia, :points, :level, :gamification_plugin_level_percent end end diff --git a/script/populate_states_and_cities b/script/populate_states_and_cities index f854029..a4d0c2e 100755 --- a/script/populate_states_and_cities +++ b/script/populate_states_and_cities @@ -7,7 +7,7 @@ puts "Populating environment:" environment = Environment.default puts environment.name -File.open('state.csv').readlines.map do |line| +File.open(File.join(File.dirname(__FILE__),'state.csv')).readlines.map do |line| puts line line = line.chomp acronym, name = line.split(',') @@ -17,7 +17,7 @@ File.open('state.csv').readlines.map do |line| end state = nil -File.open('cities.csv').readlines.map do |line| +File.open(File.join(File.dirname(__FILE__),'cities.csv')).readlines.map do |line| line = line.chomp puts line acronym, code, name = line.split(',') -- libgit2 0.21.2