jeckyl 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Bugs.rdoc +6 -0
- data/Gemfile +6 -0
- data/History.txt +74 -0
- data/Intro.txt +5 -0
- data/LICENCE.rdoc +159 -0
- data/bin/jeckyl +239 -0
- data/lib/jeckyl/errors.rb +35 -0
- data/lib/jeckyl/version.rb +13 -0
- data/lib/jeckyl.rb +619 -0
- data/spec/check_config_spec.rb +57 -0
- data/spec/jeckyl_spec.rb +202 -0
- data/spec/spec_helper.rb +11 -0
- data/test/conf.d/a_few_params +2 -0
- data/test/conf.d/bad_filename +2 -0
- data/test/conf.d/bclass.rb +2 -0
- data/test/conf.d/defaults.rb +0 -0
- data/test/conf.d/jeckyl +46 -0
- data/test/conf.d/jeckyl_check +46 -0
- data/test/conf.d/merger.rb +31 -0
- data/test/conf.d/no_such_file +2 -0
- data/test/conf.d/not_a_bool +1 -0
- data/test/conf.d/not_a_flag +1 -0
- data/test/conf.d/not_a_float +1 -0
- data/test/conf.d/not_a_hash +1 -0
- data/test/conf.d/not_a_member +1 -0
- data/test/conf.d/not_a_pattern +1 -0
- data/test/conf.d/not_a_set +1 -0
- data/test/conf.d/not_a_string +1 -0
- data/test/conf.d/not_an_array +1 -0
- data/test/conf.d/not_an_email +1 -0
- data/test/conf.d/not_an_integer_array +1 -0
- data/test/conf.d/out_of_range +1 -0
- data/test/conf.d/sloppy_params +5 -0
- data/test/conf.d/syntax_error +3 -0
- data/test/conf.d/unknown_param +2 -0
- data/test/conf.d/unwritable_dir +1 -0
- data/test/conf.d/wrong_type +2 -0
- data/test/reports/not_ok.txt +1 -0
- data/test/reports/ok.txt +1 -0
- data/test/test_class.rb +32 -0
- data/test/test_configurator.rb +105 -0
- data/test/test_configurator_errors.rb +105 -0
- data/test/test_subclass.rb +11 -0
- metadata +144 -0
metadata
ADDED
@@ -0,0 +1,144 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jeckyl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 21
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Dr Robert
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-09-20 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
type: :runtime
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 3
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
name: thor
|
32
|
+
version_requirements: *id001
|
33
|
+
prerelease: false
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
type: :runtime
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
hash: 3
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
version: "0"
|
45
|
+
name: term-ansicolor
|
46
|
+
version_requirements: *id002
|
47
|
+
prerelease: false
|
48
|
+
description: |
|
49
|
+
Jeckyl can be used to create a parameters hash from a simple config file written in Ruby, having run whatever checks you want
|
50
|
+
on the file to ensure the values passed in are valid. All you need to do is define a class inheriting from Jeckyl, methods for
|
51
|
+
each parameter, its default, whatever checking rules are appropriate and even a comment for generating templates etc.
|
52
|
+
This is then used to parse a Ruby config file and create the parameters hash. Jeckyl
|
53
|
+
comes complete with a utility to check a config file against a given class and to generate a default file for you to tailor.
|
54
|
+
|
55
|
+
email: robert@osburn-sharp.ath.cx
|
56
|
+
executables:
|
57
|
+
- jeckyl
|
58
|
+
extensions: []
|
59
|
+
|
60
|
+
extra_rdoc_files:
|
61
|
+
- History.txt
|
62
|
+
- Bugs.rdoc
|
63
|
+
- Intro.txt
|
64
|
+
- LICENCE.rdoc
|
65
|
+
- Gemfile
|
66
|
+
files:
|
67
|
+
- History.txt
|
68
|
+
- Bugs.rdoc
|
69
|
+
- Intro.txt
|
70
|
+
- LICENCE.rdoc
|
71
|
+
- Gemfile
|
72
|
+
- lib/jeckyl/errors.rb
|
73
|
+
- lib/jeckyl/version.rb
|
74
|
+
- lib/jeckyl.rb
|
75
|
+
- bin/jeckyl
|
76
|
+
- spec/check_config_spec.rb
|
77
|
+
- spec/jeckyl_spec.rb
|
78
|
+
- spec/spec_helper.rb
|
79
|
+
- test/conf.d/a_few_params
|
80
|
+
- test/conf.d/bad_filename
|
81
|
+
- test/conf.d/jeckyl
|
82
|
+
- test/conf.d/jeckyl_check
|
83
|
+
- test/conf.d/no_such_file
|
84
|
+
- test/conf.d/not_a_bool
|
85
|
+
- test/conf.d/not_a_flag
|
86
|
+
- test/conf.d/not_a_float
|
87
|
+
- test/conf.d/not_a_hash
|
88
|
+
- test/conf.d/not_a_member
|
89
|
+
- test/conf.d/not_a_pattern
|
90
|
+
- test/conf.d/not_a_set
|
91
|
+
- test/conf.d/not_a_string
|
92
|
+
- test/conf.d/not_an_array
|
93
|
+
- test/conf.d/not_an_email
|
94
|
+
- test/conf.d/not_an_integer_array
|
95
|
+
- test/conf.d/out_of_range
|
96
|
+
- test/conf.d/sloppy_params
|
97
|
+
- test/conf.d/syntax_error
|
98
|
+
- test/conf.d/unknown_param
|
99
|
+
- test/conf.d/unwritable_dir
|
100
|
+
- test/conf.d/wrong_type
|
101
|
+
- test/conf.d/defaults.rb
|
102
|
+
- test/conf.d/bclass.rb
|
103
|
+
- test/conf.d/merger.rb
|
104
|
+
- test/reports/not_ok.txt
|
105
|
+
- test/reports/ok.txt
|
106
|
+
- test/test_configurator.rb
|
107
|
+
- test/test_configurator_errors.rb
|
108
|
+
- test/test_class.rb
|
109
|
+
- test/test_subclass.rb
|
110
|
+
homepage:
|
111
|
+
licenses:
|
112
|
+
- Open Software Licence v3.0
|
113
|
+
post_install_message:
|
114
|
+
rdoc_options:
|
115
|
+
- --main=README.rdoc
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
hash: 3
|
124
|
+
segments:
|
125
|
+
- 0
|
126
|
+
version: "0"
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
hash: 3
|
133
|
+
segments:
|
134
|
+
- 0
|
135
|
+
version: "0"
|
136
|
+
requirements: []
|
137
|
+
|
138
|
+
rubyforge_project:
|
139
|
+
rubygems_version: 1.8.24
|
140
|
+
signing_key:
|
141
|
+
specification_version: 3
|
142
|
+
summary: Create and manage configuration files in Ruby for Ruby.
|
143
|
+
test_files: []
|
144
|
+
|