c66-copper 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +5 -0
  3. data/bin/console +14 -0
  4. data/bin/copper +96 -0
  5. data/bin/setup +8 -0
  6. data/lib/copper/action.rb +9 -0
  7. data/lib/copper/attribute.rb +30 -0
  8. data/lib/copper/attribute_params.rb +9 -0
  9. data/lib/copper/attributes.rb +21 -0
  10. data/lib/copper/attributes_right_associated.rb +11 -0
  11. data/lib/copper/boolean.rb +9 -0
  12. data/lib/copper/comparison.rb +58 -0
  13. data/lib/copper/compop.rb +8 -0
  14. data/lib/copper/copper.rb +32 -0
  15. data/lib/copper/copper_node.rb +16 -0
  16. data/lib/copper/data_types/array.rb +61 -0
  17. data/lib/copper/data_types/data_type.rb +54 -0
  18. data/lib/copper/data_types/ip_addr.rb +82 -0
  19. data/lib/copper/data_types/range.rb +17 -0
  20. data/lib/copper/data_types/semver.rb +45 -0
  21. data/lib/copper/data_types/string.rb +23 -0
  22. data/lib/copper/error.rb +5 -0
  23. data/lib/copper/expression.rb +8 -0
  24. data/lib/copper/expression_utils.rb +13 -0
  25. data/lib/copper/functions/fetch.rb +27 -0
  26. data/lib/copper/functions/ip_address.rb +18 -0
  27. data/lib/copper/grammar/copper.treetop +161 -0
  28. data/lib/copper/identifier.rb +9 -0
  29. data/lib/copper/loader.rb +13 -0
  30. data/lib/copper/logic.rb +14 -0
  31. data/lib/copper/logic_op.rb +7 -0
  32. data/lib/copper/logic_right_associated.rb +16 -0
  33. data/lib/copper/number.rb +10 -0
  34. data/lib/copper/param.rb +13 -0
  35. data/lib/copper/param_right_associated.rb +10 -0
  36. data/lib/copper/parser.rb +42 -0
  37. data/lib/copper/range.rb +15 -0
  38. data/lib/copper/root.rb +13 -0
  39. data/lib/copper/rule_definition.rb +21 -0
  40. data/lib/copper/set.rb +11 -0
  41. data/lib/copper/single_var_definition.rb +20 -0
  42. data/lib/copper/string.rb +17 -0
  43. data/lib/copper/var_definition.rb +11 -0
  44. data/lib/copper/variable.rb +9 -0
  45. data/lib/copper/variable_identifier.rb +15 -0
  46. data/lib/copper/version.rb +5 -0
  47. data/lib/copper.rb +5 -0
  48. metadata +247 -0
metadata ADDED
@@ -0,0 +1,247 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: c66-copper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Khash Sajadi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-03-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.14'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.14'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rerun
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.13'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.13'
55
+ - !ruby/object:Gem::Dependency
56
+ name: byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: jsonpath
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.8'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.8'
83
+ - !ruby/object:Gem::Dependency
84
+ name: json
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '2.1'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '2.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: thor
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.20'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.20'
111
+ - !ruby/object:Gem::Dependency
112
+ name: treetop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.6'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.6'
125
+ - !ruby/object:Gem::Dependency
126
+ name: colorize
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.8'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.8'
139
+ - !ruby/object:Gem::Dependency
140
+ name: semantic
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.6'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.6'
153
+ - !ruby/object:Gem::Dependency
154
+ name: ipaddress
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.8'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.8'
167
+ description: Copper is a tool to validate configuration files
168
+ email:
169
+ - khash@cloud66.com
170
+ executables:
171
+ - console
172
+ - copper
173
+ - setup
174
+ extensions: []
175
+ extra_rdoc_files: []
176
+ files:
177
+ - README.md
178
+ - bin/console
179
+ - bin/copper
180
+ - bin/setup
181
+ - lib/copper.rb
182
+ - lib/copper/action.rb
183
+ - lib/copper/attribute.rb
184
+ - lib/copper/attribute_params.rb
185
+ - lib/copper/attributes.rb
186
+ - lib/copper/attributes_right_associated.rb
187
+ - lib/copper/boolean.rb
188
+ - lib/copper/comparison.rb
189
+ - lib/copper/compop.rb
190
+ - lib/copper/copper.rb
191
+ - lib/copper/copper_node.rb
192
+ - lib/copper/data_types/array.rb
193
+ - lib/copper/data_types/data_type.rb
194
+ - lib/copper/data_types/ip_addr.rb
195
+ - lib/copper/data_types/range.rb
196
+ - lib/copper/data_types/semver.rb
197
+ - lib/copper/data_types/string.rb
198
+ - lib/copper/error.rb
199
+ - lib/copper/expression.rb
200
+ - lib/copper/expression_utils.rb
201
+ - lib/copper/functions/fetch.rb
202
+ - lib/copper/functions/ip_address.rb
203
+ - lib/copper/grammar/copper.treetop
204
+ - lib/copper/identifier.rb
205
+ - lib/copper/loader.rb
206
+ - lib/copper/logic.rb
207
+ - lib/copper/logic_op.rb
208
+ - lib/copper/logic_right_associated.rb
209
+ - lib/copper/number.rb
210
+ - lib/copper/param.rb
211
+ - lib/copper/param_right_associated.rb
212
+ - lib/copper/parser.rb
213
+ - lib/copper/range.rb
214
+ - lib/copper/root.rb
215
+ - lib/copper/rule_definition.rb
216
+ - lib/copper/set.rb
217
+ - lib/copper/single_var_definition.rb
218
+ - lib/copper/string.rb
219
+ - lib/copper/var_definition.rb
220
+ - lib/copper/variable.rb
221
+ - lib/copper/variable_identifier.rb
222
+ - lib/copper/version.rb
223
+ homepage: https://github.com/cloud66/copper
224
+ licenses:
225
+ - Nonstandard
226
+ metadata: {}
227
+ post_install_message:
228
+ rdoc_options: []
229
+ require_paths:
230
+ - lib
231
+ required_ruby_version: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ version: '0'
236
+ required_rubygems_version: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - ">="
239
+ - !ruby/object:Gem::Version
240
+ version: '0'
241
+ requirements: []
242
+ rubyforge_project:
243
+ rubygems_version: 2.6.13
244
+ signing_key:
245
+ specification_version: 4
246
+ summary: Copper gem and command line
247
+ test_files: []