yes 0.0.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +64 -0
- data/LICENSE.txt +21 -0
- data/README.md +2256 -0
- data/lib/yes/version.rb +5 -0
- data/lib/yes.rb +7 -35
- metadata +93 -98
- data/.ruby +0 -41
- data/.yardopts +0 -8
- data/HISTORY.rdoc +0 -31
- data/LICENSE.rdoc +0 -35
- data/QED.rdoc +0 -1036
- data/README.rdoc +0 -144
- data/THANKS.rdoc +0 -10
- data/bin/yes-lint +0 -4
- data/data/yes/yes.yes +0 -21
- data/lib/yes/cli.rb +0 -20
- data/lib/yes/constraints/abstract_constraint.rb +0 -121
- data/lib/yes/constraints/choice.rb +0 -39
- data/lib/yes/constraints/count.rb +0 -38
- data/lib/yes/constraints/exclusive.rb +0 -48
- data/lib/yes/constraints/fnmatch.rb +0 -42
- data/lib/yes/constraints/inclusive.rb +0 -50
- data/lib/yes/constraints/key.rb +0 -55
- data/lib/yes/constraints/kind.rb +0 -34
- data/lib/yes/constraints/length.rb +0 -46
- data/lib/yes/constraints/node_constraint.rb +0 -55
- data/lib/yes/constraints/range.rb +0 -43
- data/lib/yes/constraints/regexp.rb +0 -52
- data/lib/yes/constraints/required.rb +0 -45
- data/lib/yes/constraints/requires.rb +0 -57
- data/lib/yes/constraints/tag.rb +0 -55
- data/lib/yes/constraints/tree_constraint.rb +0 -14
- data/lib/yes/constraints/type.rb +0 -91
- data/lib/yes/constraints/value.rb +0 -62
- data/lib/yes/genclass.rb +0 -2
- data/lib/yes/lint.rb +0 -101
- data/lib/yes/logical_and.rb +0 -13
data/lib/yes/version.rb
ADDED
data/lib/yes.rb
CHANGED
|
@@ -1,38 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
yes = YES::Lint.new(@schema)
|
|
8
|
-
yes.validate(@yaml).empty?
|
|
9
|
-
end
|
|
3
|
+
require 'yes/core'
|
|
4
|
+
require 'yes/auth'
|
|
5
|
+
require 'yes/command/api'
|
|
6
|
+
require 'yes/read/api'
|
|
10
7
|
|
|
8
|
+
module Yes
|
|
9
|
+
class Error < StandardError; end
|
|
11
10
|
end
|
|
12
|
-
|
|
13
|
-
#
|
|
14
|
-
require 'yaml'
|
|
15
|
-
|
|
16
|
-
require 'yes/constraints/abstract_constraint'
|
|
17
|
-
require 'yes/constraints/node_constraint'
|
|
18
|
-
require 'yes/constraints/tree_constraint'
|
|
19
|
-
|
|
20
|
-
require 'yes/constraints/range'
|
|
21
|
-
require 'yes/constraints/regexp'
|
|
22
|
-
require 'yes/constraints/fnmatch'
|
|
23
|
-
|
|
24
|
-
require 'yes/constraints/tag'
|
|
25
|
-
require 'yes/constraints/type'
|
|
26
|
-
|
|
27
|
-
require 'yes/constraints/count'
|
|
28
|
-
require 'yes/constraints/length'
|
|
29
|
-
require 'yes/constraints/requires'
|
|
30
|
-
require 'yes/constraints/inclusive'
|
|
31
|
-
require 'yes/constraints/exclusive'
|
|
32
|
-
|
|
33
|
-
require 'yes/constraints/value'
|
|
34
|
-
require 'yes/constraints/key'
|
|
35
|
-
|
|
36
|
-
require 'yes/logical_and'
|
|
37
|
-
require 'yes/lint'
|
|
38
|
-
|
metadata
CHANGED
|
@@ -1,110 +1,105 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
2
|
-
name:
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
version: 0.0.1
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: 'yes'
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.3.0
|
|
6
5
|
platform: ruby
|
|
7
|
-
authors:
|
|
8
|
-
-
|
|
9
|
-
autorequire:
|
|
6
|
+
authors:
|
|
7
|
+
- Nico Ritsche
|
|
10
8
|
bindir: bin
|
|
11
9
|
cert_chain: []
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: yes-auth
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - '='
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: 1.3.0
|
|
19
|
+
type: :runtime
|
|
17
20
|
prerelease: false
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - '='
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: 1.3.0
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: yes-command-api
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - '='
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: 1.3.0
|
|
33
|
+
type: :runtime
|
|
28
34
|
prerelease: false
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - '='
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: 1.3.0
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: yes-core
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - '='
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: 1.3.0
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - '='
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: 1.3.0
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: yes-read-api
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - '='
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: 1.3.0
|
|
61
|
+
type: :runtime
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - '='
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: 1.3.0
|
|
68
|
+
description: Event sourcing framework for Ruby on Rails applications
|
|
69
|
+
email:
|
|
70
|
+
- nico.ritsche@yousty.ch
|
|
71
|
+
executables: []
|
|
41
72
|
extensions: []
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
-
|
|
45
|
-
|
|
46
|
-
- .
|
|
47
|
-
- .yardopts
|
|
48
|
-
- bin/yes-lint
|
|
49
|
-
- data/yes/yes.yes
|
|
50
|
-
- lib/yes/cli.rb
|
|
51
|
-
- lib/yes/constraints/abstract_constraint.rb
|
|
52
|
-
- lib/yes/constraints/choice.rb
|
|
53
|
-
- lib/yes/constraints/count.rb
|
|
54
|
-
- lib/yes/constraints/exclusive.rb
|
|
55
|
-
- lib/yes/constraints/fnmatch.rb
|
|
56
|
-
- lib/yes/constraints/inclusive.rb
|
|
57
|
-
- lib/yes/constraints/key.rb
|
|
58
|
-
- lib/yes/constraints/kind.rb
|
|
59
|
-
- lib/yes/constraints/length.rb
|
|
60
|
-
- lib/yes/constraints/node_constraint.rb
|
|
61
|
-
- lib/yes/constraints/range.rb
|
|
62
|
-
- lib/yes/constraints/regexp.rb
|
|
63
|
-
- lib/yes/constraints/required.rb
|
|
64
|
-
- lib/yes/constraints/requires.rb
|
|
65
|
-
- lib/yes/constraints/tag.rb
|
|
66
|
-
- lib/yes/constraints/tree_constraint.rb
|
|
67
|
-
- lib/yes/constraints/type.rb
|
|
68
|
-
- lib/yes/constraints/value.rb
|
|
69
|
-
- lib/yes/genclass.rb
|
|
70
|
-
- lib/yes/lint.rb
|
|
71
|
-
- lib/yes/logical_and.rb
|
|
73
|
+
extra_rdoc_files: []
|
|
74
|
+
files:
|
|
75
|
+
- CHANGELOG.md
|
|
76
|
+
- LICENSE.txt
|
|
77
|
+
- README.md
|
|
72
78
|
- lib/yes.rb
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
- --title
|
|
85
|
-
- YES API
|
|
86
|
-
- --main
|
|
87
|
-
- README.rdoc
|
|
88
|
-
require_paths:
|
|
79
|
+
- lib/yes/version.rb
|
|
80
|
+
homepage: https://github.com/yousty/yes
|
|
81
|
+
licenses:
|
|
82
|
+
- MIT
|
|
83
|
+
metadata:
|
|
84
|
+
homepage_uri: https://github.com/yousty/yes
|
|
85
|
+
source_code_uri: https://github.com/yousty/yes
|
|
86
|
+
changelog_uri: https://github.com/yousty/yes/blob/main/CHANGELOG.md
|
|
87
|
+
rubygems_mfa_required: 'true'
|
|
88
|
+
rdoc_options: []
|
|
89
|
+
require_paths:
|
|
89
90
|
- lib
|
|
90
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
|
-
|
|
92
|
-
requirements:
|
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
93
|
- - ">="
|
|
94
|
-
- !ruby/object:Gem::Version
|
|
95
|
-
version:
|
|
96
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
|
-
|
|
98
|
-
requirements:
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: 3.2.0
|
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
|
+
requirements:
|
|
99
98
|
- - ">="
|
|
100
|
-
- !ruby/object:Gem::Version
|
|
101
|
-
version:
|
|
99
|
+
- !ruby/object:Gem::Version
|
|
100
|
+
version: '0'
|
|
102
101
|
requirements: []
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
signing_key:
|
|
107
|
-
specification_version: 3
|
|
108
|
-
summary: YAML Easy Schema
|
|
102
|
+
rubygems_version: 3.6.9
|
|
103
|
+
specification_version: 4
|
|
104
|
+
summary: Yes event sourcing framework
|
|
109
105
|
test_files: []
|
|
110
|
-
|
data/.ruby
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "yes"
|
|
3
|
-
version: 0.0.1
|
|
4
|
-
title: "YES"
|
|
5
|
-
summary: YAML Easy Schema
|
|
6
|
-
description: YAML Easy Schemas it a straight-foward but powerful YPath-based schema format and validation program for YAML documents.
|
|
7
|
-
loadpath:
|
|
8
|
-
- lib
|
|
9
|
-
manifest: MANIFEST
|
|
10
|
-
requires:
|
|
11
|
-
- name: qed
|
|
12
|
-
version: 0+
|
|
13
|
-
group:
|
|
14
|
-
- test
|
|
15
|
-
- name: detroit
|
|
16
|
-
version: 0+
|
|
17
|
-
group:
|
|
18
|
-
- build
|
|
19
|
-
conflicts: []
|
|
20
|
-
|
|
21
|
-
replaces: []
|
|
22
|
-
|
|
23
|
-
engine_check: []
|
|
24
|
-
|
|
25
|
-
organization: RubyWorks
|
|
26
|
-
contact: transfire@gmail.com
|
|
27
|
-
created: 2011-06-21
|
|
28
|
-
copyright: Copyright (c) 2011 Thomas Sawyer
|
|
29
|
-
licenses:
|
|
30
|
-
- BSD-2-Clause
|
|
31
|
-
authors:
|
|
32
|
-
- Thomas Sawyer
|
|
33
|
-
maintainers: []
|
|
34
|
-
|
|
35
|
-
resources:
|
|
36
|
-
home: http://rubyworks.github.com/yes
|
|
37
|
-
work: http://github.com/rubyworks/yes
|
|
38
|
-
mail: http://groups.google.com/group/rubyworks-mailinglist
|
|
39
|
-
repositories:
|
|
40
|
-
public: git://github.com/rubyworks/yes.git
|
|
41
|
-
spec_version: 1.0.0
|
data/.yardopts
DELETED
data/HISTORY.rdoc
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
= RELEASE HISTORY
|
|
2
|
-
|
|
3
|
-
== HEAD / 2011-07-02
|
|
4
|
-
|
|
5
|
-
Current Development (7rans)
|
|
6
|
-
|
|
7
|
-
Changes:
|
|
8
|
-
|
|
9
|
-
* 4 Test Enhancements
|
|
10
|
-
|
|
11
|
-
* Add test for RequiresValidation.
|
|
12
|
-
* Use Lint class, as YES is now a module.
|
|
13
|
-
* Move QED .rdoc files to .md files.
|
|
14
|
-
* Add required and count constraint tests.
|
|
15
|
-
|
|
16
|
-
* 13 General Enhancements
|
|
17
|
-
|
|
18
|
-
* Pass tree to validations and change Required to Requires.
|
|
19
|
-
* Add node shortcuts to NodeValidation class.
|
|
20
|
-
* Fix AbstractValidation#match_delta range comparisons.
|
|
21
|
-
* Rename yaml-yes executable to yes-lint.
|
|
22
|
-
* Refactored validation into individual validation classes.
|
|
23
|
-
* Rename range to count and add new constraints.
|
|
24
|
-
* Add exclusive and improved required validation.
|
|
25
|
-
* Output a generalized node representation.
|
|
26
|
-
* Add schema for yes itself.
|
|
27
|
-
* When node's #type_id is nil use #kind.
|
|
28
|
-
* Fix typo in README example.
|
|
29
|
-
* Clarify design in README.
|
|
30
|
-
* Initial commit.
|
|
31
|
-
|
data/LICENSE.rdoc
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
= COPYRIGHT NOTICES
|
|
2
|
-
|
|
3
|
-
== YES
|
|
4
|
-
|
|
5
|
-
Copyright:: (c) 2011 Rubyworks, Thomas Sawyer
|
|
6
|
-
License:: BSD-2-Clause
|
|
7
|
-
Website:: http://rubyworks.github.com/yes
|
|
8
|
-
|
|
9
|
-
Copyright 2011 Thomas Sawyer. All rights reserved.
|
|
10
|
-
|
|
11
|
-
Redistribution and use in source and binary forms, with or without
|
|
12
|
-
modification, are permitted provided that the following conditions are met:
|
|
13
|
-
|
|
14
|
-
* Redistributions of source code must retain the above copyright notice,
|
|
15
|
-
this list of conditions and the following disclaimer.
|
|
16
|
-
|
|
17
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
|
18
|
-
this list of conditions and the following disclaimer in the documentation
|
|
19
|
-
and/or other materials provided with the distribution.
|
|
20
|
-
|
|
21
|
-
THIS SOFTWARE IS PROVIDED BY Thomas Sawyer ``AS IS'' AND ANY EXPRESS
|
|
22
|
-
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
23
|
-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
|
|
24
|
-
NO EVENT SHALL Thomas Sawyer OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
25
|
-
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
26
|
-
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
27
|
-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
|
28
|
-
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
29
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
|
30
|
-
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
31
|
-
|
|
32
|
-
The views and conclusions contained in the software and documentation are
|
|
33
|
-
those of the authors and should not be interpreted as representing official
|
|
34
|
-
policies, either expressed or implied, of Thomas Sawyer.
|
|
35
|
-
|