geojsonlint 0.1.2 → 0.1.3

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: b4ca0d9f36d688972008a4d6699f5e1a0ec89f6f
4
- data.tar.gz: b88ee3cad1afc435d3f8a84cf175c5745b34e608
3
+ metadata.gz: 732e9a1eabc96a9eae5cf3102869989d498a3688
4
+ data.tar.gz: bae1df4103095141e8781c1a315c5c7f27d19f71
5
5
  SHA512:
6
- metadata.gz: 0fad49d5160281dd224949249b95c0c8bdc49e979c6312bb2664886ce3db1c83a5c50e1666b1a66c01cf514ef6852ae841295bdb3b4621da69eefd5aea14a353
7
- data.tar.gz: 35d0d6e0867f2c767478e707fc7703d0033600fcbf442c9eb24b5d9357dd44719973db8f6fd93161f368f093bc0854fd058c390a26905af07bc84c47f306a95d
6
+ metadata.gz: a42bfe907165a0658236e47d65f48babd7745d21ce88bd9fffcc88beccc2c5fea7884cca76b085979045f3a5a8e0deff6e87b0455c43e533e2430f55dc45b617
7
+ data.tar.gz: 26b176ce0c333054f86db815b1ae36e877657bf2b952e003ff56bc23b336b7767ac224286f79f7ca84c23879797cf6becea24024cc7b842bc8bcb14e66ae853b
data/README.md CHANGED
@@ -52,7 +52,7 @@ end
52
52
 
53
53
  feature = Feature.new(data: data)
54
54
  feature.valid?
55
- feature.errors[:data] # => ["Invalid geojson"]
55
+ feature.errors[:data] # => ["Geojson is invalid""]
56
56
  ```
57
57
 
58
58
  ## Installation
@@ -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"
7
+ message = options[:message] || "is 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.2"
2
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philippe Dionne