active_model_serializers_validator 1.1 → 1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +12 -1
- data/LICENSE.md +1 -1
- data/README.md +6 -5
- data/active_model_serializers_validator.gemspec +1 -1
- data/lib/active_model/serializer/validator/version.rb +1 -1
- data/lib/active_model_serializers_validator.rb +1 -1
- metadata +26 -48
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4100b781ae2f1c07659cb14d010b488e8bafcd26
|
4
|
+
data.tar.gz: 1f9e5ab67714b5fc1b80fc2acb5f67c8150f6386
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 093c3c8a4f26b38a047cca13e2289a5840dd2c38914d41862e7b6b3ae906cba49634c31813db587417c82129e473970d7e93bbe3ce8a8599edde9fefd6835c4e
|
7
|
+
data.tar.gz: b78ec258a02b678f880cd1dcd6cfc5b256312c526bf96612d530fca4204faa57ab5f3c6e8c26963e1ec17b6dac7386311501e19f7de1b884a1e73af682b5062b
|
data/.travis.yml
CHANGED
@@ -1,7 +1,18 @@
|
|
1
1
|
language: ruby
|
2
2
|
|
3
3
|
rvm:
|
4
|
-
- 2.
|
4
|
+
- 2.1
|
5
|
+
- 2.0
|
5
6
|
- 1.9.3
|
6
7
|
|
8
|
+
sudo: false
|
9
|
+
|
7
10
|
script: "echo 'DO IT' && bundle exec rake spec"
|
11
|
+
|
12
|
+
notifications:
|
13
|
+
hipchat:
|
14
|
+
rooms:
|
15
|
+
secure: "O+AFhdefDZZ4zDextMi0c3Ef8Xrl6Bn/AMMz8eQu3+AkZ+SZfj4YOCliyU/mG95XEdr6Zma8KzOmXOduoFeh7yYlcuVwjrz7mukN8/mVDvUQdV7kBMrRDaEzjZba5YWdlvDGLyJOQdxccmTtRZ1wLVExFBTCNYOi++JT6Hzq3/0="
|
16
|
+
template:
|
17
|
+
- '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} (<a href="%{build_url}">Build</a>/<a href="%{compare_url}">Changes</a>)'
|
18
|
+
format: 'html'
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# ActiveModel::Serializer::Validator
|
2
2
|
|
3
|
-
[![Gem Version](
|
4
|
-
[![
|
3
|
+
[![Gem Version](http://img.shields.io/gem/v/active_model_serializers_validator.svg)](https://rubygems.org/gems/active_model_serializers_validator)
|
4
|
+
[![Code Climate](http://img.shields.io/codeclimate/github/mirego/active_model_serializers_validator.svg)](https://codeclimate.com/github/mirego/active_model_serializers_validator)
|
5
|
+
[![Build Status](http://img.shields.io/travis/mirego/active_model_serializers_validator.svg)](https://travis-ci.org/mirego/active_model_serializers_validator)
|
5
6
|
|
6
7
|
This gem adds JSON schema validations for the JSON output generated by an `ActiveModel::Serializer`.
|
7
8
|
|
@@ -56,10 +57,10 @@ serializer.errors
|
|
56
57
|
|
57
58
|
## License
|
58
59
|
|
59
|
-
`ActiveModel::Serializer::Validator` is © 2013 [Mirego](http://www.mirego.com) and may be freely distributed under the [New BSD license](http://opensource.org/licenses/BSD-3-Clause). See the [`LICENSE.md`](https://github.com/mirego/active_model_serializers_validator/blob/master/LICENSE.md) file.
|
60
|
+
`ActiveModel::Serializer::Validator` is © 2013-2015 [Mirego](http://www.mirego.com) and may be freely distributed under the [New BSD license](http://opensource.org/licenses/BSD-3-Clause). See the [`LICENSE.md`](https://github.com/mirego/active_model_serializers_validator/blob/master/LICENSE.md) file.
|
60
61
|
|
61
62
|
## About Mirego
|
62
63
|
|
63
|
-
Mirego is a team of passionate people who believe that work is a place where you can innovate and have fun. We
|
64
|
+
[Mirego](http://mirego.com) is a team of passionate people who believe that work is a place where you can innovate and have fun. We're a team of [talented people](http://life.mirego.com) who imagine and build beautiful Web and mobile applications. We come together to share ideas and [change the world](http://mirego.org).
|
64
65
|
|
65
|
-
We also love
|
66
|
+
We also [love open-source software](http://open.mirego.com) and we try to give back to the community as much as we can.
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency 'rspec', '~> 2.13'
|
24
24
|
spec.add_development_dependency 'json', '~> 1.7.7'
|
25
25
|
|
26
|
-
spec.add_dependency "activesupport", '>=
|
26
|
+
spec.add_dependency "activesupport", '>= 4.0.0'
|
27
27
|
spec.add_dependency "active_model_serializers", '~> 0.8'
|
28
28
|
spec.add_dependency "json-schema", '~> 1.1'
|
29
29
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'json-schema'
|
2
2
|
require 'active_support'
|
3
|
-
require 'active_support/core_ext/object/
|
3
|
+
require 'active_support/core_ext/object/json'
|
4
4
|
require 'active_model/serializer'
|
5
5
|
require 'active_model/serializer/validator/errors'
|
6
6
|
require 'active_model/serializer/validator/mixin'
|
metadata
CHANGED
@@ -1,126 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_model_serializers_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
5
|
-
prerelease:
|
4
|
+
version: '1.2'
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Rémi Prévost
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.3'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rake
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rspec
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '2.13'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '2.13'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: json
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- - ~>
|
59
|
+
- - "~>"
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: 1.7.7
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- - ~>
|
66
|
+
- - "~>"
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: 1.7.7
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: activesupport
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - ">="
|
84
74
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
75
|
+
version: 4.0.0
|
86
76
|
type: :runtime
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - ">="
|
92
81
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
82
|
+
version: 4.0.0
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: active_model_serializers
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- - ~>
|
87
|
+
- - "~>"
|
100
88
|
- !ruby/object:Gem::Version
|
101
89
|
version: '0.8'
|
102
90
|
type: :runtime
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- - ~>
|
94
|
+
- - "~>"
|
108
95
|
- !ruby/object:Gem::Version
|
109
96
|
version: '0.8'
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: json-schema
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
|
-
- - ~>
|
101
|
+
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
103
|
version: '1.1'
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
|
-
- - ~>
|
108
|
+
- - "~>"
|
124
109
|
- !ruby/object:Gem::Version
|
125
110
|
version: '1.1'
|
126
111
|
description: An extension to ActiveModel::Serializer that validates serializers output
|
@@ -131,9 +116,9 @@ executables: []
|
|
131
116
|
extensions: []
|
132
117
|
extra_rdoc_files: []
|
133
118
|
files:
|
134
|
-
- .gitignore
|
135
|
-
- .rspec
|
136
|
-
- .travis.yml
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rspec"
|
121
|
+
- ".travis.yml"
|
137
122
|
- Gemfile
|
138
123
|
- LICENSE.md
|
139
124
|
- README.md
|
@@ -151,33 +136,26 @@ files:
|
|
151
136
|
homepage: https://github.com/mirego/active_model_serializers_validator
|
152
137
|
licenses:
|
153
138
|
- BSD 3-Clause
|
139
|
+
metadata: {}
|
154
140
|
post_install_message:
|
155
141
|
rdoc_options: []
|
156
142
|
require_paths:
|
157
143
|
- lib
|
158
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
159
|
-
none: false
|
160
145
|
requirements:
|
161
|
-
- -
|
146
|
+
- - ">="
|
162
147
|
- !ruby/object:Gem::Version
|
163
148
|
version: '0'
|
164
|
-
segments:
|
165
|
-
- 0
|
166
|
-
hash: -3032059615404729066
|
167
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
|
-
none: false
|
169
150
|
requirements:
|
170
|
-
- -
|
151
|
+
- - ">="
|
171
152
|
- !ruby/object:Gem::Version
|
172
153
|
version: '0'
|
173
|
-
segments:
|
174
|
-
- 0
|
175
|
-
hash: -3032059615404729066
|
176
154
|
requirements: []
|
177
155
|
rubyforge_project:
|
178
|
-
rubygems_version:
|
156
|
+
rubygems_version: 2.2.2
|
179
157
|
signing_key:
|
180
|
-
specification_version:
|
158
|
+
specification_version: 4
|
181
159
|
summary: An extension to ActiveModel::Serializer that validates serializers output
|
182
160
|
against a JSON schema
|
183
161
|
test_files:
|