use new jeweler gemspec.version = feature, hooray
This commit is contained in:
parent
a34f8e8beb
commit
cc032a7381
18
Rakefile
18
Rakefile
@ -5,26 +5,9 @@ end
|
||||
begin
|
||||
require 'jeweler'
|
||||
|
||||
# We're not putting VERSION or VERSION.yml in the root,
|
||||
# so we have to help Jeweler find our version.
|
||||
$LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
|
||||
require 'fakefs/version'
|
||||
|
||||
FakeFS::Version.instance_eval do
|
||||
def refresh
|
||||
end
|
||||
end
|
||||
|
||||
class Jeweler
|
||||
def version_helper
|
||||
FakeFS::Version
|
||||
end
|
||||
|
||||
def version_exists?
|
||||
true
|
||||
end
|
||||
end
|
||||
|
||||
Jeweler::Tasks.new do |gemspec|
|
||||
gemspec.name = "fakefs"
|
||||
gemspec.summary = "A fake filesystem. Use it in your tests."
|
||||
@ -33,6 +16,7 @@ begin
|
||||
gemspec.description = "A fake filesystem. Use it in your tests."
|
||||
gemspec.authors = ["Chris Wanstrath"]
|
||||
gemspec.has_rdoc = false
|
||||
gemspec.version = FakeFS::Version.to_s
|
||||
end
|
||||
rescue LoadError
|
||||
puts "Jeweler not available."
|
||||
|
Loading…
Reference in New Issue
Block a user