aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Florisson2012-12-18 15:39:57 +0100
committerMarc Florisson2012-12-18 15:39:57 +0100
commit3366e569f436cf1fab70d64320704cfe78bbad8e (patch)
tree9208e6c9ceb6b29b9760200bfbc83075e93f0f86
parent783a183886fe9bd5a355cb08d18da43a3cc129eb (diff)
parentaf311cd2f3b20c39b2b5f78fb4001406b4daae53 (diff)
downloadchouette-core-3366e569f436cf1fab70d64320704cfe78bbad8e.tar.bz2
Merge branch 'master' into api_key
-rw-r--r--.travis.yml26
-rw-r--r--app/models/help_page.rb1
-rw-r--r--app/models/test_sheet_page.rb1
-rw-r--r--config/database.yml.travis2
-rw-r--r--config/locales/file_validations.yml12
-rw-r--r--config/locales/fr.yml125
-rw-r--r--config/locales/imports.yml14
-rw-r--r--config/locales/subscriptions.yml2
-rw-r--r--db/schema.rb47
9 files changed, 151 insertions, 79 deletions
diff --git a/.travis.yml b/.travis.yml
index bc8a4c271..7ca1a3e9d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,12 +2,24 @@ language: ruby
rvm:
- 1.8.7
- jruby-18mode
-
+jdk:
+ - oraclejdk7
+ - openjdk7
+ - openjdk6
+matrix:
+ exclude:
+ - rvm: 1.8.7
+ jdk: openjdk7
+ - rvm: 1.8.7
+ jdk: oraclejdk7
+before_install:
+ - sudo apt-get install build-essential ruby-dev libproj-dev libgeos-dev libffi-dev libsparsehash-dev zlib1g-dev libxslt1-dev libxml2-dev libbz2-dev
before_script:
- - "sudo apt-get install build-essential ruby-dev libproj-dev libgeos-dev libffi-dev libsparsehash-dev zlib1g-dev libxslt1-dev libxml2-dev libbz2-dev"
- - "psql -c 'create database chouette_test;' -U postgres"
- - "rake ci:prepare_travis"
+ - "rake ci:db_travis_config"
+ - "rake db:create"
+ - "rake apartment:migrate"
script: "rake spec"
-notifications:
- recipients:
- - luc.donnet@dryade.net \ No newline at end of file
+branches:
+ only:
+ - master
+ - production \ No newline at end of file
diff --git a/app/models/help_page.rb b/app/models/help_page.rb
index aa0c9c2b6..ea9d34e44 100644
--- a/app/models/help_page.rb
+++ b/app/models/help_page.rb
@@ -1,3 +1,4 @@
+#encoding: utf-8
class HelpPage
attr_accessor :slug, :content, :data
diff --git a/app/models/test_sheet_page.rb b/app/models/test_sheet_page.rb
index da808f411..880e28c76 100644
--- a/app/models/test_sheet_page.rb
+++ b/app/models/test_sheet_page.rb
@@ -1,3 +1,4 @@
+#encoding: utf-8
class TestSheetPage
attr_accessor :slug, :content, :data
diff --git a/config/database.yml.travis b/config/database.yml.travis
index 797872065..40a95e668 100644
--- a/config/database.yml.travis
+++ b/config/database.yml.travis
@@ -1,6 +1,6 @@
development:
adapter: <%= RUBY_PLATFORM == "java" ? "jdbcpostgresql" : "postgresql" %>
- database: <%= (ENV["GIT_BRANCH"].nil? || ENV["GIT_BRANCH"] == "master") ? "chouette_dev" : "chouette_" + ENV["GIT_BRANCH"] + "_dev" %>
+ database: <%= (ENV["GIT_BRANCH"].nil? || ENV["GIT_BRANCH"] == "master") ? "chouette_d" : "chouette_" + ENV["GIT_BRANCH"] + "_d" %>
encoding: utf8
username: postgres
diff --git a/config/locales/file_validations.yml b/config/locales/file_validations.yml
index 96c2d60e8..0cc418013 100644
--- a/config/locales/file_validations.yml
+++ b/config/locales/file_validations.yml
@@ -22,7 +22,7 @@ en:
failed: Failed
file_validation_log_messages:
messages:
- undefined: %{key} undefined
+ undefined: "%{key} undefined"
TooMuchDetails: ( %{0} erreurs / warnings supplémentaires )
ONE: "Catégorie 1 : Syntaxe"
Test1_Sheet1: 'Fiche n° 1.1 : Conformité à la syntaxe XML suivant les recommandations du W3C'
@@ -287,22 +287,22 @@ fr:
ok_count:
zero: aucun test réussi
one: un test réussi
- other: %{count} tests réussis
+ other: "%{count} tests réussis"
warning_count:
zero: aucun warning
one: un warning
- other: %{count} warnings
+ other: "%{count} warnings"
error_count:
zero: aucune erreur
one: une erreur
- other: %{count} erreurs
+ other: "%{count} erreurs"
fatal_count:
zero: aucune erreur fatale
one: une erreur fatale
- other: %{count} erreurs fatales
+ other: "%{count} erreurs fatales"
file_validation_log_messages:
messages:
- undefined: %{key} non défini
+ undefined: "%{key} non défini"
TooMuchDetails: ( %{0} erreurs / warnings supplémentaires )
ONE: "Catégorie 1 : Syntaxe"
Test1_Sheet1: 'Fiche n° 1.1 : Conformité à la syntaxe XML suivant les recommandations du W3C'
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index 7175b138d..6563c1af6 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -1,22 +1,72 @@
-fr:
# https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/fr.yml
+# French translations for Ruby on Rails
+# by Christian Lescuyer (christian@flyingcoders.com)
+# contributors:
+# - Sebastien Grosjean - ZenCocoon.com
+# - Bruno Michel - http://github.com/nono
+# - Tsutomu Kuroda - http://github.com/kuroda (t-kuroda@oiax.jp)
+# Emended by Benjamin des Gachons and Patrick Chew : <http://www.fitima.org/docs/fiche.pdf>
+
+fr:
date:
formats:
default: "%d/%m/%Y"
short: "%e %b"
long: "%e %B %Y"
- summary: "%A %d %B %Y" # added
- day_names: [dimanche, lundi, mardi, mercredi, jeudi, vendredi, samedi]
- abbr_day_names: [dim, lun, mar, mer, jeu, ven, sam]
- month_names: [~, janvier, février, mars, avril, mai, juin, juillet, août, septembre, octobre, novembre, décembre]
- abbr_month_names: [~, jan., fév., mar., avr., mai, juin, juil., août, sept., oct., nov., déc.]
- order: [ :day, :month, :year ]
+ day_names:
+ - dimanche
+ - lundi
+ - mardi
+ - mercredi
+ - jeudi
+ - vendredi
+ - samedi
+ abbr_day_names:
+ - dim
+ - lun
+ - mar
+ - mer
+ - jeu
+ - ven
+ - sam
+ month_names:
+ - ~
+ - janvier
+ - février
+ - mars
+ - avril
+ - mai
+ - juin
+ - juillet
+ - août
+ - septembre
+ - octobre
+ - novembre
+ - décembre
+ abbr_month_names:
+ - ~
+ - jan.
+ - fév.
+ - mar.
+ - avr.
+ - mai
+ - juin
+ - juil.
+ - août
+ - sept.
+ - oct.
+ - nov.
+ - déc.
+ order:
+ - :day
+ - :month
+ - :year
time:
formats:
default: "%d %B %Y %H:%M:%S"
- short: "%d %b %y %H:%M"
- long: "%A %d %B %Y à %Hh%M"
+ short: "%d %b %H:%M"
+ long: "%A %d %B %Y %H:%M"
hour: "%Hh%M"
minute: "%M min"
am: 'am'
@@ -121,20 +171,17 @@ fr:
words_connector: ", "
two_words_connector: " et "
last_word_connector: " et "
- select:
- prompt: "Veuillez sélectionner"
helpers:
select:
prompt: "Veuillez sélectionner"
submit:
- create: "Créer un %{model}"
- update: "Modifier ce %{model}"
- submit: "Enregistrer ce %{model}"
-
+ create: "Créer un(e) %{model}"
+ update: "Modifier ce(tte) %{model}"
+ submit: "Enregistrer ce(tte) %{model}"
- errors:
- format: "Le %{attribute} %{message}"
+ errors: &errors
+ format: "%{attribute} %{message}"
messages: &errors_messages
inclusion: "n'est pas inclus(e) dans la liste"
exclusion: "n'est pas disponible"
@@ -143,9 +190,15 @@ fr:
accepted: "doit être accepté(e)"
empty: "doit être rempli(e)"
blank: "doit être rempli(e)"
- too_long: "est trop long (pas plus de %{count} caractères)"
- too_short: "est trop court (au moins %{count} caractères)"
- wrong_length: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
+ too_long:
+ one: "est trop long (pas plus d'un caractère)"
+ other: "est trop long (pas plus de %{count} caractères)"
+ too_short:
+ one: "est trop court (au moins un caractère)"
+ other: "est trop court (au moins %{count} caractères)"
+ wrong_length:
+ one: "ne fait pas la bonne longueur (doit comporter un seul caractère)"
+ other: "ne fait pas la bonne longueur (doit comporter %{count} caractères)"
not_a_number: "n'est pas un nombre"
not_an_integer: "doit être un nombre entier"
greater_than: "doit être supérieur à %{count}"
@@ -155,35 +208,21 @@ fr:
less_than_or_equal_to: "doit être inférieur ou égal à %{count}"
odd: "doit être impair"
even: "doit être pair"
+ taken: "n'est pas disponible"
+ record_invalid: "La validation a échoué : %{errors}"
+
template: &errors_template
header:
- one: "Impossible d'enregistrer ce %{model} : 1 erreur"
- other: "Impossible d'enregistrer ce %{model} : %{count} erreurs"
+ one: "Impossible d'enregistrer ce(tte) %{model} : 1 erreur"
+ other: "Impossible d'enregistrer ce(tte) %{model} : %{count} erreurs"
body: "Veuillez vérifier les champs suivants : "
- activerecord:
- errors:
- messages:
- taken: "n'est pas disponible"
activemodel:
errors:
- messages:
- taken: "n'est pas disponible"
- record_invalid: "La validation a échoué : %{errors}"
- <<: *errors_messages
- template:
- <<: *errors_template
- full_messages:
- format: "%{attribute} %{message}"
- flash:
- actions:
- create:
- notice: '%{resource_name} créé(e) avec succès.'
- update:
- notice: '%{resource_name} mise(e) à jour avec succès.'
- destroy:
- notice: '%{resource_name} détruit(e) avec succès.'
- alert: '%{resource_name} ne peut être détruit(e).'
+ <<: *errors
+ activerecord:
+ errors:
+ <<: *errors
# FIN: https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/fr.yml
"true": "oui"
diff --git a/config/locales/imports.yml b/config/locales/imports.yml
index c76377713..70f15979d 100644
--- a/config/locales/imports.yml
+++ b/config/locales/imports.yml
@@ -20,7 +20,7 @@ en:
started: Started import
completed: Completed import
failed: Failed import
- undefined: %{key} undefined
+ undefined: "%{key} undefined"
NEPTUNE_ONE: Conformité du fichier
NEPTUNE_TooMuchDetails: ( %{0} erreurs / warnings supplémentaires )
NEPTUNE_Test1_Sheet1: 'Fiche n° 1.1 : Conformité à la syntaxe XML suivant les recommandations du W3C'
@@ -32,7 +32,7 @@ en:
NEPTUNE_Test1_Sheet1_Step1_error: "le fichier %{0} n'est pas correctement formé selon les recommandations du W3C"
NEPTUNE_Test1_Sheet1_Step2_error: "le fichier %{0} ne respecte pas le modèle NEPTUNE"
NEPTUNE_Test1_Sheet1_Step2_encoding: "le fichier %{0} ne respecte pas le codage de caractères du modèle NEPTUNE (ISO-8859-1)"
- NEPTUNE_Test1_Sheet1_Step2_fatal: "Erreur fatale \: Aucune entrée valide trouvée dans le fichier"
+ NEPTUNE_Test1_Sheet1_Step2_fatal: "Erreur fatale : Aucune entrée valide trouvée dans le fichier"
NEPTUNE_Test1_Sheet2: 'Fiche n° 1.2 : Conformité au schéma XML du profil NEPTUNE'
NEPTUNE_Test1_Sheet2_Step1: Conformité au schéma XML du profil NEPTUNE
NEPTUNE_Test1_Sheet2_Step1_error: "le fichier %{0} ne respecte pas le modèle NEPTUNE"
@@ -46,7 +46,7 @@ en:
CSV_FILE_NOT_FOUND: "file %{0} : error %{1}"
CSV_FILE_IGNORED: file %{0} ignored (not XML)
CSV_VALIDATION_ERROR: "XML file don't agree with Neptune XSD : %{0}"
- CSV_VALIDATION_CAUSE: %{0}
+ CSV_VALIDATION_CAUSE: "%{0}"
CSV_PARSE_OBJECT: Analyse %{0}
CSV_MANDATORY_TAG: "missing or empty mandatory tag : %{0}"
CSV_UNKNOWN_ENUM: "Unknown %{0} enumaration value : %{1}"
@@ -62,7 +62,7 @@ en:
CSV_BAD_ID: "Invalid built Neptune Object ID : %{1} for %{0} "
CSV_UNUSED_TIMETABLE: Unused timetable %{0} (%{1})
SAVE: Save
- SAVE_OK: %{0} saved
+ SAVE_OK: "%{0} saved"
SAVE_ERROR: "%{0} save failed : %{1}"
severities:
info: Information
@@ -116,7 +116,7 @@ fr:
started: Import démarré
completed: Import achevé avec succès
failed: Import interrompu
- undefined: %{key} non défini
+ undefined: "%{key} non défini"
NEPTUNE_ONE: Conformité du fichier
NEPTUNE_TooMuchDetails: ( %{0} erreurs / warnings supplémentaires )
NEPTUNE_Test1_Sheet1: 'Fiche n° 1.1 : Conformité à la syntaxe XML suivant les recommandations du W3C'
@@ -142,7 +142,7 @@ fr:
CSV_FILE_ERROR: "Fichier %{0} : erreur %{1}"
CSV_FILE_IGNORED: "Fichier %{0} ignoré (non CSV) "
CSV_VALIDATION_ERROR: "Fichier CSV ne respecte pas le format Chouette : %{0}"
- CSV_VALIDATION_CAUSE: %{0}
+ CSV_VALIDATION_CAUSE: "%{0}"
CSV_PARSE_OBJECT: Analyse %{0}
CSV_MANDATORY_TAG: "Tag obligatoire absent ou vide : %{0}"
CSV_UNKNOWN_ENUM: "Valeur de l'enum %{0} inconnue : %{1}"
@@ -158,7 +158,7 @@ fr:
CSV_BAD_ID: "Identifiant Neptune produit invalide : %{1} pour %{0} "
CSV_UNUSED_TIMETABLE: "Tableau de marche %{0} (%{1}) inutilisé"
SAVE: Sauvegarde
- SAVE_OK: %{0} enregistré
+ SAVE_OK: "%{0} enregistré"
SAVE_ERROR: "Echec de l'enregistrement de %{0} : %{1}"
severities:
info: Information
diff --git a/config/locales/subscriptions.yml b/config/locales/subscriptions.yml
index 0a814770a..458e6132d 100644
--- a/config/locales/subscriptions.yml
+++ b/config/locales/subscriptions.yml
@@ -20,7 +20,7 @@ fr:
subscriptions:
success: "Inscription enregistrée"
failure: "Inscription invalide"
- activemodel:
+ activemodel:
models:
subscription: compte
attributes:
diff --git a/db/schema.rb b/db/schema.rb
index d5d99ea89..cbbd696ab 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -115,8 +115,8 @@ ActiveRecord::Schema.define(:version => 20121025112852) do
t.datetime "failed_at"
t.string "locked_by"
t.string "queue"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
end
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
@@ -127,8 +127,8 @@ ActiveRecord::Schema.define(:version => 20121025112852) do
t.string "arguments", :limit => 1000
t.integer "position"
t.string "severity"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
end
add_index "export_log_messages", ["export_id"], :name => "index_export_log_messages_on_export_id"
@@ -138,8 +138,8 @@ ActiveRecord::Schema.define(:version => 20121025112852) do
t.string "status"
t.string "type"
t.string "options"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
t.string "references_type"
t.string "reference_ids"
end
@@ -199,6 +199,16 @@ ActiveRecord::Schema.define(:version => 20121025112852) do
t.integer "organisation_id"
end
+ create_table "geometry_columns", :id => false, :force => true do |t|
+ t.string "f_table_catalog", :limit => 256, :null => false
+ t.string "f_table_schema", :limit => 256, :null => false
+ t.string "f_table_name", :limit => 256, :null => false
+ t.string "f_geometry_column", :limit => 256, :null => false
+ t.integer "coord_dimension", :null => false
+ t.integer "srid", :null => false
+ t.string "type", :limit => 30, :null => false
+ end
+
create_table "group_of_lines", :force => true do |t|
t.string "objectid", :null => false
t.integer "object_version"
@@ -221,8 +231,8 @@ ActiveRecord::Schema.define(:version => 20121025112852) do
t.string "arguments", :limit => 1000
t.integer "position"
t.string "severity"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
end
add_index "import_log_messages", ["import_id"], :name => "index_import_log_messages_on_import_id"
@@ -230,8 +240,8 @@ ActiveRecord::Schema.define(:version => 20121025112852) do
create_table "imports", :force => true do |t|
t.integer "referential_id"
t.string "status"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
t.string "type"
t.string "options"
t.string "file_type"
@@ -324,11 +334,12 @@ ActiveRecord::Schema.define(:version => 20121025112852) do
create_table "referentials", :force => true do |t|
t.string "name"
t.string "slug"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
t.string "prefix"
t.string "projection_type"
t.string "time_zone"
+ t.string "the_geom"
t.string "bounds"
t.integer "organisation_id"
end
@@ -355,6 +366,14 @@ ActiveRecord::Schema.define(:version => 20121025112852) do
t.integer "line_id", :limit => 8
end
+ create_table "spatial_ref_sys", :id => false, :force => true do |t|
+ t.integer "srid", :null => false
+ t.string "auth_name", :limit => 256
+ t.integer "auth_srid"
+ t.string "srtext", :limit => 2048
+ t.string "proj4text", :limit => 2048
+ end
+
create_table "stop_areas", :force => true do |t|
t.integer "parent_id", :limit => 8
t.string "objectid", :null => false
@@ -459,8 +478,8 @@ ActiveRecord::Schema.define(:version => 20121025112852) do
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
+ t.datetime "created_at"
+ t.datetime "updated_at"
t.integer "organisation_id"
t.string "name"
t.string "confirmation_token"