glue 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ProjectInfo +57 -0
- data/README +1 -1
- data/Rakefile +2 -2
- data/doc/RELEASES +16 -0
- data/lib/glue.rb +9 -1
- data/lib/glue/aspects.rb +30 -28
- data/lib/glue/bit.rb +53 -0
- data/lib/glue/configuration.rb +1 -1
- data/lib/glue/fixture.rb +1 -1
- data/lib/glue/flexob.rb +14 -2
- data/lib/glue/helper.rb +1 -0
- data/lib/glue/logger.rb +11 -11
- data/lib/glue/mailer/incoming.rb +1 -3
- data/lib/glue/mailer/outgoing.rb +2 -4
- data/lib/glue/on_included.rb +48 -0
- data/lib/glue/property.rb +193 -400
- data/lib/glue/template.rb +3 -3
- data/lib/glue/uri.rb +1 -1
- data/lib/glue/validation.rb +28 -23
- data/test/glue/tc_aspects.rb +2 -2
- data/test/glue/tc_logger.rb +2 -0
- data/test/glue/tc_property.rb +26 -10
- data/test/glue/tc_property_mixins.rb +15 -15
- data/test/glue/tc_property_type_checking.rb +11 -5
- data/test/glue/tc_validation.rb +1 -1
- metadata +65 -73
- data/lib/glue/metadata.rb +0 -60
- data/lib/glue/property.rb.old +0 -438
- data/test/glue/tc_metadata.rb +0 -33
data/test/glue/tc_metadata.rb
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
__END__
|
2
|
-
|
3
|
-
$:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib')
|
4
|
-
|
5
|
-
require 'yaml'
|
6
|
-
require 'test/unit'
|
7
|
-
require 'glue/metadata'
|
8
|
-
|
9
|
-
class Dummy
|
10
|
-
include MetadataMixin
|
11
|
-
|
12
|
-
attr_accessor :name
|
13
|
-
ann :name, :class => String
|
14
|
-
ann :properties => :name
|
15
|
-
|
16
|
-
def run
|
17
|
-
puts 'hello'
|
18
|
-
end
|
19
|
-
ann :run, :doc => 'documentation'
|
20
|
-
ann :order => 'oid DESC'
|
21
|
-
end
|
22
|
-
|
23
|
-
class TestMetadata < Test::Unit::TestCase # :nodoc: all
|
24
|
-
|
25
|
-
def test_all
|
26
|
-
p Dummy.metadata.self.properties
|
27
|
-
assert_equal 'documentation', Dummy.metadata.run.doc
|
28
|
-
assert_equal 'oid DESC', Dummy.metadata.self.order
|
29
|
-
assert_equal 1, Dummy.metadata.self.properties.size
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
33
|
-
|