Permalink
Browse files

rubygems config tidyup

  • Loading branch information...
1 parent 9bce946 commit c246dcf7998348123860fe7a5b559c0353bfa62f @darragh darragh committed Oct 13, 2009
Showing with 26 additions and 129 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 History.txt
  3. +0 −26 Manifest
  4. +6 −33 Rakefile
  5. +5 −25 exceptional.gemspec
  6. +1 −34 exceptional.yml
  7. +11 −11 init.rb
  8. +1 −0 rails/init.rb
  9. 0 { → spec}/ginger_scenarios.rb
View
@@ -1,5 +1,6 @@
.ginger
.DS_Store
coverage
+exceptional-*.gem
doc
pkg/*
View
@@ -1,3 +1,4 @@
+0.2.0 - Rewrite, this time with a splash of encapsulation.
0.0.6 - Added a better 'safe' to_json method which works more effectively for rails integration avoiding cyclic reference and un-jsonable data
0.0.5 - Fixed a bug in the plugin where request.env was being modified directly. dup to solve issues.
0.0.4 - Restructured the plugin to extract all different concerns into self contained modules, will give a better base to extend. Also plays nicer with Rdoc + singleton classes
View
@@ -1,26 +0,0 @@
-exceptional.gemspec
-exceptional.yml
-History.txt
-init.rb
-install.rb
-lib/exceptional/api.rb
-lib/exceptional/bootstrap.rb
-lib/exceptional/config.rb
-lib/exceptional/exception_data.rb
-lib/exceptional/integration/rails.rb
-lib/exceptional/log.rb
-lib/exceptional/remote.rb
-lib/exceptional/version.rb
-lib/exceptional.rb
-Manifest
-Rakefile
-README
-spec/api_spec.rb
-spec/bootstrap_spec.rb
-spec/config_spec.rb
-spec/exception_data_spec.rb
-spec/exceptional_rescue_from_spec.rb
-spec/exceptional_spec.rb
-spec/log_spec.rb
-spec/remote_spec.rb
-spec/spec_helper.rb
View
@@ -1,40 +1,13 @@
-begin
- require 'echoe'
+require 'spec/rake/spectask'
- Echoe.new('exceptional', '0.2.0') do |p|
- p.rubyforge_name = 'exceptional'
- p.summary = "Exceptional is the core Ruby library for communicating with http://getexceptional.com (hosted error tracking service)"
- p.description = "Exceptional is the core Ruby library for communicating with http://getexceptional.com (hosted error tracking service)"
- p.url = "http://getexceptional.com/"
- p.author = ["Contrast"]
- p.email = "hello@contrast.ie"
- p.dependencies = ["json"]
- end
-rescue LoadError => e
- puts "You are missing a dependency required for meta-operations on this gem."
- puts "#{e.to_s.capitalize}."
-end
-# add spec tasks, if you have rspec installed
-begin
- require 'spec/rake/spectask'
- Spec::Rake::SpecTask.new("spec") do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ['--color']
- end
-
- task :test do
- Rake::Task['spec'].invoke
- end
+task :default => [:spec]
- Spec::Rake::SpecTask.new("coverage") do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ['--color']
- t.rcov = true
- t.rcov_opts = ['--exclude', '^spec,/gems/']
- end
+Spec::Rake::SpecTask.new("spec") do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.spec_opts = ['--color']
end
-desc 'Run specs using ginger'
+desc 'Run specs using ginger to test against all supported rails versions'
task :ginger do
ARGV.clear
ARGV << 'spec'
View
@@ -1,34 +1,14 @@
# -*- encoding: utf-8 -*-
-
Gem::Specification.new do |s|
s.name = %q{exceptional}
- s.version = "0.0.6"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
+ s.version = "0.2.0rc"
s.authors = ["Contrast"]
- s.date = %q{2009-07-09}
- s.description = %q{Exceptional is the core Ruby library for communicating with http://getexceptional.com (hosted error tracking service)}
+ s.summary = %q{Exceptional is the core Ruby library for communicating with http://getexceptional.com (hosted error tracking service)}
+ s.description = %q{Exceptional is the core Ruby library for communicating with http://getexceptional.com (hosted error tracking service). Use it to find out about errors that happen in your live app. It captures lots of helpful information to help you fix the errors.}
s.email = %q{hello@contrast.ie}
- s.extra_rdoc_files = ["lib/exceptional/api.rb", "lib/exceptional/bootstrap.rb", "lib/exceptional/config.rb", "lib/exceptional/exception_data.rb", "lib/exceptional/integration/rails.rb", "lib/exceptional/log.rb", "lib/exceptional/remote.rb", "lib/exceptional/version.rb", "lib/exceptional.rb", "README"]
- s.files = ["exceptional.gemspec", "exceptional.yml", "History.txt", "init.rb", "install.rb", "lib/exceptional/api.rb", "lib/exceptional/bootstrap.rb", "lib/exceptional/config.rb", "lib/exceptional/exception_data.rb", "lib/exceptional/integration/rails.rb", "lib/exceptional/log.rb", "lib/exceptional/remote.rb", "lib/exceptional/version.rb", "lib/exceptional.rb", "Manifest", "Rakefile", "README", "spec/api_spec.rb", "spec/bootstrap_spec.rb", "spec/config_spec.rb", "spec/exception_data_spec.rb", "spec/exceptional_rescue_from_spec.rb", "spec/exceptional_spec.rb", "spec/log_spec.rb", "spec/remote_spec.rb", "spec/spec_helper.rb"]
- s.has_rdoc = true
+ s.files = Dir['lib/**/*'] + Dir['spec/**/*'] + Dir['spec/**/*'] + Dir['rails/**/*'] + Dir['*.rb']
s.homepage = %q{http://getexceptional.com/}
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Exceptional", "--main", "README"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{exceptional}
- s.rubygems_version = %q{1.3.1}
- s.summary = %q{Exceptional is the core Ruby library for communicating with http://getexceptional.com (hosted error tracking service)}
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 2
-
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<json>, [">= 0"])
- else
- s.add_dependency(%q<json>, [">= 0"])
- end
- else
- s.add_dependency(%q<json>, [">= 0"])
- end
+ s.add_dependency('json', ">= 1.0.0")
end
View
@@ -1,34 +1 @@
-# here are the settings that are common to all environments
-common: &default_settings
- # You must specify your Exceptional API key here.
- api-key: PASTE_YOUR_API_KEY_HERE
- # Exceptional creates a separate log file from your application's logs
- # available levels are debug, info, warn, error, fatal
- log-level: info
- # The exceptional agent sends data via regular http by default
- # Setting this value to true will send data over SSL, increasing security
- # There will be an additional CPU overhead in encrypting the data, however
- # as long as your deployment environment is not Passenger (mod_rails), this
- # happens in the background so as not to incur a page wait for your users.
- ssl: false
-
-development:
- <<: *default_settings
- # Normally no reason to collect exceptions in development
- # NOTE: for trial purposes you may want to enable exceptional in development
- enabled: false
-
-test:
- <<: *default_settings
- # No reason to collect exceptions when running tests by default
- enabled: false
-
-production:
- <<: *default_settings
- enabled: true
-
-staging:
- # It's common development practice to have a staging environment that closely
- # mirrors production, by default catch errors in this environment too.
- <<: *default_settings
- enabled: true
+api-key: PASTE_YOUR_API_KEY_HERE
View
22 init.rb
@@ -1,11 +1,11 @@
-require 'exceptional'
-
-begin
- config_file = "#{RAILS_ROOT}/config/exceptional.yml"
- Exceptional::Config.load(RAILS_ROOT, RAILS_ENV, config_file)
- Exceptional::Startup.announce
- require File.join('exceptional', 'integration', 'rails')
-rescue => e
- STDERR.puts "Problem starting Exceptional Plugin. Your app will run as normal."
- STDERR.puts e
-end
+#require 'exceptional'
+#
+#begin
+# config_file = "#{RAILS_ROOT}/config/exceptional.yml"
+# Exceptional::Config.load(RAILS_ROOT, RAILS_ENV, config_file)
+# Exceptional::Startup.announce
+# require File.join('exceptional', 'integration', 'rails')
+#rescue => e
+# STDERR.puts "Problem starting Exceptional Plugin. Your app will run as normal."
+# STDERR.puts e
+#end
View
@@ -0,0 +1 @@
+require File.join(File.dirname(__FILE__) , '../init.rb')
File renamed without changes.

0 comments on commit c246dcf

Please sign in to comment.