simple-gem 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -3
- data/lib/simple_gem/version.rb +1 -1
- data/templates/Rakefile.erb +5 -4
- data/templates/test.rb.erb +2 -2
- metadata +2 -2
data/Rakefile
CHANGED
@@ -30,9 +30,11 @@ Rake::TestTask.new do |t|
|
|
30
30
|
t.verbose = true
|
31
31
|
end
|
32
32
|
|
33
|
-
desc 'Generate the gemspec
|
34
|
-
task :
|
33
|
+
desc 'Generate the gemspec for the Gem (useful when serving from Github)'
|
34
|
+
task :gemspec do
|
35
35
|
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
|
36
36
|
File.open(file, 'w') {|f| f << spec.to_ruby }
|
37
37
|
puts "Created gemspec: #{file}"
|
38
|
-
end
|
38
|
+
end
|
39
|
+
|
40
|
+
task :github => :gemspec
|
data/lib/simple_gem/version.rb
CHANGED
data/templates/Rakefile.erb
CHANGED
@@ -47,10 +47,11 @@ rescue LoadError
|
|
47
47
|
task :default => :test
|
48
48
|
end
|
49
49
|
|
50
|
-
|
51
|
-
|
52
|
-
task :github do
|
50
|
+
desc 'Generate the gemspec for the Gem (useful when serving from Github)'
|
51
|
+
task :gemspec do
|
53
52
|
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
|
54
53
|
File.open(file, 'w') {|f| f << spec.to_ruby }
|
55
54
|
puts "Created gemspec: #{file}"
|
56
|
-
end
|
55
|
+
end
|
56
|
+
|
57
|
+
task :github => :gemspec
|
data/templates/test.rb.erb
CHANGED
@@ -2,9 +2,9 @@ require File.dirname(__FILE__) + '/../test_helper'
|
|
2
2
|
|
3
3
|
class <%= self.module_name %>Test < Test::Unit::TestCase
|
4
4
|
|
5
|
-
|
5
|
+
context "An instance of the <%= self.module_name %> class" do
|
6
6
|
|
7
|
-
|
7
|
+
should "flunk" do
|
8
8
|
flunk "Please provide some tests"
|
9
9
|
end
|
10
10
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Reagan
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-30 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|