newgem 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/newgem +0 -6
- data/lib/newgem/version.rb +2 -2
- data/templates/Rakefile +9 -6
- metadata +4 -4
data/bin/newgem
CHANGED
@@ -47,7 +47,6 @@ rakefile, changelog, readme, setup = %w(Rakefile CHANGELOG README setup.rb).
|
|
47
47
|
collect {|f| project_name + '/' + f}
|
48
48
|
|
49
49
|
test = project_name + "/test"
|
50
|
-
all_tests = test + "/all_tests.rb"
|
51
50
|
main = project_name + "/lib/" + project_name + ".rb"
|
52
51
|
test_helper = test + "/test_helper.rb"
|
53
52
|
unit_test = test + "/" + project_name + "_test.rb"
|
@@ -132,11 +131,6 @@ end
|
|
132
131
|
puts "creating: " + test
|
133
132
|
Dir.mkdir test
|
134
133
|
|
135
|
-
puts "creating: " + all_tests
|
136
|
-
File.open(all_tests, 'w') do |file|
|
137
|
-
file << "Dir['**/*_test.rb'].each { |test_case| require test_case }"
|
138
|
-
end
|
139
|
-
|
140
134
|
puts "creating: " + test_helper
|
141
135
|
File.open(test_helper, 'w') do |file|
|
142
136
|
file << <<-eos
|
data/lib/newgem/version.rb
CHANGED
data/templates/Rakefile
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
3
|
require 'rake/clean'
|
4
|
+
require 'rake/testtask'
|
4
5
|
require 'rake/packagetask'
|
5
6
|
require 'rake/gempackagetask'
|
6
7
|
require 'rake/rdoctask'
|
@@ -12,9 +13,9 @@ require File.join(File.dirname(__FILE__), 'lib', '#{gem_name}', 'version')
|
|
12
13
|
AUTHOR = "#{author}"
|
13
14
|
EMAIL = "your contact email for bug fixes and info"
|
14
15
|
DESCRIPTION = "description of gem"
|
15
|
-
HOMEPATH = 'http://#{gem_name}.rubyforge.org'
|
16
|
-
BIN_FILES = %w( #{bin_names} )
|
17
16
|
RUBYFORGE_PROJECT = "#{gem_name}"
|
17
|
+
HOMEPATH = "http://\#{RUBYFORGE_PROJECT}.rubyforge.org"
|
18
|
+
BIN_FILES = %w( #{bin_names} )
|
18
19
|
|
19
20
|
|
20
21
|
NAME = "#{gem_name}"
|
@@ -31,9 +32,11 @@ desc "Packages up #{gem_name} gem."
|
|
31
32
|
task :default => [:test]
|
32
33
|
task :package => [:clean]
|
33
34
|
|
34
|
-
|
35
|
-
|
36
|
-
|
35
|
+
Rake::TestTask.new("test") { |t|
|
36
|
+
t.libs << "test"
|
37
|
+
t.pattern = "test/**/*_test.rb"
|
38
|
+
t.verbose = true
|
39
|
+
}
|
37
40
|
|
38
41
|
spec =
|
39
42
|
Gem::Specification.new do |s|
|
@@ -58,7 +61,7 @@ spec =
|
|
58
61
|
#s.required_ruby_version = '>= 1.8.2'
|
59
62
|
|
60
63
|
s.files = %w(README CHANGELOG Rakefile) +
|
61
|
-
Dir.glob("{bin,doc,test,lib,templates,extras,website,script}/**/*") +
|
64
|
+
Dir.glob("{bin,doc,test,lib,templates,generator,extras,website,script}/**/*") +
|
62
65
|
Dir.glob("ext/**/*.{h,c,rb}") +
|
63
66
|
Dir.glob("examples/**/*.rb") +
|
64
67
|
Dir.glob("tools/*.rb")
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: newgem
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2006-10-
|
6
|
+
version: 0.6.0
|
7
|
+
date: 2006-10-19 00:00:00 +02:00
|
8
8
|
summary: Make your own gems at home
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -36,9 +36,9 @@ files:
|
|
36
36
|
- lib/newgem
|
37
37
|
- lib/newgem.rb
|
38
38
|
- lib/newgem/version.rb
|
39
|
-
- templates/test.rb
|
40
|
-
- templates/setup.rb
|
41
39
|
- templates/Rakefile
|
40
|
+
- templates/setup.rb
|
41
|
+
- templates/test.rb
|
42
42
|
- website/index.html
|
43
43
|
- website/version-raw.js
|
44
44
|
- website/version.js
|