media_types 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +44 -44
- data/README.md +379 -347
- data/lib/media_types/constructable.rb +12 -16
- data/lib/media_types/dsl.rb +7 -0
- data/lib/media_types/formatter.rb +55 -0
- data/lib/media_types/scheme.rb +59 -131
- data/lib/media_types/scheme/allow_nil.rb +2 -10
- data/lib/media_types/scheme/any_of.rb +4 -0
- data/lib/media_types/scheme/attribute.rb +4 -0
- data/lib/media_types/scheme/enumeration_context.rb +5 -3
- data/lib/media_types/scheme/enumeration_of_type.rb +4 -0
- data/lib/media_types/scheme/errors.rb +21 -0
- data/lib/media_types/scheme/links.rb +18 -12
- data/lib/media_types/scheme/missing_validation.rb +1 -1
- data/lib/media_types/scheme/not_strict.rb +4 -0
- data/lib/media_types/scheme/output_empty_guard.rb +40 -0
- data/lib/media_types/scheme/output_iterator_with_predicate.rb +55 -0
- data/lib/media_types/scheme/output_type_guard.rb +39 -0
- data/lib/media_types/scheme/rules.rb +84 -0
- data/lib/media_types/scheme/rules_exhausted_guard.rb +62 -0
- data/lib/media_types/version.rb +5 -5
- metadata +9 -2
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: media_types
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derk-Jan Karrenbeld
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- lib/media_types/constructable.rb
|
131
131
|
- lib/media_types/defaults.rb
|
132
132
|
- lib/media_types/dsl.rb
|
133
|
+
- lib/media_types/formatter.rb
|
133
134
|
- lib/media_types/hash.rb
|
134
135
|
- lib/media_types/minitest/assert_media_type_format.rb
|
135
136
|
- lib/media_types/minitest/assert_media_types_registered.rb
|
@@ -141,9 +142,15 @@ files:
|
|
141
142
|
- lib/media_types/scheme/attribute.rb
|
142
143
|
- lib/media_types/scheme/enumeration_context.rb
|
143
144
|
- lib/media_types/scheme/enumeration_of_type.rb
|
145
|
+
- lib/media_types/scheme/errors.rb
|
144
146
|
- lib/media_types/scheme/links.rb
|
145
147
|
- lib/media_types/scheme/missing_validation.rb
|
146
148
|
- lib/media_types/scheme/not_strict.rb
|
149
|
+
- lib/media_types/scheme/output_empty_guard.rb
|
150
|
+
- lib/media_types/scheme/output_iterator_with_predicate.rb
|
151
|
+
- lib/media_types/scheme/output_type_guard.rb
|
152
|
+
- lib/media_types/scheme/rules.rb
|
153
|
+
- lib/media_types/scheme/rules_exhausted_guard.rb
|
147
154
|
- lib/media_types/scheme/validation_options.rb
|
148
155
|
- lib/media_types/validations.rb
|
149
156
|
- lib/media_types/version.rb
|