dslkit 0.2.4 → 0.2.5
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 -1
- data/VERSION +1 -1
- data/examples/let.rb +0 -0
- data/examples/mail.rb +0 -0
- data/examples/mm.rb +0 -0
- data/examples/null_pattern.rb +0 -0
- data/examples/recipe.rb +0 -0
- data/examples/recipe2.rb +0 -0
- data/install.rb +0 -0
- data/lib/dslkit/polite.rb +3 -3
- data/lib/dslkit/version.rb +1 -1
- data/tests/runner.rb +0 -0
- data/tests/test_common.rb +1 -0
- data/tests/test_polite.rb +3 -1
- data/tests/test_rude.rb +3 -1
- metadata +3 -3
data/CHANGES
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/examples/let.rb
CHANGED
File without changes
|
data/examples/mail.rb
CHANGED
File without changes
|
data/examples/mm.rb
CHANGED
File without changes
|
data/examples/null_pattern.rb
CHANGED
File without changes
|
data/examples/recipe.rb
CHANGED
File without changes
|
data/examples/recipe2.rb
CHANGED
File without changes
|
data/install.rb
CHANGED
File without changes
|
data/lib/dslkit/polite.rb
CHANGED
@@ -276,7 +276,7 @@ module DSLKit
|
|
276
276
|
# Create a constant named _name_, that refers to value _value_. _value is
|
277
277
|
# frozen, if this is possible. If you want to modify/exchange a value use
|
278
278
|
# DSLAccessor#dsl_reader/DSLAccessor#dsl_accessor instead.
|
279
|
-
def constant(name, value)
|
279
|
+
def constant(name, value = name)
|
280
280
|
value = value.freeze rescue value
|
281
281
|
define_method(name) { value }
|
282
282
|
end
|
@@ -289,8 +289,8 @@ module DSLKit
|
|
289
289
|
# class CoffeeMaker
|
290
290
|
# extend DSLKit::Constant
|
291
291
|
#
|
292
|
-
# constant :on
|
293
|
-
# constant :off
|
292
|
+
# constant :on
|
293
|
+
# constant :off
|
294
294
|
#
|
295
295
|
# extend DSLKit::DSLAccessor
|
296
296
|
#
|
data/lib/dslkit/version.rb
CHANGED
data/tests/runner.rb
CHANGED
File without changes
|
data/tests/test_common.rb
CHANGED
data/tests/test_polite.rb
CHANGED
data/tests/test_rude.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.5
|
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
|
+
date: 2008-12-01 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements: []
|
72
72
|
|
73
73
|
rubyforge_project: dslkit
|
74
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 1.3.1
|
75
75
|
signing_key:
|
76
76
|
specification_version: 2
|
77
77
|
summary: Kit for building DSLs in Ruby
|