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 +4 -4
- data/Rakefile +5 -5
- data/charta.gemspec +2 -0
- data/lib/charta.rb +1 -1
- data/lib/charta/geometry.rb +3 -1
- data/lib/charta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91f9f91e9ceb0d429d73dcc7ac1223f82853607f
|
4
|
+
data.tar.gz: 57434c3c458690a13b12ce33dc6f71c9d534cd47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '07914f06a851f73c3ee4dfef1e37c8904367c926173d2521982b9e72713491e8119963b74612faed35200e67b717c68f037201f8addd7e5cdbcd80d345e4530b'
|
7
|
+
data.tar.gz: 4b249d994fe723c1a2da0b9366709bcc9bd193d11e3477a7c117f933c2e2ea53d1a77f4fb39b0618f856a22a7ce35b6f0159763a6a216d3b2f0be21dee364bad
|
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 default
|
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
data/lib/charta/version.rb
CHANGED