charta 0.1.6 → 0.1.7
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.
- checksums.yaml +4 -4
- data/Rakefile +5 -5
- data/charta.gemspec +0 -2
- data/lib/charta.rb +1 -1
- data/lib/charta/geometry.rb +1 -4
- data/lib/charta/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49c165cabf754a323c1930850a42bff9f496ab3a
|
4
|
+
data.tar.gz: 135c226730aaf732d7facc369dc461969cf32de8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c7ddef0a6f13499956f12ad1127bab45732f35cc197b05cceb634014c78f6513cc5c9161fe4a2f3c5a3eed6610906b6a4a077bd86b9a98dfd2861452a265f78
|
7
|
+
data.tar.gz: ddd259f7dfb0363b016ceea244f6e83d4dd98e5eb0234e83d4686874c67696c3f4a795c5d4da1816e49be1e08a73d28490df228eb268532378780981cf5c5fe2
|
data/Rakefile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rake/testtask'
|
3
3
|
|
4
4
|
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs <<
|
6
|
-
t.libs <<
|
5
|
+
t.libs << 'test'
|
6
|
+
t.libs << 'lib'
|
7
7
|
t.test_files = FileList['test/**/*_test.rb']
|
8
8
|
end
|
9
9
|
|
10
|
-
task :
|
10
|
+
task default: :test
|
data/charta.gemspec
CHANGED
data/lib/charta.rb
CHANGED
@@ -75,7 +75,7 @@ module Charta
|
|
75
75
|
Geometry.feature(geom_ewkt)
|
76
76
|
end
|
77
77
|
|
78
|
-
def new_geometry(coordinates,
|
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
|
data/lib/charta/geometry.rb
CHANGED
@@ -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
|
-
|
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 }
|
data/lib/charta/version.rb
CHANGED
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.
|
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-
|
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.
|
175
|
+
rubygems_version: 2.5.2
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: Simple tool over geos and co
|