dm-is-predefined.gemspec in dm-is-predefined-0.3.0 vs dm-is-predefined.gemspec in dm-is-predefined-0.3.1

- old
+ new

@@ -1,75 +1,15 @@ -# Generated by jeweler -# DO NOT EDIT THIS FILE DIRECTLY -# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command # -*- encoding: utf-8 -*- -Gem::Specification.new do |s| - s.name = %q{dm-is-predefined} - s.version = "0.3.0" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = ["Postmodern"] - s.date = %q{2010-06-10} - s.description = %q{A DataMapper plugin for adding predefined resources to Models.} - s.email = %q{postmodern.mod3@gmail.com} - s.extra_rdoc_files = [ - "ChangeLog.md", - "LICENSE.txt", - "README.md" - ] - s.files = [ - ".gitignore", - ".specopts", - ".yardopts", - "ChangeLog.md", - "Gemfile", - "LICENSE.txt", - "README.md", - "Rakefile", - "VERSION", - "dm-is-predefined.gemspec", - "lib/dm-is-predefined.rb", - "lib/dm-is-predefined/is/exceptions/unknown_resource.rb", - "lib/dm-is-predefined/is/predefined.rb", - "spec/integration/models/test_model.rb", - "spec/integration/predefined_spec.rb", - "spec/spec_helper.rb" - ] - s.has_rdoc = %q{yard} - s.homepage = %q{http://github.com/postmodern/dm-is-predefined} - s.licenses = ["MIT"] - s.require_paths = ["lib"] - s.rubygems_version = %q{1.3.7} - s.summary = %q{A DataMapper plugin for adding predefined resources to Models.} - s.test_files = [ - "spec/integration/models/test_model.rb", - "spec/integration/predefined_spec.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::VERSION) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q<activesupport>, ["~> 3.0.0.beta3"]) - s.add_runtime_dependency(%q<dm-core>, ["~> 1.0.0"]) - s.add_development_dependency(%q<rake>, ["~> 0.8.7"]) - s.add_development_dependency(%q<jeweler>, ["~> 1.4.0"]) - s.add_development_dependency(%q<rspec>, ["~> 1.3.0"]) - else - s.add_dependency(%q<activesupport>, ["~> 3.0.0.beta3"]) - s.add_dependency(%q<dm-core>, ["~> 1.0.0"]) - s.add_dependency(%q<rake>, ["~> 0.8.7"]) - s.add_dependency(%q<jeweler>, ["~> 1.4.0"]) - s.add_dependency(%q<rspec>, ["~> 1.3.0"]) - end - else - s.add_dependency(%q<activesupport>, ["~> 3.0.0.beta3"]) - s.add_dependency(%q<dm-core>, ["~> 1.0.0"]) - s.add_dependency(%q<rake>, ["~> 0.8.7"]) - s.add_dependency(%q<jeweler>, ["~> 1.4.0"]) - s.add_dependency(%q<rspec>, ["~> 1.3.0"]) +begin + Ore::Specification.new do |gemspec| + # custom logic here end +rescue NameError + begin + require 'ore/specification' + retry + rescue LoadError + STDERR.puts "The '#{__FILE__}' file requires Ore." + STDERR.puts "Run `gem install ore-core` to install Ore." + end end -