charta 0.1.6 → 0.1.7

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: 7330e4893e3f07c1558d79a93fd56077ed7a6e38
4
- data.tar.gz: d101ae5be607fd0a6ce27447c03504a74cdfd03a
3
+ metadata.gz: 49c165cabf754a323c1930850a42bff9f496ab3a
4
+ data.tar.gz: 135c226730aaf732d7facc369dc461969cf32de8
5
5
  SHA512:
6
- metadata.gz: 5a779aff4072ca8118cb65e66b711816b51e1a6f2194b520a174c5b7549072afe064581e245940c59fcf7126274b1f463d732792b17101dcf044fa57891dcee2
7
- data.tar.gz: a68643928b9578e298b665d8f576b3a51f95e3b8635aa6231501f886e57a5eb1d866c915d604d64c4a691d535b1b654a6fd30757e78bba5fb871f83994d5c683
6
+ metadata.gz: 8c7ddef0a6f13499956f12ad1127bab45732f35cc197b05cceb634014c78f6513cc5c9161fe4a2f3c5a3eed6610906b6a4a077bd86b9a98dfd2861452a265f78
7
+ data.tar.gz: ddd259f7dfb0363b016ceea244f6e83d4dd98e5eb0234e83d4686874c67696c3f4a795c5d4da1816e49be1e08a73d28490df228eb268532378780981cf5c5fe2
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,5 +1,3 @@
1
- # coding: utf-8
2
-
3
1
  lib = File.expand_path('../lib', __FILE__)
4
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
3
  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
@@ -1,7 +1,6 @@
1
1
  require 'json'
2
2
  require 'rgeo/geo_json'
3
3
  require 'rgeo/svg' # integrated lib for now
4
- require 'byebug'
5
4
 
6
5
  module Charta
7
6
  # Represents a Geometry with SRID
@@ -232,9 +231,7 @@ module Charta
232
231
  Charta.find_srid(name_or_srid)
233
232
  end
234
233
 
235
- def feature
236
- @feature
237
- end
234
+ attr_reader :feature
238
235
 
239
236
  def to_json_feature(properties = {})
240
237
  { type: 'Feature', properties: properties, geometry: to_json_object }
@@ -1,3 +1,3 @@
1
1
  module Charta
2
- VERSION = '0.1.6'.freeze
2
+ VERSION = '0.1.7'.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.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brice TEXIER
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-09 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.6.13
175
+ rubygems_version: 2.5.2
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Simple tool over geos and co