Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Switch to a timestamped version.

  • Loading branch information...
commit c2fd4dc481754ef590d204ee1f25f0466e49834d 1 parent 858260e
@jbarnette authored
Showing with 22 additions and 13 deletions.
  1. +4 −6 Rakefile
  2. +3 −1 lib/pastejour/version.rb
  3. +15 −6 pastejour.gemspec
View
10 Rakefile
@@ -30,12 +30,10 @@ Rake::GemPackageTask.new(pastejour_gemspec) do |pkg|
end
namespace :gem do
- namespace :spec do
- desc "Update pastejour.gemspec"
- task :generate do
- File.open("pastejour.gemspec", "w") do |f|
- f.puts(pastejour_gemspec.to_ruby)
- end
+ desc "Update pastejour.gemspec"
+ task :spec do
+ File.open("pastejour.gemspec", "w") do |f|
+ f.puts(pastejour_gemspec.to_ruby)
end
end
end
View
4 lib/pastejour/version.rb
@@ -1,3 +1,5 @@
module Pastejour
- VERSION = "1.0.4".freeze
+ major, minor, tiny = 1, 0, 0
+ nano = ENV['RELEASE'] ? nil : Time.now.strftime("%Y%m%d%H%M")
+ VERSION = [major, minor, tiny, nano].compact.join('.').freeze
end
View
21 pastejour.gemspec
@@ -1,13 +1,11 @@
Gem::Specification.new do |s|
s.name = %q{pastejour}
- s.version = "1.0.4"
-
- s.specification_version = 2 if s.respond_to? :specification_version=
+ s.version = "1.0.0.200808041733"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["John Barnette", "Evan Phoenix"]
s.autorequire = %q{pastejour}
- s.date = %q{2008-06-04}
+ s.date = %q{2008-08-04}
s.default_executable = %q{pastejour}
s.description = %q{Broadcast standard out.}
s.email = %q{jbarnette@rubyforge.org}
@@ -17,8 +15,19 @@ Gem::Specification.new do |s|
s.has_rdoc = true
s.homepage = %q{http://github.com/jbarnette/pastejour}
s.require_paths = ["lib"]
- s.rubygems_version = %q{1.1.1}
+ s.rubygems_version = %q{1.2.0}
s.summary = %q{Broadcast standard out.}
- s.add_dependency(%q<dnssd>, [">= 0.6.0"])
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 2
+
+ if current_version >= 3 then
+ s.add_runtime_dependency(%q<dnssd>, [">= 0.6.0"])
+ else
+ s.add_dependency(%q<dnssd>, [">= 0.6.0"])
+ end
+ else
+ s.add_dependency(%q<dnssd>, [">= 0.6.0"])
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.