membrane 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +4 -0
- data/LICENSE +7136 -0
- data/README.md +90 -0
- data/Rakefile +14 -0
- data/lib/membrane/errors.rb +3 -0
- data/lib/membrane/schema/any.rb +13 -0
- data/lib/membrane/schema/base.rb +17 -0
- data/lib/membrane/schema/bool.rb +20 -0
- data/lib/membrane/schema/class.rb +24 -0
- data/lib/membrane/schema/dictionary.rb +40 -0
- data/lib/membrane/schema/enum.rb +30 -0
- data/lib/membrane/schema/list.rb +37 -0
- data/lib/membrane/schema/record.rb +45 -0
- data/lib/membrane/schema/regexp.rb +29 -0
- data/lib/membrane/schema/tuple.rb +48 -0
- data/lib/membrane/schema/value.rb +22 -0
- data/lib/membrane/schema.rb +17 -0
- data/lib/membrane/schema_parser.rb +186 -0
- data/lib/membrane/version.rb +3 -0
- data/lib/membrane.rb +4 -0
- data/membrane.gemspec +25 -0
- data/spec/any_schema_spec.rb +14 -0
- data/spec/bool_schema_spec.rb +18 -0
- data/spec/class_schema_spec.rb +22 -0
- data/spec/complex_schema_spec.rb +50 -0
- data/spec/dictionary_schema_spec.rb +57 -0
- data/spec/enum_schema_spec.rb +17 -0
- data/spec/list_schema_spec.rb +46 -0
- data/spec/record_schema_spec.rb +56 -0
- data/spec/regexp_schema_spec.rb +19 -0
- data/spec/schema_parser_spec.rb +249 -0
- data/spec/spec_helper.rb +7 -0
- data/spec/tuple_schema_spec.rb +29 -0
- data/spec/value_schema_spec.rb +16 -0
- metadata +142 -0
metadata
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: membrane
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- mpage
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-09 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: ci_reporter
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
description: ! " Membrane provides an easy to use DSL for specifying validation\n
|
63
|
+
\ logic declaratively.\n"
|
64
|
+
email:
|
65
|
+
- support@cloudfoundry.org
|
66
|
+
executables: []
|
67
|
+
extensions: []
|
68
|
+
extra_rdoc_files: []
|
69
|
+
files:
|
70
|
+
- .gitignore
|
71
|
+
- Gemfile
|
72
|
+
- LICENSE
|
73
|
+
- README.md
|
74
|
+
- Rakefile
|
75
|
+
- lib/membrane.rb
|
76
|
+
- lib/membrane/errors.rb
|
77
|
+
- lib/membrane/schema.rb
|
78
|
+
- lib/membrane/schema/any.rb
|
79
|
+
- lib/membrane/schema/base.rb
|
80
|
+
- lib/membrane/schema/bool.rb
|
81
|
+
- lib/membrane/schema/class.rb
|
82
|
+
- lib/membrane/schema/dictionary.rb
|
83
|
+
- lib/membrane/schema/enum.rb
|
84
|
+
- lib/membrane/schema/list.rb
|
85
|
+
- lib/membrane/schema/record.rb
|
86
|
+
- lib/membrane/schema/regexp.rb
|
87
|
+
- lib/membrane/schema/tuple.rb
|
88
|
+
- lib/membrane/schema/value.rb
|
89
|
+
- lib/membrane/schema_parser.rb
|
90
|
+
- lib/membrane/version.rb
|
91
|
+
- membrane.gemspec
|
92
|
+
- spec/any_schema_spec.rb
|
93
|
+
- spec/bool_schema_spec.rb
|
94
|
+
- spec/class_schema_spec.rb
|
95
|
+
- spec/complex_schema_spec.rb
|
96
|
+
- spec/dictionary_schema_spec.rb
|
97
|
+
- spec/enum_schema_spec.rb
|
98
|
+
- spec/list_schema_spec.rb
|
99
|
+
- spec/record_schema_spec.rb
|
100
|
+
- spec/regexp_schema_spec.rb
|
101
|
+
- spec/schema_parser_spec.rb
|
102
|
+
- spec/spec_helper.rb
|
103
|
+
- spec/tuple_schema_spec.rb
|
104
|
+
- spec/value_schema_spec.rb
|
105
|
+
homepage: http://www.cloudfoundry.org
|
106
|
+
licenses: []
|
107
|
+
post_install_message:
|
108
|
+
rdoc_options: []
|
109
|
+
require_paths:
|
110
|
+
- lib
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
none: false
|
113
|
+
requirements:
|
114
|
+
- - ! '>='
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '0'
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ! '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
requirements: []
|
124
|
+
rubyforge_project:
|
125
|
+
rubygems_version: 1.8.23
|
126
|
+
signing_key:
|
127
|
+
specification_version: 3
|
128
|
+
summary: A DSL for validating data.
|
129
|
+
test_files:
|
130
|
+
- spec/any_schema_spec.rb
|
131
|
+
- spec/bool_schema_spec.rb
|
132
|
+
- spec/class_schema_spec.rb
|
133
|
+
- spec/complex_schema_spec.rb
|
134
|
+
- spec/dictionary_schema_spec.rb
|
135
|
+
- spec/enum_schema_spec.rb
|
136
|
+
- spec/list_schema_spec.rb
|
137
|
+
- spec/record_schema_spec.rb
|
138
|
+
- spec/regexp_schema_spec.rb
|
139
|
+
- spec/schema_parser_spec.rb
|
140
|
+
- spec/spec_helper.rb
|
141
|
+
- spec/tuple_schema_spec.rb
|
142
|
+
- spec/value_schema_spec.rb
|