diff options
| author | Luc Donnet | 2013-05-27 14:58:02 +0200 | 
|---|---|---|
| committer | Luc Donnet | 2013-05-27 14:58:02 +0200 | 
| commit | 37b1e34a052c3155a9758f5e1175460af9e2cd30 (patch) | |
| tree | 1220e483bb31defa89951e44bddbcf5c8585f4b3 | |
| parent | 08d099e6b8d0cf7214da0b79ec71ca2d12049d53 (diff) | |
| parent | 01b38ce952cb2e657ab387295673fc892be3539a (diff) | |
| download | chouette-core-37b1e34a052c3155a9758f5e1175460af9e2cd30.tar.bz2 | |
Merge documentation
| -rw-r--r-- | CHANGELOG.md | 4 | ||||
| -rw-r--r-- | LICENSE.md | 2 | ||||
| -rw-r--r-- | app/maps/application_map.rb | 6 | ||||
| -rw-r--r-- | app/views/organisations/edit.html.erb | 1 | ||||
| -rw-r--r-- | app/views/organisations/show.html.erb | 2 | ||||
| -rw-r--r-- | config/environments/development.rb | 3 | ||||
| -rw-r--r-- | config/environments/production.rb | 3 | ||||
| -rw-r--r-- | db/migrate/20130527074101_remove_geoportail_key_from_organisation.rb | 9 | 
8 files changed, 22 insertions, 8 deletions
| diff --git a/CHANGELOG.md b/CHANGELOG.md index fa6b60fa0..096cb6c48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# V2.1.a + +* Intégration des cartes du géoportail (IGN) +  # V2.0.3  * Ajout des imports/export NeTex diff --git a/LICENSE.md b/LICENSE.md index e94decb4a..2d4537d91 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -28,4 +28,4 @@ As a counterpart to the access to the source code and rights to copy, modify and  In this respect, the user's attention is drawn to the risks associated with loading, using, modifying and/or developing or reproducing the software by the user in light of its specific status of free software, that may mean that it is complicated to manipulate,and that also therefore means that it is reserved for developers and experienced professionals having in-depth computer knowledge. Users are therefore encouraged to load and test the software's suitability as regards their requirements in conditions enabling the security of their systems and/or data to be ensured and, more generally, to use and operate it in the same conditions as regards security.  -The fact that you are presently reading this means that you have had knowledge of the CeCILL-B license and that you accept its terms. +The fact that you are presently reading this means that you have had knowledge of the CeCILL-B license and that you accept its terms.
\ No newline at end of file diff --git a/app/maps/application_map.rb b/app/maps/application_map.rb index e068a8950..d06a7e640 100644 --- a/app/maps/application_map.rb +++ b/app/maps/application_map.rb @@ -20,10 +20,8 @@ class ApplicationMap    end    def geoportail_key -    if ( self.helpers && self.helpers.current_user &&  -         self.helpers.current_user.organisation &&  -         self.helpers.current_user.organisation.geoportail_key) -      return self.helpers.current_user.organisation.geoportail_key +    if ( ChouetteIhm::Application.config.respond_to? :geoportail_api_key) +      return ChouetteIhm::Application.config.geoportail_api_key      end      return nil    end diff --git a/app/views/organisations/edit.html.erb b/app/views/organisations/edit.html.erb index 0e55a1562..ef3cc1530 100644 --- a/app/views/organisations/edit.html.erb +++ b/app/views/organisations/edit.html.erb @@ -3,7 +3,6 @@  <%= semantic_form_for @organisation, :url => organisation_path do |form| %>    <%= form.inputs do %>       <%= form.input :name %>  -    <%= form.input :geoportail_key %>     <% end %>    <%= form.actions do %> diff --git a/app/views/organisations/show.html.erb b/app/views/organisations/show.html.erb index 753efc2c3..263933bc1 100644 --- a/app/views/organisations/show.html.erb +++ b/app/views/organisations/show.html.erb @@ -2,8 +2,6 @@  <div class="summary">    <p> -    <label><%= Organisation.human_attribute_name(:geoportail_key) %>: </label> -    <%= @organisation.geoportail_key ? t('.key_registered') : t('.key_not_registered') %>    </p>  </div> diff --git a/config/environments/development.rb b/config/environments/development.rb index b619645d3..519ff1d24 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -43,6 +43,9 @@ ChouetteIhm::Application.configure do      :domain         => "dryade.priv"    } +  # api key to geoportail IGN (development key 3 month validity) +  config.geoportail_api_key = "i2aqyge3x3iovnuhz7z06flp" +    config.to_prepare do      Devise::Mailer.layout "mailer"      #ApplicationMap.ign_api_key = "i2aqyge3x3iovnuhz7z06flp" diff --git a/config/environments/production.rb b/config/environments/production.rb index a5c58b56d..ba7b4748e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -57,6 +57,9 @@ ChouetteIhm::Application.configure do    # Disable delivery errors, bad email addresses will be ignored    # config.action_mailer.raise_delivery_errors = false +  # +  # api key to geoportail IGN (production key link to "chouette.dryade.net" referer) +  config.geoportail_api_key = "bt4z711qv8uw4zmk2bxl4d5l"    # Enable threaded mode    # NOTICE : With Rails 3.2, Delayed::JRubyWorker blocks the application without threaded mode diff --git a/db/migrate/20130527074101_remove_geoportail_key_from_organisation.rb b/db/migrate/20130527074101_remove_geoportail_key_from_organisation.rb new file mode 100644 index 000000000..616587f7a --- /dev/null +++ b/db/migrate/20130527074101_remove_geoportail_key_from_organisation.rb @@ -0,0 +1,9 @@ +class RemoveGeoportailKeyFromOrganisation < ActiveRecord::Migration +  def up +    remove_column :organisations, :geoportail_key +  end + +  def down +    add_column :organisations, :geoportail_key, :string +  end +end | 
