diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-08-06 18:22:10 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-08-06 18:22:10 -0400 |
commit | 53054c0032f46028280cd037ef31744bb54cc15f (patch) | |
tree | 61b9ae8f3c753e725df7896a64350d31a322d550 | |
parent | 86364591af807ed3fa4a7304f53e6f3458cb4961 (diff) | |
download | rails-53054c0032f46028280cd037ef31744bb54cc15f.tar.gz rails-53054c0032f46028280cd037ef31744bb54cc15f.tar.bz2 rails-53054c0032f46028280cd037ef31744bb54cc15f.zip |
Adding jeweler for gem management
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Rakefile | 32 | ||||
-rw-r--r-- | VERSION | 1 | ||||
-rw-r--r-- | arel.gemspec | 231 | ||||
-rw-r--r-- | spec/connections/mysql_connection.rb | 1 | ||||
-rw-r--r-- | spec/connections/postgresql_connection.rb | 1 | ||||
-rw-r--r-- | spec/connections/sqlite3_connection.rb | 1 |
7 files changed, 262 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore index c6dd721751..39cbb3948b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ config/database.yml spec/fixtures/*database* *.DS_Store debug.log +pkg @@ -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 diff --git a/VERSION b/VERSION new file mode 100644 index 0000000000..6c6aa7cb09 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.0
\ No newline at end of file diff --git a/arel.gemspec b/arel.gemspec new file mode 100644 index 0000000000..76b98c79f0 --- /dev/null +++ b/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 diff --git a/spec/connections/mysql_connection.rb b/spec/connections/mysql_connection.rb index a58ddc35ef..6e2950f7dc 100644 --- a/spec/connections/mysql_connection.rb +++ b/spec/connections/mysql_connection.rb @@ -1,3 +1,4 @@ +require "rubygems" require "activerecord" puts "Using native MySQL" diff --git a/spec/connections/postgresql_connection.rb b/spec/connections/postgresql_connection.rb index e376d33ec6..01d65f09dc 100644 --- a/spec/connections/postgresql_connection.rb +++ b/spec/connections/postgresql_connection.rb @@ -1,3 +1,4 @@ +require "rubygems" require "activerecord" puts "Using native PostgreSQL" diff --git a/spec/connections/sqlite3_connection.rb b/spec/connections/sqlite3_connection.rb index 649492f804..9e9503e0ca 100644 --- a/spec/connections/sqlite3_connection.rb +++ b/spec/connections/sqlite3_connection.rb @@ -1,3 +1,4 @@ +require "rubygems" require "activerecord" puts "Using native SQLite3" |