attestor 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +2 -0
- data/.gitignore +9 -0
- data/.metrics +9 -0
- data/.rspec +2 -0
- data/.rubocop.yml +2 -0
- data/.travis.yml +10 -0
- data/.yardopts +3 -0
- data/Gemfile +5 -0
- data/Guardfile +15 -0
- data/LICENSE +21 -0
- data/README.md +308 -0
- data/Rakefile +22 -0
- data/attestor.gemspec +24 -0
- data/config/metrics/STYLEGUIDE +230 -0
- data/config/metrics/cane.yml +5 -0
- data/config/metrics/churn.yml +6 -0
- data/config/metrics/flay.yml +2 -0
- data/config/metrics/metric_fu.yml +15 -0
- data/config/metrics/reek.yml +1 -0
- data/config/metrics/roodi.yml +24 -0
- data/config/metrics/rubocop.yml +75 -0
- data/config/metrics/saikuro.yml +3 -0
- data/config/metrics/simplecov.yml +6 -0
- data/config/metrics/yardstick.yml +37 -0
- data/lib/attestor/invalid_error.rb +44 -0
- data/lib/attestor/policy/and.rb +36 -0
- data/lib/attestor/policy/factory.rb +88 -0
- data/lib/attestor/policy/negator.rb +53 -0
- data/lib/attestor/policy/node.rb +58 -0
- data/lib/attestor/policy/not.rb +48 -0
- data/lib/attestor/policy/or.rb +36 -0
- data/lib/attestor/policy/xor.rb +36 -0
- data/lib/attestor/policy.rb +121 -0
- data/lib/attestor/validations/collection.rb +73 -0
- data/lib/attestor/validations/item.rb +87 -0
- data/lib/attestor/validations/message.rb +55 -0
- data/lib/attestor/validations.rb +81 -0
- data/lib/attestor/version.rb +9 -0
- data/lib/attestor.rb +26 -0
- data/spec/spec_helper.rb +14 -0
- data/spec/support/policies.rb +49 -0
- data/spec/tests/invalid_error_spec.rb +57 -0
- data/spec/tests/policy/and_spec.rb +40 -0
- data/spec/tests/policy/factory_spec.rb +100 -0
- data/spec/tests/policy/negator_spec.rb +57 -0
- data/spec/tests/policy/node_spec.rb +44 -0
- data/spec/tests/policy/not_spec.rb +40 -0
- data/spec/tests/policy/or_spec.rb +40 -0
- data/spec/tests/policy/xor_spec.rb +48 -0
- data/spec/tests/policy_spec.rb +111 -0
- data/spec/tests/validations/collection_spec.rb +100 -0
- data/spec/tests/validations/item_spec.rb +153 -0
- data/spec/tests/validations/message_spec.rb +71 -0
- data/spec/tests/validations_spec.rb +126 -0
- metadata +143 -0
metadata
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: attestor
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Andrew Kozin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: extlib
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.9'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hexx-rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.4'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.4'
|
41
|
+
description: Validations for immutable Ruby objects
|
42
|
+
email: andrew.kozin@gmail.com
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files:
|
46
|
+
- README.md
|
47
|
+
- LICENSE
|
48
|
+
files:
|
49
|
+
- ".coveralls.yml"
|
50
|
+
- ".gitignore"
|
51
|
+
- ".metrics"
|
52
|
+
- ".rspec"
|
53
|
+
- ".rubocop.yml"
|
54
|
+
- ".travis.yml"
|
55
|
+
- ".yardopts"
|
56
|
+
- Gemfile
|
57
|
+
- Guardfile
|
58
|
+
- LICENSE
|
59
|
+
- README.md
|
60
|
+
- Rakefile
|
61
|
+
- attestor.gemspec
|
62
|
+
- config/metrics/STYLEGUIDE
|
63
|
+
- config/metrics/cane.yml
|
64
|
+
- config/metrics/churn.yml
|
65
|
+
- config/metrics/flay.yml
|
66
|
+
- config/metrics/metric_fu.yml
|
67
|
+
- config/metrics/reek.yml
|
68
|
+
- config/metrics/roodi.yml
|
69
|
+
- config/metrics/rubocop.yml
|
70
|
+
- config/metrics/saikuro.yml
|
71
|
+
- config/metrics/simplecov.yml
|
72
|
+
- config/metrics/yardstick.yml
|
73
|
+
- lib/attestor.rb
|
74
|
+
- lib/attestor/invalid_error.rb
|
75
|
+
- lib/attestor/policy.rb
|
76
|
+
- lib/attestor/policy/and.rb
|
77
|
+
- lib/attestor/policy/factory.rb
|
78
|
+
- lib/attestor/policy/negator.rb
|
79
|
+
- lib/attestor/policy/node.rb
|
80
|
+
- lib/attestor/policy/not.rb
|
81
|
+
- lib/attestor/policy/or.rb
|
82
|
+
- lib/attestor/policy/xor.rb
|
83
|
+
- lib/attestor/validations.rb
|
84
|
+
- lib/attestor/validations/collection.rb
|
85
|
+
- lib/attestor/validations/item.rb
|
86
|
+
- lib/attestor/validations/message.rb
|
87
|
+
- lib/attestor/version.rb
|
88
|
+
- spec/spec_helper.rb
|
89
|
+
- spec/support/policies.rb
|
90
|
+
- spec/tests/invalid_error_spec.rb
|
91
|
+
- spec/tests/policy/and_spec.rb
|
92
|
+
- spec/tests/policy/factory_spec.rb
|
93
|
+
- spec/tests/policy/negator_spec.rb
|
94
|
+
- spec/tests/policy/node_spec.rb
|
95
|
+
- spec/tests/policy/not_spec.rb
|
96
|
+
- spec/tests/policy/or_spec.rb
|
97
|
+
- spec/tests/policy/xor_spec.rb
|
98
|
+
- spec/tests/policy_spec.rb
|
99
|
+
- spec/tests/validations/collection_spec.rb
|
100
|
+
- spec/tests/validations/item_spec.rb
|
101
|
+
- spec/tests/validations/message_spec.rb
|
102
|
+
- spec/tests/validations_spec.rb
|
103
|
+
homepage: https://github.com/nepalez/attestor
|
104
|
+
licenses:
|
105
|
+
- MIT
|
106
|
+
metadata: {}
|
107
|
+
post_install_message:
|
108
|
+
rdoc_options: []
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '2.0'
|
116
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
requirements: []
|
122
|
+
rubyforge_project:
|
123
|
+
rubygems_version: 2.4.6
|
124
|
+
signing_key:
|
125
|
+
specification_version: 4
|
126
|
+
summary: Validations for immutable Ruby objects
|
127
|
+
test_files:
|
128
|
+
- spec/spec_helper.rb
|
129
|
+
- spec/tests/policy_spec.rb
|
130
|
+
- spec/tests/invalid_error_spec.rb
|
131
|
+
- spec/tests/validations_spec.rb
|
132
|
+
- spec/tests/validations/message_spec.rb
|
133
|
+
- spec/tests/validations/collection_spec.rb
|
134
|
+
- spec/tests/validations/item_spec.rb
|
135
|
+
- spec/tests/policy/or_spec.rb
|
136
|
+
- spec/tests/policy/factory_spec.rb
|
137
|
+
- spec/tests/policy/and_spec.rb
|
138
|
+
- spec/tests/policy/xor_spec.rb
|
139
|
+
- spec/tests/policy/negator_spec.rb
|
140
|
+
- spec/tests/policy/not_spec.rb
|
141
|
+
- spec/tests/policy/node_spec.rb
|
142
|
+
- spec/support/policies.rb
|
143
|
+
has_rdoc:
|