rdf-json 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -5,27 +5,28 @@ This is an [RDF.rb][] plugin that adds support for parsing/serializing the
5
5
  [RDF/JSON][] serialization format.
6
6
 
7
7
  * <http://github.com/bendiken/rdf-json>
8
+ * <http://blog.datagraph.org/2010/04/parsing-rdf-with-ruby>
8
9
 
9
10
  Documentation
10
11
  -------------
11
12
 
12
13
  * {RDF::JSON}
13
- * {RDF::JSON::Extensions}
14
14
  * {RDF::JSON::Format}
15
15
  * {RDF::JSON::Reader}
16
16
  * {RDF::JSON::Writer}
17
+ * {RDF::JSON::Extensions}
17
18
 
18
19
  Dependencies
19
20
  ------------
20
21
 
21
- * [RDF.rb](http://rubygems.org/gems/rdf) (>= 0.1.0)
22
- * [JSON](http://rubygems.org/gems/json_pure) (>= 1.2.3)
22
+ * [RDF.rb](http://rubygems.org/gems/rdf) (>= 0.1.10)
23
+ * [JSON](http://rubygems.org/gems/json_pure) (>= 1.4.3)
23
24
 
24
25
  Installation
25
26
  ------------
26
27
 
27
- The recommended installation method is via RubyGems. To install the latest
28
- official release, do:
28
+ The recommended installation method is via [RubyGems](http://rubygems.org/).
29
+ To install the latest official release of the `RDF::JSON` gem, do:
29
30
 
30
31
  % [sudo] gem install rdf-json
31
32
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  ],
10
- "http://www.w3.org/2000/01/rdf-schema#seeAlso" : [ {
10
+ "http://www.w3.org/2000/01/rdf-schema#isDefinedBy" : [ {
11
11
  "value" : "http://datagraph.org/bendiken/foaf",
12
12
  "type" : "uri"
13
13
  }
@@ -130,6 +130,12 @@ module RDF::JSON
130
130
  end
131
131
  end
132
132
 
133
+ ##
134
+ # RDF/JSON extensions for `RDF::Graph`.
135
+ module Graph
136
+ include Enumerable
137
+ end
138
+
133
139
  ##
134
140
  # RDF/JSON extensions for `RDF::Repository`.
135
141
  module Repository
@@ -7,7 +7,7 @@ module RDF::JSON
7
7
  # RDF::Reader.for("etc/doap.json")
8
8
  # RDF::Reader.for(:file_name => "etc/doap.json")
9
9
  # RDF::Reader.for(:file_extension => "json")
10
- # RDF::Reader.for(:content_type => "application/json")
10
+ # RDF::Reader.for(:content_type => "application/json")
11
11
  #
12
12
  # @example Parsing RDF statements from an RDF/JSON file
13
13
  # RDF::JSON::Reader.open("etc/doap.json") do |reader|
@@ -1,16 +1,15 @@
1
- module RDF module JSON
1
+ module RDF; module JSON
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
  EXTRA = nil
7
7
 
8
- STRING = [MAJOR, MINOR, TINY].join('.')
9
- STRING << "-#{EXTRA}" if EXTRA
8
+ STRING = [MAJOR, MINOR, TINY, EXTRA].compact.join('.')
10
9
 
11
10
  ##
12
11
  # @return [String]
13
- def self.to_s() STRING end
12
+ def self.to_s() STRING end
14
13
 
15
14
  ##
16
15
  # @return [String]
@@ -20,4 +19,4 @@ module RDF module JSON
20
19
  # @return [Array(Integer, Integer, Integer)]
21
20
  def self.to_a() [MAJOR, MINOR, TINY] end
22
21
  end
23
- end end
22
+ end; end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Arto Bendiken
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-11 00:00:00 +01:00
17
+ date: 2010-06-12 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -22,13 +22,13 @@ dependencies:
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">="
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
27
  segments:
28
28
  - 0
29
29
  - 1
30
- - 0
31
- version: 0.1.0
30
+ - 10
31
+ version: 0.1.10
32
32
  type: :development
33
33
  version_requirements: *id001
34
34
  - !ruby/object:Gem::Dependency
@@ -55,8 +55,8 @@ dependencies:
55
55
  segments:
56
56
  - 0
57
57
  - 5
58
- - 3
59
- version: 0.5.3
58
+ - 5
59
+ version: 0.5.5
60
60
  type: :development
61
61
  version_requirements: *id003
62
62
  - !ruby/object:Gem::Dependency
@@ -64,13 +64,13 @@ dependencies:
64
64
  prerelease: false
65
65
  requirement: &id004 !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
67
+ - - ~>
68
68
  - !ruby/object:Gem::Version
69
69
  segments:
70
70
  - 0
71
71
  - 1
72
- - 0
73
- version: 0.1.0
72
+ - 10
73
+ version: 0.1.10
74
74
  type: :runtime
75
75
  version_requirements: *id004
76
76
  - !ruby/object:Gem::Dependency
@@ -78,13 +78,13 @@ dependencies:
78
78
  prerelease: false
79
79
  requirement: &id005 !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
81
+ - - ~>
82
82
  - !ruby/object:Gem::Version
83
83
  segments:
84
84
  - 1
85
- - 2
85
+ - 4
86
86
  - 3
87
- version: 1.2.3
87
+ version: 1.4.3
88
88
  type: :runtime
89
89
  version_requirements: *id005
90
90
  description: RDF.rb plugin for parsing/serializing RDF/JSON data.