Permalink
Browse files

Fix up gemspec

  • Loading branch information...
danlucraft committed Mar 13, 2010
1 parent 28241e8 commit e60e603f41e3d45cf57c4519b9e88d3f6d62f86f
Showing with 15 additions and 19 deletions.
  1. +2 −1 .gitignore
  2. +6 −9 Rakefile
  3. +7 −9 example/test2.rb
View
@@ -1,3 +1,4 @@
dist
-build
+build
+pkg
View
@@ -10,20 +10,17 @@ spec = Gem::Specification.new do |s|
s.email = "dan@fluentradical.com"
s.homepage = "http://danlucraft.com/blog"
s.has_rdoc = false
- s.files = %w(graph.html README tracing_example.html tracing_example.txt) + Dir.glob("{lib/**/*}") + Dir.glob("{templates/**/*}")
+ s.files = %w(README) +
+ Dir.glob("{lib/**/*}") +
+ Dir.glob("{templates/**/*}") +
+ Dir.glob("{examples/**/*}") +
+ Dir.glob("{src}/**/*") +
+ Dir.glob("{test}/**/*")
s.require_paths = ["lib"]
end
-# This task actually builds the gem. We also regenerate a static
-# .gemspec file, which is useful if something (i.e. GitHub) will
-# be automatically building a gem for this project. If you're not
-# using GitHub, edit as appropriate.
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
-
- # Generate the gemspec file for github.
- file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
- File.open(file, "w") {|f| f << spec.to_ruby }
end
# Generate documentation
View
@@ -1,5 +1,4 @@
-require 'java'
-$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
+require 'rubygems'
require 'jruby-prof'
class Thing
@@ -15,13 +14,12 @@ def self.bar(a, b)
end
result = JRubyProf.profile do
- require 'rubygems'
-# Thread.new do
-# 100.times {
-# Thing.foo(1, 2)
-# }
-# end
-# 100.times { Thing2.bar(1, 2) }
+ Thread.new do
+ 100.times {
+ Thing.foo(1, 2)
+ }
+ end
+ 100.times { Thing2.bar(1, 2) }
end
JRubyProf.print_flat_text(result, "flat.txt")

0 comments on commit e60e603

Please sign in to comment.