Skip to content
This repository
Browse code

Jewelerify.

  • Loading branch information...
commit fd7fac3b9851fc4c0a97937966d738b49cba0ed9 1 parent 1019679
Josh Nichols authored July 06, 2010

Showing 2 changed files with 69 additions and 19 deletions. Show diff stats Hide diff stats

  1. 22  Rakefile
  2. 66  oink.gemspec
22  Rakefile
@@ -4,7 +4,8 @@ require "rake/clean"
4 4
 require "spec/rake/spectask"
5 5
 require './lib/oink/base.rb'
6 6
 
7  
-spec = Gem::Specification.new do |s|
  7
+require 'jeweler'
  8
+Jeweler::Tasks.new do |s|
8 9
   s.name         = "oink"
9 10
   s.version      = Oink::Base::VERSION
10 11
   s.author       = "Noah Davis"
@@ -14,31 +15,14 @@ spec = Gem::Specification.new do |s|
14 15
   s.description  = s.summary
15 16
   s.executables  = "oink"
16 17
   s.files        = %w[History.txt MIT-LICENSE README.rdoc Rakefile] + Dir["bin/*"] + Dir["lib/**/*"]
  18
+  s.add_dependency 'hodel_3000_compliant_logger'
17 19
 end
18 20
 
19 21
 Spec::Rake::SpecTask.new do |t|
20 22
   t.spec_opts == ["--color"]
21 23
 end
22 24
 
23  
-Rake::GemPackageTask.new(spec) do |package|
24  
-  package.gem_spec = spec
25  
-end
26  
-
27 25
 desc "Run the specs"
28 26
 task :default => ["spec"]
29 27
 
30  
-desc 'Show information about the gem.'
31  
-task :write_gemspec do
32  
-  File.open("oink.gemspec", 'w') do |f|
33  
-    f.write spec.to_ruby
34  
-  end
35  
-  puts "Generated: oink.gemspec"
36  
-end
37  
-
38 28
 CLEAN.include ["pkg", "*.gem", "doc", "ri", "coverage"]
39  
-
40  
-desc 'Install the package as a gem.'
41  
-task :install_gem => [:clean, :package] do
42  
-  gem = Dir['pkg/*.gem'].first
43  
-  sh "sudo gem install --local #{gem}"
44  
-end
66  oink.gemspec
... ...
@@ -0,0 +1,66 @@
  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{oink}
  8
+  s.version = "0.1.0"
  9
+
  10
+  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  11
+  s.authors = ["Noah Davis"]
  12
+  s.date = %q{2010-07-06}
  13
+  s.default_executable = %q{oink}
  14
+  s.description = %q{Log parser to identify actions which significantly increase VM heap size}
  15
+  s.email = %q{noahd1@yahoo.com}
  16
+  s.executables = ["oink"]
  17
+  s.extra_rdoc_files = [
  18
+    "README.rdoc"
  19
+  ]
  20
+  s.files = [
  21
+    "History.txt",
  22
+     "MIT-LICENSE",
  23
+     "README.rdoc",
  24
+     "Rakefile",
  25
+     "bin/oink",
  26
+     "lib/oink.rb",
  27
+     "lib/oink/active_record_instantiation_reporter.rb",
  28
+     "lib/oink/base.rb",
  29
+     "lib/oink/cli.rb",
  30
+     "lib/oink/memory_usage_reporter.rb",
  31
+     "lib/oink/oinked_request/oinked_ar_request.rb",
  32
+     "lib/oink/oinked_request/oinked_memory_request.rb",
  33
+     "lib/oink/oinked_request/oinked_request.rb",
  34
+     "lib/oink/priority_queue.rb",
  35
+     "lib/oink/rails/instance_type_counter.rb",
  36
+     "lib/oink/rails/memory_usage_logger.rb"
  37
+  ]
  38
+  s.homepage = %q{http://github.com/noahd1/oink}
  39
+  s.rdoc_options = ["--charset=UTF-8"]
  40
+  s.require_paths = ["lib"]
  41
+  s.rubygems_version = %q{1.3.6}
  42
+  s.summary = %q{Log parser to identify actions which significantly increase VM heap size}
  43
+  s.test_files = [
  44
+    "spec/oink/active_record_instantiation_reporter_spec.rb",
  45
+     "spec/oink/memory_usage_reporter_spec.rb",
  46
+     "spec/oinked_request/oinked_request_spec.rb",
  47
+     "spec/priority_queue/priority_queue_spec.rb",
  48
+     "spec/rails/instance_type_counter_spec.rb",
  49
+     "spec/rails/memory_usage_logger_spec.rb",
  50
+     "spec/spec_helper.rb"
  51
+  ]
  52
+
  53
+  if s.respond_to? :specification_version then
  54
+    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
  55
+    s.specification_version = 3
  56
+
  57
+    if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
  58
+      s.add_runtime_dependency(%q<hodel_3000_compliant_logger>, [">= 0"])
  59
+    else
  60
+      s.add_dependency(%q<hodel_3000_compliant_logger>, [">= 0"])
  61
+    end
  62
+  else
  63
+    s.add_dependency(%q<hodel_3000_compliant_logger>, [">= 0"])
  64
+  end
  65
+end
  66
+

0 notes on commit fd7fac3

Please sign in to comment.
Something went wrong with that request. Please try again.