dslkit 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ 2009-07-20 (0.2.6)
2
+ * Build gemspec file.
3
+ * Some cleanup.
1
4
  2008-12-01 (0.2.5)
2
5
  * Added shorter call to constant method.
3
6
  2008-02-22 (0.2.4)
File without changes
data/Rakefile CHANGED
@@ -1,11 +1,15 @@
1
- require 'rake/gempackagetask'
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
- desc "Clean created files"
31
- task :clean do
32
- rm_rf %w[doc coverage]
33
- end
34
-
35
- spec = Gem::Specification.new do |s|
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
- #### Dependencies and requirements.
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
- #### Load-time details: library and application (you will need one or both).
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
- #s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
67
- #s.rdoc_options <<
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://dslkit.rubyforge.org"
78
- s.rubyforge_project = "dslkit"
54
+ s.homepage = "http://#{PKG_NAME}.rubyforge.org"
55
+ s.rubyforge_project = "#{PKG_NAME}"
79
56
  end
57
+ GEM
80
58
 
81
- Rake::GemPackageTask.new(spec) do |pkg|
82
- pkg.need_tar = true
83
- pkg.package_files += PKG_FILES
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.5
1
+ 0.2.6
@@ -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.
@@ -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
@@ -30,7 +30,7 @@ class LetScope
30
30
  ls.instance_eval(&block)
31
31
  end
32
32
 
33
- # Inlcuding this module into your current namespace defines the let method.
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
@@ -15,4 +15,3 @@ cd src do
15
15
  end
16
16
  end
17
17
  install File.join('lib', 'dslkit.rb'), File.join(CONFIG["sitelibdir"], 'dslkit.rb')
18
- # vim: set et sw=2 ts=2:
@@ -1,40 +1,6 @@
1
- # :stopdoc:
2
1
  require 'thread'
3
2
  require 'sync'
4
- # :startdoc:
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
 
@@ -1,6 +1,6 @@
1
1
  module DSLKit
2
2
  # DSLKit version
3
- VERSION = '0.2.5'
3
+ VERSION = '0.2.6'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -9,4 +9,3 @@ Process.waitpid
9
9
  warn "Test rude."
10
10
  fork { load 'test_rude.rb' }
11
11
  Process.waitpid
12
- # vim: set et sw=2 ts=2:
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.5
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: 2008-12-01 00:00:00 +01:00
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
- - tests
36
- - tests/test_common.rb
37
- - tests/runner.rb
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/recipe2.rb
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/let.rb
50
- - examples/multiply.reg
51
- - examples/mail.rb
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
- post_install_message:
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.1
75
+ rubygems_version: 1.3.2
75
76
  signing_key:
76
- specification_version: 2
77
+ specification_version: 3
77
78
  summary: Kit for building DSLs in Ruby
78
79
  test_files:
79
80
  - tests/runner.rb