micro_sql.gemspec in micro_sql-0.3.2 vs micro_sql.gemspec in micro_sql-0.4.1

- old
+ new

@@ -1,72 +1,46 @@ -# Generated by jeweler -# DO NOT EDIT THIS FILE DIRECTLY -# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec' -# -*- encoding: utf-8 -*- +class Gem::Specification + class GemfileEvaluator + def initialize(scope) + @scope = scope + end + + def load_dependencies(path) + instance_eval File.read(path) + end + + def source(*args); end + def group(*args); end -Gem::Specification.new do |s| - s.name = "micro_sql" - s.version = "0.3.2" + def gem(name, options = {}) + @scope.add_dependency(name) + end + end + + def load_dependencies(file) + GemfileEvaluator.new(self).load_dependencies(file) + end +end - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["radiospiel"] - s.date = "2012-04-04" - s.description = "You only need a single method to talk to your database..." - s.email = "eno@open-lab.org" - s.extra_rdoc_files = [ +Gem::Specification.new do |gem| + gem.name = "micro_sql" + gem.authors = ["radiospiel"] + gem.email = ["eno@open-lab.org"] + gem.description = "You only need a single method to talk to your database..." + gem.summary = gem.description + gem.homepage = "http://github.com/radiospiel/micro_sql" + gem.licenses = ["MIT"] + + gem.load_dependencies "Gemfile" + + gem.files = `git ls-files`.split($\) + gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } + gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) + gem.require_paths = ["lib"] + gem.version = "0.4.1" + gem.date = Time.now.strftime "%Y-%m-%d" + + gem.extra_rdoc_files = [ "LICENSE.txt", "README.rdoc" ] - s.files = [ - ".document", - "Gemfile", - "Gemfile.lock", - "LICENSE.txt", - "README.rdoc", - "Rakefile", - "VERSION", - "lib/micro_sql.rb", - "lib/micro_sql/key_value_table.rb", - "lib/micro_sql/pg_adapter.rb", - "lib/micro_sql/sqlite_adapter.rb", - "lib/micro_sql/table.rb", - "micro_sql.gemspec", - "script/watchr", - "test/helper.rb", - "test/test_micro_sql.rb", - "test/test_micro_sql_pg.rb", - "test/test_micro_sql_sqlite3.rb" - ] - s.homepage = "http://github.com/radiospiel/micro_sql" - s.licenses = ["MIT"] - s.require_paths = ["lib"] - s.rubygems_version = "1.8.17" - s.summary = "A minimal ruby interface for SQL databases" - - if s.respond_to? :specification_version then - s.specification_version = 3 - - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q<pg>, [">= 0"]) - s.add_runtime_dependency(%q<sqlite3>, [">= 0"]) - s.add_development_dependency(%q<bundler>, [">= 0"]) - s.add_development_dependency(%q<jeweler>, [">= 0"]) - s.add_development_dependency(%q<simplecov>, [">= 0"]) - s.add_development_dependency(%q<ruby-debug19>, [">= 0"]) - else - s.add_dependency(%q<pg>, [">= 0"]) - s.add_dependency(%q<sqlite3>, [">= 0"]) - s.add_dependency(%q<bundler>, [">= 0"]) - s.add_dependency(%q<jeweler>, [">= 0"]) - s.add_dependency(%q<simplecov>, [">= 0"]) - s.add_dependency(%q<ruby-debug19>, [">= 0"]) - end - else - s.add_dependency(%q<pg>, [">= 0"]) - s.add_dependency(%q<sqlite3>, [">= 0"]) - s.add_dependency(%q<bundler>, [">= 0"]) - s.add_dependency(%q<jeweler>, [">= 0"]) - s.add_dependency(%q<simplecov>, [">= 0"]) - s.add_dependency(%q<ruby-debug19>, [">= 0"]) - end end -