ffi-libc.gemspec in ffi-libc-0.0.3 vs ffi-libc.gemspec in ffi-libc-0.0.4
- old
+ new
@@ -1,77 +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{ffi-libc}
- s.version = "0.0.3"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Postmodern"]
- s.date = %q{2010-08-03}
- s.description = %q{Useful Ruby FFI bindings for libc.}
- 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",
- "ffi-libc.gemspec",
- "lib/ffi/libc.rb",
- "lib/ffi/libc/af.rb",
- "lib/ffi/libc/in6_addr.rb",
- "lib/ffi/libc/in_addr.rb",
- "lib/ffi/libc/libc.rb",
- "lib/ffi/libc/sock_addr.rb",
- "lib/ffi/libc/sock_addr_dl.rb",
- "lib/ffi/libc/sock_addr_family.rb",
- "lib/ffi/libc/sock_addr_in.rb",
- "lib/ffi/libc/sock_addr_in6.rb",
- "lib/ffi/libc/timeval.rb",
- "lib/ffi/libc/timezone.rb",
- "lib/ffi/libc/types.rb"
- ]
- s.has_rdoc = %q{yard}
- s.homepage = %q{http://github.com/postmodern/ffi-libc}
- s.licenses = ["MIT"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Useful FFI bindings for libc}
-
- 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<ffi>, ["~> 0.6.0"])
- s.add_development_dependency(%q<bundler>, ["~> 0.9.25"])
- 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<ffi>, ["~> 0.6.0"])
- s.add_dependency(%q<bundler>, ["~> 0.9.25"])
- 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<ffi>, ["~> 0.6.0"])
- s.add_dependency(%q<bundler>, ["~> 0.9.25"])
- 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 'ffi-libc.gemspec' file requires Ore."
+ STDERR.puts "Run `gem install ore-core` to install Ore."
+ end
end
-