require 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/require/tasks.rb +8 -6
- data/require.rb +1 -1
- data/spec/require/gemspec_spec.rb +1 -1
- metadata +2 -2
data/lib/require/tasks.rb
CHANGED
@@ -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?(
|
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
@@ -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.
|
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.
|
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-
|
12
|
+
date: 2010-04-08 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|