data-validator 1.0.4 → 1.0.5

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
- SHA1:
3
- metadata.gz: 4db89bd57d2ff864036a732c664de3567c7a0484
4
- data.tar.gz: 5180ae2f97bd74c61fdc086f6be9b18975fb1069
2
+ SHA256:
3
+ metadata.gz: a17797f11cd84b48bd15ac9e12ba2eab7fc0bd0da5ac251f6ed04fb361a75981
4
+ data.tar.gz: 6498c18fb66ec1908ff054f899e1c8895edc0ebf6755a045152513576b86b050
5
5
  SHA512:
6
- metadata.gz: 30ba9963cd4153cafea0f395e93002c3ef23496538033950514132017492c35d8226110f792c2224ba22184534b560ef53aeb2660f24a0d56423209c69f185a4
7
- data.tar.gz: 4c8a6e91abd7ae018cbbc891d387ed1da263deae4e5094b60c9af32ee911176efe1fa848fe6a9b15e5cf698deabf9dd095915b802e2d7b10e2ec03fe7da56b08
6
+ metadata.gz: 34647edb3d7c4f609802a973078be05e6a458cdeb3510cb97ef0d6ace03c946e5e29c103dc829d6ee25bf438d59cb01ce390c42f27c6ca1185a80218a94be3b5
7
+ data.tar.gz: 775e48023d6083a316e5cefbd3430d35a0ebe543fa18a842992aa3e8839b02d6854f32686501f0d97693158fe55985fceffa8be61cd4ffe5c28145d83a234576
@@ -20,4 +20,4 @@
20
20
  # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
21
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  # SOFTWARE.
23
- Data::Validator::VERSION = "1.0.4"
23
+ Data::Validator::VERSION = "1.0.5"
@@ -20,6 +20,7 @@
20
20
  # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
21
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  # SOFTWARE.
23
+ require_relative '../data'
23
24
  Data::Validator = Class.new # @!parse class Data::Validator; end
24
25
  require_relative "validator/version"
25
26
 
data/lib/data.rb ADDED
@@ -0,0 +1,40 @@
1
+ #! /your/favourite/path/to/ruby
2
+ # -*- mode: ruby; coding: utf-8; indent-tabs-mode: nil; ruby-indent-level 2 -*-
3
+
4
+ # Copyright (c) 2018 Urabe, Shyouhei
5
+ #
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to deal
8
+ # in the Software without restriction, including without limitation the rights
9
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ # copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be
14
+ # included in all copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ # SOFTWARE.
23
+
24
+ # Toplevel namespace `::Data` got deprecated, and will eventually be disappear.
25
+ # However we are using it because p5-Data-Validator is in this namespace. This
26
+ # has nothing to do with the deprecation of Ruby's `::Data`.
27
+ if !defined? ::Data then
28
+ Data = Class.new # create one here
29
+ elsif defined? ::Warning then
30
+ # We have to shut up the deprecation warning.
31
+ class << Warning
32
+ prepend Module.new {
33
+ def warn str
34
+ super unless /::Data is deprecated/ =~ str
35
+ end
36
+ }
37
+ end
38
+ else
39
+ # This ruby is very old. We don't have to do anything.
40
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data-validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Urabe, Shyouhei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-16 00:00:00.000000000 Z
11
+ date: 2018-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -121,6 +121,7 @@ files:
121
121
  - README.md
122
122
  - Rakefile
123
123
  - data-validator.gemspec
124
+ - lib/data.rb
124
125
  - lib/data/validator.rb
125
126
  - lib/data/validator/error.rb
126
127
  - lib/data/validator/recursive.rb
@@ -158,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
159
  version: '0'
159
160
  requirements: []
160
161
  rubyforge_project:
161
- rubygems_version: 2.5.1
162
+ rubygems_version: 2.7.6
162
163
  signing_key:
163
164
  specification_version: 4
164
165
  summary: p5-Data-Validator / p5-Data-Validator-Recursive port
@@ -176,4 +177,3 @@ test_files:
176
177
  - test/xaicron/01_new.rb
177
178
  - test/xaicron/02_validate.rb
178
179
  - test/xaicron/03_arrayref.rb
179
- has_rdoc: