Skip to content

Commit

Permalink
agraph-18: Use transport gem as transport layer.
Browse files Browse the repository at this point in the history
fixed some common small problems
  • Loading branch information
Philipp Brüll committed Nov 26, 2010
1 parent f41179e commit 8ef6da7
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 22 deletions.
43 changes: 22 additions & 21 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,37 +1,38 @@
require 'rubygems'
gem 'rspec', '>= 2'

gem 'rspec'
require 'rspec'
require "rake/rdoctask"
require 'rake/gempackagetask'
require 'rspec/core/rake_task'

gem 'reek'
require 'reek/rake/task'

require 'rake/rdoctask'

task :default => :spec

specification = Gem::Specification.new do |specification|
specification.name = "agraph"
specification.version = "0.1.2"
specification.date = "2010-11-17"
specification.email = "b.phifty@gmail.com"
specification.homepage = "http://github.com/phifty/agraph"
specification.summary = "Client for the AllegroGraph 4.x graph database."
specification.description = "The gem provides a client for the AllegroGraph 4.x RDF graph database. Features like searching geo-spatial data, type mapping and transactions are supported."
specification.rubyforge_project = "agraph"
specification.has_rdoc = true
specification.authors = [ "Philipp Bruell" ]
specification.files = [ "README.rdoc", "Rakefile" ] + Dir["{lib,spec}/**/*"]
specification.extra_rdoc_files = [ "README.rdoc" ]
specification.require_path = "lib"
namespace :gem do

desc "Builds the gem"
task :build do
system "gem build *.gemspec && mkdir -p pkg/ && mv *.gem pkg/"
end

desc "Builds and installs the gem"
task :install => :build do
system "gem install pkg/"
end

end

Rake::GemPackageTask.new(specification) do |package|
package.gem_spec = specification
Reek::Rake::Task.new do |task|
task.fail_on_error = true
end

desc "Generate the rdoc"
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.add [ "README.rdoc", "lib/**/*.rb" ]
rdoc.main = "README.rdoc"
rdoc.title = "Client for the AllegroGraph 4.x graph database."
rdoc.main = "README.rdoc"
end

desc "Run all specs in spec directory"
Expand Down
22 changes: 22 additions & 0 deletions agraph.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# encoding: utf-8

specification = Gem::Specification.new do |specification|
specification.name = "agraph"
specification.version = "0.1.3"
specification.date = "2010-11-26"
specification.email = "b.phifty@gmail.com"
specification.homepage = "http://github.com/phifty/agraph"
specification.summary = "Client for the AllegroGraph 4.x graph database."
specification.description = "The gem provides a client for the AllegroGraph 4.x RDF graph database. Features like searching geo-spatial data, type mapping and transactions are supported."
specification.rubyforge_project = "agraph"
specification.has_rdoc = true
specification.authors = [ "Philipp Brüll" ]
specification.files = [ "README.rdoc", "Rakefile" ] + Dir["{lib,spec}/**/*"]
specification.extra_rdoc_files = [ "README.rdoc" ]
specification.require_path = "lib"
specification.required_ruby_version = ">= 1.8.7"

specification.add_dependency "transport", ">= 1.0.0"
specification.add_development_dependency "rspec", ">= 2"
specification.add_development_dependency "reek", ">= 1.2"
end
2 changes: 1 addition & 1 deletion spec/integration/statements_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
before :each do
@server = AllegroGraph::Server.new :username => "test", :password => "test"
@repository = AllegroGraph::Repository.new @server, "test_repository"

@repository.create_if_missing!

@statements = @repository.statements
end

Expand Down
2 changes: 2 additions & 0 deletions spec/integration/transactions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
before :each do
@server = AllegroGraph::Server.new :username => "test", :password => "test"
@repository = AllegroGraph::Repository.new @server, "test_repository"
@repository.create_if_missing!

@repository.statements.delete
end

Expand Down

0 comments on commit 8ef6da7

Please sign in to comment.