rdf 0.2.0 → 0.2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rdf/util/aliasing.rb +15 -3
- data/lib/rdf/version.rb +1 -1
- metadata +22 -21
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.0
|
1
|
+
0.2.0.1
|
data/lib/rdf/util/aliasing.rb
CHANGED
@@ -41,9 +41,21 @@ module RDF; module Util
|
|
41
41
|
# @see http://ruby-doc.org/core/classes/Module.html#M001653
|
42
42
|
def alias_method(new_name, old_name)
|
43
43
|
new_name, old_name = new_name.to_sym, old_name.to_sym
|
44
|
-
|
45
|
-
|
46
|
-
|
44
|
+
|
45
|
+
class_eval(<<-EOF)
|
46
|
+
def #{new_name}(*args, &block)
|
47
|
+
#{old_name}(*args, &block)
|
48
|
+
end
|
49
|
+
EOF
|
50
|
+
|
51
|
+
# NOTE: the following eval-less (and hence slightly less evil)
|
52
|
+
# implementation only works on Ruby 1.8.7+ due to the |&block|
|
53
|
+
# syntax that was introduced in 1.9 and then backported to 1.8.7;
|
54
|
+
# it is a syntax error in earlier versions of Ruby:
|
55
|
+
#self.__send__(:define_method, new_name) do |*args, &block|
|
56
|
+
# __send__(old_name, *args, &block)
|
57
|
+
#end
|
58
|
+
|
47
59
|
return self
|
48
60
|
end
|
49
61
|
end # module LateBound
|
data/lib/rdf/version.rb
CHANGED
metadata
CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.2.0.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Arto Bendiken
|
@@ -15,67 +16,67 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2010-06-
|
19
|
+
date: 2010-06-19 00:00:00 +02:00
|
19
20
|
default_executable: rdf
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
23
|
+
name: addressable
|
23
24
|
prerelease: false
|
24
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
26
|
requirements:
|
26
27
|
- - ~>
|
27
28
|
- !ruby/object:Gem::Version
|
28
29
|
segments:
|
29
|
-
- 0
|
30
30
|
- 2
|
31
|
-
-
|
32
|
-
|
33
|
-
|
31
|
+
- 1
|
32
|
+
- 2
|
33
|
+
version: 2.1.2
|
34
|
+
type: :runtime
|
34
35
|
version_requirements: *id001
|
35
36
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
37
|
+
name: yard
|
37
38
|
prerelease: false
|
38
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
40
|
requirements:
|
40
41
|
- - ">="
|
41
42
|
- !ruby/object:Gem::Version
|
42
43
|
segments:
|
43
|
-
- 1
|
44
|
-
- 3
|
45
44
|
- 0
|
46
|
-
|
45
|
+
- 5
|
46
|
+
- 6
|
47
|
+
version: 0.5.6
|
47
48
|
type: :development
|
48
49
|
version_requirements: *id002
|
49
50
|
- !ruby/object:Gem::Dependency
|
50
|
-
name:
|
51
|
+
name: rspec
|
51
52
|
prerelease: false
|
52
53
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
54
|
requirements:
|
54
55
|
- - ">="
|
55
56
|
- !ruby/object:Gem::Version
|
56
57
|
segments:
|
58
|
+
- 1
|
59
|
+
- 3
|
57
60
|
- 0
|
58
|
-
|
59
|
-
- 6
|
60
|
-
version: 0.5.6
|
61
|
+
version: 1.3.0
|
61
62
|
type: :development
|
62
63
|
version_requirements: *id003
|
63
64
|
- !ruby/object:Gem::Dependency
|
64
|
-
name:
|
65
|
+
name: rdf-spec
|
65
66
|
prerelease: false
|
66
67
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
68
|
requirements:
|
68
69
|
- - ~>
|
69
70
|
- !ruby/object:Gem::Version
|
70
71
|
segments:
|
72
|
+
- 0
|
71
73
|
- 2
|
72
|
-
-
|
73
|
-
|
74
|
-
|
75
|
-
type: :runtime
|
74
|
+
- 0
|
75
|
+
version: 0.2.0
|
76
|
+
type: :development
|
76
77
|
version_requirements: *id004
|
77
78
|
description: RDF.rb is a pure-Ruby library for working with Resource Description Framework (RDF) data.
|
78
|
-
email:
|
79
|
+
email: public-rdf-ruby@w3.org
|
79
80
|
executables:
|
80
81
|
- rdf
|
81
82
|
extensions: []
|