Skip to content
Browse files

Set version to 0.0.1, added Jewler tasks and released to RubyGems.org

  • Loading branch information...
1 parent a8efb7a commit dc484a5b8b92947c765eb4606ab4a5c21c596617 @gkellogg gkellogg committed
Showing with 222 additions and 212 deletions.
  1. +2 −0 History.txt
  2. +10 −185 README.rdoc
  3. +23 −0 Rakefile
  4. +1 −1 lib/rdfa/format.rb
  5. +1 −1 lib/rdfa/reader.rb
  6. +1 −1 lib/rdfa/reader/exceptions.rb
  7. +1 −24 lib/rdfa/reader/namespace.rb
  8. +1 −0 pkg/.gitignore
  9. +182 −0 rdf-rdfa.gemspec
View
2 History.txt
@@ -0,0 +1,2 @@
+=== 0.0.1
+First port from RdfContext version 0.5.4
View
195 README.rdoc
@@ -1,202 +1,29 @@
-= RdfContext
+= RDF::RDFa reader/writer
-Context-sensitive RDF Graphs, including a ConjunctiveGraph.
-
-A set of compliant RDF parsers:
-* N3-rdf
-* RDF/XML
-* RDFa
-
-Multiple data-stores may be attached to a Graph, including Memory, List and SQLite3
+RDFa parser for RDF.rb.
== DESCRIPTION:
-RdfContext is an RDF library for Ruby.
+RDF::RDFa is an RDFa parser for Ruby using the RDF.rb library suite.
== FEATURES:
-RdfContext parses RDF/XML, RDFa and N3-rdf into a Graph object. It also serializes RDF/XML and N-Triples from the Graph.
+RDF::RDFa parses RDFa into a Graph object.
-* Fully compliant RDF/XML parser.
* Fully compliant XHTML/RDFa 1.0 parser.
-* Fully compliant N3-rdf parser (N3-rdf level)
-* Turtle, N-Triples and RDF/XML serializer
-* RDFa tests use SPARQL for most tests due to Rasqal limitations. Other tests compare directly against N-triples.
-* Graph serializes into RDF/XML and N-Triples.
-* ConjunctiveGraph, named Graphs and contextual storage modules.
-RdfContext is based, in part, on Tom Morris' Reddy gem.
-
-Install with 'gem install rdf_context'
+Install with 'gem install rdf-rdfa'
== Usage:
-=== Graphs
-Instantiate a graph using Graph.new. A Graph may take an :identifier (defaults to a BNode) and
-a :store (defaults to :list_store)
-
- use RdfContext
- g = Graph.new(:store => :list_store, :identifier => URIRef.new("http://example.com"))
- g = Graph.new(:store => SQLite3Store.new(:path => "store.db"),
- :identifier => URIRef.new("http://example.com"))
-
- g.add(Triple.new(subject, predicate, object))
-
-Graphs also store namespace associations, and can serialize graphs to Turtle, RDF/XML, N-triples or a custom serializer
-
- g.bind(Namespace.new("http://example.com", "ex"))
- g.namespace("ex")
- g.prefix("http://example.com")
-
- g.to_rdfxml
- g.to_ntriples
- g.serialize(:format => :xml, :io => StringIO.new, :base => "http://base.example.com/") => IO Object, or string if none specified
-
-or, pass an instantiated Serializer object
-
- ser = TurtleSerializer.new(g)
- g.serialize(:format => ser, :io => StringIO.new, :base => "http://base.example.com/")
-
-Resource properties
-
- graph.parse(':foo a :bar; rdfs:label "An example" .', "http://example.com/")
- graph.resources("http://example.com/subject") =>
- {
- "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" => [<http://example.com/#bar>],
- "http://example.com/#label" => ["An example"]
- }
-
-Instantiate an existing graph from a datastore
-
- s = SQLIte3Store.new(:path => "store.db")
- g = Graph.new(:store => s, :identifier => "http://example.com/context")
-
-==== Named Graphs / Conjunctive Graphs
-RdfContext defines the following kinds of Graphs:
-Graph:: Basic graph, associated with a Store and an identifier
-QuotedGraph:: implements N3 Formulae semantics, by creating a graph within a store that is formula_aware. QuotedGraph triples are not returned in a query to a ConjunctiveGraph.
-ConjunctiveGraph:: A Conjunctive Graph is the most relevant collection of graphs that are considered to be the boundary for closed world assumptions. This boundary is equivalent to that of the store instance (which is itself uniquely identified and distinct from other instances of Store that signify other Conjunctive Graphs). It is equivalent to all the named graphs within it and associated with a _default_ graph which is automatically assigned a BNode for an identifier - if one isn't given.
-AggregateGraph:: allow multiple graphs from a given context_aware store to be combined into a single read-only graph.
-
-=== Terminology
-_Context_: A named, unordered set of statements. Also could be called a sub-graph. The named graphs literature and ontology are relevant to this concept. A context could be thought of as only the relationship between an RDF triple and a sub-graph (this is how the term context is used in the Notation 3 Design Issues page) in which it is found or the sub-graph itself.
-
-It's worth noting that the concept of logically grouping triples within an addressable 'set' or 'subgraph' is just barely beyond the scope of the RDF model. The RDF model defines a graph as an arbitrary collection of triples and the semantics of these triples, but doesn't give guidance on how to consistently address such arbitrary collections. Though a collection of triples can be thought of as a resource itself, the association between a triple and the collection it is a part of is not covered.
-
-<em>Conjunctive Graph</em>: This refers to the 'top-level' Graph. It is the aggregation of all the contexts within it and is also the appropriate, absolute boundary for closed world assumptions / models. This distinction is the low-hanging fruit of RDF along the path to the semantic web and most of its value is in (corporate/enterprise) real-world problems:
-
-For the sake of persistence, Conjunctive Graphs must be distinguished by identifiers (that may not necessarily be RDF identifiers or may be an RDF identifier normalized - SHA1/MD5 perhaps - for database naming purposes ) which could be referenced to indicate conjunctive queries (queries made across the entire conjunctive graph) or appear as nodes in asserted statements. In this latter case, such statements could be interpreted as being made about the entire 'known' universe. For example:
-
- <urn:uuid:conjunctive-graph-foo> rdf:type :ConjunctiveGraph
- <urn:uuid:conjunctive-graph-foo> rdf:type log:Truth
- <urn:uuid:conjunctive-graph-foo> :persistedBy :MySQL
-
-_Terms_: Terms are the kinds of objects that can appear in a quoted/asserted triple. This includes those that are core to RDF:
-
-* Blank Nodes
-* URI References
-* Literals (which consist of a literal value, datatype and language tag)
-
-_Nodes_: Nodes are a subset of the Terms that the underlying store actually persists. The set of such Terms depends on whether or not the store is formula-aware. Stores that aren't formula-aware would only persist those terms core to the RDF Model, and those that are formula-aware would be able to persist the N3 extensions as well. However, utility terms that only serve the purpose for matching nodes by term-patterns probably will only be terms and not nodes.
-
-The set of nodes of an RDF graph is the set of subjects and objects of triples in the graph.
-
-<em>Context-aware</em>: An RDF store capable of storing statements within contexts is considered context-aware. Essentially, such a store is able to partition the RDF model it represents into individual, named, and addressable sub-graphs.
-
-<em>Formula-aware</em>: An RDF store capable of distinguishing between statements that are asserted and statements that are quoted is considered formula-aware.
-
-Such a store is responsible for maintaining this separation and ensuring that queries against the entire model (the aggregation of all the contexts - specified by not limiting a 'query' to a specifically name context) do not include quoted statements. Also, it is responsible for distinguishing universal quantifiers (variables).
-
-These 2 additional concepts (formulae and variables) must be thought of as core extensions and distinguishable from the other terms of a triple (for the sake of the persistence roundtrip - at the very least). It's worth noting that the 'scope' of universal quantifiers (variables) and existential quantifiers (BNodes) is the formula (or context - to be specific) in which their statements reside. Beyond this, a Formula-aware store behaves the same as a Context-aware store.
-
-<em>Conjunctive Query</em>: Any query that doesn't limit the store to search within a named context only. Such a query expects a context-aware store to search the entire asserted universe (the conjunctive graph). A formula-aware store is expected not to include quoted statements when matching such a query.
-
-<em>Transactional Store</em>: An RDF store capable of providing transactional integrity to the RDF operations performed on it.
-
-=== Parsers
Instantiate a parser and parse source, specifying type and base-URL
- use RdfContext
+ use RDF::RDFa
p = Parser.new
- graph = p.parse(input, "http://example.com", :type => :rdfxml)
-
-or, instantiate a type-specific parser:
-
- p = RdfaParser.new
graph = p.parse(input, "http://example.com")
-or, parse directly into a graph
-
- g = Graph.new(:identifier => "http://example.com", :store => :sqlite3_store)
- g.parse(input, "http://example.com", :type => :rdfxml)
-
-=== Serializers
-AbstractSerializer class for XML, N-Triples and Turtle serializers. Turtle based on RecursiveSerializer.
-May be called from Graph via Graph#serialize, or instantiated and run separately:
-
- g = Graph.new
- s = TurtleSerializer.new(g)
- stream = StringIO.new
- s.serialize(stream, , "http://base.example.com/")
-
-=== Data Stores
-RdfContext defines three datastores:
-
-ListStore:: simple non-context aware datastore based on Array
-MemoryStore:: context aware datastore using multiple hashes to optimize triple lookkup
-SQLite3Store:: context aware datastore using a SQLite3 database to create a persistent storage model
-
-Additional stores may be created by sub-classing _AbstractStore_ or _AbstractSQLStore_.
-
-==== Database/Transactional stores
-An RDF store should provide standard interfaces for the management of database connections. Such interfaces are standard to most database management systems (Oracle, MySQL, Berkeley DB, Postgres, etc..) The following methods are defined to provide this capability:
-
-*open*:: Opens the store specified by the options. If :create is true a store will be created if it does not already exist. If *create* is false and a store does not already exist an exception is raised. An exception is also raised if a store exists, but there is insufficient permissions to open the store.
-*close*:: This closes the database connection. The commit_pending_transaction parameter specifies whether to commit all pending transactions before closing (if the store is transactional).
-*destroy*:: This destroys the instance of the store identified by the options.
-
-The configuration hash is understood by the store implementation and represents all the necessary parameters needed to locate an individual instance of a store. The open function needs to fail intelligently in order to clearly express that a store (identified by the given configuration string) already exists or that there is no store (at the location specified by the configuration string) depending on the value of create.
-
-==== Triple Interfaces
-An RDF store could provide a standard set of interfaces for the manipulation, management, and/or retrieval of its contained triples (asserted or quoted):
-
-*add*:: Adds the given statement to a specific context or to the model. The quoted argument is interpreted by formula-aware stores to indicate this statement is quoted/hypothetical. It should be an error to not specify a context and have the quoted argument be True. It should also be an error for the quoted argument to be True when the store is not formula-aware.
-*remove*:: Remove a triple, or pattern from a specific or all contexts.
-*triples*:: Returns an closure over all the triples (within the conjunctive graph or just the given context) matching the given pattern or an array of triples. The pattern is specified by providing explicit statement terms (which are used to match against nodes in the underlying store), or nil - which indicates a wildcard. This function can be thought of as the primary mechanism for producing triples with nodes that match the corresponding terms and term pattern provided. A conjunctive query can be indicated by either providing a value of nil for context or the identifier associated with the Conjunctive Graph.
-*size*:: Number of statements in the store. This should only account for non-quoted (asserted) statements if the context is not specified, otherwise it should return the number of statements in the formula or context given.
-
-==== Formula / Context Interfaces
-
-These interfaces work on contexts and formulae (for stores that are formula-aware) interchangeably.
-*contexts*:: Closure or list over all contexts in the graph. If triple is specified, it returns all contexts the triple is in.
-
-== Dependencies:
-
-* Addressable
-* Treetop
-* Whatlanguage
-* nokogiri
-* builder
-
-=== For testing
-* Redland/Rasqal
-* ActiveSupport
-
-== INSTALL:
-
-* sudo gem install rdf_context
-
-== TODO:
-* Testing
- * RDFa updates for new tests and non XHTML representations.
-* Graphs
- * n3 semantics including variables and formulae
-* Reasoner/inference engine
-* SPARQL
-* RDFS logic and RDF entailment tests
-
== Resources:
* Distiller[http://kellogg-assoc/distiller]
-* RDoc[http://rdoc.info/projects/gkellogg/rdf_context]
-* History[http://github.com/gkellogg/rdf_context/blob/master/History.txt]
+* RDoc[http://rdoc.info/projects/gkellogg/rdf-rdfa]
+* History[http://github.com/gkellogg/rdf-rdfa/blob/master/History.txt]
== LICENSE:
@@ -204,8 +31,6 @@ These interfaces work on contexts and formulae (for stores that are formula-awar
Copyright (c) 2009-2010 Gregg Kellogg
-Copyright (c) 2008 Tom Morris and contributors
-
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
@@ -228,7 +53,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
== FEEDBACK
* gregg@kellogg-assoc.com
-* gemcutter.org/rdf_context
-* github.com/gkellogg/rdf_context
+* rubygems.org/rdf-rdfa
+* github.com/gkellogg/rdf-rdfa
* gkellogg.lighthouseapp.com for bug reports
* public-rdf-ruby mailing list on w3.org
View
23 Rakefile
@@ -1,5 +1,28 @@
require 'rubygems'
+begin
+ gem 'jeweler'
+ require 'jeweler'
+ Jeweler::Tasks.new do |gemspec|
+ gemspec.name = "rdf-rdfa"
+ gemspec.summary = "RDFa parser for RDF.rb."
+ gemspec.description = <<-DESCRIPTION
+ RDF::RDFa is an RDFa parser for Ruby using the RDF.rb library suite.
+ DESCRIPTION
+ gemspec.email = "gregg@kellogg-assoc.com"
+ gemspec.homepage = "http://github.com/gkellogg/rdf-rdfa"
+ gemspec.authors = ["Gregg Kellogg", "Nicholas Humfrey"]
+ gemspec.add_dependency('nokogiri', '>= 1.3.3')
+ gemspec.add_dependency('rdf', '>= 0.1.6')
+ gemspec.add_development_dependency('rspec')
+ gemspec.add_development_dependency('activesupport', '>= 2.3.0')
+ gemspec.extra_rdoc_files = %w(README.rdoc History.txt)
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
+end
+
require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
View
2 lib/rdfa/format.rb
@@ -1,4 +1,4 @@
-module RDFa
+module RDF::RDFa
##
# N-Triples format specification.
#
View
2 lib/rdfa/reader.rb
@@ -1,7 +1,7 @@
require 'nokogiri'
require 'rdf'
-module RDFa
+module RDF::RDFa
##
# An RDFa parser in Ruby
#
View
2 lib/rdfa/reader/exceptions.rb
@@ -1,4 +1,4 @@
-module RdfContext
+module RDF::RDFa
class RdfException < RuntimeError; end
class ParserException < RdfException; end
View
25 lib/rdfa/reader/namespace.rb
@@ -1,21 +1,9 @@
-module RDFa class Reader
+module RDF::RDFa class Reader
# From RdfContext
class Namespace
attr_accessor :prefix, :fragment
- ##
# Creates a new namespace given a URI and the prefix.
- #
- # nil is a valid prefix to specify the default namespace
- # ==== Example
- # Namespace.new("http://xmlns.com/foaf/0.1/", "foaf") # => returns a new Foaf namespace
- #
- # @param [String] uri:: the URI of the namespace
- # @param [String] prefix:: the prefix of the namespace
- # @return [Namespace]:: The newly created namespace.
- # @raise [Error]:: Checks validity of the desired prefix and raises if it is incorrect.
- #
- # @author Tom Morris, Pius Uzamere
def initialize(uri, prefix)
prefix = prefix.to_s
@@ -25,18 +13,7 @@ def initialize(uri, prefix)
@prefix = prefix
end
- ##
# Allows the construction of arbitrary URIs on the namespace.
- #
- # ==== Example
- # foaf = Namespace.new("http://xmlns.com/foaf/0.1/", "foaf"); foaf.knows # => returns a new URIRef with URI "http://xmlns.com/foaf/0.1/knows"
- # foaf = Namespace.new("http://xmlns.com/foaf/0.1/", "foaf", true); foaf.knows # => returns a new URIRef with URI "http://xmlns.com/foaf/0.1/#knows"
- #
- # To avoid naming problems, a suffix may have an appended '_', which will be removed when the URI is generated.
- #
- # @return [String]:: The newly created URI.
- # @raise [Error]:: Checks validity of the desired prefix and raises if it is incorrect.
- # @author Tom Morris, Pius Uzamere
def method_missing(methodname, *args)
self + methodname
end
View
1 pkg/.gitignore
@@ -0,0 +1 @@
+/*.gem
View
182 rdf-rdfa.gemspec
@@ -0,0 +1,182 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{rdf-rdfa}
+ s.version = "0.0.1"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Gregg Kellogg", "Nicholas Humfrey"]
+ s.date = %q{2010-06-02}
+ s.description = %q{ RDF::RDFa is an RDFa parser for Ruby using the RDF.rb library suite.
+}
+ s.email = %q{gregg@kellogg-assoc.com}
+ s.extra_rdoc_files = [
+ "History.txt",
+ "README.rdoc"
+ ]
+ s.files = [
+ "README.rdoc",
+ "Rakefile",
+ "VERSION",
+ "example.rb",
+ "lib/rdfa/format.rb",
+ "lib/rdfa/reader.rb",
+ "lib/rdfa/reader/exceptions.rb",
+ "lib/rdfa/reader/namespace.rb",
+ "lib/rdfa/reader/version.rb",
+ "spec/namespaces_spec.rb",
+ "spec/rdfa-triples/0001.nt",
+ "spec/rdfa-triples/0006.nt",
+ "spec/rdfa-triples/0007.nt",
+ "spec/rdfa-triples/0008.nt",
+ "spec/rdfa-triples/0009.nt",
+ "spec/rdfa-triples/0010.nt",
+ "spec/rdfa-triples/0011.nt",
+ "spec/rdfa-triples/0012.nt",
+ "spec/rdfa-triples/0013.nt",
+ "spec/rdfa-triples/0014.nt",
+ "spec/rdfa-triples/0015.nt",
+ "spec/rdfa-triples/0017.nt",
+ "spec/rdfa-triples/0018.nt",
+ "spec/rdfa-triples/0019.nt",
+ "spec/rdfa-triples/0020.nt",
+ "spec/rdfa-triples/0021.nt",
+ "spec/rdfa-triples/0023.nt",
+ "spec/rdfa-triples/0025.nt",
+ "spec/rdfa-triples/0026.nt",
+ "spec/rdfa-triples/0027.nt",
+ "spec/rdfa-triples/0029.nt",
+ "spec/rdfa-triples/0030.nt",
+ "spec/rdfa-triples/0031.nt",
+ "spec/rdfa-triples/0032.nt",
+ "spec/rdfa-triples/0033.nt",
+ "spec/rdfa-triples/0034.nt",
+ "spec/rdfa-triples/0035.nt",
+ "spec/rdfa-triples/0036.nt",
+ "spec/rdfa-triples/0037.nt",
+ "spec/rdfa-triples/0038.nt",
+ "spec/rdfa-triples/0039.nt",
+ "spec/rdfa-triples/0040.nt",
+ "spec/rdfa-triples/0041.nt",
+ "spec/rdfa-triples/0042.nt",
+ "spec/rdfa-triples/0046.nt",
+ "spec/rdfa-triples/0047.nt",
+ "spec/rdfa-triples/0048.nt",
+ "spec/rdfa-triples/0049.nt",
+ "spec/rdfa-triples/0050.nt",
+ "spec/rdfa-triples/0051.nt",
+ "spec/rdfa-triples/0052.nt",
+ "spec/rdfa-triples/0053.nt",
+ "spec/rdfa-triples/0054.nt",
+ "spec/rdfa-triples/0055.nt",
+ "spec/rdfa-triples/0056.nt",
+ "spec/rdfa-triples/0057.nt",
+ "spec/rdfa-triples/0058.nt",
+ "spec/rdfa-triples/0059.nt",
+ "spec/rdfa-triples/0060.nt",
+ "spec/rdfa-triples/0061.nt",
+ "spec/rdfa-triples/0062.nt",
+ "spec/rdfa-triples/0063.nt",
+ "spec/rdfa-triples/0064.nt",
+ "spec/rdfa-triples/0065.nt",
+ "spec/rdfa-triples/0066.nt",
+ "spec/rdfa-triples/0067.nt",
+ "spec/rdfa-triples/0068.nt",
+ "spec/rdfa-triples/0069.nt",
+ "spec/rdfa-triples/0070.nt",
+ "spec/rdfa-triples/0071.nt",
+ "spec/rdfa-triples/0072.nt",
+ "spec/rdfa-triples/0073.nt",
+ "spec/rdfa-triples/0074.nt",
+ "spec/rdfa-triples/0075.nt",
+ "spec/rdfa-triples/0076.nt",
+ "spec/rdfa-triples/0077.nt",
+ "spec/rdfa-triples/0078.nt",
+ "spec/rdfa-triples/0079.nt",
+ "spec/rdfa-triples/0080.nt",
+ "spec/rdfa-triples/0081.nt",
+ "spec/rdfa-triples/0082.nt",
+ "spec/rdfa-triples/0083.nt",
+ "spec/rdfa-triples/0084.nt",
+ "spec/rdfa-triples/0085.nt",
+ "spec/rdfa-triples/0086.nt",
+ "spec/rdfa-triples/0087.nt",
+ "spec/rdfa-triples/0088.nt",
+ "spec/rdfa-triples/0089.nt",
+ "spec/rdfa-triples/0090.nt",
+ "spec/rdfa-triples/0091.nt",
+ "spec/rdfa-triples/0092.nt",
+ "spec/rdfa-triples/0093.nt",
+ "spec/rdfa-triples/0094.nt",
+ "spec/rdfa-triples/0099.nt",
+ "spec/rdfa-triples/0100.nt",
+ "spec/rdfa-triples/0101.nt",
+ "spec/rdfa-triples/0102.nt",
+ "spec/rdfa-triples/0103.nt",
+ "spec/rdfa-triples/0104.nt",
+ "spec/rdfa-triples/0105.nt",
+ "spec/rdfa-triples/0106.nt",
+ "spec/rdfa-triples/0107.nt",
+ "spec/rdfa-triples/0108.nt",
+ "spec/rdfa-triples/0109.nt",
+ "spec/rdfa-triples/0110.nt",
+ "spec/rdfa-triples/0111.nt",
+ "spec/rdfa-triples/0112.nt",
+ "spec/rdfa-triples/0113.nt",
+ "spec/rdfa-triples/0114.nt",
+ "spec/rdfa-triples/0115.nt",
+ "spec/rdfa-triples/0116.nt",
+ "spec/rdfa-triples/0117.nt",
+ "spec/rdfa-triples/0118.nt",
+ "spec/rdfa-triples/0119.nt",
+ "spec/rdfa-triples/0120.nt",
+ "spec/rdfa-triples/0121.nt",
+ "spec/rdfa-triples/0122.nt",
+ "spec/rdfa-triples/0123.nt",
+ "spec/rdfa-triples/0124.nt",
+ "spec/rdfa-triples/0125.nt",
+ "spec/rdfa-triples/0126.nt",
+ "spec/rdfa-triples/1001.nt",
+ "spec/rdfa_helper.rb",
+ "spec/rdfa_parser_spec.rb",
+ "spec/spec.opts",
+ "spec/spec_helper.rb"
+ ]
+ s.homepage = %q{http://github.com/gkellogg/rdf-rdfa}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.6}
+ s.summary = %q{RDFa parser for RDF.rb.}
+ s.test_files = [
+ "spec/namespaces_spec.rb",
+ "spec/rdfa_helper.rb",
+ "spec/rdfa_parser_spec.rb",
+ "spec/spec_helper.rb"
+ ]
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<nokogiri>, [">= 1.3.3"])
+ s.add_runtime_dependency(%q<rdf>, [">= 0.1.6"])
+ s.add_development_dependency(%q<rspec>, [">= 0"])
+ s.add_development_dependency(%q<activesupport>, [">= 2.3.0"])
+ else
+ s.add_dependency(%q<nokogiri>, [">= 1.3.3"])
+ s.add_dependency(%q<rdf>, [">= 0.1.6"])
+ s.add_dependency(%q<rspec>, [">= 0"])
+ s.add_dependency(%q<activesupport>, [">= 2.3.0"])
+ end
+ else
+ s.add_dependency(%q<nokogiri>, [">= 1.3.3"])
+ s.add_dependency(%q<rdf>, [">= 0.1.6"])
+ s.add_dependency(%q<rspec>, [">= 0"])
+ s.add_dependency(%q<activesupport>, [">= 2.3.0"])
+ end
+end
+

0 comments on commit dc484a5

Please sign in to comment.
Something went wrong with that request. Please try again.