media_types 0.5.1 → 0.5.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: 60e6f4948af77b72e970849c287e89e9f1666470
4
- data.tar.gz: 5f2e3f281075c813da57bfe85e391559b17fc02c
3
+ metadata.gz: 8a4cf2083c9d1cd0437095f8628b46eeaf369e6f
4
+ data.tar.gz: e8b59d197727b29fa26a8f2fe1fdc8925677ae04
5
5
  SHA512:
6
- metadata.gz: 22592d00055a373b235c543968cf88631becab9b7d97ee60c371661af5eca417c7a5e120f8f7fc2a7a0bea5fb21535b0fc94d89691a55f81dc229e5fa548b54e
7
- data.tar.gz: cd4799ba03f74d0d10aa8c6de20dafb1cc836c85ca609ee273d34fdbea0266f174adbe29a6570099659d52ff551d8cd0b6bcf132fbc6f75a0e08984d626f94d9
6
+ metadata.gz: 9ea13d958b02c1a157e9cec975fab3df63b486c448ce932d191772347ab6932178ad8a5837743c15bb6f4da700f455d46647b446d7b15280858dd55d039a6ba0
7
+ data.tar.gz: 75268c3f590a7ca1051bd2dbb730ea7d54ef3670a4887087d5e3bb7a67eea259f6d65b8c1b75a0b92018d06bed0978b7d1acee74249ccaa08f3fa0ebc878a98d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- media_types (0.5.1)
4
+ media_types (0.5.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -41,4 +41,4 @@ DEPENDENCIES
41
41
  simplecov
42
42
 
43
43
  BUNDLED WITH
44
- 1.16.4
44
+ 1.16.5
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'delegate'
4
+ require 'media_types/scheme/any_of'
4
5
 
5
6
  module MediaTypes
6
7
  class Scheme
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'media_types/scheme/errors'
4
+ require 'media_types/scheme/allow_nil'
5
+
3
6
  module MediaTypes
4
7
  class Scheme
5
8
  class Attribute
@@ -14,7 +17,7 @@ module MediaTypes
14
17
  # @param [TrueClass, FalseClass] allow_nil if true, nil? is allowed
15
18
  #
16
19
  def initialize(type, allow_nil: false)
17
- self.type = allow_nil ? AllowNil(type) : type
20
+ self.type = allow_nil ? Scheme.AllowNil(type) : type
18
21
 
19
22
  freeze
20
23
  end
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'media_types/scheme/errors'
4
+
3
5
  module MediaTypes
4
6
  class Scheme
5
7
  class EnumerationOfType
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'media_types/scheme/rules'
4
+ require 'media_types/scheme/rules_exhausted_guard'
4
5
 
5
6
  module MediaTypes
6
7
  class Scheme
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'media_types/scheme/errors'
4
+
3
5
  module MediaTypes
4
6
  class Scheme
5
7
  class MissingValidation
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'media_types/scheme/missing_validation'
4
+
3
5
  module MediaTypes
4
6
  class Scheme
5
7
  class Rules < DelegateClass(::Hash)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MediaTypes
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: media_types
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld