jzimmek-easy_dsl 0.1.1
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.
- data/.document +5 -0
- data/.gitignore +5 -0
- data/LICENSE +20 -0
- data/README.rdoc +7 -0
- data/Rakefile +56 -0
- data/VERSION +1 -0
- data/easy_dsl.gemspec +54 -0
- data/lib/easy_dsl/attribute.rb +24 -0
- data/lib/easy_dsl/container.rb +162 -0
- data/lib/easy_dsl.rb +1 -0
- data/test/easy_dsl/test/apache.rb +17 -0
- data/test/easy_dsl/test/rewrite.rb +12 -0
- data/test/easy_dsl/test/virtual_host.rb +16 -0
- data/test/easy_dsl_test.rb +116 -0
- data/test/test_helper.rb +10 -0
- metadata +73 -0
data/.document
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Jan Zimmek
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "easy_dsl"
|
8
|
+
gem.summary = %Q{EasyDSL provides common functionality to build a ruby based internal DSL}
|
9
|
+
gem.email = "jan.zimmek@web.de"
|
10
|
+
gem.homepage = "http://github.com/jzimmek/easy_dsl"
|
11
|
+
gem.authors = ["Jan Zimmek"]
|
12
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
13
|
+
end
|
14
|
+
|
15
|
+
rescue LoadError
|
16
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
17
|
+
end
|
18
|
+
|
19
|
+
require 'rake/testtask'
|
20
|
+
Rake::TestTask.new(:test) do |test|
|
21
|
+
test.libs << 'lib' << 'test'
|
22
|
+
test.pattern = 'test/**/*_test.rb'
|
23
|
+
test.verbose = true
|
24
|
+
end
|
25
|
+
|
26
|
+
begin
|
27
|
+
require 'rcov/rcovtask'
|
28
|
+
Rcov::RcovTask.new do |test|
|
29
|
+
test.libs << 'test'
|
30
|
+
test.pattern = 'test/**/*_test.rb'
|
31
|
+
test.verbose = true
|
32
|
+
end
|
33
|
+
rescue LoadError
|
34
|
+
task :rcov do
|
35
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
task :default => :test
|
41
|
+
|
42
|
+
require 'rake/rdoctask'
|
43
|
+
Rake::RDocTask.new do |rdoc|
|
44
|
+
if File.exist?('VERSION.yml')
|
45
|
+
config = YAML.load(File.read('VERSION.yml'))
|
46
|
+
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
47
|
+
else
|
48
|
+
version = ""
|
49
|
+
end
|
50
|
+
|
51
|
+
rdoc.rdoc_dir = 'rdoc'
|
52
|
+
rdoc.title = "easy_dsl #{version}"
|
53
|
+
rdoc.rdoc_files.include('README*')
|
54
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
55
|
+
end
|
56
|
+
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
data/easy_dsl.gemspec
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{easy_dsl}
|
5
|
+
s.version = "0.1.1"
|
6
|
+
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Jan Zimmek"]
|
9
|
+
s.date = %q{2009-08-12}
|
10
|
+
s.email = %q{jan.zimmek@web.de}
|
11
|
+
s.extra_rdoc_files = [
|
12
|
+
"LICENSE",
|
13
|
+
"README.rdoc"
|
14
|
+
]
|
15
|
+
s.files = [
|
16
|
+
".document",
|
17
|
+
".gitignore",
|
18
|
+
"LICENSE",
|
19
|
+
"README.rdoc",
|
20
|
+
"Rakefile",
|
21
|
+
"VERSION",
|
22
|
+
"easy_dsl.gemspec",
|
23
|
+
"lib/easy_dsl.rb",
|
24
|
+
"lib/easy_dsl/attribute.rb",
|
25
|
+
"lib/easy_dsl/container.rb",
|
26
|
+
"test/easy_dsl/test/apache.rb",
|
27
|
+
"test/easy_dsl/test/rewrite.rb",
|
28
|
+
"test/easy_dsl/test/virtual_host.rb",
|
29
|
+
"test/easy_dsl_test.rb",
|
30
|
+
"test/test_helper.rb"
|
31
|
+
]
|
32
|
+
s.homepage = %q{http://github.com/jzimmek/easy_dsl}
|
33
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
34
|
+
s.require_paths = ["lib"]
|
35
|
+
s.rubygems_version = %q{1.3.4}
|
36
|
+
s.summary = %q{EasyDSL provides common functionality to build a ruby based internal DSL}
|
37
|
+
s.test_files = [
|
38
|
+
"test/easy_dsl/test/apache.rb",
|
39
|
+
"test/easy_dsl/test/rewrite.rb",
|
40
|
+
"test/easy_dsl/test/virtual_host.rb",
|
41
|
+
"test/easy_dsl_test.rb",
|
42
|
+
"test/test_helper.rb"
|
43
|
+
]
|
44
|
+
|
45
|
+
if s.respond_to? :specification_version then
|
46
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
47
|
+
s.specification_version = 3
|
48
|
+
|
49
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
50
|
+
else
|
51
|
+
end
|
52
|
+
else
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module EasyDsl
|
2
|
+
class Attribute
|
3
|
+
|
4
|
+
attr_reader :required
|
5
|
+
attr_reader :inheritable
|
6
|
+
attr_reader :filter
|
7
|
+
|
8
|
+
def self.create(opts)
|
9
|
+
opts = {
|
10
|
+
:required => false,
|
11
|
+
:inheritable => true,
|
12
|
+
:filter => nil
|
13
|
+
}.merge(opts)
|
14
|
+
|
15
|
+
new(opts[:required], opts[:inheritable], opts[:filter])
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize(required, inheritable, filter)
|
19
|
+
@required = required
|
20
|
+
@inheritable = inheritable
|
21
|
+
@filter = filter
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,162 @@
|
|
1
|
+
require 'active_support'
|
2
|
+
require 'base64'
|
3
|
+
require 'easy_dsl/attribute'
|
4
|
+
|
5
|
+
module EasyDsl
|
6
|
+
class Container
|
7
|
+
|
8
|
+
attr_accessor :name
|
9
|
+
attr_accessor :container
|
10
|
+
attr_reader :attributes
|
11
|
+
attr_reader :children
|
12
|
+
|
13
|
+
def initialize(name, container)
|
14
|
+
@name = name
|
15
|
+
@container = container
|
16
|
+
@attributes = {}
|
17
|
+
@children = []
|
18
|
+
@nested = {}
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.create(opts={}, &block)
|
22
|
+
root = self.new("default")
|
23
|
+
root.instance_eval(&block) if block_given?
|
24
|
+
root.freeze_attributes
|
25
|
+
root.validate unless opts[:validate] == false
|
26
|
+
root
|
27
|
+
end
|
28
|
+
|
29
|
+
def validate
|
30
|
+
@attributes.each_pair do |name, attribute|
|
31
|
+
if attribute.required
|
32
|
+
raise "attribute #{name} in #{self.class.name} (#{self.name}) is required" unless send(name)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
@children.each do |child|
|
37
|
+
child.validate
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def attribute(name, opts={})
|
42
|
+
|
43
|
+
name = name.to_sym
|
44
|
+
|
45
|
+
@attributes[name] = Attribute.create(opts)
|
46
|
+
|
47
|
+
self.class.send(:define_method, name) do |value|
|
48
|
+
|
49
|
+
raise "attribute #{name} of #{self.class.name}.#{self.name} is already frozen" if frozen?
|
50
|
+
|
51
|
+
value = opts[:filter].call(value) if opts[:filter]
|
52
|
+
|
53
|
+
instance_variable_set("@#{name}", value)
|
54
|
+
end
|
55
|
+
|
56
|
+
__define_getter(name, "#{name}_value".to_sym)
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
def __define_getter(name, getter_name)
|
61
|
+
self.class.send(:define_method, getter_name) do
|
62
|
+
value = instance_variable_get("@#{name}")
|
63
|
+
|
64
|
+
if !value && @container && @container.is_attribute_inheritable?(name)
|
65
|
+
if @container.respond_to?(getter_name)
|
66
|
+
# while in initialization phase
|
67
|
+
value = @container.send(getter_name)
|
68
|
+
else
|
69
|
+
# when initialization phase is over
|
70
|
+
value = @container.send(name)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
value
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def is_attribute_inheritable?(name)
|
79
|
+
@attributes[name].try(:inheritable) == true
|
80
|
+
end
|
81
|
+
|
82
|
+
def freeze_attributes
|
83
|
+
@attributes.keys.each do |name|
|
84
|
+
getter = self.method("#{name}_value".to_sym)
|
85
|
+
|
86
|
+
next unless getter
|
87
|
+
|
88
|
+
self.class.send(:remove_method, name)
|
89
|
+
self.class.send(:remove_method, "#{name}_value")
|
90
|
+
|
91
|
+
__define_getter(name, name)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
def selfrdoc
|
96
|
+
|
97
|
+
selfdoc.each_pair do |clazz, doc|
|
98
|
+
|
99
|
+
puts "**** #{clazz.name}"
|
100
|
+
|
101
|
+
puts "** attributes"
|
102
|
+
|
103
|
+
doc[:attributes].each_pair do |name, attribute|
|
104
|
+
puts "- #{name} (required: #{attribute.required}, :inheritable => #{attribute.inheritable})"
|
105
|
+
end
|
106
|
+
|
107
|
+
puts "** nested elements"
|
108
|
+
|
109
|
+
doc[:nested].each_pair do |name, nested|
|
110
|
+
puts "- #{name} (#{nested})"
|
111
|
+
end
|
112
|
+
|
113
|
+
end
|
114
|
+
|
115
|
+
end
|
116
|
+
|
117
|
+
def selfdoc(doc={})
|
118
|
+
|
119
|
+
unless doc.key?(self.class)
|
120
|
+
|
121
|
+
doc[self.class] = {
|
122
|
+
:element => self.class,
|
123
|
+
:attributes => @attributes,
|
124
|
+
:nested => @nested
|
125
|
+
}
|
126
|
+
|
127
|
+
@nested.values.each do |nested_clazz|
|
128
|
+
nested = nested_clazz.new("default", self)
|
129
|
+
nested.selfdoc(doc)
|
130
|
+
end
|
131
|
+
|
132
|
+
end
|
133
|
+
|
134
|
+
doc
|
135
|
+
end
|
136
|
+
|
137
|
+
def nested(nested_name, clazz)
|
138
|
+
nested_name = nested_name.to_sym
|
139
|
+
|
140
|
+
@nested[nested_name] = clazz unless @nested.key?(nested_name)
|
141
|
+
|
142
|
+
instance_variable_set("@all_#{nested_name}", {})
|
143
|
+
|
144
|
+
self.class.send(:define_method, "all_#{nested_name}") do
|
145
|
+
instance_variable_get("@all_#{nested_name}")
|
146
|
+
end
|
147
|
+
|
148
|
+
self.class.send(:define_method, nested_name) do |obj_name, &block|
|
149
|
+
obj = clazz.new(obj_name, self)
|
150
|
+
instance_variable_get("@all_#{nested_name}")[obj_name] = obj
|
151
|
+
|
152
|
+
@children << obj
|
153
|
+
|
154
|
+
obj.instance_eval(&block) if block
|
155
|
+
|
156
|
+
obj.freeze_attributes
|
157
|
+
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
end
|
162
|
+
end
|
data/lib/easy_dsl.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'easy_dsl/container'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'easy_dsl/container'
|
2
|
+
require 'easy_dsl/test/virtual_host'
|
3
|
+
|
4
|
+
module EasyDsl
|
5
|
+
module Test
|
6
|
+
class Apache < EasyDsl::Container
|
7
|
+
def initialize(name)
|
8
|
+
super(name, nil)
|
9
|
+
|
10
|
+
attribute :webmaster_email, :inheritable => true, :required => true, :filter => Proc.new{|value|value.strip}
|
11
|
+
attribute :port, :inheritable => true, :required => true
|
12
|
+
|
13
|
+
nested :virtual_host, VirtualHost
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'easy_dsl/container'
|
2
|
+
require 'easy_dsl/test/rewrite'
|
3
|
+
|
4
|
+
module EasyDsl
|
5
|
+
module Test
|
6
|
+
class VirtualHost < EasyDsl::Container
|
7
|
+
def initialize(name, container)
|
8
|
+
super
|
9
|
+
attribute :document_root, :inheritable => false, :required => true
|
10
|
+
attribute :webmaster_email
|
11
|
+
attribute :port
|
12
|
+
nested :rewrite, Rewrite
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,116 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'easy_dsl/test/apache'
|
3
|
+
|
4
|
+
class EasyDslTest < Test::Unit::TestCase
|
5
|
+
|
6
|
+
def test_attribute_filter
|
7
|
+
a = EasyDsl::Test::Apache.create do
|
8
|
+
port 8080
|
9
|
+
webmaster_email " webmaster@domain "
|
10
|
+
end
|
11
|
+
|
12
|
+
assert_equal "webmaster@domain", a.webmaster_email
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_selfdoc
|
16
|
+
|
17
|
+
a = EasyDsl::Test::Apache.create(:validate => false)
|
18
|
+
doc = a.selfdoc
|
19
|
+
|
20
|
+
# apache
|
21
|
+
|
22
|
+
assert_equal EasyDsl::Test::Apache, doc[EasyDsl::Test::Apache][:element]
|
23
|
+
assert doc[EasyDsl::Test::Apache][:attributes].length == 2
|
24
|
+
|
25
|
+
assert doc[EasyDsl::Test::Apache][:attributes].include?(:webmaster_email)
|
26
|
+
assert doc[EasyDsl::Test::Apache][:attributes][:webmaster_email].inheritable
|
27
|
+
assert doc[EasyDsl::Test::Apache][:attributes][:webmaster_email].required
|
28
|
+
|
29
|
+
assert doc[EasyDsl::Test::Apache][:attributes].include?(:port)
|
30
|
+
assert doc[EasyDsl::Test::Apache][:attributes][:port].inheritable
|
31
|
+
assert doc[EasyDsl::Test::Apache][:attributes][:port].required
|
32
|
+
|
33
|
+
assert doc[EasyDsl::Test::Apache][:nested].length == 1
|
34
|
+
assert_equal EasyDsl::Test::VirtualHost, doc[EasyDsl::Test::Apache][:nested][:virtual_host]
|
35
|
+
|
36
|
+
# virtualhost
|
37
|
+
|
38
|
+
assert_equal EasyDsl::Test::VirtualHost, doc[EasyDsl::Test::VirtualHost][:element]
|
39
|
+
assert doc[EasyDsl::Test::VirtualHost][:attributes].length == 3
|
40
|
+
|
41
|
+
assert doc[EasyDsl::Test::VirtualHost][:attributes].include?(:document_root)
|
42
|
+
assert !doc[EasyDsl::Test::VirtualHost][:attributes][:document_root].inheritable
|
43
|
+
assert doc[EasyDsl::Test::VirtualHost][:attributes][:document_root].required
|
44
|
+
|
45
|
+
assert doc[EasyDsl::Test::VirtualHost][:attributes].include?(:port)
|
46
|
+
assert doc[EasyDsl::Test::VirtualHost][:attributes][:port].inheritable
|
47
|
+
assert !doc[EasyDsl::Test::VirtualHost][:attributes][:port].required
|
48
|
+
|
49
|
+
assert doc[EasyDsl::Test::VirtualHost][:attributes].include?(:webmaster_email)
|
50
|
+
assert doc[EasyDsl::Test::VirtualHost][:attributes][:webmaster_email].inheritable
|
51
|
+
assert !doc[EasyDsl::Test::VirtualHost][:attributes][:webmaster_email].required
|
52
|
+
|
53
|
+
assert doc[EasyDsl::Test::VirtualHost][:nested].length == 1
|
54
|
+
assert_equal EasyDsl::Test::Rewrite, doc[EasyDsl::Test::VirtualHost][:nested][:rewrite]
|
55
|
+
|
56
|
+
# rewrite
|
57
|
+
|
58
|
+
assert_equal EasyDsl::Test::Rewrite, doc[EasyDsl::Test::Rewrite][:element]
|
59
|
+
assert doc[EasyDsl::Test::Rewrite][:attributes].length == 1
|
60
|
+
|
61
|
+
assert doc[EasyDsl::Test::Rewrite][:attributes].include?(:target)
|
62
|
+
assert doc[EasyDsl::Test::Rewrite][:attributes][:target].inheritable
|
63
|
+
assert doc[EasyDsl::Test::Rewrite][:attributes][:target].required
|
64
|
+
assert doc[EasyDsl::Test::Rewrite][:nested].blank?
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
def test_default
|
69
|
+
a = EasyDsl::Test::Apache.create do
|
70
|
+
|
71
|
+
webmaster_email "webmaster@yourdomain"
|
72
|
+
port 80
|
73
|
+
|
74
|
+
virtual_host "virtualhost01.yourdomain.com" do
|
75
|
+
document_root "/var/www/virtualhost01/htdocs"
|
76
|
+
rewrite "^/some_path/(.*)$" do
|
77
|
+
target "/some_other_path/$1"
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
virtual_host "virtualhost02.yourdomain.com" do
|
82
|
+
document_root "/var/www/virtualhost02/htdocs"
|
83
|
+
port 81
|
84
|
+
webmaster_email "jan@zimmek"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
assert_equal nil, a.container
|
89
|
+
assert_equal 2, a.all_virtual_host.length
|
90
|
+
assert_equal "webmaster@yourdomain", a.webmaster_email
|
91
|
+
|
92
|
+
|
93
|
+
virtualhost01 = a.all_virtual_host["virtualhost01.yourdomain.com"]
|
94
|
+
assert_equal a, virtualhost01.container
|
95
|
+
|
96
|
+
virtualhost02 = a.all_virtual_host["virtualhost02.yourdomain.com"]
|
97
|
+
assert_equal a, virtualhost02.container
|
98
|
+
|
99
|
+
assert_equal "virtualhost01.yourdomain.com", virtualhost01.name
|
100
|
+
assert_equal "webmaster@yourdomain", virtualhost01.webmaster_email
|
101
|
+
assert_equal 80, virtualhost01.port
|
102
|
+
|
103
|
+
assert_equal "virtualhost02.yourdomain.com", virtualhost02.name
|
104
|
+
assert_equal "jan@zimmek", virtualhost02.webmaster_email
|
105
|
+
assert_equal 81, virtualhost02.port
|
106
|
+
|
107
|
+
assert_equal 1, virtualhost01.all_rewrite.length
|
108
|
+
|
109
|
+
rewrite = virtualhost01.all_rewrite["^/some_path/(.*)$"]
|
110
|
+
assert_equal virtualhost01, rewrite.container
|
111
|
+
|
112
|
+
assert_equal "^/some_path/(.*)$", rewrite.name
|
113
|
+
assert_equal "/some_other_path/$1", rewrite.target
|
114
|
+
end
|
115
|
+
|
116
|
+
end
|
data/test/test_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jzimmek-easy_dsl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jan Zimmek
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-08-12 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: jan.zimmek@web.de
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- LICENSE
|
24
|
+
- README.rdoc
|
25
|
+
files:
|
26
|
+
- .document
|
27
|
+
- .gitignore
|
28
|
+
- LICENSE
|
29
|
+
- README.rdoc
|
30
|
+
- Rakefile
|
31
|
+
- VERSION
|
32
|
+
- easy_dsl.gemspec
|
33
|
+
- lib/easy_dsl.rb
|
34
|
+
- lib/easy_dsl/attribute.rb
|
35
|
+
- lib/easy_dsl/container.rb
|
36
|
+
- test/easy_dsl/test/apache.rb
|
37
|
+
- test/easy_dsl/test/rewrite.rb
|
38
|
+
- test/easy_dsl/test/virtual_host.rb
|
39
|
+
- test/easy_dsl_test.rb
|
40
|
+
- test/test_helper.rb
|
41
|
+
has_rdoc: false
|
42
|
+
homepage: http://github.com/jzimmek/easy_dsl
|
43
|
+
licenses:
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options:
|
46
|
+
- --charset=UTF-8
|
47
|
+
require_paths:
|
48
|
+
- lib
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: "0"
|
54
|
+
version:
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: "0"
|
60
|
+
version:
|
61
|
+
requirements: []
|
62
|
+
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 1.3.5
|
65
|
+
signing_key:
|
66
|
+
specification_version: 3
|
67
|
+
summary: EasyDSL provides common functionality to build a ruby based internal DSL
|
68
|
+
test_files:
|
69
|
+
- test/easy_dsl/test/apache.rb
|
70
|
+
- test/easy_dsl/test/rewrite.rb
|
71
|
+
- test/easy_dsl/test/virtual_host.rb
|
72
|
+
- test/easy_dsl_test.rb
|
73
|
+
- test/test_helper.rb
|