Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gemspec for v2.1.1

  • Loading branch information...
commit 27ee36eb6cca6886fa147e2ceff8618200c41adf 1 parent bcae891
@mislav authored
Showing with 62 additions and 0 deletions.
  1. +32 −0 Rakefile
  2. +30 −0 addressable.gemspec
View
32 Rakefile
@@ -31,6 +31,38 @@ Ruby's standard library. It more closely conforms to the relevant RFCs and
adds support for IRIs and URI templates.
TEXT
+desc "generates .gemspec file"
+task :gemspec do
+ spec = Gem::Specification.new do |p|
+ p.name = 'addressable'
+ p.version = PKG_VERSION
+
+ p.summary = PKG_SUMMARY
+ p.description = PKG_DESCRIPTION
+
+ p.author = 'Bob Aman'
+ p.email = 'bob@sporkmonger.com'
+ p.homepage = 'http://github.com/mislav/addressable'
+ p.rubyforge_project = nil
+
+ p.files = FileList['Rakefile', '{bin,lib,tasks,spec}/**/*', 'README*', 'LICENSE*', 'CHANGELOG*'] & `git ls-files`.split
+
+ p.executables = Dir['bin/*'].map { |f| File.basename(f) }
+
+ p.has_rdoc = true
+ end
+
+ spec_string = spec.to_ruby
+
+ begin
+ Thread.new { eval("$SAFE = 3\n#{spec_string}", binding) }.join
+ rescue
+ abort "unsafe gemspec: #{$!}"
+ else
+ File.open("#{spec.name}.gemspec", 'w') { |file| file.write spec_string }
+ end
+end
+
PKG_FILES = FileList[
"lib/**/*", "spec/**/*", "vendor/**/*",
"tasks/**/*", "website/**/*",
View
30 addressable.gemspec
@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = %q{addressable}
+ s.version = "2.1.1"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Bob Aman"]
+ s.date = %q{2009-09-27}
+ s.description = %q{Addressable is a replacement for the URI implementation that is part of
+Ruby's standard library. It more closely conforms to the relevant RFCs and
+adds support for IRIs and URI templates.
+}
+ s.email = %q{bob@sporkmonger.com}
+ s.files = ["Rakefile", "lib/addressable/idna.rb", "lib/addressable/template.rb", "lib/addressable/uri.rb", "lib/addressable/version.rb", "tasks/clobber.rake", "tasks/gem.rake", "tasks/git.rake", "tasks/metrics.rake", "tasks/rdoc.rake", "tasks/rubyforge.rake", "tasks/spec.rake", "spec/addressable/idna_spec.rb", "spec/addressable/template_spec.rb", "spec/addressable/uri_spec.rb", "spec/data/rfc3986.txt", "README", "LICENSE", "CHANGELOG"]
+ s.homepage = %q{http://github.com/mislav/addressable}
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.5}
+ s.summary = %q{URI Implementation}
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
+ else
+ end
+ else
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.