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.
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Yes
4
+ VERSION = '1.3.0'
5
+ end
data/lib/yes.rb CHANGED
@@ -1,38 +1,10 @@
1
- module YES
1
+ # frozen_string_literal: true
2
2
 
3
- # Simple validatily check.
4
- #
5
- # @return [Boolean]
6
- def self.valid?(schema, yaml)
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: "yes"
3
- version: !ruby/object:Gem::Version
4
- prerelease:
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
- - Thomas Sawyer
9
- autorequire:
6
+ authors:
7
+ - Nico Ritsche
10
8
  bindir: bin
11
9
  cert_chain: []
12
-
13
- date: 2011-07-13 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: qed
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
- requirement: &id001 !ruby/object:Gem::Requirement
19
- none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "0"
24
- type: :development
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: detroit
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
- requirement: &id002 !ruby/object:Gem::Requirement
30
- none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: "0"
35
- type: :development
36
- version_requirements: *id002
37
- description: YAML Easy Schemas it a straight-foward but powerful YPath-based schema format and validation program for YAML documents.
38
- email: transfire@gmail.com
39
- executables:
40
- - yes-lint
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
- extra_rdoc_files:
44
- - README.rdoc
45
- files:
46
- - .ruby
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
- - HISTORY.rdoc
74
- - README.rdoc
75
- - QED.rdoc
76
- - LICENSE.rdoc
77
- - THANKS.rdoc
78
- homepage: http://rubyworks.github.com/yes
79
- licenses:
80
- - BSD-2-Clause
81
- - BSD-2-Clause
82
- post_install_message:
83
- rdoc_options:
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
- none: false
92
- requirements:
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
93
  - - ">="
94
- - !ruby/object:Gem::Version
95
- version: "0"
96
- required_rubygems_version: !ruby/object:Gem::Requirement
97
- none: false
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: "0"
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
102
101
  requirements: []
103
-
104
- rubyforge_project: "yes"
105
- rubygems_version: 1.8.2
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
@@ -1,8 +0,0 @@
1
- --output-dir doc/yard
2
- --title YES
3
- --protected
4
- --private
5
- lib/
6
- -
7
- [A-Z][A-Z]*
8
- log/*.rdoc
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
-