crashdesk-rails 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +21 -0
- data/crashdesk-rails.gemspec +1 -1
- data/lib/crashdesk-rails/railtie.rb +3 -3
- data/lib/crashdesk-rails/version.rb +1 -1
- metadata +3 -2
data/Rakefile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler/setup'
|
5
|
+
require 'rspec/core/rake_task'
|
6
|
+
|
7
|
+
Bundler::GemHelper.install_tasks
|
8
|
+
|
9
|
+
desc 'Default: run specs.'
|
10
|
+
task :default => :spec
|
11
|
+
|
12
|
+
desc "Run specs"
|
13
|
+
RSpec::Core::RakeTask.new do |t|
|
14
|
+
t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
|
15
|
+
# Put spec opts in a file named .rspec in root
|
16
|
+
end
|
17
|
+
|
18
|
+
desc "Run tests with SimpleCov"
|
19
|
+
RSpec::Core::RakeTask.new('coverage') do |t|
|
20
|
+
ENV['COVERAGE'] = "true"
|
21
|
+
end
|
data/crashdesk-rails.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.summary = "Crashde.sk Rails Integration"
|
9
9
|
gem.description = "crashdesk-rails is the Rails gem for integration with crashde.sk servers"
|
10
10
|
gem.email = "info@crashde.sk"
|
11
|
-
gem.files = Dir['lib/**/*'] + Dir['spec/**/*'] + Dir['*.rb'] + ["crashdesk-rails.gemspec"]
|
11
|
+
gem.files = Dir['lib/**/*'] + Dir['spec/**/*'] + Dir['*.rb'] + ["crashdesk-rails.gemspec", "Rakefile"]
|
12
12
|
gem.homepage = "http://crashde.sk"
|
13
13
|
gem.require_paths = ["lib"]
|
14
14
|
gem.rubyforge_project = "crashdesk-rails"
|
@@ -8,10 +8,10 @@ module CrashdeskRails
|
|
8
8
|
config.project_root ||= ::Rails.root
|
9
9
|
end
|
10
10
|
|
11
|
-
Crashdesk.
|
11
|
+
Crashdesk.log 'Crahsdesk initializing.'
|
12
12
|
|
13
13
|
if defined? ::ActionDispatch::DebugExceptions
|
14
|
-
Crashdesk.
|
14
|
+
Crashdesk.log 'Crashdesk integrated via including DebugExceptions module.'
|
15
15
|
# DebugException is middleware inside Rails
|
16
16
|
# Would be nice to have our own with nice message rendering.
|
17
17
|
::ActionDispatch::DebugExceptions.send(:include, CrashdeskRails::DebugExceptions)
|
@@ -19,7 +19,7 @@ module CrashdeskRails
|
|
19
19
|
# Also there's ShowException middleware we could override with much
|
20
20
|
# nicer default rendering.
|
21
21
|
else
|
22
|
-
Crashdesk.
|
22
|
+
Crashdesk.log 'Crashdesk integrated via middleware.'
|
23
23
|
app.config.middleware.use "CrashdeskRails::Middleware"
|
24
24
|
end
|
25
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crashdesk-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: crashdesk
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/crashdesk-rails/version.rb
|
57
57
|
- lib/crashdesk-rails.rb
|
58
58
|
- crashdesk-rails.gemspec
|
59
|
+
- Rakefile
|
59
60
|
homepage: http://crashde.sk
|
60
61
|
licenses: []
|
61
62
|
post_install_message:
|