Sha256: 79ae3b2c290de60da8891646b5fe0d3c27d90fdafe3ebbd96757018d3921e1e9
Contents?: true
Size: 1.59 KB
Versions: 1
Compression:
Stored size: 1.59 KB
Contents
require 'pathname' def require_task(path) begin require path yield rescue LoadError puts '', "Could not load '#{path}'.", 'Try to `rake gem:spec` and `bundle install` and try again.', '' end end spec = Gem::Specification.new do |s| # Variables s.name = 'super_model' s.author = 'Ryan Scott Lewis' s.email = 'ryan@rynet.us' s.summary = '' s.description = '' # Dependencies s.add_dependency 'version', '~> 1.0.0' s.add_dependency 'active_support', '~> 3.0.0' s.add_development_dependency 'guard-rspec', '~> 2.4.1' s.add_development_dependency 'guard-yard', '~> 2.0.1' s.add_development_dependency 'rb-fsevent', '~> 0.9.3' s.add_development_dependency 'fuubar', '~> 1.1.0' s.add_development_dependency 'redcarpet', '~> 2.2.2' s.add_development_dependency 'github-markup', '~> 0.7.5' # Pragmatically set variables s.homepage = "http://github.com/RyanScottLewis/#{s.name}" s.version = Pathname.glob('VERSION*').first.read s.require_paths = ['lib'] s.files = `git ls-files`.lines.to_a.collect { |s| s.strip } s.executables = `git ls-files -- bin/*`.lines.to_a.collect { |s| File.basename(s.strip) } end desc 'Generate the gemspec defined in this Rakefile' task :gemspec do Pathname.new("#{spec.name}.gemspec").open('w') { |f| f.write(spec.to_ruby) } end require_task 'rake/version_task' do Rake::VersionTask.new do |t| t.with_git_tag = true t.with_gemspec = spec end end require 'rubygems/package_task' Gem::PackageTask.new(spec) do |t| t.need_zip = false t.need_tar = false end task :default => :gemspec
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
super_model-0.0.1 | Rakefile |