flammarion 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Flammarion
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
@@ -1148,7 +1148,9 @@ L.GeoSearch.Provider.OpenStreetMap = L.Class.extend({
1148
1148
  format: 'json'
1149
1149
  }, this.options);
1150
1150
 
1151
- return location.protocol
1151
+ var protocol = location.protocol == "file:" ? "http:" : location.protocol;
1152
+
1153
+ return protocol
1152
1154
  + '//nominatim.openstreetmap.org/search'
1153
1155
  + L.Util.getParamString(parameters);
1154
1156
  },
@@ -275,7 +275,9 @@ L.GeoSearch.Provider.OpenStreetMap = L.Class.extend({
275
275
  format: 'json'
276
276
  }, this.options);
277
277
 
278
- return location.protocol
278
+ var protocol = location.protocol == "file:" ? "http:" : location.protocol;
279
+
280
+ return protocol
279
281
  + '//nominatim.openstreetmap.org/search'
280
282
  + L.Util.getParamString(parameters);
281
283
  },
@@ -21,7 +21,9 @@ L.GeoSearch.Provider.OpenStreetMap = L.Class.extend({
21
21
  format: 'json'
22
22
  }, this.options);
23
23
 
24
- return location.protocol
24
+ var protocol = location.protocol == "file:" ? "http:" : location.protocol;
25
+
26
+ return protocol
25
27
  + '//nominatim.openstreetmap.org/search'
26
28
  + L.Util.getParamString(parameters);
27
29
  },
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flammarion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
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: 2016-09-16 00:00:00.000000000 Z
12
+ date: 2016-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubame