leaflet-rails 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module Leaflet
2
2
  module Rails
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
@@ -23,7 +23,7 @@ if (typeof exports !== undefined + '') {
23
23
  window.L = L;
24
24
  }
25
25
 
26
- L.version = '0.5';
26
+ L.version = '0.5.1';
27
27
 
28
28
 
29
29
  /*
@@ -5316,7 +5316,7 @@ L.CircleMarker = L.Circle.extend({
5316
5316
  },
5317
5317
 
5318
5318
  setRadius: function (radius) {
5319
- this._radius = radius;
5319
+ this.options.radius = this._radius = radius;
5320
5320
  return this.redraw();
5321
5321
  }
5322
5322
  });
@@ -5440,7 +5440,7 @@ L.GeoJSON = L.FeatureGroup.extend({
5440
5440
  if (features) {
5441
5441
  for (i = 0, len = features.length; i < len; i++) {
5442
5442
  // Only add this if geometry or geometries are set and not null
5443
- if (features[i].geometries || features[i].geometry) {
5443
+ if (features[i].geometries || features[i].geometry || features[i].features) {
5444
5444
  this.addData(features[i]);
5445
5445
  }
5446
5446
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leaflet-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-25 00:00:00.000000000 Z
12
+ date: 2013-06-26 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This gem provides the leaflet.js map display library for your Rails 3
15
15
  application.