Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove Jeweler in favor of using Bundler #7

Open
wants to merge 3 commits into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 25 additions and 118 deletions.
  1. +3 −5 Gemfile
  2. +3 −18 Rakefile
  3. +17 −94 rails_metrics.gemspec
  4. +2 −1  test/test_helper.rb
View
8 Gemfile
@@ -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 rails_metrics.gemspec
+gemspec
if RUBY_VERSION < '1.9'
gem "ruby-debug", ">= 0.10.3"
View
21 Rakefile
@@ -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
@@ -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
View
111 rails_metrics.gemspec
@@ -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
View
3  test/test_helper.rb
@@ -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
@@ -22,4 +23,4 @@ class ActiveSupport::TestCase
wait
RailsMetrics.set_store { Metric }
end
-end
+end
Something went wrong with that request. Please try again.