caesars 0.4.0 → 0.4.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/CHANGES.txt +5 -0
- data/README.rdoc +1 -0
- data/bin/example +5 -5
- data/bin/party.conf +16 -0
- data/caesars.gemspec +2 -1
- data/lib/caesars.rb +3 -3
- metadata +2 -1
data/CHANGES.txt
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
CAESAR -- CHANGES
|
2
2
|
|
3
3
|
|
4
|
+
#### 0.4.1 (2009-03-05) ###############################
|
5
|
+
|
6
|
+
* FIX: missing bin/party.conf in gem release
|
7
|
+
|
8
|
+
|
4
9
|
#### 0.4.0 (2009-03-05) ###############################
|
5
10
|
|
6
11
|
* CHANGE: Removed bloody method. We now parse blocks immediately.
|
data/README.rdoc
CHANGED
data/bin/example
CHANGED
@@ -16,7 +16,7 @@ require 'caesars'
|
|
16
16
|
# EXAMPLE 1 -- Flavour
|
17
17
|
#
|
18
18
|
|
19
|
-
class Flavour < Caesars
|
19
|
+
class Flavour < Caesars #:nodoc: all
|
20
20
|
end
|
21
21
|
|
22
22
|
extend Flavour::DSL # Bring the DSL into the current namespace.
|
@@ -39,7 +39,7 @@ p @flavour.spicy # => true
|
|
39
39
|
# EXAMPLE 2 -- Staff
|
40
40
|
#
|
41
41
|
|
42
|
-
class Staff < Caesars
|
42
|
+
class Staff < Caesars #:nodoc: all
|
43
43
|
|
44
44
|
chill :calculate # Delay execution of the blocks for the calculate
|
45
45
|
# attribute. They will be stored as Procs.
|
@@ -108,13 +108,13 @@ p @staff_fte.splashdown.keys
|
|
108
108
|
# EXAMPLE 3 -- External Config file
|
109
109
|
#
|
110
110
|
|
111
|
-
class Food < Caesars
|
111
|
+
class Food < Caesars #:nodoc: all
|
112
112
|
chill :order
|
113
113
|
end
|
114
|
-
class Drink < Caesars
|
114
|
+
class Drink < Caesars #:nodoc: all
|
115
115
|
end
|
116
116
|
|
117
|
-
class PartyConfig < Caesars::Config
|
117
|
+
class PartyConfig < Caesars::Config #:nodoc: all
|
118
118
|
dsl Food::DSL
|
119
119
|
dsl Drink::DSL
|
120
120
|
end
|
data/bin/party.conf
ADDED
data/caesars.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
@spec = Gem::Specification.new do |s|
|
2
2
|
s.name = %q{caesars}
|
3
|
-
s.version = "0.4.
|
3
|
+
s.version = "0.4.1"
|
4
4
|
s.date = %q{2009-03-04}
|
5
5
|
s.specification_version = 1 if s.respond_to? :specification_version=
|
6
6
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
@@ -19,6 +19,7 @@
|
|
19
19
|
Rakefile
|
20
20
|
bin/example
|
21
21
|
bin/example.bat
|
22
|
+
bin/party.conf
|
22
23
|
caesars.gemspec
|
23
24
|
lib/caesars.rb
|
24
25
|
)
|
data/lib/caesars.rb
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
# See bin/example
|
8
8
|
#
|
9
9
|
class Caesars
|
10
|
-
VERSION = "0.4.
|
10
|
+
VERSION = "0.4.1"
|
11
11
|
# A subclass of ::Hash that provides method names for hash parameters.
|
12
12
|
# It's like a lightweight OpenStruct.
|
13
13
|
# ch = Caesars::Hash[:tabasco => :lots!]
|
@@ -24,14 +24,14 @@ class Caesars
|
|
24
24
|
|
25
25
|
@@caesars_chilled = []
|
26
26
|
|
27
|
-
|
28
|
-
# +name+ is .
|
27
|
+
|
29
28
|
def initialize(name=nil)
|
30
29
|
@caesars_name = name if name
|
31
30
|
@caesars_properties = Caesars::Hash.new
|
32
31
|
@caesars_pointer = @caesars_properties
|
33
32
|
end
|
34
33
|
|
34
|
+
# Returns an array of the available
|
35
35
|
def keys
|
36
36
|
@caesars_properties.keys
|
37
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caesars
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delano Mandelbaum
|
@@ -30,6 +30,7 @@ files:
|
|
30
30
|
- Rakefile
|
31
31
|
- bin/example
|
32
32
|
- bin/example.bat
|
33
|
+
- bin/party.conf
|
33
34
|
- caesars.gemspec
|
34
35
|
- lib/caesars.rb
|
35
36
|
has_rdoc: true
|