anise 0.5.0 → 0.6.0
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/.ruby +2 -2
- data/HISTORY.rdoc +38 -6
- data/lib/anise.rb +4 -4
- data/lib/anise.yml +2 -2
- data/lib/anise/annotation.rb +3 -4
- data/lib/anise/annotator.rb +4 -5
- data/lib/anise/attribute.rb +4 -5
- metadata +6 -7
- data/VERSION +0 -1
data/.ruby
CHANGED
data/HISTORY.rdoc
CHANGED
@@ -1,5 +1,32 @@
|
|
1
1
|
= RELEASE HISTORY
|
2
2
|
|
3
|
+
== 0.6.0 / 2011-05-16
|
4
|
+
|
5
|
+
This release fixes an bug in which append_features cant be called b/c
|
6
|
+
it is a private method. This release also renames `ClassMethods`
|
7
|
+
modules to `Aid`.
|
8
|
+
|
9
|
+
Changes:
|
10
|
+
|
11
|
+
* Fixed private method call to #append_features.
|
12
|
+
* Rename ClassMethods to Aid.
|
13
|
+
|
14
|
+
|
15
|
+
== 0.5.0 / 2011-04-30
|
16
|
+
|
17
|
+
The primary changes in this release are behind the scenes implementation
|
18
|
+
improvements. The most significant of which is the simplification of
|
19
|
+
the #append_features code. In addition, annotators have been enhanced
|
20
|
+
to assign a single argument if one, and an array of arguments if there
|
21
|
+
are more than one. They can also override the callback altogether.
|
22
|
+
|
23
|
+
Changes:
|
24
|
+
|
25
|
+
* Simplified #append_features code.
|
26
|
+
* Use ClassMethod submodules.
|
27
|
+
* Annotators differentiate one vs. multiple arguments.
|
28
|
+
* Annotators can override method_added callback.
|
29
|
+
|
3
30
|
|
4
31
|
== 0.4.0 / 2009-05-28
|
5
32
|
|
@@ -10,28 +37,33 @@ to allow for the creation of "active" annotations.
|
|
10
37
|
|
11
38
|
Changes:
|
12
39
|
|
13
|
-
*
|
14
|
-
|
15
|
-
* Added annotation_added callback
|
40
|
+
* Added annotation_added callback.
|
16
41
|
|
17
42
|
|
18
43
|
== 0.2.1 / 2008-10-31
|
19
44
|
|
45
|
+
Project reorganization release --mostly some file names have changed.
|
46
|
+
|
20
47
|
Changes:
|
21
48
|
|
22
|
-
|
49
|
+
* Renamed some lib files.
|
23
50
|
|
24
51
|
|
25
52
|
== 0.2.0 / 2008-10-28
|
26
53
|
|
54
|
+
By making Annotations a module, it can not be used in only the clases
|
55
|
+
it is needed.
|
56
|
+
|
27
57
|
Changes:
|
28
58
|
|
29
|
-
|
59
|
+
* Annotations is a module rather than a core extenstion to Module.
|
30
60
|
|
31
61
|
|
32
62
|
== 0.1.1 / 2008-10-17
|
33
63
|
|
64
|
+
Ahoy, mate! This is the first release of Anise.
|
65
|
+
|
34
66
|
Changes:
|
35
67
|
|
36
|
-
|
68
|
+
* initial release
|
37
69
|
|
data/lib/anise.rb
CHANGED
@@ -28,11 +28,11 @@ require 'anise/annotator'
|
|
28
28
|
module Anise
|
29
29
|
extend self
|
30
30
|
|
31
|
-
def
|
31
|
+
def included(base)
|
32
32
|
#super(base)
|
33
|
-
|
34
|
-
|
35
|
-
base.extend Anise #ClassMethods
|
33
|
+
base.send(:include, Attribute)
|
34
|
+
base.send(:include, Annotator)
|
35
|
+
#base.extend Anise #ClassMethods
|
36
36
|
end
|
37
37
|
|
38
38
|
#module ClassMethods
|
data/lib/anise.yml
CHANGED
data/lib/anise/annotation.rb
CHANGED
@@ -69,14 +69,13 @@ module Anise
|
|
69
69
|
|
70
70
|
#
|
71
71
|
|
72
|
-
def self.
|
73
|
-
base.extend
|
74
|
-
super(base)
|
72
|
+
def self.included(base)
|
73
|
+
base.extend Aid
|
75
74
|
end
|
76
75
|
|
77
76
|
# Anise::Annotations Domain Language.
|
78
77
|
|
79
|
-
module
|
78
|
+
module Aid
|
80
79
|
|
81
80
|
# Lookup an annotation. Unlike +annotations[ref]+
|
82
81
|
# this provides a complete annotation <i>heritage</i>,
|
data/lib/anise/annotator.rb
CHANGED
@@ -38,13 +38,12 @@ module Anise
|
|
38
38
|
module Annotator
|
39
39
|
|
40
40
|
#
|
41
|
-
def self.
|
42
|
-
|
43
|
-
base.extend
|
44
|
-
super(base)
|
41
|
+
def self.included(base)
|
42
|
+
base.send(:include, Annotation) #unless base.is_a?(Annotation)
|
43
|
+
base.extend Aid
|
45
44
|
end
|
46
45
|
|
47
|
-
module
|
46
|
+
module Aid
|
48
47
|
|
49
48
|
# Define an annotator.
|
50
49
|
def annotator(name, &block)
|
data/lib/anise/attribute.rb
CHANGED
@@ -27,10 +27,9 @@ module Anise
|
|
27
27
|
module Attribute
|
28
28
|
|
29
29
|
#
|
30
|
-
def self.
|
31
|
-
|
32
|
-
|
33
|
-
base.extend ClassMethods #Attribute
|
30
|
+
def self.included(base)
|
31
|
+
base.send(:include, Annotation) #.append_features(base)
|
32
|
+
base.extend Aid
|
34
33
|
|
35
34
|
#inheritor :instance_attributes, [], :|
|
36
35
|
base_class = (class << base; self; end)
|
@@ -76,7 +75,7 @@ module Anise
|
|
76
75
|
end
|
77
76
|
|
78
77
|
# Anise::Attributes Doman Language.
|
79
|
-
module
|
78
|
+
module Aid
|
80
79
|
|
81
80
|
# Instance attributes, including inherited attributes.
|
82
81
|
def instance_attributes
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 6
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.6.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thomas Sawyer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-05-16 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
type: :development
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: redline
|
37
37
|
prerelease: false
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
@@ -80,10 +80,9 @@ files:
|
|
80
80
|
- test/test_attribute.rb
|
81
81
|
- test/test_attribute_toplevel.rb
|
82
82
|
- HISTORY.rdoc
|
83
|
-
- APACHE2.txt
|
84
83
|
- README.rdoc
|
85
|
-
- VERSION
|
86
84
|
- COPYING.rdoc
|
85
|
+
- APACHE2.txt
|
87
86
|
has_rdoc: true
|
88
87
|
homepage: http://rubyworks.github.com/anise
|
89
88
|
licenses:
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.5.0
|