Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding jeweler for gem management

  • Loading branch information...
commit 53054c0032f46028280cd037ef31744bb54cc15f 1 parent 8636459
@brynary brynary authored
View
1  .gitignore
@@ -3,3 +3,4 @@ config/database.yml
spec/fixtures/*database*
*.DS_Store
debug.log
+pkg
View
32 Rakefile
@@ -1,13 +1,33 @@
-require 'rubygems'
-require 'spec/rake/spectask'
+require "rubygems"
+require "spec/rake/spectask"
-spec_file_list = FileList['spec/**/*_spec.rb']
+$LOAD_PATH.unshift "lib"
+require "arel"
+
+begin
+ require 'jeweler'
+
+ Jeweler::Tasks.new do |s|
+ s.name = "arel"
+ s.authors = ["Bryan Helmkamp", "Nick Kallen"]
+ s.email = "bryan" + "@" + "brynary.com"
+ s.homepage = "http://github.com/brynary/arel"
+ s.summary = "Arel is a relational algebra engine for Ruby"
+ # s.description = "TODO"
+ s.rubyforge_project = "arel"
+ s.extra_rdoc_files = %w(README.markdown)
+ end
+
+ Jeweler::RubyforgeTasks.new
+rescue LoadError
+ puts "Jeweler not available. Install it with: gem install jeweler"
+end
desc "Run specs using RCov (uses mysql database adapter)"
Spec::Rake::SpecTask.new(:coverage) do |t|
t.spec_files =
["spec/connections/mysql_connection.rb"] +
- spec_file_list
+ FileList['spec/**/*_spec.rb']
t.rcov = true
t.rcov_opts << '--exclude' << "spec,gems"
@@ -23,13 +43,13 @@ namespace :spec do
t.spec_files =
["spec/connections/#{adapter}_connection.rb"] +
["spec/schemas/#{adapter}_schema.rb"] +
- spec_file_list
+ FileList['spec/**/*_spec.rb']
end
end
end
desc "Run specs with mysql and sqlite3 database adapters (default)"
-task :spec => ["spec:sqlite3", "spec:mysql", "spec:postgresql"]
+task :spec => ["check_dependencies", "spec:sqlite3", "spec:mysql", "spec:postgresql"]
desc "Default task is to run specs"
task :default => :spec
View
1  VERSION
@@ -0,0 +1 @@
+0.1.0
View
231 arel.gemspec
@@ -0,0 +1,231 @@
+# Generated by jeweler
+# DO NOT EDIT THIS FILE
+# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{arel}
+ s.version = "0.1.0"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Bryan Helmkamp", "Nick Kallen"]
+ s.date = %q{2009-08-06}
+ s.email = %q{bryan@brynary.com}
+ s.extra_rdoc_files = [
+ "README.markdown"
+ ]
+ s.files = [
+ ".gitignore",
+ "README.markdown",
+ "Rakefile",
+ "doc/CONVENTIONS",
+ "doc/TODO",
+ "lib/arel.rb",
+ "lib/arel/.DS_Store",
+ "lib/arel/algebra.rb",
+ "lib/arel/algebra/extensions.rb",
+ "lib/arel/algebra/extensions/class.rb",
+ "lib/arel/algebra/extensions/hash.rb",
+ "lib/arel/algebra/extensions/object.rb",
+ "lib/arel/algebra/extensions/symbol.rb",
+ "lib/arel/algebra/predicates.rb",
+ "lib/arel/algebra/primitives.rb",
+ "lib/arel/algebra/primitives/attribute.rb",
+ "lib/arel/algebra/primitives/expression.rb",
+ "lib/arel/algebra/primitives/ordering.rb",
+ "lib/arel/algebra/primitives/value.rb",
+ "lib/arel/algebra/relations.rb",
+ "lib/arel/algebra/relations/operations/alias.rb",
+ "lib/arel/algebra/relations/operations/group.rb",
+ "lib/arel/algebra/relations/operations/join.rb",
+ "lib/arel/algebra/relations/operations/order.rb",
+ "lib/arel/algebra/relations/operations/project.rb",
+ "lib/arel/algebra/relations/operations/skip.rb",
+ "lib/arel/algebra/relations/operations/take.rb",
+ "lib/arel/algebra/relations/operations/where.rb",
+ "lib/arel/algebra/relations/relation.rb",
+ "lib/arel/algebra/relations/row.rb",
+ "lib/arel/algebra/relations/utilities/compound.rb",
+ "lib/arel/algebra/relations/utilities/externalization.rb",
+ "lib/arel/algebra/relations/utilities/nil.rb",
+ "lib/arel/algebra/relations/writes.rb",
+ "lib/arel/engines.rb",
+ "lib/arel/engines/memory.rb",
+ "lib/arel/engines/memory/engine.rb",
+ "lib/arel/engines/memory/predicates.rb",
+ "lib/arel/engines/memory/primitives.rb",
+ "lib/arel/engines/memory/relations.rb",
+ "lib/arel/engines/memory/relations/array.rb",
+ "lib/arel/engines/memory/relations/compound.rb",
+ "lib/arel/engines/memory/relations/operations.rb",
+ "lib/arel/engines/memory/relations/writes.rb",
+ "lib/arel/engines/sql.rb",
+ "lib/arel/engines/sql/christener.rb",
+ "lib/arel/engines/sql/engine.rb",
+ "lib/arel/engines/sql/extensions.rb",
+ "lib/arel/engines/sql/extensions/array.rb",
+ "lib/arel/engines/sql/extensions/nil_class.rb",
+ "lib/arel/engines/sql/extensions/object.rb",
+ "lib/arel/engines/sql/extensions/range.rb",
+ "lib/arel/engines/sql/formatters.rb",
+ "lib/arel/engines/sql/predicates.rb",
+ "lib/arel/engines/sql/primitives.rb",
+ "lib/arel/engines/sql/relations.rb",
+ "lib/arel/engines/sql/relations/operations/alias.rb",
+ "lib/arel/engines/sql/relations/operations/join.rb",
+ "lib/arel/engines/sql/relations/relation.rb",
+ "lib/arel/engines/sql/relations/table.rb",
+ "lib/arel/engines/sql/relations/utilities/compound.rb",
+ "lib/arel/engines/sql/relations/utilities/externalization.rb",
+ "lib/arel/engines/sql/relations/utilities/nil.rb",
+ "lib/arel/engines/sql/relations/utilities/recursion.rb",
+ "lib/arel/engines/sql/relations/writes.rb",
+ "lib/arel/session.rb",
+ "spec/arel/algebra/unit/predicates/binary_spec.rb",
+ "spec/arel/algebra/unit/predicates/equality_spec.rb",
+ "spec/arel/algebra/unit/predicates/in_spec.rb",
+ "spec/arel/algebra/unit/primitives/attribute_spec.rb",
+ "spec/arel/algebra/unit/primitives/expression_spec.rb",
+ "spec/arel/algebra/unit/primitives/value_spec.rb",
+ "spec/arel/algebra/unit/relations/alias_spec.rb",
+ "spec/arel/algebra/unit/relations/delete_spec.rb",
+ "spec/arel/algebra/unit/relations/group_spec.rb",
+ "spec/arel/algebra/unit/relations/insert_spec.rb",
+ "spec/arel/algebra/unit/relations/join_spec.rb",
+ "spec/arel/algebra/unit/relations/order_spec.rb",
+ "spec/arel/algebra/unit/relations/project_spec.rb",
+ "spec/arel/algebra/unit/relations/relation_spec.rb",
+ "spec/arel/algebra/unit/relations/skip_spec.rb",
+ "spec/arel/algebra/unit/relations/table_spec.rb",
+ "spec/arel/algebra/unit/relations/take_spec.rb",
+ "spec/arel/algebra/unit/relations/update_spec.rb",
+ "spec/arel/algebra/unit/relations/where_spec.rb",
+ "spec/arel/algebra/unit/session/session_spec.rb",
+ "spec/arel/engines/memory/integration/joins/cross_engine_spec.rb",
+ "spec/arel/engines/memory/unit/relations/array_spec.rb",
+ "spec/arel/engines/memory/unit/relations/insert_spec.rb",
+ "spec/arel/engines/memory/unit/relations/join_spec.rb",
+ "spec/arel/engines/memory/unit/relations/order_spec.rb",
+ "spec/arel/engines/memory/unit/relations/project_spec.rb",
+ "spec/arel/engines/memory/unit/relations/skip_spec.rb",
+ "spec/arel/engines/memory/unit/relations/take_spec.rb",
+ "spec/arel/engines/memory/unit/relations/where_spec.rb",
+ "spec/arel/engines/sql/integration/joins/with_adjacency_spec.rb",
+ "spec/arel/engines/sql/integration/joins/with_aggregations_spec.rb",
+ "spec/arel/engines/sql/integration/joins/with_compounds_spec.rb",
+ "spec/arel/engines/sql/unit/engine_spec.rb",
+ "spec/arel/engines/sql/unit/predicates/binary_spec.rb",
+ "spec/arel/engines/sql/unit/predicates/equality_spec.rb",
+ "spec/arel/engines/sql/unit/predicates/in_spec.rb",
+ "spec/arel/engines/sql/unit/predicates/predicates_spec.rb",
+ "spec/arel/engines/sql/unit/primitives/attribute_spec.rb",
+ "spec/arel/engines/sql/unit/primitives/expression_spec.rb",
+ "spec/arel/engines/sql/unit/primitives/literal_spec.rb",
+ "spec/arel/engines/sql/unit/primitives/value_spec.rb",
+ "spec/arel/engines/sql/unit/relations/alias_spec.rb",
+ "spec/arel/engines/sql/unit/relations/delete_spec.rb",
+ "spec/arel/engines/sql/unit/relations/group_spec.rb",
+ "spec/arel/engines/sql/unit/relations/insert_spec.rb",
+ "spec/arel/engines/sql/unit/relations/join_spec.rb",
+ "spec/arel/engines/sql/unit/relations/order_spec.rb",
+ "spec/arel/engines/sql/unit/relations/project_spec.rb",
+ "spec/arel/engines/sql/unit/relations/skip_spec.rb",
+ "spec/arel/engines/sql/unit/relations/table_spec.rb",
+ "spec/arel/engines/sql/unit/relations/take_spec.rb",
+ "spec/arel/engines/sql/unit/relations/update_spec.rb",
+ "spec/arel/engines/sql/unit/relations/where_spec.rb",
+ "spec/connections/mysql_connection.rb",
+ "spec/connections/postgresql_connection.rb",
+ "spec/connections/sqlite3_connection.rb",
+ "spec/doubles/hash.rb",
+ "spec/matchers/be_like.rb",
+ "spec/matchers/disambiguate_attributes.rb",
+ "spec/matchers/hash_the_same_as.rb",
+ "spec/schemas/mysql_schema.rb",
+ "spec/schemas/postgresql_schema.rb",
+ "spec/schemas/sqlite3_schema.rb",
+ "spec/spec_helper.rb"
+ ]
+ s.homepage = %q{http://github.com/brynary/arel}
+ s.rdoc_options = ["--charset=UTF-8"]
+ s.require_paths = ["lib"]
+ s.rubyforge_project = %q{arel}
+ s.rubygems_version = %q{1.3.4}
+ s.summary = %q{Arel is a relational algebra engine for Ruby}
+ s.test_files = [
+ "spec/arel/algebra/unit/predicates/binary_spec.rb",
+ "spec/arel/algebra/unit/predicates/equality_spec.rb",
+ "spec/arel/algebra/unit/predicates/in_spec.rb",
+ "spec/arel/algebra/unit/primitives/attribute_spec.rb",
+ "spec/arel/algebra/unit/primitives/expression_spec.rb",
+ "spec/arel/algebra/unit/primitives/value_spec.rb",
+ "spec/arel/algebra/unit/relations/alias_spec.rb",
+ "spec/arel/algebra/unit/relations/delete_spec.rb",
+ "spec/arel/algebra/unit/relations/group_spec.rb",
+ "spec/arel/algebra/unit/relations/insert_spec.rb",
+ "spec/arel/algebra/unit/relations/join_spec.rb",
+ "spec/arel/algebra/unit/relations/order_spec.rb",
+ "spec/arel/algebra/unit/relations/project_spec.rb",
+ "spec/arel/algebra/unit/relations/relation_spec.rb",
+ "spec/arel/algebra/unit/relations/skip_spec.rb",
+ "spec/arel/algebra/unit/relations/table_spec.rb",
+ "spec/arel/algebra/unit/relations/take_spec.rb",
+ "spec/arel/algebra/unit/relations/update_spec.rb",
+ "spec/arel/algebra/unit/relations/where_spec.rb",
+ "spec/arel/algebra/unit/session/session_spec.rb",
+ "spec/arel/engines/memory/integration/joins/cross_engine_spec.rb",
+ "spec/arel/engines/memory/unit/relations/array_spec.rb",
+ "spec/arel/engines/memory/unit/relations/insert_spec.rb",
+ "spec/arel/engines/memory/unit/relations/join_spec.rb",
+ "spec/arel/engines/memory/unit/relations/order_spec.rb",
+ "spec/arel/engines/memory/unit/relations/project_spec.rb",
+ "spec/arel/engines/memory/unit/relations/skip_spec.rb",
+ "spec/arel/engines/memory/unit/relations/take_spec.rb",
+ "spec/arel/engines/memory/unit/relations/where_spec.rb",
+ "spec/arel/engines/sql/integration/joins/with_adjacency_spec.rb",
+ "spec/arel/engines/sql/integration/joins/with_aggregations_spec.rb",
+ "spec/arel/engines/sql/integration/joins/with_compounds_spec.rb",
+ "spec/arel/engines/sql/unit/engine_spec.rb",
+ "spec/arel/engines/sql/unit/predicates/binary_spec.rb",
+ "spec/arel/engines/sql/unit/predicates/equality_spec.rb",
+ "spec/arel/engines/sql/unit/predicates/in_spec.rb",
+ "spec/arel/engines/sql/unit/predicates/predicates_spec.rb",
+ "spec/arel/engines/sql/unit/primitives/attribute_spec.rb",
+ "spec/arel/engines/sql/unit/primitives/expression_spec.rb",
+ "spec/arel/engines/sql/unit/primitives/literal_spec.rb",
+ "spec/arel/engines/sql/unit/primitives/value_spec.rb",
+ "spec/arel/engines/sql/unit/relations/alias_spec.rb",
+ "spec/arel/engines/sql/unit/relations/delete_spec.rb",
+ "spec/arel/engines/sql/unit/relations/group_spec.rb",
+ "spec/arel/engines/sql/unit/relations/insert_spec.rb",
+ "spec/arel/engines/sql/unit/relations/join_spec.rb",
+ "spec/arel/engines/sql/unit/relations/order_spec.rb",
+ "spec/arel/engines/sql/unit/relations/project_spec.rb",
+ "spec/arel/engines/sql/unit/relations/skip_spec.rb",
+ "spec/arel/engines/sql/unit/relations/table_spec.rb",
+ "spec/arel/engines/sql/unit/relations/take_spec.rb",
+ "spec/arel/engines/sql/unit/relations/update_spec.rb",
+ "spec/arel/engines/sql/unit/relations/where_spec.rb",
+ "spec/connections/mysql_connection.rb",
+ "spec/connections/postgresql_connection.rb",
+ "spec/connections/sqlite3_connection.rb",
+ "spec/doubles/hash.rb",
+ "spec/matchers/be_like.rb",
+ "spec/matchers/disambiguate_attributes.rb",
+ "spec/matchers/hash_the_same_as.rb",
+ "spec/schemas/mysql_schema.rb",
+ "spec/schemas/postgresql_schema.rb",
+ "spec/schemas/sqlite3_schema.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
+ else
+ end
+ else
+ end
+end
View
1  spec/connections/mysql_connection.rb
@@ -1,3 +1,4 @@
+require "rubygems"
require "activerecord"
puts "Using native MySQL"
View
1  spec/connections/postgresql_connection.rb
@@ -1,3 +1,4 @@
+require "rubygems"
require "activerecord"
puts "Using native PostgreSQL"
View
1  spec/connections/sqlite3_connection.rb
@@ -1,3 +1,4 @@
+require "rubygems"
require "activerecord"
puts "Using native SQLite3"
Please sign in to comment.
Something went wrong with that request. Please try again.