activemodel_json_validator 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
  SHA256:
3
- metadata.gz: 80e73e621a65a23064dfa44a9acc72a7bbb835c304d42833e3029162267d11b2
4
- data.tar.gz: c17b97627baeb5b53889c788e89fa4b3960db837d157f70ef5ef92b16fee9bf0
3
+ metadata.gz: fc8a5a6819c2a0158172f5139e8682edc9cd4f9e7dad4183cc5d00bba468be29
4
+ data.tar.gz: bd177a9959826ccdd17bd75955bd5370e8c419d161e0bd6d053392176c728087
5
5
  SHA512:
6
- metadata.gz: 8580a64ed6ee5fe719680940d8f7ec78a514178f13bb08947ea5ef974e4c9c83c581c8c7f34b06ef223330c97aedca8a0173c42df8f9784a01d7fae92c8f1c0f
7
- data.tar.gz: ebd012ee13b8e0c4b4a58ac8259a62bb91b6360c96fa390d5507441a2ace45440e3b7938d3f86d1bb5a8df1aeece5bd81da3c171191d6c3201921ea19c2fc170
6
+ metadata.gz: 3fc9b8fcf84a2c0760b37a6df99ef81948859cd69dc0e07b65939f0f58f6ffeb1061cf45aea0199de4b24c690f42584aa0bd3f231e45fb2da80cd2e99b1eabf5
7
+ data.tar.gz: 5a8ccca2d3d0084d93b0783aa310d89d5db1809285bea2954c6380670935bdc5df3d4f1606147d31409280c581b0e36a2aba1150af0439e137ef430e44bb8a81
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activemodel_json_validator (0.1.1)
4
+ activemodel_json_validator (0.1.2)
5
5
  activemodel (>= 4.2)
6
6
  json-schema (~> 2.8)
7
7
 
@@ -16,8 +16,8 @@ GEM
16
16
  minitest (~> 5.1)
17
17
  thread_safe (~> 0.3, >= 0.3.4)
18
18
  tzinfo (~> 1.1)
19
- addressable (2.6.0)
20
- public_suffix (>= 2.0.2, < 4.0)
19
+ addressable (2.7.0)
20
+ public_suffix (>= 2.0.2, < 5.0)
21
21
  appraisal (2.2.0)
22
22
  bundler
23
23
  rake
@@ -38,7 +38,7 @@ GEM
38
38
  json-schema (2.8.1)
39
39
  addressable (>= 2.4)
40
40
  minitest (5.11.3)
41
- public_suffix (3.1.1)
41
+ public_suffix (4.0.1)
42
42
  rake (12.3.3)
43
43
  rspec (3.8.0)
44
44
  rspec-core (~> 3.8.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activemodel_json_validator (0.1.1)
4
+ activemodel_json_validator (0.1.2)
5
5
  activemodel (>= 4.2)
6
6
  json-schema (~> 2.8)
7
7
 
@@ -15,8 +15,8 @@ GEM
15
15
  i18n (>= 0.7, < 2)
16
16
  minitest (~> 5.1)
17
17
  tzinfo (~> 1.1)
18
- addressable (2.6.0)
19
- public_suffix (>= 2.0.2, < 4.0)
18
+ addressable (2.7.0)
19
+ public_suffix (>= 2.0.2, < 5.0)
20
20
  appraisal (2.2.0)
21
21
  bundler
22
22
  rake
@@ -36,7 +36,7 @@ GEM
36
36
  json-schema (2.8.1)
37
37
  addressable (>= 2.4)
38
38
  minitest (5.11.3)
39
- public_suffix (3.1.1)
39
+ public_suffix (4.0.1)
40
40
  rake (12.3.3)
41
41
  rspec (3.8.0)
42
42
  rspec-core (~> 3.8.0)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activemodel_json_validator (0.1.1)
4
+ activemodel_json_validator (0.1.2)
5
5
  activemodel (>= 4.2)
6
6
  json-schema (~> 2.8)
7
7
 
@@ -16,8 +16,8 @@ GEM
16
16
  minitest (~> 5.1)
17
17
  tzinfo (~> 1.1)
18
18
  zeitwerk (~> 2.1, >= 2.1.8)
19
- addressable (2.6.0)
20
- public_suffix (>= 2.0.2, < 4.0)
19
+ addressable (2.7.0)
20
+ public_suffix (>= 2.0.2, < 5.0)
21
21
  appraisal (2.2.0)
22
22
  bundler
23
23
  rake
@@ -37,7 +37,7 @@ GEM
37
37
  json-schema (2.8.1)
38
38
  addressable (>= 2.4)
39
39
  minitest (5.11.3)
40
- public_suffix (3.1.1)
40
+ public_suffix (4.0.1)
41
41
  rake (12.3.3)
42
42
  rspec (3.8.0)
43
43
  rspec-core (~> 3.8.0)
@@ -21,7 +21,9 @@ class JsonValidator < ActiveModel::EachValidator
21
21
  end
22
22
 
23
23
  def default_root_path
24
- Rails.root.join.to_s if defined?(Rails)
24
+ require 'rails'
25
+ Rails.root.join.to_s
26
+ rescue LoadError
25
27
  File.join.to_s
26
28
  end
27
29
 
@@ -1,5 +1,5 @@
1
1
  module ActiveModel
2
2
  module JsonValidator
3
- VERSION = '0.1.1'.freeze
3
+ VERSION = '0.1.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemodel_json_validator
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
  - Alejandro Gutiérrez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-19 00:00:00.000000000 Z
11
+ date: 2019-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake