diff --git a/Gemfile b/Gemfile index 8203be230..0cdf8ce7f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source 'http://rubygems.org' # Require rails -gem 'rails', '4.0.4' +gem 'rails', '4.0.5' # Require things which have moved to gems in ruby 1.9 gem 'bigdecimal', "~> 1.1.0", :platforms => :ruby_19 diff --git a/Gemfile.lock b/Gemfile.lock index f095d624f..fc2d4f54b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,34 +2,33 @@ GEM remote: http://rubygems.org/ specs: SystemTimer (1.2.3) - actionmailer (4.0.4) - actionpack (= 4.0.4) + actionmailer (4.0.5) + actionpack (= 4.0.5) mail (~> 2.5.4) - actionpack (4.0.4) - activesupport (= 4.0.4) + actionpack (4.0.5) + activesupport (= 4.0.5) builder (~> 3.1.0) erubis (~> 2.7.0) rack (~> 1.5.2) rack-test (~> 0.6.2) actionpack-page_caching (1.0.2) actionpack (>= 4.0.0, < 5) - activemodel (4.0.4) - activesupport (= 4.0.4) + activemodel (4.0.5) + activesupport (= 4.0.5) builder (~> 3.1.0) - activerecord (4.0.4) - activemodel (= 4.0.4) + activerecord (4.0.5) + activemodel (= 4.0.5) activerecord-deprecated_finders (~> 1.0.2) - activesupport (= 4.0.4) + activesupport (= 4.0.5) arel (~> 4.0.0) activerecord-deprecated_finders (1.0.3) - activesupport (4.0.4) + activesupport (4.0.5) i18n (~> 0.6, >= 0.6.9) minitest (~> 4.2) multi_json (~> 1.3) thread_safe (~> 0.1) tzinfo (~> 0.3.37) arel (4.0.2) - atomic (1.1.15) bigdecimal (1.1.0) builder (3.1.4) capybara (2.2.1) @@ -41,7 +40,7 @@ GEM climate_control (0.0.3) activesupport (>= 3.0) cliver (0.3.2) - cocaine (0.5.3) + cocaine (0.5.4) climate_control (>= 0.0.3, < 1.0) coffee-rails (4.0.1) coffee-script (>= 2.2.0) @@ -50,10 +49,10 @@ GEM coffee-script-source execjs coffee-script-source (1.7.0) - colorize (0.7.0) - composite_primary_keys (6.0.1) + colorize (0.7.2) + composite_primary_keys (6.0.3) activerecord (>= 4.0.0) - dalli (2.7.0) + dalli (2.7.1) deadlock_retry (1.2.0) dynamic_form (1.1.4) erubis (2.7.0) @@ -75,10 +74,10 @@ GEM jsonify-rails (0.3.2) actionpack jsonify (< 0.4.0) - jwt (0.1.11) + jwt (0.1.13) multi_json (>= 1.5) kgio (2.9.2) - konacha (3.2.0) + konacha (3.2.2) actionpack (>= 3.1, < 5) capybara colorize @@ -89,9 +88,9 @@ GEM mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.25.1) - mini_portile (0.5.2) + mini_portile (0.5.3) minitest (4.7.5) - multi_json (1.9.0) + multi_json (1.10.0) multi_xml (0.5.5) multipart-post (2.0.0) nokogiri (1.6.1) @@ -124,8 +123,8 @@ GEM multi_json (~> 1.0) websocket-driver (>= 0.2.0) polyglot (0.3.4) - psych (2.0.4) - r2 (0.2.2) + psych (2.0.5) + r2 (0.2.3) rack (1.5.2) rack-cors (0.2.9) rack-openid (1.4.2) @@ -133,34 +132,34 @@ GEM ruby-openid (>= 2.1.8) rack-test (0.6.2) rack (>= 1.0) - rails (4.0.4) - actionmailer (= 4.0.4) - actionpack (= 4.0.4) - activerecord (= 4.0.4) - activesupport (= 4.0.4) + rails (4.0.5) + actionmailer (= 4.0.5) + actionpack (= 4.0.5) + activerecord (= 4.0.5) + activesupport (= 4.0.5) bundler (>= 1.3.0, < 2.0) - railties (= 4.0.4) + railties (= 4.0.5) sprockets-rails (~> 2.0.0) - rails-i18n (4.0.1) + rails-i18n (4.0.2) i18n (~> 0.6) - rails (~> 4.0) - railties (4.0.4) - actionpack (= 4.0.4) - activesupport (= 4.0.4) + rails (>= 4.0) + railties (4.0.5) + actionpack (= 4.0.5) + activesupport (= 4.0.5) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) - rake (10.1.1) + rake (10.3.1) redcarpet (3.1.1) rinku (1.7.3) ruby-openid (2.5.0) sanitize (2.1.0) nokogiri (>= 1.4.4) - sass (3.2.15) - sass-rails (4.0.2) + sass (3.2.19) + sass-rails (4.0.3) railties (>= 4.0.0, < 5.0) sass (~> 3.2.0) sprockets (~> 2.8, <= 2.11.0) - sprockets-rails (~> 2.0.0) + sprockets-rails (~> 2.0) soap4r-ruby1.9 (2.0.5) sprockets (2.11.0) hike (~> 1.2) @@ -171,21 +170,20 @@ GEM actionpack (>= 3.0) activesupport (>= 3.0) sprockets (~> 2.8) - thor (0.18.1) - thread_safe (0.2.0) - atomic (>= 1.1.7, < 2) + thor (0.19.1) + thread_safe (0.3.3) tilt (1.4.1) timecop (0.7.1) treetop (1.4.15) polyglot polyglot (>= 0.3.1) tzinfo (0.3.39) - uglifier (2.4.0) + uglifier (2.5.0) execjs (>= 0.3.0) json (>= 1.8.0) validates_email_format_of (1.5.3) - vendorer (0.1.14) - websocket-driver (0.3.2) + vendorer (0.1.15) + websocket-driver (0.3.3) xpath (2.0.0) nokogiri (~> 1.3) @@ -221,7 +219,7 @@ DEPENDENCIES psych r2 rack-cors - rails (= 4.0.4) + rails (= 4.0.5) rails-i18n (~> 4.0.0) redcarpet rinku (>= 1.2.2) diff --git a/Vendorfile b/Vendorfile index 0cca4055c..c2267a6d8 100644 --- a/Vendorfile +++ b/Vendorfile @@ -11,13 +11,13 @@ folder 'vendor/assets' do end folder 'leaflet' do - file 'leaflet.js', 'http://cdn.leafletjs.com/leaflet-0.7.2/leaflet-src.js' - file 'leaflet.css', 'http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css' + file 'leaflet.js', 'http://cdn.leafletjs.com/leaflet-0.7.3/leaflet-src.js' + file 'leaflet.css', 'http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css' [ 'layers.png', 'layers-2x.png', 'marker-icon.png', 'marker-icon-2x.png', 'marker-shadow.png' ].each do |image| - file "images/#{image}", "http://cdn.leafletjs.com/leaflet-0.7.2/images/#{image}" + file "images/#{image}", "http://cdn.leafletjs.com/leaflet-0.7.3/images/#{image}" end from 'git://github.com/kajic/leaflet-locationfilter.git' do diff --git a/app/assets/images/browse/caravan_park.n.16.png b/app/assets/images/browse/caravan_park.n.16.png new file mode 100644 index 000000000..a4b35a433 Binary files /dev/null and b/app/assets/images/browse/caravan_park.n.16.png differ diff --git a/app/assets/images/browse/caravan_park.p.24.png b/app/assets/images/browse/caravan_park.p.24.png deleted file mode 100644 index 751f5204b..000000000 Binary files a/app/assets/images/browse/caravan_park.p.24.png and /dev/null differ diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 6ac398fc5..09ae367f4 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -22,19 +22,22 @@ var querystring = require('querystring-component'); function remoteEditHandler(bbox, object) { var loaded = false, - query = { - left: bbox.getWest() - 0.0001, - top: bbox.getNorth() + 0.0001, - right: bbox.getEast() + 0.0001, - bottom: bbox.getSouth() - 0.0001 - }; + url = document.location.protocol === "https:" ? + "https://127.0.0.1:8112/load_and_zoom?" : + "http://127.0.0.1:8111/load_and_zoom?", + query = { + left: bbox.getWest() - 0.0001, + top: bbox.getNorth() + 0.0001, + right: bbox.getEast() + 0.0001, + bottom: bbox.getSouth() - 0.0001 + }; if (object) query.select = object.type + object.id; var iframe = $('