From 7b9370d10a2d67b83610b8cf8b876734972c2ee9 Mon Sep 17 00:00:00 2001 From: RobertDober Date: Mon, 10 Apr 2017 11:03:11 +0200 Subject: Deprecation Warnings removed; Seeds corrected, Refs: #2070 --- Gemfile | 7 +- Gemfile.lock | 472 +++++------ README.md | 4 +- app/views/access_links/_form.html.slim | 2 +- app/views/connection_links/_form.html.slim | 2 +- config/application.rb | 1 + config/environment.rb | 2 +- config/environments/production.rb | 2 +- config/environments/test.rb | 2 +- config/initializers/formtastic.rb | 6 + db/migrate/20120515134710_create_imports.rb | 12 +- db/migrate/20170123131243_set_user_permissions.rb | 15 +- db/schema.rb | 887 --------------------- db/seeds.rb | 41 +- spec/controllers/routes_controller_spec.rb | 2 +- .../vehicle_journey_imports_controller_spec.rb | 2 - spec/features/networks_spec.rb | 2 +- spec/helpers/exports_helper_spec.rb | 2 +- spec/helpers/help_helper_spec.rb | 2 +- spec/helpers/imports_helper_spec.rb | 2 +- spec/helpers/referentials_helper_spec.rb | 2 +- spec/models/compliance_check_task_spec.rb | 9 +- spec/models/ninoxe_extension_spec.rb | 22 +- spec/models/organisation_spec.rb | 2 +- spec/models/vehicle_journey_import_spec.rb | 4 +- spec/routing/companies_spec.rb | 6 +- spec/routing/group_of_lines_spec.rb | 6 +- spec/routing/networks_spec.rb | 6 +- spec/routing/time_tables_spec.rb | 8 +- spec/support/type_ids_modelable.rb | 100 +++ spec/support/type_ids_modelable_spec.rb | 100 --- spec/views/companies/show.html.erb_spec.rb | 2 +- spec/views/connection_links/show.html.erb_spec.rb | 2 +- spec/views/layouts/application.html.erb_spec.rb | 2 +- spec/views/lines/show.html.erb_spec.rb | 2 +- spec/views/organisations/show.html.erb | 2 +- spec/views/routes/show.html.erb_spec.rb | 2 +- spec/views/stop_areas/show.html.erb_spec.rb | 2 +- 38 files changed, 447 insertions(+), 1299 deletions(-) delete mode 100644 db/schema.rb create mode 100644 spec/support/type_ids_modelable.rb delete mode 100644 spec/support/type_ids_modelable_spec.rb diff --git a/Gemfile b/Gemfile index d066d04bf..7fe54acfd 100644 --- a/Gemfile +++ b/Gemfile @@ -1,8 +1,10 @@ # coding: iso-8859-1 source 'http://rubygems.org' +ruby '2.3.1' + # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '~> 4.2.7.1' +gem 'rails', '~> 4.2.8' # Use SCSS for stylesheets gem 'sass-rails', '~> 4.0.3' @@ -86,7 +88,7 @@ gem 'language_engine', github: 'af83/language_engine' gem 'calendar_helper', '0.2.5' gem 'cocoon' gem 'slim-rails', '~> 3.1' -gem 'formtastic', '2.3.1' +gem 'formtastic', '3.1.5' gem 'RedCloth', '~> 4.3.0' gem 'simple_form', '~> 3.1.0' gem 'font-awesome-sass', '~> 4.7' @@ -165,6 +167,7 @@ end group :test, :development do gem 'awesome_print' gem 'pry-rails' + gem 'pry-byebug' gem 'rspec-rails', '~> 3.5.0' gem 'fakeweb' gem 'webmock' diff --git a/Gemfile.lock b/Gemfile.lock index 1ed5de7ae..8be60d573 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,3 +1,19 @@ +GIT + remote: git://github.com/activerecord-hackery/squeel.git + revision: 5542266d502db8022e14105f9dfb455a79d6fc4a + specs: + squeel (1.2.3) + activerecord (>= 3.0) + activesupport (>= 3.0) + polyamorous (~> 1.1.0) + +GIT + remote: git://github.com/af83/language_engine.git + revision: 591595e0262e0ee5f97fa4cf837cefbcf37a6c56 + specs: + language_engine (0.0.6) + rails (~> 4.2) + GIT remote: git://github.com/af83/whenever.git revision: b7963381a11243affe4f35881c85be0710f434e3 @@ -16,14 +32,14 @@ GIT GIT remote: git@github.com:AF83/stif-codifline-api.git - revision: 9afe38cce298165765d98936f6d63f8d3cc33bce + revision: 72d53d7666736523b5cbef41a2de7e466d58ea1a specs: codifligne (0.0.2) nokogiri (~> 1.6) GIT remote: git@github.com:AF83/stif-reflex-api.git - revision: 7c517b98c3900c9bb0b81dd0ccab97f8e8f5f249 + revision: 2c01010dce3a6cb39339995c373faf89ae00f3f3 specs: reflex (0.0.1) nokogiri (~> 1.6) @@ -34,69 +50,77 @@ GEM specs: RedCloth (4.3.2) SyslogLogger (2.0) - aasm (4.5.2) - actionmailer (4.1.10) - actionpack (= 4.1.10) - actionview (= 4.1.10) + aasm (4.11.1) + actionmailer (4.2.8) + actionpack (= 4.2.8) + actionview (= 4.2.8) + activejob (= 4.2.8) mail (~> 2.5, >= 2.5.4) - actionpack (4.1.10) - actionview (= 4.1.10) - activesupport (= 4.1.10) - rack (~> 1.5.2) + rails-dom-testing (~> 1.0, >= 1.0.5) + actionpack (4.2.8) + actionview (= 4.2.8) + activesupport (= 4.2.8) + rack (~> 1.6) rack-test (~> 0.6.2) - actionview (4.1.10) - activesupport (= 4.1.10) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (4.2.8) + activesupport (= 4.2.8) builder (~> 3.1) erubis (~> 2.7.0) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.3) active_attr (0.9.0) activemodel (>= 3.0.2, < 5.1) activesupport (>= 3.0.2, < 5.1) - activemodel (4.1.10) - activesupport (= 4.1.10) + activejob (4.2.8) + activesupport (= 4.2.8) + globalid (>= 0.3.0) + activemodel (4.2.8) + activesupport (= 4.2.8) builder (~> 3.1) - activerecord (4.1.10) - activemodel (= 4.1.10) - activesupport (= 4.1.10) - arel (~> 5.0.0) - activerecord-postgis-adapter (2.2.2) - activerecord (>= 4.0.0, < 4.2.0) - rgeo-activerecord (~> 1.2) - activesupport (4.1.10) - i18n (~> 0.6, >= 0.6.9) - json (~> 1.7, >= 1.7.7) + activerecord (4.2.8) + activemodel (= 4.2.8) + activesupport (= 4.2.8) + arel (~> 6.0) + activerecord-postgis-adapter (3.0.0) + activerecord (~> 4.2) + rgeo-activerecord (~> 4.0) + activesupport (4.2.8) + i18n (~> 0.7) minitest (~> 5.1) - thread_safe (~> 0.1) + thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) - acts-as-taggable-on (3.5.0) - activerecord (>= 3.2, < 5) + acts-as-taggable-on (4.0.0) + activerecord (>= 4.0) acts_as_list (0.6.0) activerecord (>= 3.0) acts_as_tree (2.1.0) activerecord (>= 3.0.0) - addressable (2.3.7) - apartment (1.0.0) + addressable (2.3.8) + apartment (1.0.2) activerecord (>= 3.1.2, < 5.0) rack (>= 1.3.6) - arel (5.0.1.20140414130214) - ast (2.0.0) - astrolabe (1.3.0) - parser (>= 2.2.0.pre.3, < 3.0) - awesome_print (1.6.1) + arel (6.0.4) + ast (2.3.0) + astrolabe (1.3.1) + parser (~> 2.2) + awesome_print (1.7.0) bcrypt (3.1.11) - bcrypt (3.1.11-java) better_errors (2.1.1) coderay (>= 1.0.0) erubis (>= 2.6.6) rack (>= 0.9.0) binding_of_caller (0.7.2) debug_inspector (>= 0.0.1) - breadcrumbs_on_rails (2.3.0) + breadcrumbs_on_rails (3.0.1) browserify-rails (1.1.0) railties (>= 4.0.0, < 5.0) - builder (3.2.2) + builder (3.2.3) bundler-audit (0.5.0) bundler (~> 1.2) thor (~> 0.18) + byebug (9.0.6) calendar_helper (0.2.5) open4 capistrano (2.13.5) @@ -119,23 +143,20 @@ GEM activemodel (>= 4.0.0) activesupport (>= 4.0.0) mime-types (>= 1.16) - celluloid (0.16.0) - timers (~> 4.0.0) - choice (0.1.7) + choice (0.2.0) chronic (0.10.2) cliver (0.3.2) - cocoon (1.2.6) - coderay (1.1.0) + cocoon (1.2.9) + coderay (1.1.1) coffee-rails (4.0.1) coffee-script (>= 2.2.0) railties (>= 4.0.0, < 5.0) - coffee-script (2.3.0) + coffee-script (2.4.1) coffee-script-source execjs - coffee-script-source (1.9.1) + coffee-script-source (1.11.1) concurrent-ruby (1.0.2) - concurrent-ruby (1.0.2-java) - connection_pool (2.2.0) + connection_pool (2.2.1) crack (0.4.3) safe_yaml (~> 1.0.0) cucumber (2.4.0) @@ -148,16 +169,16 @@ GEM multi_test (>= 0.1.2) cucumber-core (1.5.0) gherkin (~> 4.0) - cucumber-rails (1.4.4) + cucumber-rails (1.4.5) capybara (>= 1.1.2, < 3) - cucumber (>= 1.3.8, < 3) + cucumber (>= 1.3.8, < 4) mime-types (>= 1.16, < 4) nokogiri (~> 1.5) railties (>= 3, < 5.1) cucumber-wire (0.0.1) - daemons (1.1.9) - database_cleaner (1.4.1) - dbf (3.0.3) + daemons (1.2.4) + database_cleaner (1.5.3) + dbf (3.0.8) debug_inspector (0.0.2) deep_cloneable (2.0.2) activerecord (>= 3.1.0, < 5.0.0) @@ -168,16 +189,16 @@ GEM responders thread_safe (~> 0.1) warden (~> 1.2.3) - devise-async (0.9.0) - devise (~> 3.2) + devise-async (0.10.2) + devise (>= 3.2, < 4.0) devise-encryptable (0.2.0) devise (>= 2.1.0) - devise-i18n (0.11.4) - devise_cas_authenticatable (1.9.0) + devise-i18n (1.1.1) + devise_cas_authenticatable (1.9.2) devise (>= 1.2.0) rubycas-client (>= 2.2.1) - devise_invitable (1.4.1) - actionmailer (>= 3.2.6, < 5) + devise_invitable (1.6.1) + actionmailer (>= 3.2.6) devise (>= 3.2.0) diff-lcs (1.2.5) docile (1.1.5) @@ -195,32 +216,29 @@ GEM enumerize (0.10.1) activesupport (>= 3.2) erubis (2.7.0) - execjs (2.6.0) + execjs (2.7.0) fabrication (2.14.1) - factory_girl (4.5.0) + factory_girl (4.7.0) activesupport (>= 3.0.0) - factory_girl_rails (4.5.0) - factory_girl (~> 4.5.0) + factory_girl_rails (4.7.0) + factory_girl (~> 4.7.0) railties (>= 3.0.0) faker (1.7.3) i18n (~> 0.5) fakeweb (1.3.0) - faraday (0.9.1) + faraday (0.9.2) multipart-post (>= 1.2, < 3) - faraday_middleware (0.9.1) + faraday_middleware (0.9.2) faraday (>= 0.7.4, < 0.10) ffaker (2.1.0) - ffi (1.9.10) - ffi (1.9.10-java) - ffi-geos (1.1.0) + ffi (1.9.14) + ffi-geos (1.1.1) ffi (>= 1.0.0) font-awesome-sass (4.7.0) sass (>= 3.2) - foreigner (1.7.4) - activerecord (>= 3.0.0) formatador (0.2.5) - formtastic (2.3.1) - actionpack (>= 3.0) + formtastic (3.1.5) + actionpack (>= 3.2.13) geokit (1.6.7) multi_json (>= 1.3.2) georuby (2.3.0) @@ -233,10 +251,12 @@ GEM georuby (>= 1.9.8) rgeo (>= 0.3.20) gherkin (4.0.0) - google-analytics-rails (0.0.6) - guard (2.12.4) + globalid (0.3.7) + activesupport (>= 4.1.0) + google-analytics-rails (1.1.0) + guard (2.14.0) formatador (>= 0.2.4) - listen (~> 2.7) + listen (>= 2.7, < 4.0) lumberjack (~> 1.0) nenv (~> 0.1) notiffany (~> 0.0) @@ -244,210 +264,212 @@ GEM shellany (~> 0.0) thor (>= 0.18.1) guard-compat (1.2.1) - guard-rspec (4.5.0) + guard-rspec (4.5.2) guard (~> 2.1) guard-compat (~> 1.1) rspec (>= 2.99.0, < 4.0) has_scope (0.6.0) actionpack (>= 3.2, < 5) activesupport (>= 3.2, < 5) - hashdiff (0.3.0) - highline (1.7.1) + hashdiff (0.3.1) + highline (1.7.8) hike (1.2.3) - hitimes (1.2.2) - hitimes (1.2.2-java) httparty (0.14.0) multi_xml (>= 0.5.2) - i18n (0.7.0) - i18n-tasks (0.8.6) - activesupport + i18n (0.8.1) + i18n-tasks (0.9.6) + activesupport (>= 4.0.2) + ast (>= 2.1.0) easy_translate (>= 0.5.0) erubis - highline + highline (>= 1.7.3) i18n - term-ansicolor + parser (>= 2.2.3.0) + term-ansicolor (>= 1.3.2) terminal-table (>= 1.5.1) inherited_resources (1.6.0) actionpack (>= 3.2, < 5) has_scope (~> 0.6.0.rc) railties (>= 3.2, < 5) responders - jbuilder (2.2.11) - activesupport (>= 3.0.0, < 5) + jbuilder (2.6.1) + activesupport (>= 3.0.0, < 5.1) multi_json (~> 1.2) jquery-rails (3.1.4) railties (>= 3.0, < 5.0) thor (>= 0.14, < 2.0) - json (1.8.3) - json (1.8.3-java) - language_engine (0.0.6) - rails (~> 4.1.1) + json (1.8.6) launchy (2.4.3) addressable (~> 2.3) - launchy (2.4.3-java) - addressable (~> 2.3) - spoon (~> 0.0.1) letter_opener (1.4.1) launchy (~> 2.2) - libv8 (3.16.14.11) + libv8 (3.16.14.17) license_finder (2.1.2) bundler httparty rubyzip thor xml-simple - listen (2.8.6) - celluloid (>= 0.15.2) - rb-fsevent (>= 0.9.3) - rb-inotify (>= 0.9) - lumberjack (1.0.9) - mail (2.6.3) - mime-types (>= 1.16, < 3) + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + loofah (2.0.3) + nokogiri (>= 1.5.9) + lumberjack (1.0.10) + mail (2.6.4) + mime-types (>= 1.16, < 4) map_layers (0.0.4) method_source (0.8.2) - mime-types (2.4.3) - mimemagic (0.3.0) + mime-types (3.1) + mime-types-data (~> 3.2015) + mime-types-data (3.2016.0521) + mimemagic (0.3.2) mini_portile2 (2.1.0) - minitest (5.9.1) - multi_json (1.11.2) + minitest (5.10.1) + multi_json (1.12.1) multi_test (0.1.2) - multi_xml (0.5.5) + multi_xml (0.6.0) multipart-post (2.0.0) - nenv (0.2.0) + nenv (0.3.0) net-scp (1.2.1) net-ssh (>= 2.6.5) net-sftp (2.1.2) net-ssh (>= 2.6.5) - net-ssh (2.9.2) + net-ssh (3.2.0) net-ssh-gateway (1.2.0) net-ssh (>= 2.6.5) - newrelic_rpm (3.11.2.286) - nokogiri (1.7.0.1) + newrelic_rpm (3.17.1.326) + nokogiri (1.7.1) mini_portile2 (~> 2.1.0) - nokogiri (1.7.0.1-java) - notiffany (0.0.6) + notiffany (0.1.1) nenv (~> 0.1) shellany (~> 0.0) open4 (1.3.4) orm_adapter (0.5.0) - parser (2.2.0.3) - ast (>= 1.1, < 3.0) + parser (2.3.3.1) + ast (~> 2.2) pg (0.19.0) phantomjs (2.1.1.0) - poltergeist (1.6.0) + poltergeist (1.12.0) capybara (~> 2.1) cliver (~> 0.3.1) - multi_json (~> 1.0) websocket-driver (>= 0.2.0) polyamorous (1.1.0) activerecord (>= 3.0) polylines (0.3.0) - pry (0.10.1) - coderay (~> 1.1.0) - method_source (~> 0.8.1) - slop (~> 3.4) - pry (0.10.1-java) + pry (0.10.4) coderay (~> 1.1.0) method_source (~> 0.8.1) slop (~> 3.4) - spoon (~> 0.0) + pry-byebug (3.4.2) + byebug (~> 9.0) + pry (~> 0.10) pry-rails (0.3.4) pry (>= 0.9.10) pundit (1.1.0) activesupport (>= 3.0.0) quiet_assets (1.1.0) railties (>= 3.1, < 5.0) - rabl (0.11.6) + rabl (0.13.1) activesupport (>= 2.3.14) - rack (1.5.5) + rack (1.6.5) rack-protection (1.5.3) rack rack-test (0.6.3) rack (>= 1.0) - rails (4.1.10) - actionmailer (= 4.1.10) - actionpack (= 4.1.10) - actionview (= 4.1.10) - activemodel (= 4.1.10) - activerecord (= 4.1.10) - activesupport (= 4.1.10) + rails (4.2.8) + actionmailer (= 4.2.8) + actionpack (= 4.2.8) + actionview (= 4.2.8) + activejob (= 4.2.8) + activemodel (= 4.2.8) + activerecord (= 4.2.8) + activesupport (= 4.2.8) bundler (>= 1.3.0, < 2.0) - railties (= 4.1.10) - sprockets-rails (~> 2.0) - rails-assets-bootstrap-sass-official (3.3.4) - rails-assets-jquery (>= 1.9.0) + railties (= 4.2.8) + sprockets-rails + rails-assets-bootstrap-sass-official (3.3.7) + rails-assets-jquery (>= 1.9.1, < 4) rails-assets-footable (2.0.3) rails-assets-jquery (>= 1.4.4) - rails-assets-jquery (2.1.4) + rails-assets-jquery (3.1.1) rails-assets-jquery-tokeninput (1.7.0) rails-assets-jquery (>= 1.5) rails-assets-modernizr (2.0.6) rails-assets-respond (1.4.2) rails-assets-tagmanager (3.0.1) rails-assets-jquery (>= 1.0.0) - rails-erd (1.3.1) + rails-deprecated_sanitizer (1.0.3) + activesupport (>= 4.2.0.alpha) + rails-dom-testing (1.0.8) + activesupport (>= 4.2.0.beta, < 5.0) + nokogiri (~> 1.6) + rails-deprecated_sanitizer (>= 1.0.1) + rails-erd (1.5.0) activerecord (>= 3.2) activesupport (>= 3.2) - choice (~> 0.1.6) - ruby-graphviz (~> 1.0.4) - rails-i18n (4.0.4) - i18n (~> 0.6) + choice (~> 0.2.0) + ruby-graphviz (~> 1.2) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + rails-i18n (4.0.9) + i18n (~> 0.7) railties (~> 4.0) rails-observers (0.1.2) activemodel (~> 4.0) - railties (4.1.10) - actionpack (= 4.1.10) - activesupport (= 4.1.10) + railties (4.2.8) + actionpack (= 4.2.8) + activesupport (= 4.2.8) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) - rainbow (2.0.0) - rake (11.3.0) - ransack (1.6.3) + rainbow (2.1.0) + rake (12.0.0) + ransack (1.6.5) actionpack (>= 3.0) activerecord (>= 3.0) activesupport (>= 3.0) i18n polyamorous (~> 1.1) - rb-fsevent (0.9.4) - rb-inotify (0.9.5) + rb-fsevent (0.9.8) + rb-inotify (0.9.7) ffi (>= 0.5.0) - rdoc (4.2.0) - json (~> 1.4) - redis (3.3.1) + rdoc (4.3.0) + redis (3.3.2) ref (2.0.0) request_store (1.3.1) - responders (1.1.2) - railties (>= 3.2, < 4.2) - rgeo (0.5.2) - rgeo-activerecord (1.2.0) - activerecord (~> 4.0) + responders (2.3.0) + railties (>= 4.2.0, < 5.1) + rgeo (0.5.3) + rgeo-activerecord (4.0.5) + activerecord (~> 4.2) rgeo (~> 0.3) - roo (1.13.2) - nokogiri - rubyzip - spreadsheet (> 0.6.4) - rspec (3.1.0) - rspec-core (~> 3.1.0) - rspec-expectations (~> 3.1.0) - rspec-mocks (~> 3.1.0) - rspec-core (3.1.7) - rspec-support (~> 3.1.0) - rspec-expectations (3.1.2) + roo (2.5.1) + nokogiri (~> 1) + rubyzip (~> 1.1, < 2.0.0) + rspec (3.5.0) + rspec-core (~> 3.5.0) + rspec-expectations (~> 3.5.0) + rspec-mocks (~> 3.5.0) + rspec-core (3.5.4) + rspec-support (~> 3.5.0) + rspec-expectations (3.5.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.5.0) + rspec-mocks (3.5.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.1.0) - rspec-mocks (3.1.3) - rspec-support (~> 3.1.0) - rspec-rails (3.1.0) + rspec-support (~> 3.5.0) + rspec-rails (3.5.2) actionpack (>= 3.0) activesupport (>= 3.0) railties (>= 3.0) - rspec-core (~> 3.1.0) - rspec-expectations (~> 3.1.0) - rspec-mocks (~> 3.1.0) - rspec-support (~> 3.1.0) - rspec-support (3.1.2) - ruby-graphviz (1.0.9) - ruby-ole (1.2.11.8) + rspec-core (~> 3.5.0) + rspec-expectations (~> 3.5.0) + rspec-mocks (~> 3.5.0) + rspec-support (~> 3.5.0) + rspec-support (3.5.0) + ruby-graphviz (1.2.2) + ruby_dep (1.5.0) rubycas-client (2.3.9) activesupport rubyzip (1.1.7) @@ -461,24 +483,25 @@ GEM sawyer (0.6.0) addressable (~> 2.3.5) faraday (~> 0.8, < 0.10) - sdoc (0.4.1) + sdoc (0.4.2) json (~> 1.7, >= 1.7.7) rdoc (~> 4.0) select2-rails (4.0.3) thor (~> 0.14) shellany (0.0.1) - shoulda-matchers (2.8.0) - activesupport (>= 3.0.0) - sidekiq (4.1.0) + shoulda-matchers (3.1.1) + activesupport (>= 4.0.0) + sidekiq (4.2.7) concurrent-ruby (~> 1.0) connection_pool (~> 2.2, >= 2.2.0) + rack-protection (>= 1.5.0) redis (~> 3.2, >= 3.2.1) - simple_form (3.1.0) + simple_form (3.1.1) actionpack (~> 4.0) activemodel (~> 4.0) - simplecov (0.10.0) + simplecov (0.12.0) docile (~> 1.1.0) - json (~> 1.8) + json (>= 1.8, < 3) simplecov-html (~> 0.10.0) simplecov-html (0.10.0) simplecov-rcov (0.2.3) @@ -490,75 +513,66 @@ GEM slim (3.0.7) temple (~> 0.7.6) tilt (>= 1.3.3, < 2.1) - slim-rails (3.1.0) + slim-rails (3.1.1) actionpack (>= 3.1) railties (>= 3.1) slim (~> 3.0) slop (3.6.0) - spoon (0.0.4) - ffi - spreadsheet (1.0.2) - ruby-ole (>= 1.0) - spring (1.7.2) - sprockets (2.12.3) + spring (2.0.0) + activesupport (>= 4.2) + sprockets (2.12.4) hike (~> 1.2) multi_json (~> 1.0) rack (~> 1.0) tilt (~> 1.1, != 1.3.0) - sprockets-rails (2.2.4) + sprockets-rails (2.3.3) actionpack (>= 3.0) activesupport (>= 3.0) sprockets (>= 2.8, < 4.0) - sqlite3 (1.3.10) - squeel (1.2.3) - activerecord (>= 3.0) - activesupport (>= 3.0) - polyamorous (~> 1.1.0) + sqlite3 (1.3.12) teaspoon (1.1.5) railties (>= 3.2.5, < 6) teaspoon-jasmine (2.3.4) teaspoon (>= 1.0.0) temple (0.7.7) - term-ansicolor (1.3.2) + term-ansicolor (1.4.0) tins (~> 1.0) - terminal-table (1.6.0) + terminal-table (1.7.3) + unicode-display_width (~> 1.1.1) therubyracer (0.12.2) libv8 (~> 3.16.14.0) ref thor (0.19.4) thread (0.2.2) - thread_safe (0.3.5) - thread_safe (0.3.5-java) + thread_safe (0.3.6) tilt (1.4.1) - timers (4.0.1) - hitimes - tins (1.10.2) - transpec (3.1.0) + tins (1.13.0) + transpec (3.2.2) activesupport (>= 3.0, < 5.0) astrolabe (~> 1.2) bundler (~> 1.3) json (~> 1.8) - parser (~> 2.2) + parser (>= 2.3.0.7) rainbow (>= 1.99.1, < 3.0) - turbolinks (2.5.3) - coffee-rails - tzinfo (1.2.2) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.0) + tzinfo (1.2.3) thread_safe (~> 0.1) uglifier (2.7.2) execjs (>= 0.3.0) json (>= 1.8.0) + unicode-display_width (1.1.2) warden (1.2.6) rack (>= 1.0) - webmock (2.1.0) + webmock (2.3.1) addressable (>= 2.3.6) crack (>= 0.3.2) hashdiff - websocket-driver (0.5.3) - websocket-extensions (>= 0.1.0) - websocket-driver (0.5.3-java) + websocket-driver (0.6.4) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.2) - will_paginate (3.1.5) + will_paginate (3.0.12) will_paginate-bootstrap (1.0.1) will_paginate (>= 3.0.3) xml-simple (1.1.5) @@ -566,7 +580,6 @@ GEM nokogiri (~> 1.3) PLATFORMS - java ruby DEPENDENCIES @@ -574,8 +587,8 @@ DEPENDENCIES SyslogLogger aasm active_attr - activerecord-postgis-adapter - acts-as-taggable-on (>= 3) + activerecord-postgis-adapter (~> 3.0.0) + acts-as-taggable-on (~> 4.0.0) acts_as_list (~> 0.6.0) acts_as_tree (~> 2.1.0) apartment (~> 1.0.0) @@ -614,20 +627,19 @@ DEPENDENCIES faraday_middleware (~> 0.9.1) ffaker (~> 2.1.0) font-awesome-sass (~> 4.7) - foreigner (~> 1.7.4) - formtastic (= 2.3.1) + formtastic (= 3.1.5) georuby (= 2.3.0) georuby-ext (= 0.0.5) google-analytics-rails guard - guard-rspec + guard-rspec (~> 4.5.0) has_array_of! i18n-tasks inherited_resources jbuilder (~> 2.0) jquery-rails (~> 3.1.4) json - language_engine (= 0.0.6) + language_engine! launchy letter_opener license_finder @@ -638,11 +650,12 @@ DEPENDENCIES phantomjs poltergeist polylines + pry-byebug pry-rails pundit - quiet_assets (~> 1.0) + quiet_assets rabl - rails (~> 4.1.10) + rails (~> 4.2.8) rails-assets-bootstrap-sass-official (~> 3.3.0)! rails-assets-footable (~> 2.0.3)! rails-assets-jquery-tokeninput (~> 1.7.0)! @@ -659,13 +672,13 @@ DEPENDENCIES reflex! rgeo (~> 0.5.2) roo - rspec-rails (~> 3.1.0) + rspec-rails (~> 3.5.0) rubyzip (~> 1.1.7) sass-rails (~> 4.0.3) sawyer (~> 0.6.0) sdoc (~> 0.4.0) select2-rails (~> 4.0, >= 4.0.3) - shoulda-matchers + shoulda-matchers (~> 3.1) sidekiq simple_form (~> 3.1.0) simplecov @@ -674,7 +687,7 @@ DEPENDENCIES slim-rails (~> 3.1) spring sqlite3 - squeel + squeel! teaspoon-jasmine therubyracer (~> 0.12) transpec @@ -685,5 +698,8 @@ DEPENDENCIES will_paginate will_paginate-bootstrap +RUBY VERSION + ruby 2.3.1p112 + BUNDLED WITH - 1.13.6 + 1.14.6 diff --git a/README.md b/README.md index 5161d5ca8..ee0a29c10 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Configure for Generating URLs in Action Mailer Views. * see [Action Mailer Configuration documentation](http://guides.rubyonrails.org/action_mailer_basics.html) Configure assets access (Must be true if you use Webrick, or false if you use Apache or Nginx). -* Edit [production.rb](./config/environments/production.rb) and change ```config.serve_static_assets``` +* Edit [production.rb](./config/environments/production.rb) and change ```config.serve_static_files``` Configure SMTP settings. * Edit [production.rb](./config/environments/production.rb) and change ```ActionMailer::Base.smtp_settings``` @@ -144,7 +144,7 @@ This task may be added in system start-up configuration. Instead of using WEBrick, Rails application may be deployed on [Phusion Passenger](https://www.phusionpassenger.com/) with an [Apache](http://httpd.apache.org/) or [NGinx](http://nginx.com/) front-end, to make server faster and more robust. Apache like NGinx can serve static resources, -so change parameter ```serve_static_assets``` to false in [production.rb](./config/environments/production.rb) +so change parameter ```serve_static_files``` to false in [production.rb](./config/environments/production.rb) Test ---- diff --git a/app/views/access_links/_form.html.slim b/app/views/access_links/_form.html.slim index 463cdf9e3..db5ed2d9b 100644 --- a/app/views/access_links/_form.html.slim +++ b/app/views/access_links/_form.html.slim @@ -21,4 +21,4 @@ = form.actions do = form.action :submit, as: :button - = form.action :cancel, as: :link \ No newline at end of file + = form.action :cancel, as: :link diff --git a/app/views/connection_links/_form.html.slim b/app/views/connection_links/_form.html.slim index afef3bba7..e5b4d0f0c 100644 --- a/app/views/connection_links/_form.html.slim +++ b/app/views/connection_links/_form.html.slim @@ -18,4 +18,4 @@ = form.actions do = form.action :submit, as: :button - = form.action :cancel, as: :link \ No newline at end of file + = form.action :cancel, as: :link diff --git a/config/application.rb b/config/application.rb index 70b927855..06f931765 100644 --- a/config/application.rb +++ b/config/application.rb @@ -31,6 +31,7 @@ module ChouetteIhm config.browserify_rails.commandline_options = "-t [ babelify --presets [ react es2015 ] ]" config.active_record.observers = :route_observer + config.active_record.raise_in_transactional_callbacks = true unless Rails.env.production? # Work around sprockets+teaspoon mismatch: diff --git a/config/environment.rb b/config/environment.rb index 592eda45a..4d27bfaec 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -6,4 +6,4 @@ require File.expand_path('../application', __FILE__) Rails.application.initialize! # Fix version -APP_VERSION = 'Itération 7' +APP_VERSION = 'Itération 9' diff --git a/config/environments/production.rb b/config/environments/production.rb index 71fe99fe8..41b31b1e8 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -19,7 +19,7 @@ Rails.application.configure do # config.action_dispatch.rack_cache = true # Disable Rails's static asset server (Apache or nginx will already do this). - config.serve_static_assets = false + config.serve_static_files = false # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier diff --git a/config/environments/test.rb b/config/environments/test.rb index b77a26273..d83b4fd85 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -15,7 +15,7 @@ Rails.application.configure do config.eager_load = false # Configure static asset server for tests with Cache-Control for performance. - config.serve_static_assets = true + config.serve_static_files = true config.static_cache_control = 'public, max-age=3600' # Show full error reports and disable caching. diff --git a/config/initializers/formtastic.rb b/config/initializers/formtastic.rb index 2cdc37243..e2341f037 100644 --- a/config/initializers/formtastic.rb +++ b/config/initializers/formtastic.rb @@ -74,3 +74,9 @@ Formtastic::FormBuilder.default_text_area_width = 50 # this to false. Doing so will add a `novalidate` attribute to the `