Permalink
Browse files

* Add newgem files

  • Loading branch information...
smtlaissezfaire committed Oct 27, 2008
1 parent 7cff19b commit c075dc43f839d609d357033148d9b0dfc35ff32f
View
@@ -0,0 +1,4 @@
+== 0.0.1 2008-10-26
+
+* 1 major enhancement:
+ * Initial release
View
@@ -0,0 +1,172 @@
+DEPENDENCIES
+History.txt
+Manifest.txt
+PostInstall.txt
+README
+README.rdoc
+Rakefile
+Rakefile.14157.0
+SQL92_SPEC
+TAGS
+TODO
+benchmarks/order_with_sort_by.benchmark
+benchmarks/ordering.benchmark
+benchmarks/ordering.rb
+benchmarks/parse_insert_2000.rb
+benchmarks/parse_insert_2000/handwritten_preparser_with_compilation
+benchmarks/parse_insert_2000/handwritten_preparser_without_compilation
+benchmarks/parse_insert_2000/treetop_preparser_with_compilation
+benchmarks/parse_insert_2000/treetop_preparser_without_compilation
+config/hoe.rb
+config/requirements.rb
+lib/guillotine.rb
+lib/guillotine.rb.14157.0
+lib/guillotine/assertions.rb
+lib/guillotine/conditions.rb
+lib/guillotine/conditions/and_condition.rb
+lib/guillotine/conditions/base.rb
+lib/guillotine/conditions/or_condition.rb
+lib/guillotine/data_store.rb
+lib/guillotine/expressions.rb
+lib/guillotine/expressions/backtick_string.rb
+lib/guillotine/expressions/base.rb
+lib/guillotine/expressions/column.rb
+lib/guillotine/expressions/delete.rb
+lib/guillotine/expressions/expressions.rb
+lib/guillotine/expressions/from.rb
+lib/guillotine/expressions/group_by.rb
+lib/guillotine/expressions/insert.rb
+lib/guillotine/expressions/limit.rb
+lib/guillotine/expressions/order_by.rb
+lib/guillotine/expressions/select.rb
+lib/guillotine/expressions/select_expression.rb
+lib/guillotine/expressions/truncate.rb
+lib/guillotine/extensions.rb
+lib/guillotine/extensions/fixnum.rb
+lib/guillotine/extensions/object.rb
+lib/guillotine/extensions/string.rb
+lib/guillotine/extensions/symbol.rb
+lib/guillotine/keywords.rb
+lib/guillotine/parser.rb
+lib/guillotine/parser/c_extensions/#asdfas#
+lib/guillotine/parser/c_extensions/CQuotesParser.c
+lib/guillotine/parser/c_extensions/CQuotesParser.o
+lib/guillotine/parser/c_extensions/Makefile
+lib/guillotine/parser/c_extensions/c_quotes_parser.bundle
+lib/guillotine/parser/c_extensions/extconf.rb
+lib/guillotine/parser/primitives.treetop
+lib/guillotine/parser/quotes_parser.rb
+lib/guillotine/parser/sql.treetop
+lib/guillotine/parser/sql_chars.treetop
+lib/guillotine/parser/sql_delete.treetop
+lib/guillotine/parser/sql_drop_table.treetop
+lib/guillotine/parser/sql_from_clause.treetop
+lib/guillotine/parser/sql_group_by_clause.treetop
+lib/guillotine/parser/sql_helpers.treetop
+lib/guillotine/parser/sql_insert.treetop
+lib/guillotine/parser/sql_key_value_pair.treetop
+lib/guillotine/parser/sql_limit.treetop
+lib/guillotine/parser/sql_order_by_clause.treetop
+lib/guillotine/parser/sql_row_support.treetop
+lib/guillotine/parser/sql_select.treetop
+lib/guillotine/parser/sql_select_clause.treetop
+lib/guillotine/parser/sql_show_tables.treetop
+lib/guillotine/parser/sql_transaction.treetop
+lib/guillotine/parser/sql_where_condition.treetop
+lib/guillotine/parser/truncate.treetop
+lib/guillotine/pre_parser.rb
+lib/guillotine/rake.rb
+lib/guillotine/rake/emacs.rb
+lib/guillotine/rake/treetop.rb
+lib/guillotine/require.rb
+lib/guillotine/statement_executor.rb
+lib/guillotine/test_support.rb
+lib/guillotine/test_support/connection.rb
+lib/guillotine/test_support/mysql_overrider.rb
+lib/guillotine/test_support/rspec.rb
+lib/guillotine/transactions.rb
+lib/guillotine/transactions/id_generator.rb
+lib/guillotine/transactions/store.rb
+lib/guillotine/transactions/transaction.rb
+lib/guillotine/version.rb
+lib/guillotine/version.rb.14157.0
+script/console
+script/destroy
+script/generate
+script/txt2html
+setup.rb
+spec/guillotine/#asdfasd#
+spec/guillotine/#connection_spec.rb#
+spec/guillotine/#timed_cache_spec.rb#
+spec/guillotine/conditions_spec.rb
+spec/guillotine/data_store/table_spec.rb
+spec/guillotine/data_store_spec.rb
+spec/guillotine/expressions/base_spec.rb
+spec/guillotine/expressions/column_spec.rb
+spec/guillotine/expressions/delete_spec.rb
+spec/guillotine/expressions/from_expression_spec.rb
+spec/guillotine/expressions/group_by_spec.rb
+spec/guillotine/expressions/insert_spec.rb
+spec/guillotine/expressions/insert_spec.rb~
+spec/guillotine/expressions/joiner_spec.rb
+spec/guillotine/expressions/limit_spec.rb
+spec/guillotine/expressions/order_by_spec.rb
+spec/guillotine/expressions/select_expression_spec.rb
+spec/guillotine/expressions/select_spec.rb
+spec/guillotine/expressions/truncate_spec.rb
+spec/guillotine/expressions_spec.rb
+spec/guillotine/extensions/integer_spec.rb
+spec/guillotine/extensions/object_spec.rb
+spec/guillotine/extensions/string_spec.rb
+spec/guillotine/extensions/symbol_spec.rb
+spec/guillotine/integration/#asdfas#
+spec/guillotine/integration/database.yml
+spec/guillotine/integration/rspec_test_support_spec.rb
+spec/guillotine/integration/spec_helper.rb
+spec/guillotine/keywords_spec.rb
+spec/guillotine/parser/#asdfa#
+spec/guillotine/parser/quotes_spec.rb
+spec/guillotine/parser/sql_delete_spec.rb
+spec/guillotine/parser/sql_from_clause_spec.rb
+spec/guillotine/parser/sql_group_by_clause_spec.rb
+spec/guillotine/parser/sql_insert_clause_spec.rb
+spec/guillotine/parser/sql_key_value_pair_spec.rb
+spec/guillotine/parser/sql_limit_parser_spec.rb
+spec/guillotine/parser/sql_order_by_clause_spec.rb
+spec/guillotine/parser/sql_primitives_spec.rb
+spec/guillotine/parser/sql_select_clause_spec.rb
+spec/guillotine/parser/sql_select_spec.rb
+spec/guillotine/parser/sql_show_tables_spec.rb
+spec/guillotine/parser/sql_spec.rb
+spec/guillotine/parser/sql_table_operations_spec.rb
+spec/guillotine/parser/sql_transaction_spec.rb
+spec/guillotine/parser/sql_truncate_spec.rb
+spec/guillotine/parser/sql_where_clause_spec.rb
+spec/guillotine/pre_parser_spec.rb
+spec/guillotine/require_spec.rb
+spec/guillotine/sql_parser/backtick_string_spec.rb
+spec/guillotine/sql_parser/expression_spec.rb
+spec/guillotine/statement_executor_spec.rb
+spec/guillotine/test_support/connection_spec.rb
+spec/guillotine/test_support/mysql_overrider_spec.rb
+spec/guillotine/test_support/rspec_spec.rb
+spec/guillotine/transactions/id_generator_spec.rb
+spec/guillotine/transactions/store_spec.rb
+spec/guillotine/transactions/transaction_spec.rb
+spec/guillotine/version_spec.rb
+spec/guillotine_spec.rb
+spec/regressions/#or_spec.rb#
+spec/regressions/or_spec.rb
+spec/spec.opts
+spec/spec_helper.rb
+tasks/deployment.rake
+tasks/environment.rake
+tasks/website.rake
+test/test_guillotine.rb
+test/test_helper.rb
+tmp.diff
+website/index.html
+website/index.txt
+website/javascripts/rounded_corners_lite.inc.js
+website/stylesheets/screen.css
+website/template.html.erb
View
@@ -0,0 +1,7 @@
+
+For more information on guillotine, see http://guillotine.rubyforge.org
+
+NOTE: Change this information in PostInstall.txt
+You can also delete it if you don't want it.
+
+
View
@@ -1,80 +1,12 @@
-
-require File.dirname(__FILE__) + "/lib/guillotine"
-TASKS = Guillotine::RakeTasks
-
-namespace :c_extensions do
- desc "Build C extension"
- task :make do
- dir = "#{File.dirname(__FILE__)}/lib/guillotine/parser/c_extensions"
- sh "ruby #{dir}/extconf.rb --with-c-quotes-parser-dir='#{dir}'"
- sh "make #{dir}"
- end
-
- desc "Clean C extension auto-generated files"
- task :clean do
- files = [
- "lib/guillotine/parser/c_extensions/CQuotesParser.o",
- "lib/guillotine/parser/c_extensions/Makefile",
- "lib/guillotine/parser/c_extensions/c_quotes_parser.bundle"
- ]
-
- root_path = File.dirname(__FILE__)
-
- files.each do |file|
- file = "#{root_path}/#{file}"
- FileUtils.rm("#{root_path}/#{file}") if File.exists?(file)
- end
- end
-end
-
-namespace :tags do
- ruby_files = TASKS::Emacs::Tags::RUBY_FILES
-
- task :emacs => ruby_files do
- puts "Making Emacs TAGS file"
- sh "ctags -e #{ruby_files}", :verbose => false
- end
-end
-
-namespace :treetop do
- task :compile do
- TASKS::Treetop.compile
- end
-end
-
-namespace :spec do
- Spec::Rake::SpecTask.new(:examples) do |t|
- t.spec_files = FileList['spec/**/*.rb']
- t.spec_opts = ["--diff", "--color", "--reverse", "--format", "profile"]
- end
-
- Spec::Rake::SpecTask.new(:rcov) do |t|
- t.rcov = true
- t.spec_files = FileList['spec/**/*.rb']
- t.rcov_dir = "doc/coverage"
- t.rcov_opts = ["--exclude", "rcov,rspec,facets,polyglot,gems.*treetop,spec,parser\/.+\.rb"]
- end
-
- RCov::VerifyTask.new(:verify_rcov => :spec) do |t|
- t.threshold = 100.0 # Make sure you have rcov 0.7 or higher!
- t.index_html = 'doc/coverage/index.html'
- end
-end
-
-
-desc "Run all specs"
-task :spec => ["c_extensions:make", "spec:examples"]
-
-desc "Build the emacs tags file"
-task :tags => ["tags:emacs"]
-
-desc "Recompile the treetop files"
-task :treetop => ["treetop:compile"]
-
-desc "Verify the sanity of the project (run rake spec and verify rcov report)"
-task :test => ["spec:rcov", "spec:verify_rcov"]
-
-desc "Build the project"
-task :build => [:treetop, :tags, :test]
-
-task :default => :spec
+require 'config/requirements'
+require 'config/hoe' # setup Hoe + all gem configuration
+
+Dir['tasks/**/*.rake'].each { |rake| load rake }
+
+desc "Verify the sanity of the project (run rake spec and verify rcov report)"
+task :test => ["spec:rcov", "spec:verify_rcov"]
+
+desc "Build the project"
+task :build => [:treetop, :tags, :test]
+
+task :default => :spec
View
@@ -0,0 +1,77 @@
+require 'guillotine/version'
+
+AUTHOR = 'FIXME full name' # can also be an array of Authors
+EMAIL = "FIXME email"
+DESCRIPTION = "description of gem"
+GEM_NAME = 'guillotine' # what ppl will type to install your gem
+RUBYFORGE_PROJECT = 'guillotine' # The unix name for your project
+HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
+DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
+EXTRA_DEPENDENCIES = [
+# ['activesupport', '>= 1.3.1']
+] # An array of rubygem dependencies [name, version]
+EXTRA_DEV_DEPENDENCIES = [
+# ['rspec', '>= 1.1.5']
+] # An array of rubygem dependencies [name, version]
+
+@config_file = "~/.rubyforge/user-config.yml"
+@config = nil
+RUBYFORGE_USERNAME = "unknown"
+def rubyforge_username
+ unless @config
+ begin
+ @config = YAML.load(File.read(File.expand_path(@config_file)))
+ rescue
+ puts <<-EOS
+ERROR: No rubyforge config file found: #{@config_file}
+Run 'rubyforge setup' to prepare your env for access to Rubyforge
+ - See http://newgem.rubyforge.org/rubyforge.html for more details
+ EOS
+ exit
+ end
+ end
+ RUBYFORGE_USERNAME.replace @config["username"]
+end
+
+
+REV = nil
+# UNCOMMENT IF REQUIRED:
+# REV = YAML.load(`svn info`)['Revision']
+VERS = Guillotine::VERSION::STRING + (REV ? ".#{REV}" : "")
+RDOC_OPTS = ['--quiet', '--title', 'guillotine documentation',
+ "--opname", "index.html",
+ "--line-numbers",
+ "--main", "README",
+ "--inline-source"]
+
+class Hoe
+ def extra_deps
+ @extra_deps.reject! { |x| Array(x).first == 'hoe' }
+ @extra_deps
+ end
+end
+
+# Generate all the Rake tasks
+# Run 'rake -T' to see list of generated tasks (from gem root directory)
+$hoe = Hoe.new(GEM_NAME, VERS) do |p|
+ p.developer(AUTHOR, EMAIL)
+ p.description = DESCRIPTION
+ p.summary = DESCRIPTION
+ p.url = HOMEPATH
+ p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
+ p.test_globs = ["test/**/test_*.rb"]
+ p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store'] #An array of file patterns to delete on clean.
+
+ # == Optional
+ p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
+ p.extra_deps = EXTRA_DEPENDENCIES
+ p.extra_dev_deps = EXTRA_DEV_DEPENDENCIES
+
+ p.spec_extras = {} # A hash of extra values to set in the gemspec.
+ end
+
+CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
+PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
+$hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
+$hoe.rsync_args = '-av --delete --ignore-errors'
+$hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
View
@@ -0,0 +1,15 @@
+require 'fileutils'
+include FileUtils
+
+require 'rubygems'
+%w[rake hoe newgem rubigen].each do |req_gem|
+ begin
+ require req_gem
+ rescue LoadError
+ puts "This Rakefile requires the '#{req_gem}' RubyGem."
+ puts "Installation: gem install #{req_gem} -y"
+ exit
+ end
+end
+
+$:.unshift(File.join(File.dirname(__FILE__), %w[.. lib]))
View
@@ -19,7 +19,7 @@
autoload :StatementExecutor, "#{project}/statement_executor"
autoload :Transactions, "#{project}/transactions"
autoload :TestSupport, "#{project}/test_support"
- autoload :Version, "#{project}/version"
+ autoload :VERSION, "#{project}/version"
class << self
def execute(string)
@@ -1,9 +1,10 @@
module Guillotine
- module Version
+ module VERSION #:nodoc:
MAJOR = 0
MINOR = 0
TINY = 1
-
- VERSION = "#{MAJOR}.#{MINOR}.#{TINY}"
+
+ STRING = [MAJOR, MINOR, TINY].join('.')
+ self
end
end
Oops, something went wrong.

0 comments on commit c075dc4

Please sign in to comment.