charta 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 6e1a6955069e9535ef7d8b3b7e72a38902f161a5c040a6ba3e86ebf010ddcf7c
4
- data.tar.gz: c413fb93fdb9ccf1328b58d7a721a1eca54c219e5ca54bc61066df2a4ccce1ac
2
+ SHA1:
3
+ metadata.gz: 5cef2f555beb27d13a0cbc3bbc24f64f9143d2cb
4
+ data.tar.gz: 64f46d959388ca952edbb53e8deb4a887335bc9f
5
5
  SHA512:
6
- metadata.gz: f4457d1afc0c7289e3748a07a95b9422e797edee230447bb90bfa6423614dc9133f330aab1acb8be0a485b8de4172673933c3d7c493602a29422053d45435f12
7
- data.tar.gz: 33942453f7c1863b13b2011a05923ffcdeae0098899ea50bd8ee7b012be3a135564d95b030bc781aedaca57237fa4f8ffd5e1701010e73f4169dc8ec3699ed2e
6
+ metadata.gz: 99614ef99edfdbd74e8d107279a1e8533b887cc3e4e503ba7355c60f964a4aeb95e5778debd35dc3fd4c385c61c3a199f412ac1252691accf0b079e60530b99d
7
+ data.tar.gz: 4abce4b81dd5ccab25fcb6778b896615c627d389aec8cd465301595ff9e171f1af7c64bb1f1b7f3947d4d9b73ca5a16cc23c508303796e254f57a92ac0f7a56d
@@ -258,6 +258,20 @@ module Charta
258
258
  { type: 'Feature', properties: properties, geometry: to_json_object }
259
259
  end
260
260
 
261
+ def method_missing(name, *args, &block)
262
+ target = to_rgeo
263
+ if target.respond_to? name
264
+ target.send name, *args
265
+ else
266
+ raise StandardError.new("Method #{name} does not exist for #{self.class.name}")
267
+ end
268
+ end
269
+
270
+ def respond_to_missing?(name, include_private = false)
271
+ return false if name == :init_with
272
+ super
273
+ end
274
+
261
275
  class << self
262
276
  def srs_database
263
277
  @srs_database ||= RGeo::CoordSys::SRSDatabase::Proj4Data.new('epsg', authority: 'EPSG', cache: true)
@@ -338,22 +352,6 @@ module Charta
338
352
  projection_proj4: proj4
339
353
  )
340
354
  end
341
-
342
- def method_missing(name, *args, &block)
343
- target = to_rgeo
344
- if target.respond_to? name
345
- target.send name, *args
346
- else
347
- raise StandardError.new("Method #{name} does not exist for #{self.class.name}")
348
- end
349
- end
350
-
351
- def respond_to_missing?(name, include_private = false)
352
- return false if name == :init_with
353
- return true if to_rgeo.respond_to? name, include_private
354
- super
355
- end
356
-
357
355
  end
358
356
  end
359
357
  end
@@ -1,3 +1,3 @@
1
1
  module Charta
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice TEXIER
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-15 00:00:00.000000000 Z
11
+ date: 2019-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -200,7 +200,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  requirements: []
203
- rubygems_version: 3.0.1
203
+ rubyforge_project:
204
+ rubygems_version: 2.5.2.3
204
205
  signing_key:
205
206
  specification_version: 4
206
207
  summary: Simple tool over geos and co