geojsonlint 0.1.1 → 0.1.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
2
  SHA1:
3
- metadata.gz: d8d20a4884b2b00852a2b46787285545068eb2c8
4
- data.tar.gz: 118ed03347a6aef9f5048011bab1a1ebf0355279
3
+ metadata.gz: b4ca0d9f36d688972008a4d6699f5e1a0ec89f6f
4
+ data.tar.gz: b88ee3cad1afc435d3f8a84cf175c5745b34e608
5
5
  SHA512:
6
- metadata.gz: 12a501adac8548aed0b4f61700d04b421043bfd72ef91c178581c213ad78796a5e05ce2d4a35694c3d6b54fb06d678210d9eca85a16a74ec318d4d7b054a90b5
7
- data.tar.gz: f6f9599f64f75c0269b1f79980e4f2bec171f8614f8ffc83ad790080897314062c83718c4d63f5f83a7cfb718343a787b4cef658c8c24f4ba930bc2fab2bfb75
6
+ metadata.gz: 0fad49d5160281dd224949249b95c0c8bdc49e979c6312bb2664886ce3db1c83a5c50e1666b1a66c01cf514ef6852ae841295bdb3b4621da69eefd5aea14a353
7
+ data.tar.gz: 35d0d6e0867f2c767478e707fc7703d0033600fcbf442c9eb24b5d9357dd44719973db8f6fd93161f368f093bc0854fd058c390a26905af07bc84c47f306a95d
@@ -14,7 +14,8 @@ module Geojsonlint
14
14
  # @param data [String, Hash]
15
15
  def initialize(data)
16
16
  @data = data
17
- @schema = JSON.parse(File.read('./lib/geojsonlint/geojson_schema.json'))
17
+
18
+ @schema = JSON.parse(File.read(File.expand_path('../geojsonlint/geojson_schema.json', __FILE__)))
18
19
  self
19
20
  end
20
21
 
@@ -4,7 +4,7 @@ class GeojsonValidator < ActiveModel::EachValidator
4
4
 
5
5
  def validate_each(record, attribute, value)
6
6
  unless valid_geojson?(value)
7
- message = options[:message] || "Invalid geojson"
7
+ message = options[:message] || "invalid"
8
8
  record.errors.add(attribute, message)
9
9
  end
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module Geojsonlint
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geojsonlint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philippe Dionne