Skip to content

Commit

Permalink
Conform to some RDF.rb 1.1 changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Apr 13, 2013
1 parent 7d511e5 commit 76019a5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gemspec
Expand Up @@ -53,7 +53,7 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'equivalent-xml'
gem.add_development_dependency 'nokogiri' , '>= 1.5.0'
gem.add_development_dependency 'rspec', '>= 2.12.0'
gem.add_development_dependency 'spira'
gem.add_development_dependency 'spira', '= 0.0.12'
gem.add_development_dependency 'yard' , '>= 0.8.3'
gem.add_runtime_dependency 'backports' if RUBY_VERSION < "1.9"
gem.post_install_message = nil
Expand Down
5 changes: 5 additions & 0 deletions Gemfile
Expand Up @@ -6,6 +6,7 @@ gem "rdf", :git => "git://github.com/ruby-rdf/rdf.git", :branch => "1
gem "rdf-spec", :git => "git://github.com/ruby-rdf/rdf-spec.git"
gem "rdf-xsd", :git => "git://github.com/ruby-rdf/rdf-xsd.git"
gem "rdf-turtle", :git => "git://github.com/ruby-rdf/rdf-turtle.git"
gem "rdf-rdfxml", :git => "git://github.com/ruby-rdf/rdf-rdfxml.git"
gem 'ebnf', :git => "git://github.com/gkellogg/ebnf.git"

group :debug do
Expand All @@ -14,3 +15,7 @@ group :debug do
gem "wirble"
gem 'redcarpet', :platforms => :ruby
end

group :test do
gem 'rake'
end
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -40,8 +40,8 @@ namespace :spec do
SPARQL::Spec.sparql1_0_tests(true)
puts "load 1.0 syntax tests"
SPARQL::Spec.sparql1_0_syntax_tests(true)
#puts "load 1.1 tests"
#SPARQL::Spec.sparql1_1_tests(true)
puts "load 1.1 tests"
SPARQL::Spec.sparql1_1_tests(true)
end
end

Expand Down
5 changes: 3 additions & 2 deletions spec/support/models.rb
Expand Up @@ -335,13 +335,14 @@ def self.pretty_print
end
end; end

# Save short version of URI, without all the Addressable stuff.
# Save short version of URI, without all the other stuff.
class RDF::URI
def encode_with(coder)
coder["uri"] = self.to_s
end

def init_with(coder)
@uri = Addressable::URI.parse(coder["uri"])
self.instance_variable_set(:@value, coder["uri"])
self.instance_variable_set(:@object, nil)
end
end

0 comments on commit 76019a5

Please sign in to comment.