caesars 0.6.8 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +8 -1
- data/README.rdoc +4 -1
- data/caesars.gemspec +1 -1
- data/lib/caesars.rb +6 -5
- metadata +2 -2
data/CHANGES.txt
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
CAESARS -- CHANGES
|
2
2
|
|
3
3
|
|
4
|
+
#### 0.7.0 (2009-06-03) ###############################
|
5
|
+
|
6
|
+
* CHANGE: Post-processing for Caesars::Config classes now occurs
|
7
|
+
after all config files have been loaded and parsed. This may break
|
8
|
+
some sub-classes which is one of the reasons I incremented the
|
9
|
+
MINOR version.
|
10
|
+
|
4
11
|
#### 0.6.8 (2009-06-01) ###############################
|
5
12
|
|
6
13
|
* ADDED: forced_array elements now store blocks as Procs (they were previously ignored)
|
@@ -14,7 +21,7 @@ CAESARS -- CHANGES
|
|
14
21
|
#### 0.6.6 (2009-05-12) ###############################
|
15
22
|
|
16
23
|
* CHANGE: Renamed OrderedHash to Caesars::OrderedHash to eliminate change of namespace conflicts
|
17
|
-
* CHANGE: Caesars::VERSION is now a String
|
24
|
+
* CHANGE: Caesars::VERSION is now a String and includes the TINY (0.6.6)
|
18
25
|
* FIXED: OrderedHash.merge was making an inappropriate call to dup
|
19
26
|
|
20
27
|
|
data/README.rdoc
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
-
= Caesars - v0.
|
1
|
+
= Caesars - v0.7
|
2
2
|
|
3
3
|
A simple class for rapid DSL prototyping in Ruby.
|
4
4
|
|
5
|
+
NOTE: Post-processing of Caesars::Config subclasses changed in 0.7. In 0.6 and earlier, the post-processing hook (Caesars::Config#postprocess) was called after every file was loaded. In 0.7 it's called after all files have been loaded. This could break some highly dependent code in your subclasses of Caesars::Config so I apologize but I believe this is the right thing to do. If you are not satisfied with that apology, prepare yourself a caesar or bloody mary or any other beverage and send email me with the details!
|
6
|
+
|
7
|
+
|
5
8
|
== Installation
|
6
9
|
|
7
10
|
One of:
|
data/caesars.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
@spec = Gem::Specification.new do |s|
|
2
2
|
s.name = "caesars"
|
3
3
|
s.rubyforge_project = "caesars"
|
4
|
-
s.version = "0.
|
4
|
+
s.version = "0.7.0"
|
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=
|
7
7
|
|
data/lib/caesars.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
class Caesars
|
11
11
|
require 'caesars/orderedhash'
|
12
12
|
|
13
|
-
VERSION = "0.
|
13
|
+
VERSION = "0.7.0"
|
14
14
|
@@debug = false
|
15
15
|
@@chilled = {}
|
16
16
|
@@forced_array = {}
|
@@ -670,14 +670,15 @@ class Caesars::Config
|
|
670
670
|
dsl = File.read path
|
671
671
|
# eval so the DSL code can be executed in this namespace.
|
672
672
|
eval dsl, binding, __FILE__, __LINE__
|
673
|
-
# Execute Caesars::Config.postprocesses every time a file is loaded
|
674
|
-
postprocess # Can raise ForceRefresh
|
675
673
|
end
|
676
|
-
|
674
|
+
|
675
|
+
# Execute Caesars::Config.postprocesses after all files are loaded.
|
676
|
+
postprocess # Can raise ForceRefresh
|
677
|
+
|
677
678
|
rescue Caesars::Config::ForceRefresh => ex
|
678
679
|
@forced_refreshes += 1
|
679
680
|
if @forced_refreshes > 3
|
680
|
-
STDERR.puts "Too many forced
|
681
|
+
STDERR.puts "Too many forced refreshes (#{@forced_refreshes})"
|
681
682
|
exit 9
|
682
683
|
end
|
683
684
|
STDERR.puts ex.message if @verbose || Caesars.debug?
|
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
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delano Mandelbaum
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-06-
|
12
|
+
date: 2009-06-03 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|