require 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -63,11 +63,6 @@ class Require
63
63
  end
64
64
  end
65
65
 
66
- desc "Package gem"
67
- Rake::GemPackageTask.new(Require.gemspec) do |pkg|
68
- pkg.gem_spec = Require.gemspec
69
- end
70
-
71
66
  namespace :gem do
72
67
  desc "Install gem"
73
68
  task :install do
@@ -108,7 +103,14 @@ namespace :gems do
108
103
  end
109
104
  end
110
105
 
111
- if defined?(Spec)
106
+ if defined?(Rake::GemPackageTask)
107
+ desc "Package gem"
108
+ Rake::GemPackageTask.new(Require.gemspec) do |pkg|
109
+ pkg.gem_spec = Require.gemspec
110
+ end
111
+ end
112
+
113
+ if defined?(Spec::Rake::SpecTask)
112
114
  desc "Run specs"
113
115
  Spec::Rake::SpecTask.new do |t|
114
116
  t.spec_opts = ["--format", "specdoc", "--colour"]
data/require.rb CHANGED
@@ -11,7 +11,7 @@ Require do
11
11
  name 'require'
12
12
  homepage "http://github.com/winton/#{name}"
13
13
  summary "Manage your project's dependencies with a pretty DSL"
14
- version '0.2.6'
14
+ version '0.2.7'
15
15
  end
16
16
 
17
17
  rakefile do
@@ -25,7 +25,7 @@ class Require
25
25
 
26
26
  s = Require.gemspec
27
27
  s.authors.should == [ "Winton Welsh" ]
28
- s.date.should == Time.utc(Time.now.year, Time.now.mon, Time.now.mday, 8)
28
+ s.date.should == Time.local(Time.now.year, Time.now.mon, Time.now.mday, 0)
29
29
  s.default_executable.should == "bin"
30
30
  s.dependencies.should == [Gem::Dependency.new("rspec", Gem::Requirement.new(["= 1.3.0"]), :runtime)]
31
31
  s.email.should == 'mail@wintoni.us'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: require
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winton Welsh
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-11 00:00:00 -08:00
12
+ date: 2010-04-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15