diff options
-rw-r--r-- | .autotest | 26 | ||||
-rw-r--r-- | .gemtest | 0 | ||||
-rw-r--r-- | Manifest.txt | 135 | ||||
-rw-r--r-- | Rakefile | 27 | ||||
-rw-r--r-- | arel.gemspec | 50 | ||||
-rw-r--r-- | arel.gemspec.erb | 24 |
6 files changed, 52 insertions, 210 deletions
diff --git a/.autotest b/.autotest deleted file mode 100644 index 19ea6ecbe6..0000000000 --- a/.autotest +++ /dev/null @@ -1,26 +0,0 @@ -# -*- ruby -*- - -# require 'autotest/restart' - -ENV['GEM_PATH'] = "tmp/isolate/ruby-1.8" - -module Autotest::Restart - Autotest.add_hook :updated do |at, *args| - if args.flatten.include? ".autotest" then - warn "Detected change to .autotest, restarting" - cmd = %w(autotest) - cmd << " -v" if $v - cmd += ARGV - - exec(*cmd) - end - end -end - -Autotest.add_hook :initialize do |at| - at.add_exception 'tmp' - at.testlib = "minitest/autorun" - - at.find_directories = ARGV unless ARGV.empty? -end - diff --git a/.gemtest b/.gemtest deleted file mode 100644 index e69de29bb2..0000000000 --- a/.gemtest +++ /dev/null diff --git a/Manifest.txt b/Manifest.txt deleted file mode 100644 index 32e1dd43a6..0000000000 --- a/Manifest.txt +++ /dev/null @@ -1,135 +0,0 @@ -.autotest -.gemtest -.travis.yml -Gemfile -History.txt -MIT-LICENSE.txt -Manifest.txt -README.markdown -Rakefile -arel.gemspec -lib/arel.rb -lib/arel/alias_predication.rb -lib/arel/attributes.rb -lib/arel/attributes/attribute.rb -lib/arel/collectors/bind.rb -lib/arel/collectors/plain_string.rb -lib/arel/collectors/sql_string.rb -lib/arel/compatibility/wheres.rb -lib/arel/crud.rb -lib/arel/delete_manager.rb -lib/arel/expressions.rb -lib/arel/factory_methods.rb -lib/arel/insert_manager.rb -lib/arel/math.rb -lib/arel/nodes.rb -lib/arel/nodes/and.rb -lib/arel/nodes/ascending.rb -lib/arel/nodes/binary.rb -lib/arel/nodes/count.rb -lib/arel/nodes/delete_statement.rb -lib/arel/nodes/descending.rb -lib/arel/nodes/equality.rb -lib/arel/nodes/extract.rb -lib/arel/nodes/false.rb -lib/arel/nodes/full_outer_join.rb -lib/arel/nodes/function.rb -lib/arel/nodes/grouping.rb -lib/arel/nodes/in.rb -lib/arel/nodes/infix_operation.rb -lib/arel/nodes/inner_join.rb -lib/arel/nodes/insert_statement.rb -lib/arel/nodes/join_source.rb -lib/arel/nodes/named_function.rb -lib/arel/nodes/node.rb -lib/arel/nodes/outer_join.rb -lib/arel/nodes/over.rb -lib/arel/nodes/right_outer_join.rb -lib/arel/nodes/select_core.rb -lib/arel/nodes/select_statement.rb -lib/arel/nodes/sql_literal.rb -lib/arel/nodes/string_join.rb -lib/arel/nodes/table_alias.rb -lib/arel/nodes/terminal.rb -lib/arel/nodes/true.rb -lib/arel/nodes/unary.rb -lib/arel/nodes/unqualified_column.rb -lib/arel/nodes/update_statement.rb -lib/arel/nodes/values.rb -lib/arel/nodes/window.rb -lib/arel/nodes/with.rb -lib/arel/order_predications.rb -lib/arel/predications.rb -lib/arel/select_manager.rb -lib/arel/table.rb -lib/arel/tree_manager.rb -lib/arel/update_manager.rb -lib/arel/visitors.rb -lib/arel/visitors/bind_substitute.rb -lib/arel/visitors/bind_visitor.rb -lib/arel/visitors/depth_first.rb -lib/arel/visitors/dot.rb -lib/arel/visitors/ibm_db.rb -lib/arel/visitors/informix.rb -lib/arel/visitors/mssql.rb -lib/arel/visitors/mysql.rb -lib/arel/visitors/oracle.rb -lib/arel/visitors/postgresql.rb -lib/arel/visitors/reduce.rb -lib/arel/visitors/sqlite.rb -lib/arel/visitors/to_sql.rb -lib/arel/visitors/visitor.rb -lib/arel/visitors/where_sql.rb -lib/arel/window_predications.rb -test/attributes/test_attribute.rb -test/collectors/test_bind_collector.rb -test/collectors/test_sql_string.rb -test/helper.rb -test/nodes/test_and.rb -test/nodes/test_as.rb -test/nodes/test_ascending.rb -test/nodes/test_bin.rb -test/nodes/test_count.rb -test/nodes/test_delete_statement.rb -test/nodes/test_descending.rb -test/nodes/test_distinct.rb -test/nodes/test_equality.rb -test/nodes/test_extract.rb -test/nodes/test_false.rb -test/nodes/test_grouping.rb -test/nodes/test_infix_operation.rb -test/nodes/test_insert_statement.rb -test/nodes/test_named_function.rb -test/nodes/test_node.rb -test/nodes/test_not.rb -test/nodes/test_or.rb -test/nodes/test_over.rb -test/nodes/test_select_core.rb -test/nodes/test_select_statement.rb -test/nodes/test_sql_literal.rb -test/nodes/test_sum.rb -test/nodes/test_table_alias.rb -test/nodes/test_true.rb -test/nodes/test_update_statement.rb -test/nodes/test_window.rb -test/support/fake_record.rb -test/test_attributes.rb -test/test_crud.rb -test/test_delete_manager.rb -test/test_factory_methods.rb -test/test_insert_manager.rb -test/test_select_manager.rb -test/test_table.rb -test/test_update_manager.rb -test/visitors/test_bind_visitor.rb -test/visitors/test_depth_first.rb -test/visitors/test_dispatch_contamination.rb -test/visitors/test_dot.rb -test/visitors/test_ibm_db.rb -test/visitors/test_informix.rb -test/visitors/test_mssql.rb -test/visitors/test_mysql.rb -test/visitors/test_oracle.rb -test/visitors/test_postgres.rb -test/visitors/test_sqlite.rb -test/visitors/test_to_sql.rb @@ -1,20 +1,15 @@ -require "rubygems" -gem 'hoe', '>= 3.3.1' -require 'hoe' +require 'bundler' +Bundler::GemHelper.install_tasks -Hoe.plugins.delete :rubyforge -Hoe.plugin :minitest -Hoe.plugin :gemspec # `gem install hoe-gemspec` -Hoe.plugin :git # `gem install hoe-git` -Hoe.plugin :bundler # `gem install hoe-bundler` +specname = "arel.gemspec" +deps = `git ls-files`.split("\n") - [specname] -Hoe.spec 'arel' do - developer('Aaron Patterson', 'aaron@tenderlovemaking.com') - developer('Bryan Helmkamp', 'bryan@brynary.com') - developer('Emilio Tagua', 'miloops@gmail.com') - developer('Nick Kallen', 'nick@example.org') # FIXME: need Nick's email +file specname => deps do + files = `git ls-files`.split("\n") - ["#{specname}.erb"] - self.licenses = ['MIT'] - self.readme_file = 'README.markdown' - self.extra_rdoc_files = FileList['README.markdown'] + require 'erb' + + File.open specname, 'w:utf-8' do |f| + f.write ERB.new(File.read("#{specname}.erb")).result(binding) + end end diff --git a/arel.gemspec b/arel.gemspec index 832eb12f49..8b694aa33f 100644 --- a/arel.gemspec +++ b/arel.gemspec @@ -1,40 +1,24 @@ -# -*- encoding: utf-8 -*- -# stub: arel 6.0.0.beta1.20140817224534 ruby lib +# # -*- encoding: utf-8 -*- +$:.push File.expand_path("../lib", __FILE__) +require "arel" Gem::Specification.new do |s| - s.name = "arel" - s.version = "6.0.0.beta1.20140817224534" - - s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version= - s.require_paths = ["lib"] - s.authors = ["Aaron Patterson", "Bryan Helmkamp", "Emilio Tagua", "Nick Kallen"] - s.date = "2014-08-18" + s.name = "arel" + s.version = Arel::VERSION + s.platform = Gem::Platform::RUBY + s.authors = ["Aaron Patterson", "Bryan Helmkamp", "Emilio Tagua", "Nick Kallen"] + s.email = ["aaron@tenderlovemaking.com", "bryan@brynary.com", "miloops@gmail.com"] + s.homepage = "https://github.com/rails/arel" s.description = "Arel Really Exasperates Logicians\n\nArel is a SQL AST manager for Ruby. It\n\n1. Simplifies the generation of complex SQL queries\n2. Adapts to various RDBMSes\n\nIt is intended to be a framework framework; that is, you can build your own ORM\nwith it, focusing on innovative object and collection modeling as opposed to\ndatabase compatibility and query generation." - s.email = ["aaron@tenderlovemaking.com", "bryan@brynary.com", "miloops@gmail.com", "nick@example.org"] - s.extra_rdoc_files = ["History.txt", "MIT-LICENSE.txt", "Manifest.txt", "README.markdown"] - s.files = [".autotest", ".gemtest", ".travis.yml", "Gemfile", "History.txt", "MIT-LICENSE.txt", "Manifest.txt", "README.markdown", "Rakefile", "arel.gemspec", "lib/arel.rb", "lib/arel/alias_predication.rb", "lib/arel/attributes.rb", "lib/arel/attributes/attribute.rb", "lib/arel/collectors/bind.rb", "lib/arel/collectors/plain_string.rb", "lib/arel/collectors/sql_string.rb", "lib/arel/compatibility/wheres.rb", "lib/arel/crud.rb", "lib/arel/delete_manager.rb", "lib/arel/expressions.rb", "lib/arel/factory_methods.rb", "lib/arel/insert_manager.rb", "lib/arel/math.rb", "lib/arel/nodes.rb", "lib/arel/nodes/and.rb", "lib/arel/nodes/ascending.rb", "lib/arel/nodes/binary.rb", "lib/arel/nodes/count.rb", "lib/arel/nodes/delete_statement.rb", "lib/arel/nodes/descending.rb", "lib/arel/nodes/equality.rb", "lib/arel/nodes/extract.rb", "lib/arel/nodes/false.rb", "lib/arel/nodes/full_outer_join.rb", "lib/arel/nodes/function.rb", "lib/arel/nodes/grouping.rb", "lib/arel/nodes/in.rb", "lib/arel/nodes/infix_operation.rb", "lib/arel/nodes/inner_join.rb", "lib/arel/nodes/insert_statement.rb", "lib/arel/nodes/join_source.rb", "lib/arel/nodes/named_function.rb", "lib/arel/nodes/node.rb", "lib/arel/nodes/outer_join.rb", "lib/arel/nodes/over.rb", "lib/arel/nodes/right_outer_join.rb", "lib/arel/nodes/select_core.rb", "lib/arel/nodes/select_statement.rb", "lib/arel/nodes/sql_literal.rb", "lib/arel/nodes/string_join.rb", "lib/arel/nodes/table_alias.rb", "lib/arel/nodes/terminal.rb", "lib/arel/nodes/true.rb", "lib/arel/nodes/unary.rb", "lib/arel/nodes/unqualified_column.rb", "lib/arel/nodes/update_statement.rb", "lib/arel/nodes/values.rb", "lib/arel/nodes/window.rb", "lib/arel/nodes/with.rb", "lib/arel/order_predications.rb", "lib/arel/predications.rb", "lib/arel/select_manager.rb", "lib/arel/table.rb", "lib/arel/tree_manager.rb", "lib/arel/update_manager.rb", "lib/arel/visitors.rb", "lib/arel/visitors/bind_substitute.rb", "lib/arel/visitors/bind_visitor.rb", "lib/arel/visitors/depth_first.rb", "lib/arel/visitors/dot.rb", "lib/arel/visitors/ibm_db.rb", "lib/arel/visitors/informix.rb", "lib/arel/visitors/mssql.rb", "lib/arel/visitors/mysql.rb", "lib/arel/visitors/oracle.rb", "lib/arel/visitors/postgresql.rb", "lib/arel/visitors/reduce.rb", "lib/arel/visitors/sqlite.rb", "lib/arel/visitors/to_sql.rb", "lib/arel/visitors/visitor.rb", "lib/arel/visitors/where_sql.rb", "lib/arel/window_predications.rb", "test/attributes/test_attribute.rb", "test/collectors/test_bind_collector.rb", "test/collectors/test_sql_string.rb", "test/helper.rb", "test/nodes/test_and.rb", "test/nodes/test_as.rb", "test/nodes/test_ascending.rb", "test/nodes/test_bin.rb", "test/nodes/test_count.rb", "test/nodes/test_delete_statement.rb", "test/nodes/test_descending.rb", "test/nodes/test_distinct.rb", "test/nodes/test_equality.rb", "test/nodes/test_extract.rb", "test/nodes/test_false.rb", "test/nodes/test_grouping.rb", "test/nodes/test_infix_operation.rb", "test/nodes/test_insert_statement.rb", "test/nodes/test_named_function.rb", "test/nodes/test_node.rb", "test/nodes/test_not.rb", "test/nodes/test_or.rb", "test/nodes/test_over.rb", "test/nodes/test_select_core.rb", "test/nodes/test_select_statement.rb", "test/nodes/test_sql_literal.rb", "test/nodes/test_sum.rb", "test/nodes/test_table_alias.rb", "test/nodes/test_true.rb", "test/nodes/test_update_statement.rb", "test/nodes/test_window.rb", "test/support/fake_record.rb", "test/test_attributes.rb", "test/test_crud.rb", "test/test_delete_manager.rb", "test/test_factory_methods.rb", "test/test_insert_manager.rb", "test/test_select_manager.rb", "test/test_table.rb", "test/test_update_manager.rb", "test/visitors/test_bind_visitor.rb", "test/visitors/test_depth_first.rb", "test/visitors/test_dispatch_contamination.rb", "test/visitors/test_dot.rb", "test/visitors/test_ibm_db.rb", "test/visitors/test_informix.rb", "test/visitors/test_mssql.rb", "test/visitors/test_mysql.rb", "test/visitors/test_oracle.rb", "test/visitors/test_postgres.rb", "test/visitors/test_sqlite.rb", "test/visitors/test_to_sql.rb"] - s.homepage = "http://github.com/rails/arel" - s.licenses = ["MIT"] + s.summary = "Arel Really Exasperates Logicians Arel is a SQL AST manager for Ruby" + s.license = %q{MIT} + s.rdoc_options = ["--main", "README.markdown"] - s.rubygems_version = "2.2.2" - s.summary = "Arel Really Exasperates Logicians Arel is a SQL AST manager for Ruby" - s.test_files = ["test/attributes/test_attribute.rb", "test/collectors/test_bind_collector.rb", "test/collectors/test_sql_string.rb", "test/nodes/test_and.rb", "test/nodes/test_as.rb", "test/nodes/test_ascending.rb", "test/nodes/test_bin.rb", "test/nodes/test_count.rb", "test/nodes/test_delete_statement.rb", "test/nodes/test_descending.rb", "test/nodes/test_distinct.rb", "test/nodes/test_equality.rb", "test/nodes/test_extract.rb", "test/nodes/test_false.rb", "test/nodes/test_grouping.rb", "test/nodes/test_infix_operation.rb", "test/nodes/test_insert_statement.rb", "test/nodes/test_named_function.rb", "test/nodes/test_node.rb", "test/nodes/test_not.rb", "test/nodes/test_or.rb", "test/nodes/test_over.rb", "test/nodes/test_select_core.rb", "test/nodes/test_select_statement.rb", "test/nodes/test_sql_literal.rb", "test/nodes/test_sum.rb", "test/nodes/test_table_alias.rb", "test/nodes/test_true.rb", "test/nodes/test_update_statement.rb", "test/nodes/test_window.rb", "test/test_attributes.rb", "test/test_crud.rb", "test/test_delete_manager.rb", "test/test_factory_methods.rb", "test/test_insert_manager.rb", "test/test_select_manager.rb", "test/test_table.rb", "test/test_update_manager.rb", "test/visitors/test_bind_visitor.rb", "test/visitors/test_depth_first.rb", "test/visitors/test_dispatch_contamination.rb", "test/visitors/test_dot.rb", "test/visitors/test_ibm_db.rb", "test/visitors/test_informix.rb", "test/visitors/test_mssql.rb", "test/visitors/test_mysql.rb", "test/visitors/test_oracle.rb", "test/visitors/test_postgres.rb", "test/visitors/test_sqlite.rb", "test/visitors/test_to_sql.rb"] + s.extra_rdoc_files = ["History.txt", "MIT-LICENSE.txt", "README.markdown"] - if s.respond_to? :specification_version then - s.specification_version = 4 + s.files = [".gitignore",".travis.yml","Gemfile","History.txt","MIT-LICENSE.txt","README.markdown","Rakefile","arel.gemspec","lib/arel.rb","lib/arel/alias_predication.rb","lib/arel/attributes.rb","lib/arel/attributes/attribute.rb","lib/arel/collectors/bind.rb","lib/arel/collectors/plain_string.rb","lib/arel/collectors/sql_string.rb","lib/arel/compatibility/wheres.rb","lib/arel/crud.rb","lib/arel/delete_manager.rb","lib/arel/expressions.rb","lib/arel/factory_methods.rb","lib/arel/insert_manager.rb","lib/arel/math.rb","lib/arel/nodes.rb","lib/arel/nodes/and.rb","lib/arel/nodes/ascending.rb","lib/arel/nodes/binary.rb","lib/arel/nodes/count.rb","lib/arel/nodes/delete_statement.rb","lib/arel/nodes/descending.rb","lib/arel/nodes/equality.rb","lib/arel/nodes/extract.rb","lib/arel/nodes/false.rb","lib/arel/nodes/full_outer_join.rb","lib/arel/nodes/function.rb","lib/arel/nodes/grouping.rb","lib/arel/nodes/in.rb","lib/arel/nodes/infix_operation.rb","lib/arel/nodes/inner_join.rb","lib/arel/nodes/insert_statement.rb","lib/arel/nodes/join_source.rb","lib/arel/nodes/matches.rb","lib/arel/nodes/named_function.rb","lib/arel/nodes/node.rb","lib/arel/nodes/outer_join.rb","lib/arel/nodes/over.rb","lib/arel/nodes/right_outer_join.rb","lib/arel/nodes/select_core.rb","lib/arel/nodes/select_statement.rb","lib/arel/nodes/sql_literal.rb","lib/arel/nodes/string_join.rb","lib/arel/nodes/table_alias.rb","lib/arel/nodes/terminal.rb","lib/arel/nodes/true.rb","lib/arel/nodes/unary.rb","lib/arel/nodes/unqualified_column.rb","lib/arel/nodes/update_statement.rb","lib/arel/nodes/values.rb","lib/arel/nodes/window.rb","lib/arel/nodes/with.rb","lib/arel/order_predications.rb","lib/arel/predications.rb","lib/arel/select_manager.rb","lib/arel/table.rb","lib/arel/tree_manager.rb","lib/arel/update_manager.rb","lib/arel/visitors.rb","lib/arel/visitors/bind_substitute.rb","lib/arel/visitors/bind_visitor.rb","lib/arel/visitors/depth_first.rb","lib/arel/visitors/dot.rb","lib/arel/visitors/ibm_db.rb","lib/arel/visitors/informix.rb","lib/arel/visitors/mssql.rb","lib/arel/visitors/mysql.rb","lib/arel/visitors/oracle.rb","lib/arel/visitors/postgresql.rb","lib/arel/visitors/reduce.rb","lib/arel/visitors/sqlite.rb","lib/arel/visitors/to_sql.rb","lib/arel/visitors/visitor.rb","lib/arel/visitors/where_sql.rb","lib/arel/window_predications.rb","test/attributes/test_attribute.rb","test/collectors/test_bind_collector.rb","test/collectors/test_sql_string.rb","test/helper.rb","test/nodes/test_and.rb","test/nodes/test_as.rb","test/nodes/test_ascending.rb","test/nodes/test_bin.rb","test/nodes/test_binary.rb","test/nodes/test_count.rb","test/nodes/test_delete_statement.rb","test/nodes/test_descending.rb","test/nodes/test_distinct.rb","test/nodes/test_equality.rb","test/nodes/test_extract.rb","test/nodes/test_false.rb","test/nodes/test_grouping.rb","test/nodes/test_infix_operation.rb","test/nodes/test_insert_statement.rb","test/nodes/test_named_function.rb","test/nodes/test_node.rb","test/nodes/test_not.rb","test/nodes/test_or.rb","test/nodes/test_over.rb","test/nodes/test_select_core.rb","test/nodes/test_select_statement.rb","test/nodes/test_sql_literal.rb","test/nodes/test_sum.rb","test/nodes/test_table_alias.rb","test/nodes/test_true.rb","test/nodes/test_update_statement.rb","test/nodes/test_window.rb","test/support/fake_record.rb","test/test_attributes.rb","test/test_crud.rb","test/test_delete_manager.rb","test/test_factory_methods.rb","test/test_insert_manager.rb","test/test_select_manager.rb","test/test_table.rb","test/test_update_manager.rb","test/visitors/test_bind_visitor.rb","test/visitors/test_depth_first.rb","test/visitors/test_dispatch_contamination.rb","test/visitors/test_dot.rb","test/visitors/test_ibm_db.rb","test/visitors/test_informix.rb","test/visitors/test_mssql.rb","test/visitors/test_mysql.rb","test/visitors/test_oracle.rb","test/visitors/test_postgres.rb","test/visitors/test_sqlite.rb","test/visitors/test_to_sql.rb"] + s.require_paths = ["lib"] - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q<minitest>, ["~> 5.4"]) - s.add_development_dependency(%q<rdoc>, ["~> 4.0"]) - s.add_development_dependency(%q<hoe>, ["~> 3.12"]) - else - s.add_dependency(%q<minitest>, ["~> 5.4"]) - s.add_dependency(%q<rdoc>, ["~> 4.0"]) - s.add_dependency(%q<hoe>, ["~> 3.12"]) - end - else - s.add_dependency(%q<minitest>, ["~> 5.4"]) - s.add_dependency(%q<rdoc>, ["~> 4.0"]) - s.add_dependency(%q<hoe>, ["~> 3.12"]) - end + s.add_development_dependency('minitest', '~> 5.4') + s.add_development_dependency('hoe', '~> 3.12') end diff --git a/arel.gemspec.erb b/arel.gemspec.erb new file mode 100644 index 0000000000..203347c0e3 --- /dev/null +++ b/arel.gemspec.erb @@ -0,0 +1,24 @@ +# # -*- encoding: utf-8 -*- +$:.push File.expand_path("../lib", __FILE__) +require "arel" + +Gem::Specification.new do |s| + s.name = "arel" + s.version = Arel::VERSION + s.platform = Gem::Platform::RUBY + s.authors = ["Aaron Patterson", "Bryan Helmkamp", "Emilio Tagua", "Nick Kallen"] + s.email = ["aaron@tenderlovemaking.com", "bryan@brynary.com", "miloops@gmail.com"] + s.homepage = "https://github.com/rails/arel" + s.description = "Arel Really Exasperates Logicians\n\nArel is a SQL AST manager for Ruby. It\n\n1. Simplifies the generation of complex SQL queries\n2. Adapts to various RDBMSes\n\nIt is intended to be a framework framework; that is, you can build your own ORM\nwith it, focusing on innovative object and collection modeling as opposed to\ndatabase compatibility and query generation." + s.summary = "Arel Really Exasperates Logicians Arel is a SQL AST manager for Ruby" + s.license = %q{MIT} + + s.rdoc_options = ["--main", "README.markdown"] + s.extra_rdoc_files = ["History.txt", "MIT-LICENSE.txt", "README.markdown"] + + s.files = [<%= files.map(&:inspect).join ',' %>] + s.require_paths = ["lib"] + + s.add_development_dependency('minitest', '~> 5.4') + s.add_development_dependency('hoe', '~> 3.12') +end |