loquacious 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/Rakefile +1 -2
- data/lib/loquacious.rb +2 -2
- data/lib/loquacious/configuration.rb +2 -4
- data/version.txt +1 -1
- metadata +9 -10
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ rescue LoadError
|
|
5
5
|
abort '### please install the "bones" gem ###'
|
6
6
|
end
|
7
7
|
|
8
|
-
task :default => 'spec:
|
8
|
+
task :default => 'spec:run'
|
9
9
|
task 'gem:release' => 'spec:run'
|
10
10
|
|
11
11
|
Bones {
|
@@ -16,7 +16,6 @@ Bones {
|
|
16
16
|
readme_file 'README.rdoc'
|
17
17
|
ignore_file '.gitignore'
|
18
18
|
spec.opts << '--color'
|
19
|
-
rubyforge.name 'codeforpeople'
|
20
19
|
use_gmail
|
21
20
|
|
22
21
|
depend_on 'rspec', :development => true
|
data/lib/loquacious.rb
CHANGED
@@ -5,8 +5,8 @@ module Loquacious
|
|
5
5
|
LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
|
6
6
|
PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
|
7
7
|
KEEPERS = (RUBY_PLATFORM == 'java') ?
|
8
|
-
%r/^__|^object_id$|^initialize$|^singleton_method_added$|^\w+\?$/ :
|
9
|
-
%r/^__|^object_id$|^initialize$|^\w+\?$/
|
8
|
+
%r/^__|^object_id$|^initialize$|^instance_eval$|^singleton_method_added$|^\w+\?$/ :
|
9
|
+
%r/^__|^object_id$|^initialize$|^instance_eval$|^\w+\?$/
|
10
10
|
# :startdoc:
|
11
11
|
|
12
12
|
class << self
|
@@ -177,13 +177,11 @@ module Loquacious
|
|
177
177
|
end
|
178
178
|
|
179
179
|
|
180
|
-
# Implementation of a
|
180
|
+
# Implementation of a domain specific language for creating configuration
|
181
181
|
# objects. Blocks of code are evaluted by the DSL which returns a new
|
182
182
|
# configuration object.
|
183
183
|
#
|
184
184
|
class DSL
|
185
|
-
alias :__instance_eval :instance_eval
|
186
|
-
|
187
185
|
instance_methods(true).each do |m|
|
188
186
|
next if m[::Loquacious::KEEPERS]
|
189
187
|
undef_method m
|
@@ -219,7 +217,7 @@ module Loquacious
|
|
219
217
|
def initialize( config = nil, &block )
|
220
218
|
@description = nil
|
221
219
|
@__config = config || Configuration.new
|
222
|
-
|
220
|
+
instance_eval(&block)
|
223
221
|
end
|
224
222
|
|
225
223
|
# Dynamically adds the given _method_ to the configuration as an
|
data/version.txt
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.1
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: loquacious
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 1.7.
|
9
|
+
- 1
|
10
|
+
version: 1.7.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tim Pease
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-02-11 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +26,12 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 25
|
30
30
|
segments:
|
31
31
|
- 1
|
32
32
|
- 3
|
33
|
-
-
|
34
|
-
version: 1.3.
|
33
|
+
- 1
|
34
|
+
version: 1.3.1
|
35
35
|
type: :development
|
36
36
|
version_requirements: *id001
|
37
37
|
description: |-
|
@@ -86,7 +86,6 @@ extensions: []
|
|
86
86
|
extra_rdoc_files:
|
87
87
|
- History.txt
|
88
88
|
- README.rdoc
|
89
|
-
- version.txt
|
90
89
|
files:
|
91
90
|
- History.txt
|
92
91
|
- README.rdoc
|
@@ -138,10 +137,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
137
|
version: "0"
|
139
138
|
requirements: []
|
140
139
|
|
141
|
-
rubyforge_project:
|
140
|
+
rubyforge_project: loquacious
|
142
141
|
rubygems_version: 1.3.7
|
143
142
|
signing_key:
|
144
143
|
specification_version: 3
|
145
|
-
summary: Descriptive configuration files for Ruby written in Ruby
|
144
|
+
summary: Descriptive configuration files for Ruby written in Ruby.
|
146
145
|
test_files: []
|
147
146
|
|