dslkit 0.2.5 → 0.2.6
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/CHANGES +3 -0
- data/{GPL → COPYING} +0 -0
- data/Rakefile +35 -46
- data/VERSION +1 -1
- data/doc-main.txt +31 -0
- data/dslkit.gemspec +21 -0
- data/examples/let.rb +1 -1
- data/install.rb +0 -1
- data/lib/dslkit/polite.rb +1 -35
- data/lib/dslkit/version.rb +1 -1
- data/tests/runner.rb +0 -1
- metadata +30 -29
data/CHANGES
CHANGED
data/{GPL → COPYING}
RENAMED
File without changes
|
data/Rakefile
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
require 'rake/gempackagetask'
|
3
|
+
rescue LoadError
|
4
|
+
end
|
5
|
+
require 'rake/clean'
|
2
6
|
require 'rbconfig'
|
3
|
-
|
4
7
|
include Config
|
5
8
|
|
6
9
|
PKG_NAME = 'dslkit'
|
7
10
|
PKG_VERSION = File.read('VERSION').chomp
|
8
11
|
PKG_FILES = FileList['**/*'].exclude(/(CVS|\.svn|pkg|coverage|doc)/)
|
12
|
+
CLEAN.include 'coverage', 'doc'
|
9
13
|
|
10
14
|
desc "Installing library"
|
11
15
|
task :install do
|
@@ -27,60 +31,43 @@ task :coverage do
|
|
27
31
|
system 'rcov -Ilib tests/test_rude.rb'
|
28
32
|
end
|
29
33
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
#### Basic information.
|
37
|
-
|
38
|
-
s.name = PKG_NAME
|
39
|
-
s.version = PKG_VERSION
|
34
|
+
if defined? Gem
|
35
|
+
spec_src =<<GEM
|
36
|
+
# -*- encoding: utf-8 -*-
|
37
|
+
Gem::Specification.new do |s|
|
38
|
+
s.name = '#{PKG_NAME}'
|
39
|
+
s.version = '#{PKG_VERSION}'
|
40
40
|
s.summary = 'Kit for building DSLs in Ruby'
|
41
41
|
s.description = 'This library contains recurring patterns, that are useful in the creation of internal Domain Specific Languages (DSL) in Ruby.'
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
#s.add_dependency('log4r', '> 1.0.4')
|
46
|
-
#s.requirements << ""
|
47
|
-
|
48
|
-
s.files = PKG_FILES
|
49
|
-
|
50
|
-
#### C code extensions.
|
51
|
-
|
52
|
-
#s.extensions << "ext/extconf.rb"
|
43
|
+
s.files = #{PKG_FILES.to_a.sort.inspect}
|
53
44
|
|
54
|
-
|
55
|
-
|
56
|
-
s.require_path = 'lib' # Use these for libraries.
|
57
|
-
#s.autorequire = 'dslkit'
|
58
|
-
|
59
|
-
#s.bindir = "bin" # Use these for applications.
|
60
|
-
#s.executables = ["bla.rb"]
|
61
|
-
#s.default_executable = "bla.rb"
|
62
|
-
|
63
|
-
#### Documentation and testing.
|
45
|
+
s.require_path = 'lib'
|
64
46
|
|
65
47
|
s.has_rdoc = true
|
66
|
-
|
67
|
-
|
68
|
-
# '--title' << 'Rake -- Ruby Make' <<
|
69
|
-
# '--main' << 'README' <<
|
70
|
-
# '--line-numbers'
|
48
|
+
s.rdoc_options << '--main' << 'doc-main.txt'
|
49
|
+
s.extra_rdoc_files << 'doc-main.txt'
|
71
50
|
s.test_files << 'tests/runner.rb'
|
72
51
|
|
73
|
-
#### Author and project details.
|
74
|
-
|
75
52
|
s.author = "Florian Frank"
|
76
53
|
s.email = "flori@ping.de"
|
77
|
-
s.homepage = "http
|
78
|
-
s.rubyforge_project = "
|
54
|
+
s.homepage = "http://#{PKG_NAME}.rubyforge.org"
|
55
|
+
s.rubyforge_project = "#{PKG_NAME}"
|
79
56
|
end
|
57
|
+
GEM
|
80
58
|
|
81
|
-
|
82
|
-
|
83
|
-
|
59
|
+
desc 'Create a gemspec file'
|
60
|
+
task :gemspec do
|
61
|
+
File.open("#{PKG_NAME}.gemspec", 'w') do |f|
|
62
|
+
f.puts spec_src
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
spec = eval(spec_src)
|
67
|
+
Rake::GemPackageTask.new(spec) do |pkg|
|
68
|
+
pkg.need_tar = true
|
69
|
+
pkg.package_files += PKG_FILES
|
70
|
+
end
|
84
71
|
end
|
85
72
|
|
86
73
|
desc m = "Writing version information for #{PKG_VERSION}"
|
@@ -100,6 +87,8 @@ EOT
|
|
100
87
|
end
|
101
88
|
end
|
102
89
|
|
90
|
+
desc "Default"
|
91
|
+
task :default => [ :version, :gemspec, :test ]
|
92
|
+
|
103
93
|
desc "Prepare a release"
|
104
|
-
task :release => [:clean, :version, :package]
|
105
|
-
# vim: set et sw=2 ts=2:
|
94
|
+
task :release => [ :clean, :version, :gemspec, :package ]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
data/doc-main.txt
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
== DSLKit - Building Blocks for Domain Specific Languages (DSL)
|
2
|
+
|
3
|
+
=== Description
|
4
|
+
|
5
|
+
This library contains recurring patterns, that are useful in the creation of
|
6
|
+
internal Domain Specific Languages (DSL) in Ruby.
|
7
|
+
|
8
|
+
=== Author
|
9
|
+
|
10
|
+
Florian Frank <mailto:flori@ping.de>
|
11
|
+
|
12
|
+
=== License
|
13
|
+
|
14
|
+
This is free software; you can redistribute it and/or modify it under the
|
15
|
+
terms of the GNU General Public License Version 2 as published by the Free
|
16
|
+
Software Foundation: www.gnu.org/copyleft/gpl.html
|
17
|
+
|
18
|
+
=== Download
|
19
|
+
|
20
|
+
The latest version of this library can be downloaded at
|
21
|
+
|
22
|
+
* http://rubyforge.org/frs?group_id=2248
|
23
|
+
|
24
|
+
Online Documentation should be located at
|
25
|
+
|
26
|
+
* http://dslkit.rubyforge.org
|
27
|
+
|
28
|
+
=== Examples
|
29
|
+
|
30
|
+
Some nice examples on how to use dslkit are located in the examples/
|
31
|
+
subdirectory of this library.
|
data/dslkit.gemspec
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
Gem::Specification.new do |s|
|
3
|
+
s.name = 'dslkit'
|
4
|
+
s.version = '0.2.6'
|
5
|
+
s.summary = 'Kit for building DSLs in Ruby'
|
6
|
+
s.description = 'This library contains recurring patterns, that are useful in the creation of internal Domain Specific Languages (DSL) in Ruby.'
|
7
|
+
|
8
|
+
s.files = ["CHANGES", "COPYING", "Rakefile", "TODO", "VERSION", "dslkit.gemspec", "examples", "examples/let.rb", "examples/mail.rb", "examples/mm.rb", "examples/multiply.reg", "examples/null_pattern.rb", "examples/recipe.rb", "examples/recipe2.rb", "examples/recipe_common.rb", "examples/subtract.reg", "install.rb", "lib", "lib/dslkit", "lib/dslkit.rb", "lib/dslkit/polite.rb", "lib/dslkit/rude.rb", "lib/dslkit/version.rb", "tests", "tests/runner.rb", "tests/test_common.rb", "tests/test_polite.rb", "tests/test_rude.rb"]
|
9
|
+
|
10
|
+
s.require_path = 'lib'
|
11
|
+
|
12
|
+
s.has_rdoc = true
|
13
|
+
s.rdoc_options << '--main' << 'doc-main.txt'
|
14
|
+
s.extra_rdoc_files << 'doc-main.txt'
|
15
|
+
s.test_files << 'tests/runner.rb'
|
16
|
+
|
17
|
+
s.author = "Florian Frank"
|
18
|
+
s.email = "flori@ping.de"
|
19
|
+
s.homepage = "http://dslkit.rubyforge.org"
|
20
|
+
s.rubyforge_project = "dslkit"
|
21
|
+
end
|
data/examples/let.rb
CHANGED
@@ -30,7 +30,7 @@ class LetScope
|
|
30
30
|
ls.instance_eval(&block)
|
31
31
|
end
|
32
32
|
|
33
|
-
#
|
33
|
+
# Including this module into your current namespace defines the let method.
|
34
34
|
module Include
|
35
35
|
include DSLKit::BlockSelf
|
36
36
|
|
data/install.rb
CHANGED
data/lib/dslkit/polite.rb
CHANGED
@@ -1,40 +1,6 @@
|
|
1
|
-
# :stopdoc:
|
2
1
|
require 'thread'
|
3
2
|
require 'sync'
|
4
|
-
|
5
|
-
|
6
|
-
# = dslkit - Building Blocks for Domain Specific Languages (DSL)
|
7
|
-
#
|
8
|
-
# == Description
|
9
|
-
#
|
10
|
-
# This library contains recurring patterns, that are useful in the creation of
|
11
|
-
# internal Domain Specific Languages (DSL) in Ruby.
|
12
|
-
#
|
13
|
-
# == Author
|
14
|
-
#
|
15
|
-
# Florian Frank <mailto:flori@ping.de>
|
16
|
-
#
|
17
|
-
# == License
|
18
|
-
#
|
19
|
-
# This is free software; you can redistribute it and/or modify it under the
|
20
|
-
# terms of the GNU General Public License Version 2 as published by the Free
|
21
|
-
# Software Foundation: www.gnu.org/copyleft/gpl.html
|
22
|
-
#
|
23
|
-
# == Download
|
24
|
-
#
|
25
|
-
# The latest version of this library can be downloaded at
|
26
|
-
#
|
27
|
-
# * http://rubyforge.org/frs?group_id=2248
|
28
|
-
#
|
29
|
-
# Online Documentation should be located at
|
30
|
-
#
|
31
|
-
# * http://dslkit.rubyforge.org
|
32
|
-
#
|
33
|
-
# == Examples
|
34
|
-
#
|
35
|
-
# Some nice examples on how to use dslkit are located in the examples/
|
36
|
-
# subdirectory of this library.
|
37
|
-
#
|
3
|
+
|
38
4
|
module DSLKit
|
39
5
|
require 'dslkit/version'
|
40
6
|
|
data/lib/dslkit/version.rb
CHANGED
data/tests/runner.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dslkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Frank
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-07-23 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -19,41 +19,42 @@ executables: []
|
|
19
19
|
|
20
20
|
extensions: []
|
21
21
|
|
22
|
-
extra_rdoc_files:
|
23
|
-
|
22
|
+
extra_rdoc_files:
|
23
|
+
- doc-main.txt
|
24
24
|
files:
|
25
|
-
- install.rb
|
26
|
-
- lib
|
27
|
-
- lib/dslkit
|
28
|
-
- lib/dslkit/rude.rb
|
29
|
-
- lib/dslkit/polite.rb
|
30
|
-
- lib/dslkit/version.rb
|
31
|
-
- lib/dslkit.rb
|
32
25
|
- CHANGES
|
26
|
+
- COPYING
|
27
|
+
- Rakefile
|
33
28
|
- TODO
|
34
29
|
- VERSION
|
35
|
-
-
|
36
|
-
-
|
37
|
-
-
|
38
|
-
- tests/test_polite.rb
|
39
|
-
- tests/test_rude.rb
|
40
|
-
- Rakefile
|
41
|
-
- GPL
|
42
|
-
- examples
|
43
|
-
- examples/recipe.rb
|
30
|
+
- dslkit.gemspec
|
31
|
+
- examples/let.rb
|
32
|
+
- examples/mail.rb
|
44
33
|
- examples/mm.rb
|
45
|
-
- examples/
|
46
|
-
- examples/subtract.reg
|
34
|
+
- examples/multiply.reg
|
47
35
|
- examples/null_pattern.rb
|
36
|
+
- examples/recipe.rb
|
37
|
+
- examples/recipe2.rb
|
48
38
|
- examples/recipe_common.rb
|
49
|
-
- examples/
|
50
|
-
-
|
51
|
-
-
|
39
|
+
- examples/subtract.reg
|
40
|
+
- install.rb
|
41
|
+
- lib/dslkit.rb
|
42
|
+
- lib/dslkit/polite.rb
|
43
|
+
- lib/dslkit/rude.rb
|
44
|
+
- lib/dslkit/version.rb
|
45
|
+
- tests/runner.rb
|
46
|
+
- tests/test_common.rb
|
47
|
+
- tests/test_polite.rb
|
48
|
+
- tests/test_rude.rb
|
49
|
+
- doc-main.txt
|
52
50
|
has_rdoc: true
|
53
51
|
homepage: http://dslkit.rubyforge.org
|
54
|
-
|
55
|
-
rdoc_options: []
|
52
|
+
licenses: []
|
56
53
|
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options:
|
56
|
+
- --main
|
57
|
+
- doc-main.txt
|
57
58
|
require_paths:
|
58
59
|
- lib
|
59
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -71,9 +72,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
72
|
requirements: []
|
72
73
|
|
73
74
|
rubyforge_project: dslkit
|
74
|
-
rubygems_version: 1.3.
|
75
|
+
rubygems_version: 1.3.2
|
75
76
|
signing_key:
|
76
|
-
specification_version:
|
77
|
+
specification_version: 3
|
77
78
|
summary: Kit for building DSLs in Ruby
|
78
79
|
test_files:
|
79
80
|
- tests/runner.rb
|