javagems 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +9 -3
- data/VERSION +1 -1
- data/javagems.gemspec +84 -9
- data/lib/rubygems/commands/classpath_command.rb +23 -8
- data/test/classpath_command_test.rb +31 -5
- data/test/{aaaaagem_overrides_test.rb → gem_overrides_test.rb} +0 -9
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-four/.document +5 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-four/.gitignore +21 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-four/LICENSE +20 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-four/README.rdoc +18 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-four/Rakefile +52 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-four/VERSION +1 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-four/lib/test-gem-four.rb +0 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-four/test/helper.rb +10 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-four/test/test_test-gem-four.rb +7 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-four/test-gem-four.gemspec +53 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-one/.document +5 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-one/.gitignore +21 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-one/LICENSE +20 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-one/README.rdoc +18 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-one/Rakefile +51 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-one/VERSION +1 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-one/lib/test-gem-one.rb +0 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-one/test/helper.rb +10 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-one/test/test_test-gem-one.rb +7 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-one/test-gem-one.gemspec +53 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-two/.document +5 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-two/.gitignore +21 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-two/LICENSE +20 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-two/README.rdoc +18 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-two/Rakefile +52 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-two/VERSION +1 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-two/lib/test-gem-two.rb +0 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-two/test/helper.rb +10 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-two/test/test_test-gem-two.rb +7 -0
- data/test/invalid_test_app/vendor/gems/dirs/test-gem-two/test-gem-two.gemspec +53 -0
- data/test/test_helper.rb +0 -15
- data/test/valid_test_app/Gemfile +3 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-four/.document +5 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-four/.gitignore +21 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-four/LICENSE +20 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-four/README.rdoc +18 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-four/Rakefile +52 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-four/VERSION +1 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-four/lib/test-gem-four.rb +0 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-four/test/helper.rb +10 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-four/test/test_test-gem-four.rb +7 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-four/test-gem-four.gemspec +53 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-one/.document +5 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-one/.gitignore +21 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-one/LICENSE +20 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-one/README.rdoc +18 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-one/Rakefile +51 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-one/VERSION +1 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-one/lib/test-gem-one.rb +0 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-one/test/helper.rb +10 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-one/test/test_test-gem-one.rb +7 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-one/test-gem-one.gemspec +53 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-three/.document +5 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-three/.gitignore +21 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-three/LICENSE +20 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-three/README.rdoc +18 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-three/Rakefile +52 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-three/VERSION +1 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-three/lib/test-gem-three.rb +0 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-three/test/helper.rb +10 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-three/test/test_test-gem-three.rb +7 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-three/test-gem-three.gemspec +53 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-two/.document +5 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-two/.gitignore +21 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-two/LICENSE +20 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-two/README.rdoc +18 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-two/Rakefile +52 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-two/VERSION +1 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-two/lib/test-gem-two.rb +0 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-two/test/helper.rb +10 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-two/test/test_test-gem-two.rb +7 -0
- data/test/valid_test_app/vendor/gems/dirs/test-gem-two/test-gem-two.gemspec +53 -0
- data/test/valid_test_app/vendor/gems/environment.rb +107 -0
- data/test/valid_test_app/vendor/gems/specifications/test-gem-four-0.0.0.gemspec +33 -0
- data/test/valid_test_app/vendor/gems/specifications/test-gem-one-0.0.0.gemspec +33 -0
- data/test/valid_test_app/vendor/gems/specifications/test-gem-two-0.0.0.gemspec +33 -0
- metadata +83 -8
- /data/test/{test_app → invalid_test_app}/Gemfile +0 -0
- /data/test/{test_app → invalid_test_app}/vendor/gems/environment.rb +0 -0
- /data/test/{test_app → invalid_test_app}/vendor/gems/specifications/test-gem-four-0.0.0.gemspec +0 -0
- /data/test/{test_app → invalid_test_app}/vendor/gems/specifications/test-gem-one-0.0.0.gemspec +0 -0
- /data/test/{test_app → invalid_test_app}/vendor/gems/specifications/test-gem-two-0.0.0.gemspec +0 -0
- /data/test/{test_app → valid_test_app}/vendor/gems/specifications/test-gem-three-0.0.0.gemspec +0 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{test-gem-one}
|
8
|
+
s.version = "0.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["ggironda"]
|
12
|
+
s.date = %q{2009-11-14}
|
13
|
+
s.description = %q{TODO: longer description of your gem}
|
14
|
+
s.email = %q{gabriel.gironda@centro.net}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"lib/test-gem-one.rb",
|
27
|
+
"test/helper.rb",
|
28
|
+
"test/test_test-gem-one.rb"
|
29
|
+
]
|
30
|
+
s.homepage = %q{http://github.com/gabrielg/test-gem-one}
|
31
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
32
|
+
s.require_paths = ["lib"]
|
33
|
+
s.rubygems_version = %q{1.3.5}
|
34
|
+
s.summary = %q{TODO: one-line summary of your gem}
|
35
|
+
s.test_files = [
|
36
|
+
"test/helper.rb",
|
37
|
+
"test/test_test-gem-one.rb"
|
38
|
+
]
|
39
|
+
|
40
|
+
if s.respond_to? :specification_version then
|
41
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
42
|
+
s.specification_version = 3
|
43
|
+
|
44
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
45
|
+
s.add_runtime_dependency(%q<test-gem-three>, [">= 0"])
|
46
|
+
else
|
47
|
+
s.add_dependency(%q<test-gem-three>, [">= 0"])
|
48
|
+
end
|
49
|
+
else
|
50
|
+
s.add_dependency(%q<test-gem-three>, [">= 0"])
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 ggironda
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
= test-gem-two
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Note on Patches/Pull Requests
|
6
|
+
|
7
|
+
* Fork the project.
|
8
|
+
* Make your feature addition or bug fix.
|
9
|
+
* Add tests for it. This is important so I don't break it in a
|
10
|
+
future version unintentionally.
|
11
|
+
* Commit, do not mess with rakefile, version, or history.
|
12
|
+
(if you want to have your own version, that is fine but
|
13
|
+
bump version in a commit by itself I can ignore when I pull)
|
14
|
+
* Send me a pull request. Bonus points for topic branches.
|
15
|
+
|
16
|
+
== Copyright
|
17
|
+
|
18
|
+
Copyright (c) 2009 ggironda. See LICENSE for details.
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "test-gem-two"
|
8
|
+
gem.summary = %Q{TODO: one-line summary of your gem}
|
9
|
+
gem.description = %Q{TODO: longer description of your gem}
|
10
|
+
gem.email = "gabriel.gironda@centro.net"
|
11
|
+
gem.homepage = "http://github.com/gabrielg/test-gem-two"
|
12
|
+
gem.authors = ["ggironda"]
|
13
|
+
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
14
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
+
end
|
16
|
+
rescue LoadError
|
17
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
18
|
+
end
|
19
|
+
|
20
|
+
require 'rake/testtask'
|
21
|
+
Rake::TestTask.new(:test) do |test|
|
22
|
+
test.libs << 'lib' << 'test'
|
23
|
+
test.pattern = 'test/**/test_*.rb'
|
24
|
+
test.verbose = true
|
25
|
+
end
|
26
|
+
|
27
|
+
begin
|
28
|
+
require 'rcov/rcovtask'
|
29
|
+
Rcov::RcovTask.new do |test|
|
30
|
+
test.libs << 'test'
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
32
|
+
test.verbose = true
|
33
|
+
end
|
34
|
+
rescue LoadError
|
35
|
+
task :rcov do
|
36
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
task :test => :check_dependencies
|
41
|
+
|
42
|
+
task :default => :test
|
43
|
+
|
44
|
+
require 'rake/rdoctask'
|
45
|
+
Rake::RDocTask.new do |rdoc|
|
46
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
47
|
+
|
48
|
+
rdoc.rdoc_dir = 'rdoc'
|
49
|
+
rdoc.title = "test-gem-two #{version}"
|
50
|
+
rdoc.rdoc_files.include('README*')
|
51
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
52
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
0.0.0
|
File without changes
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{test-gem-two}
|
8
|
+
s.version = "0.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["ggironda"]
|
12
|
+
s.date = %q{2009-11-14}
|
13
|
+
s.description = %q{TODO: longer description of your gem}
|
14
|
+
s.email = %q{gabriel.gironda@centro.net}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"lib/test-gem-two.rb",
|
27
|
+
"test/helper.rb",
|
28
|
+
"test/test_test-gem-two.rb"
|
29
|
+
]
|
30
|
+
s.homepage = %q{http://github.com/gabrielg/test-gem-two}
|
31
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
32
|
+
s.require_paths = ["lib"]
|
33
|
+
s.rubygems_version = %q{1.3.5}
|
34
|
+
s.summary = %q{TODO: one-line summary of your gem}
|
35
|
+
s.test_files = [
|
36
|
+
"test/helper.rb",
|
37
|
+
"test/test_test-gem-two.rb"
|
38
|
+
]
|
39
|
+
|
40
|
+
if s.respond_to? :specification_version then
|
41
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
42
|
+
s.specification_version = 3
|
43
|
+
|
44
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
45
|
+
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
46
|
+
else
|
47
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
48
|
+
end
|
49
|
+
else
|
50
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
data/test/test_helper.rb
CHANGED
@@ -5,20 +5,5 @@ require 'stringio'
|
|
5
5
|
|
6
6
|
TestRoot = Pathname(__FILE__).parent
|
7
7
|
|
8
|
-
module Kernel
|
9
|
-
|
10
|
-
def capture_std_stream(stream_name)
|
11
|
-
original_stream = Object.const_get(stream_name.to_s.upcase)
|
12
|
-
fake_stream = StringIO.new
|
13
|
-
Object.const_set(stream_name.to_s.upcase, fake_stream)
|
14
|
-
yield
|
15
|
-
fake_stream.rewind
|
16
|
-
fake_stream.read
|
17
|
-
ensure
|
18
|
-
Object.const_set(stream_name.to_s.upcase, original_stream)
|
19
|
-
end
|
20
|
-
|
21
|
-
end
|
22
|
-
|
23
8
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
24
9
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 ggironda
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
= test-gem-four
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Note on Patches/Pull Requests
|
6
|
+
|
7
|
+
* Fork the project.
|
8
|
+
* Make your feature addition or bug fix.
|
9
|
+
* Add tests for it. This is important so I don't break it in a
|
10
|
+
future version unintentionally.
|
11
|
+
* Commit, do not mess with rakefile, version, or history.
|
12
|
+
(if you want to have your own version, that is fine but
|
13
|
+
bump version in a commit by itself I can ignore when I pull)
|
14
|
+
* Send me a pull request. Bonus points for topic branches.
|
15
|
+
|
16
|
+
== Copyright
|
17
|
+
|
18
|
+
Copyright (c) 2009 ggironda. See LICENSE for details.
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "test-gem-four"
|
8
|
+
gem.summary = %Q{TODO: one-line summary of your gem}
|
9
|
+
gem.description = %Q{TODO: longer description of your gem}
|
10
|
+
gem.email = "gabriel.gironda@centro.net"
|
11
|
+
gem.homepage = "http://github.com/gabrielg/test-gem-four"
|
12
|
+
gem.authors = ["ggironda"]
|
13
|
+
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
14
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
|
+
end
|
16
|
+
rescue LoadError
|
17
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
18
|
+
end
|
19
|
+
|
20
|
+
require 'rake/testtask'
|
21
|
+
Rake::TestTask.new(:test) do |test|
|
22
|
+
test.libs << 'lib' << 'test'
|
23
|
+
test.pattern = 'test/**/test_*.rb'
|
24
|
+
test.verbose = true
|
25
|
+
end
|
26
|
+
|
27
|
+
begin
|
28
|
+
require 'rcov/rcovtask'
|
29
|
+
Rcov::RcovTask.new do |test|
|
30
|
+
test.libs << 'test'
|
31
|
+
test.pattern = 'test/**/test_*.rb'
|
32
|
+
test.verbose = true
|
33
|
+
end
|
34
|
+
rescue LoadError
|
35
|
+
task :rcov do
|
36
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
task :test => :check_dependencies
|
41
|
+
|
42
|
+
task :default => :test
|
43
|
+
|
44
|
+
require 'rake/rdoctask'
|
45
|
+
Rake::RDocTask.new do |rdoc|
|
46
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
47
|
+
|
48
|
+
rdoc.rdoc_dir = 'rdoc'
|
49
|
+
rdoc.title = "test-gem-four #{version}"
|
50
|
+
rdoc.rdoc_files.include('README*')
|
51
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
52
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
0.0.0
|
File without changes
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{test-gem-four}
|
8
|
+
s.version = "0.0.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["ggironda"]
|
12
|
+
s.date = %q{2009-11-14}
|
13
|
+
s.description = %q{TODO: longer description of your gem}
|
14
|
+
s.email = %q{gabriel.gironda@centro.net}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README.rdoc"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".gitignore",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION",
|
26
|
+
"lib/test-gem-four.rb",
|
27
|
+
"test/helper.rb",
|
28
|
+
"test/test_test-gem-four.rb"
|
29
|
+
]
|
30
|
+
s.homepage = %q{http://github.com/gabrielg/test-gem-four}
|
31
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
32
|
+
s.require_paths = ["lib"]
|
33
|
+
s.rubygems_version = %q{1.3.5}
|
34
|
+
s.summary = %q{TODO: one-line summary of your gem}
|
35
|
+
s.test_files = [
|
36
|
+
"test/helper.rb",
|
37
|
+
"test/test_test-gem-four.rb"
|
38
|
+
]
|
39
|
+
|
40
|
+
if s.respond_to? :specification_version then
|
41
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
42
|
+
s.specification_version = 3
|
43
|
+
|
44
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
45
|
+
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
46
|
+
else
|
47
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
48
|
+
end
|
49
|
+
else
|
50
|
+
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 ggironda
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -0,0 +1,18 @@
|
|
1
|
+
= test-gem-one
|
2
|
+
|
3
|
+
Description goes here.
|
4
|
+
|
5
|
+
== Note on Patches/Pull Requests
|
6
|
+
|
7
|
+
* Fork the project.
|
8
|
+
* Make your feature addition or bug fix.
|
9
|
+
* Add tests for it. This is important so I don't break it in a
|
10
|
+
future version unintentionally.
|
11
|
+
* Commit, do not mess with rakefile, version, or history.
|
12
|
+
(if you want to have your own version, that is fine but
|
13
|
+
bump version in a commit by itself I can ignore when I pull)
|
14
|
+
* Send me a pull request. Bonus points for topic branches.
|
15
|
+
|
16
|
+
== Copyright
|
17
|
+
|
18
|
+
Copyright (c) 2009 ggironda. See LICENSE for details.
|
@@ -0,0 +1,51 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "test-gem-one"
|
8
|
+
gem.summary = %Q{TODO: one-line summary of your gem}
|
9
|
+
gem.description = %Q{TODO: longer description of your gem}
|
10
|
+
gem.email = "gabriel.gironda@centro.net"
|
11
|
+
gem.homepage = "http://github.com/gabrielg/test-gem-one"
|
12
|
+
gem.authors = ["ggironda"]
|
13
|
+
gem.add_dependency "test-gem-three"
|
14
|
+
end
|
15
|
+
rescue LoadError
|
16
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
17
|
+
end
|
18
|
+
|
19
|
+
require 'rake/testtask'
|
20
|
+
Rake::TestTask.new(:test) do |test|
|
21
|
+
test.libs << 'lib' << 'test'
|
22
|
+
test.pattern = 'test/**/test_*.rb'
|
23
|
+
test.verbose = true
|
24
|
+
end
|
25
|
+
|
26
|
+
begin
|
27
|
+
require 'rcov/rcovtask'
|
28
|
+
Rcov::RcovTask.new do |test|
|
29
|
+
test.libs << 'test'
|
30
|
+
test.pattern = 'test/**/test_*.rb'
|
31
|
+
test.verbose = true
|
32
|
+
end
|
33
|
+
rescue LoadError
|
34
|
+
task :rcov do
|
35
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
task :test => :check_dependencies
|
40
|
+
|
41
|
+
task :default => :test
|
42
|
+
|
43
|
+
require 'rake/rdoctask'
|
44
|
+
Rake::RDocTask.new do |rdoc|
|
45
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
46
|
+
|
47
|
+
rdoc.rdoc_dir = 'rdoc'
|
48
|
+
rdoc.title = "test-gem-one #{version}"
|
49
|
+
rdoc.rdoc_files.include('README*')
|
50
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
51
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
0.0.0
|
File without changes
|