charta 0.1.7 → 0.1.8

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
2
  SHA1:
3
- metadata.gz: 49c165cabf754a323c1930850a42bff9f496ab3a
4
- data.tar.gz: 135c226730aaf732d7facc369dc461969cf32de8
3
+ metadata.gz: 91f9f91e9ceb0d429d73dcc7ac1223f82853607f
4
+ data.tar.gz: 57434c3c458690a13b12ce33dc6f71c9d534cd47
5
5
  SHA512:
6
- metadata.gz: 8c7ddef0a6f13499956f12ad1127bab45732f35cc197b05cceb634014c78f6513cc5c9161fe4a2f3c5a3eed6610906b6a4a077bd86b9a98dfd2861452a265f78
7
- data.tar.gz: ddd259f7dfb0363b016ceea244f6e83d4dd98e5eb0234e83d4686874c67696c3f4a795c5d4da1816e49be1e08a73d28490df228eb268532378780981cf5c5fe2
6
+ metadata.gz: '07914f06a851f73c3ee4dfef1e37c8904367c926173d2521982b9e72713491e8119963b74612faed35200e67b717c68f037201f8addd7e5cdbcd80d345e4530b'
7
+ data.tar.gz: 4b249d994fe723c1a2da0b9366709bcc9bd193d11e3477a7c117f933c2e2ea53d1a77f4fb39b0618f856a22a7ce35b6f0159763a6a216d3b2f0be21dee364bad
data/Rakefile CHANGED
@@ -1,10 +1,10 @@
1
- require 'bundler/gem_tasks'
2
- require 'rake/testtask'
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
3
 
4
4
  Rake::TestTask.new(:test) do |t|
5
- t.libs << 'test'
6
- t.libs << 'lib'
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
7
  t.test_files = FileList['test/**/*_test.rb']
8
8
  end
9
9
 
10
- task default: :test
10
+ task :default => :test
@@ -1,3 +1,5 @@
1
+ # coding: utf-8
2
+
1
3
  lib = File.expand_path('../lib', __FILE__)
2
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
5
  require 'charta/version'
@@ -75,7 +75,7 @@ module Charta
75
75
  Geometry.feature(geom_ewkt)
76
76
  end
77
77
 
78
- def new_geometry(coordinates, _srs = nil, _format = nil, _flatten_collection = true, _options = {})
78
+ def new_geometry(coordinates, srs = nil, format = nil, _flatten_collection = true, _options = {})
79
79
  return coordinates if coordinates.is_a?(::Charta::Geometry)
80
80
  feature = Charta.new_feature(coordinates, srs, format, _flatten_collection, _options)
81
81
  type = feature.geometry_type
@@ -231,7 +231,9 @@ module Charta
231
231
  Charta.find_srid(name_or_srid)
232
232
  end
233
233
 
234
- attr_reader :feature
234
+ def feature
235
+ @feature
236
+ end
235
237
 
236
238
  def to_json_feature(properties = {})
237
239
  { type: 'Feature', properties: properties, geometry: to_json_object }
@@ -1,3 +1,3 @@
1
1
  module Charta
2
- VERSION = '0.1.7'.freeze
2
+ VERSION = '0.1.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice TEXIER