Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Load files with autoload, not explicit require.

  • Loading branch information...
commit cdeedcd311c12e8d2aad551dcd1961b0ee157a52 1 parent d49a193
@gkellogg authored
View
1  lib/rdf_context.rb
@@ -16,6 +16,7 @@
require 'treetop'
end
+require 'rdf_context/array_hacks'
require 'rdf_context/string_hacks'
module RdfContext
View
2  lib/rdf_context/graph.rb
@@ -1,5 +1,3 @@
-require File.join(File.dirname(__FILE__), 'array_hacks')
-
module RdfContext
# A simple graph to hold triples.
#
View
2  lib/rdf_context/literal.rb
@@ -7,8 +7,6 @@
require 'date'
require 'time'
-require File.join(File.dirname(__FILE__), "string_hacks")
-
module RdfContext
# An RDF Literal, with value, encoding and language elements.
class Literal < Resource
View
1  lib/rdf_context/n3parser.rb
@@ -1,5 +1,4 @@
require 'treetop'
-require File.join(File.dirname(__FILE__), 'array_hacks')
Treetop.load(File.join(File.dirname(__FILE__), "n3_grammar"))
View
1  lib/rdf_context/rdfxmlparser.rb
@@ -1,5 +1,4 @@
require File.join(File.dirname(__FILE__), "nokogiri_hacks")
-require File.join(File.dirname(__FILE__), "string_hacks")
module RdfContext
class RdfXmlParser < Parser
View
2  lib/rdf_context/serializer/abstract_serializer.rb
@@ -1,5 +1,3 @@
-require File.join(File.dirname(__FILE__), '..', 'uriref')
-
module RdfContext
# Abstract serializer
class AbstractSerializer
View
2  lib/rdf_context/serializer/nt_serializer.rb
@@ -1,5 +1,3 @@
-require File.join(File.dirname(__FILE__), 'abstract_serializer')
-
module RdfContext
# Serialize RDF graphs in NTriples format
class NTSerializer < AbstractSerializer
View
3  lib/rdf_context/serializer/recursive_serializer.rb
@@ -1,6 +1,3 @@
-require File.join(File.dirname(__FILE__), 'abstract_serializer')
-require File.join(File.dirname(__FILE__), '..', 'array_hacks')
-
module RdfContext
# Recursive serializer
class RecursiveSerializer < AbstractSerializer
View
2  lib/rdf_context/serializer/turtle_serializer.rb
@@ -1,5 +1,3 @@
-require File.join(File.dirname(__FILE__), 'recursive_serializer')
-
module RdfContext
# Abstract serializer
class TurtleSerializer < RecursiveSerializer
View
2  lib/rdf_context/serializer/xml_serializer.rb
@@ -1,5 +1,3 @@
-require File.join(File.dirname(__FILE__), 'recursive_serializer')
-
module RdfContext
# Serialize RDF graphs in NTriples format
class XmlSerializer < RecursiveSerializer
View
1  lib/rdf_context/store/abstract_sql_store.rb
@@ -1,4 +1,3 @@
-require File.join(File.dirname(__FILE__), "..", "string_hacks")
require 'digest/sha1'
module RdfContext
View
1  lib/rdf_context/uriref.rb
@@ -1,5 +1,4 @@
require 'net/http'
-require File.join(File.dirname(__FILE__), "string_hacks")
module RdfContext
class URIRef < Resource
View
7 rdf_context.gemspec
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Gregg Kellogg"]
- s.date = %q{2010-12-16}
+ s.date = %q{2010-12-17}
s.default_executable = %q{rdf_context}
s.description = %q{ RdfContext parses RDF/XML, RDFa and N3-rdf into a Graph object. It also serializes RDF/XML and N-Triples from the Graph.
@@ -62,6 +62,7 @@ Gem::Specification.new do |s|
"lib/rdf_context/serializer/xml_serializer.rb",
"lib/rdf_context/store/abstract_sql_store.rb",
"lib/rdf_context/store/abstract_store.rb",
+ "lib/rdf_context/store/active_record_store.rb",
"lib/rdf_context/store/list_store.rb",
"lib/rdf_context/store/memory_store.rb",
"lib/rdf_context/store/sqlite3_store.rb",
@@ -73,6 +74,7 @@ Gem::Specification.new do |s|
"script/console",
"script/tc",
"spec/.gitignore",
+ "spec/active_record_store_spec.rb",
"spec/aggregate_graph_spec.rb",
"spec/bnode_spec.rb",
"spec/conjunctive_graph_spec.rb",
@@ -804,7 +806,8 @@ Gem::Specification.new do |s|
s.rubygems_version = %q{1.3.7}
s.summary = %q{RdfContext is an RDF library for Ruby supporting contextual graphs, multiple datastores and compliant RDF/XML, RDFa and N3 parsers.}
s.test_files = [
- "spec/aggregate_graph_spec.rb",
+ "spec/active_record_store_spec.rb",
+ "spec/aggregate_graph_spec.rb",
"spec/bnode_spec.rb",
"spec/conjunctive_graph_spec.rb",
"spec/cwm_spec.rb",
Please sign in to comment.
Something went wrong with that request. Please try again.