Skip to content

Commit

Permalink
Removed Jeweler for straight up Bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Kunkle committed Jun 26, 2011
1 parent 6a700ca commit 7f106ef
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 119 deletions.
8 changes: 3 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
source :gemcutter
source "http://rubygems.org"

gem "rails", "~> 3.0.0"
gem "mysql", "~> 2.8"
gem "webrat", "~> 0.7.0"
gem "jeweler"
# Specify your gem's dependencies in grant.gemspec
gemspec

if RUBY_VERSION < '1.9'
gem "ruby-debug", ">= 0.10.3"
Expand Down
21 changes: 3 additions & 18 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ require "rake/testtask"
require "rdoc/task"
require "fileutils"
require File.expand_path("../lib/rails_metrics/version", __FILE__)
require "bundler"

Bundler::GemHelper.install_tasks

desc "Default: run unit tests"
task :default => :test
Expand Down Expand Up @@ -38,21 +41,3 @@ RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include("lib/**/*.rb")
end

begin
require "jeweler"
Jeweler::Tasks.new do |s|
s.name = "rails_metrics"
s.version = RailsMetrics::VERSION
s.summary = "Metrics measurement for your app on top of ActiveSupport::Notifications"
s.email = "contact@engineyard.com"
s.homepage = "http://github.com/engineyard"
s.description = "Metrics measurement for your app on top of ActiveSupport::Notifications"
s.authors = ["José Valim"]
s.files = FileList["[A-Z]*", "{app,config,lib,public}/**/*"]
s.files.exclude("public/javascripts/rails_metrics.js")
end

Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
end
2 changes: 1 addition & 1 deletion lib/rails_metrics/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RailsMetrics
VERSION = "0.1".freeze
VERSION = "0.1"
end
111 changes: 17 additions & 94 deletions rails_metrics.gemspec
Original file line number Diff line number Diff line change
@@ -1,104 +1,27 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require 'rails_metrics/version'

Gem::Specification.new do |s|
s.name = %q{rails_metrics}
s.version = "0.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.name = "rails_metrics"
s.version = RailsMetrics::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Jos\303\251 Valim"]
s.date = %q{2010-02-15}
s.description = %q{Metrics measurement for your app on top of ActiveSupport::Notifications}
s.email = %q{contact@engineyard.com}
s.extra_rdoc_files = [
"README.rdoc"
]
s.files = [
"CHANGELOG.rdoc",
"Gemfile",
"MIT-LICENSE",
"README.rdoc",
"Rakefile",
"TODO.rdoc",
"app/controllers/rails_metrics_controller.rb",
"app/helpers/rails_metrics_helper.rb",
"app/views/layouts/rails_metrics.html.erb",
"app/views/rails_metrics/_request.html.erb",
"app/views/rails_metrics/_row.html.erb",
"app/views/rails_metrics/all.html.erb",
"app/views/rails_metrics/chart.html.erb",
"app/views/rails_metrics/index.html.erb",
"app/views/rails_metrics/show.html.erb",
"config/routes.rb",
"lib/generators/rails_metrics_generator.rb",
"lib/rails_metrics.rb",
"lib/rails_metrics/async_consumer.rb",
"lib/rails_metrics/engine.rb",
"lib/rails_metrics/middleware.rb",
"lib/rails_metrics/orm/active_record.rb",
"lib/rails_metrics/orm/data_mapper.rb",
"lib/rails_metrics/payload_parser.rb",
"lib/rails_metrics/store.rb",
"lib/rails_metrics/version.rb",
"public/images/rails_metrics/arrow_down.png",
"public/images/rails_metrics/arrow_up.png",
"public/images/rails_metrics/cancel.png",
"public/images/rails_metrics/chart_pie.png",
"public/images/rails_metrics/page_white_delete.png",
"public/images/rails_metrics/page_white_go.png",
"public/images/rails_metrics/tick.png",
"public/javascripts/rails_metrics/g.pie-min.js",
"public/javascripts/rails_metrics/g.raphael-min.js",
"public/javascripts/rails_metrics/raphael-min.js",
"public/stylesheets/rails_metrics.css"
]
s.homepage = %q{http://github.com/engineyard}
s.summary = "Metrics measurement for your app on top of ActiveSupport::Notifications"
s.description = "Metrics measurement for your app on top of ActiveSupport::Notifications"
s.email = "contact@engineyard.com"

s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.5}
s.summary = %q{Metrics measurement for your app on top of ActiveSupport::Notifications}
s.test_files = [
"test/dummy/app/controllers/application_controller.rb",
"test/dummy/app/controllers/users_controller.rb",
"test/dummy/app/helpers/application_helper.rb",
"test/dummy/app/models/metric.rb",
"test/dummy/app/models/notification.rb",
"test/dummy/app/models/user.rb",
"test/dummy/config/application.rb",
"test/dummy/config/boot.rb",
"test/dummy/config/environment.rb",
"test/dummy/config/environments/development.rb",
"test/dummy/config/environments/production.rb",
"test/dummy/config/environments/test.rb",
"test/dummy/config/initializers/backtrace_silencers.rb",
"test/dummy/config/initializers/cookie_verification_secret.rb",
"test/dummy/config/initializers/session_store.rb",
"test/dummy/config/routes.rb",
"test/dummy/db/migrate/20100106152343_create_metrics.rb",
"test/dummy/db/migrate/20100108120821_create_users.rb",
"test/integration/instrumentation_test.rb",
"test/integration/navigation_test.rb",
"test/orm/active_record_test.rb",
"test/payload_parser_test.rb",
"test/rails_metrics_test.rb",
"test/store_test.rb",
"test/support/helpers.rb",
"test/support/instrumentation.rb",
"test/support/mock_store.rb",
"test/support/webrat/integrations/rails.rb",
"test/test_helper.rb"
]
s.extra_rdoc_files = ["README.rdoc"]

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
s.require_paths = ["lib"]
s.files = `git ls-files -- {app,config,lib,public}/*`.split("\n")
s.test_files = `git ls-files -- test/*`.split("\n")

if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
else
end
else
end
s.add_dependency("rails", "~> 3.0.0")
s.add_development_dependency("rake", "0.8.7")
s.add_development_dependency("mysql", "~> 2.8")
s.add_development_dependency("webrat", "~> 0.7.0")
end

3 changes: 2 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

require File.expand_path("../dummy/config/environment.rb", __FILE__)
require "rails/test_help"
require "webrat"

ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
Expand All @@ -22,4 +23,4 @@ class ActiveSupport::TestCase
wait
RailsMetrics.set_store { Metric }
end
end
end

0 comments on commit 7f106ef

Please sign in to comment.