opendsl 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby +47 -0
- data/COPYING.rdoc +31 -0
- data/HISTORY.rdoc +20 -0
- data/{README → README.rdoc} +10 -7
- data/lib/opendsl.rb +17 -2
- data/lib/opendsl/version.rb +4 -0
- metadata +66 -63
- data/HISTORY +0 -10
- data/LICENSE +0 -22
- data/meta/authors +0 -1
- data/meta/contact +0 -1
- data/meta/created +0 -1
- data/meta/description +0 -1
- data/meta/license +0 -1
- data/meta/name +0 -1
- data/meta/released +0 -1
- data/meta/suite +0 -1
- data/meta/summary +0 -1
- data/meta/title +0 -1
- data/meta/version +0 -1
data/.ruby
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
source:
|
3
|
+
- meta
|
4
|
+
authors:
|
5
|
+
- name: 7rans
|
6
|
+
email: transfire@gmail.com
|
7
|
+
copyrights:
|
8
|
+
- holder: Rubyworks
|
9
|
+
year: '2009'
|
10
|
+
license: BSD-2-Clause
|
11
|
+
replacements: []
|
12
|
+
alternatives: []
|
13
|
+
requirements:
|
14
|
+
- name: detroit
|
15
|
+
groups:
|
16
|
+
- build
|
17
|
+
development: true
|
18
|
+
- name: qed
|
19
|
+
groups:
|
20
|
+
- test
|
21
|
+
development: true
|
22
|
+
dependencies: []
|
23
|
+
conflicts: []
|
24
|
+
repositories:
|
25
|
+
- uri: git://github.com/rubyworks/opendsl.git
|
26
|
+
scm: git
|
27
|
+
name: upstream
|
28
|
+
resources:
|
29
|
+
home: http://rubyworks.github.com/opendsl
|
30
|
+
code: http://github.com/rubyworks/opendsl
|
31
|
+
mail: http://groups.google.com/group/rubyworks-mailinglist
|
32
|
+
extra: {}
|
33
|
+
load_path:
|
34
|
+
- lib
|
35
|
+
revision: 0
|
36
|
+
created: '2009-07-18'
|
37
|
+
summary: The ultimate DSL!
|
38
|
+
title: OpenDSL
|
39
|
+
version: 1.1.0
|
40
|
+
description: ! 'OpenDSL is the ultimate DSL system. It marries Ruby''s metaprogramming
|
41
|
+
chops
|
42
|
+
|
43
|
+
with it''s versitle mixin system to create a remarkably simple but incredibly
|
44
|
+
|
45
|
+
powerful DSL framework.'
|
46
|
+
organization: rubyworks
|
47
|
+
date: '2011-10-27'
|
data/COPYING.rdoc
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
= COPYRIGHT NOTICES
|
2
|
+
|
3
|
+
== OpenDSL
|
4
|
+
|
5
|
+
Copyright:: (c) 2009 Rubyworks
|
6
|
+
License:: BSD-2-Clause
|
7
|
+
Website:: http://rubyworks.github.com/opendsl
|
8
|
+
|
9
|
+
Copyright 2009 Rubyworks. All rights reserved.
|
10
|
+
|
11
|
+
Redistribution and use in source and binary forms, with or without
|
12
|
+
modification, are permitted provided that the following conditions are met:
|
13
|
+
|
14
|
+
1. Redistributions of source code must retain the above copyright notice,
|
15
|
+
this list of conditions and the following disclaimer.
|
16
|
+
|
17
|
+
2. Redistributions in binary form must reproduce the above copyright
|
18
|
+
notice, this list of conditions and the following disclaimer in the
|
19
|
+
documentation and/or other materials provided with the distribution.
|
20
|
+
|
21
|
+
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
22
|
+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
23
|
+
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
24
|
+
COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
25
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
26
|
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
27
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
28
|
+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
29
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
30
|
+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
31
|
+
|
data/HISTORY.rdoc
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
= HISTORY
|
2
|
+
|
3
|
+
== 1.1.0 / 2011-10-27
|
4
|
+
|
5
|
+
This is simplay a maintenace release, to bring the project up to date
|
6
|
+
with modern build tools.
|
7
|
+
|
8
|
+
Changes:
|
9
|
+
|
10
|
+
* Modernize build configuration.
|
11
|
+
|
12
|
+
|
13
|
+
== 1.0.0 / 2010-03-02
|
14
|
+
|
15
|
+
This is the initial release of OpenDSL.
|
16
|
+
|
17
|
+
* 1 Major Enhancment
|
18
|
+
|
19
|
+
* Happy Birthday!
|
20
|
+
|
data/{README → README.rdoc}
RENAMED
@@ -1,9 +1,12 @@
|
|
1
1
|
= OpenDSL
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
{Homepage}[http://rubyworks.github.com/opendsl] |
|
4
|
+
{Source Code}[http://github.com/rubyworks/opendsl] |
|
5
|
+
{Mailing List}[http://groups.google.com/group/rubyworks-mailinglist] |
|
6
|
+
{Issue Tracker}[http://github.com/rubyworks/opendsl/issues] |
|
7
|
+
|
8
|
+
{<img src="http://travis-ci.org/rubyworks/opendsl.png" />}[http://travis-ci.org/rubyworks/opendsl]
|
5
9
|
|
6
|
-
== Free as a bird. Think like a duck.
|
7
10
|
|
8
11
|
== DESCRIPTION
|
9
12
|
|
@@ -19,7 +22,7 @@ The library is especailly useful for plugins systems.
|
|
19
22
|
|
20
23
|
== RELEASE NOTES
|
21
24
|
|
22
|
-
Please see HISTORY file.
|
25
|
+
Please see HISTORY.rdoc file.
|
23
26
|
|
24
27
|
|
25
28
|
== SYNOPSIS
|
@@ -64,11 +67,11 @@ then download the tarball package and type:
|
|
64
67
|
Windows users use 'ruby setup.rb all'.
|
65
68
|
|
66
69
|
|
67
|
-
==
|
70
|
+
== COPYRIGHTS
|
68
71
|
|
69
72
|
Copyright (c) 2009 Thomas Sawyer
|
70
73
|
|
71
|
-
This program is ditributed unser the terms of the
|
74
|
+
This program is ditributed unser the terms of the *FreeBSD* license.
|
72
75
|
|
73
|
-
See
|
76
|
+
See COPYING.rdoc file for details.
|
74
77
|
|
data/lib/opendsl.rb
CHANGED
@@ -1,7 +1,22 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
# OpenDSL is a clever way to create a plugable
|
2
|
+
# free-form domain specific language.
|
3
|
+
#
|
4
|
+
# Example = OpenDSL.new do
|
5
|
+
# size do
|
6
|
+
# 100
|
7
|
+
# end
|
8
|
+
# end
|
9
|
+
#
|
10
|
+
# class Foo
|
11
|
+
# include Example
|
12
|
+
# end
|
13
|
+
#
|
14
|
+
# Foo.new.size #=> 100
|
15
|
+
#
|
3
16
|
class OpenDSL < Module
|
4
17
|
|
18
|
+
require 'opendsl/version'
|
19
|
+
|
5
20
|
#
|
6
21
|
def initialize(&block)
|
7
22
|
instance_eval(&block) if block_given?
|
metadata
CHANGED
@@ -1,80 +1,83 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: opendsl
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
version: 1.0.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
12
|
-
-
|
7
|
+
authors:
|
8
|
+
- 7rans
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
12
|
+
date: 2011-10-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: detroit
|
16
|
+
requirement: &13208460 !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: *13208460
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: qed
|
27
|
+
requirement: &13204180 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *13204180
|
36
|
+
description: ! 'OpenDSL is the ultimate DSL system. It marries Ruby''s metaprogramming
|
37
|
+
chops
|
16
38
|
|
17
|
-
|
18
|
-
default_executable:
|
19
|
-
dependencies: []
|
39
|
+
with it''s versitle mixin system to create a remarkably simple but incredibly
|
20
40
|
|
21
|
-
|
22
|
-
email:
|
41
|
+
powerful DSL framework.'
|
42
|
+
email:
|
43
|
+
- transfire@gmail.com
|
23
44
|
executables: []
|
24
|
-
|
25
45
|
extensions: []
|
26
|
-
|
27
|
-
|
28
|
-
- README
|
29
|
-
|
46
|
+
extra_rdoc_files:
|
47
|
+
- HISTORY.rdoc
|
48
|
+
- README.rdoc
|
49
|
+
- COPYING.rdoc
|
50
|
+
files:
|
51
|
+
- .ruby
|
52
|
+
- lib/opendsl/version.rb
|
30
53
|
- lib/opendsl.rb
|
31
|
-
- meta/authors
|
32
|
-
- meta/contact
|
33
|
-
- meta/created
|
34
|
-
- meta/description
|
35
|
-
- meta/license
|
36
|
-
- meta/name
|
37
|
-
- meta/released
|
38
|
-
- meta/suite
|
39
|
-
- meta/summary
|
40
|
-
- meta/title
|
41
|
-
- meta/version
|
42
54
|
- qed/example.rdoc
|
43
|
-
-
|
44
|
-
- README
|
45
|
-
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
55
|
+
- HISTORY.rdoc
|
56
|
+
- README.rdoc
|
57
|
+
- COPYING.rdoc
|
58
|
+
homepage: http://rubyworks.github.com/opendsl
|
59
|
+
licenses:
|
60
|
+
- BSD-2-Clause
|
50
61
|
post_install_message:
|
51
|
-
rdoc_options:
|
52
|
-
|
53
|
-
- OpenDSL API
|
54
|
-
- --main
|
55
|
-
- README
|
56
|
-
require_paths:
|
62
|
+
rdoc_options: []
|
63
|
+
require_paths:
|
57
64
|
- lib
|
58
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
requirements:
|
67
|
-
- -
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
|
70
|
-
- 0
|
71
|
-
version: "0"
|
65
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
72
77
|
requirements: []
|
73
|
-
|
74
|
-
|
75
|
-
rubygems_version: 1.3.6.pre.3
|
78
|
+
rubyforge_project:
|
79
|
+
rubygems_version: 1.8.10
|
76
80
|
signing_key:
|
77
81
|
specification_version: 3
|
78
|
-
summary: The ultimate DSL
|
82
|
+
summary: The ultimate DSL!
|
79
83
|
test_files: []
|
80
|
-
|
data/HISTORY
DELETED
data/LICENSE
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
The MIT License
|
2
|
-
|
3
|
-
Copyright (c) 2009 Thomas Sawyer
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
22
|
-
|
data/meta/authors
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
Thomas Sawyer
|
data/meta/contact
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
trans <transfire@gmail.com>
|
data/meta/created
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2008-04-14
|
data/meta/description
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
OpenDSL is like the ultimate DSL system.
|
data/meta/license
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
MIT
|
data/meta/name
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
opendsl
|
data/meta/released
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2009-07-18
|
data/meta/suite
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rubyworks
|
data/meta/summary
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
The ultimate DSL.
|
data/meta/title
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
OpenDSL
|
data/meta/version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.0
|