voxik / abrt-ruby Goto Github PK
View Code? Open in Web Editor NEWProvides ABRT reporting support for applications written using Ruby.
License: MIT License
Provides ABRT reporting support for applications written using Ruby.
License: MIT License
I expected this project worked on Bundler, as I saw Gemfile
on the project.
$ ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]
$ bundle install --path vendor/bundle
$ bundle exec rake -T
bundler: failed to load command: rake (/usr/local/ruby-2.7.1/bin/rake)
Gem::Exception: can't find executable rake for gem rake. rake is not currently included in the bundle, perhaps you meant to add it to your Gemfile?
/usr/local/ruby-2.7.1/lib/ruby/2.7.0/bundler/rubygems_integration.rb:374:in `block in replace_bin_path'
/usr/local/ruby-2.7.1/lib/ruby/2.7.0/bundler/rubygems_integration.rb:402:in `block in replace_bin_path'
/usr/local/ruby-2.7.1/bin/rake:23:in `<top (required)>'
Do you have a reason not to do like this?
$ git diff
diff --git a/.travis.yml b/.travis.yml
index 0d92a15..9d2c642 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,4 +9,4 @@ rvm:
- "2.6"
- "2.7"
- "ruby-head"
-script: rake
+script: bundle exec rake
diff --git a/abrt.gemspec b/abrt.gemspec
index 7b40c32..f3d33fa 100644
--- a/abrt.gemspec
+++ b/abrt.gemspec
@@ -28,6 +28,7 @@ Gem::Specification.new do |s|
s.cert_chain = ["voxik-public_cert.pem"]
end
+ s.add_development_dependency(%q<rake>)
s.add_development_dependency(%q<rspec>, ["~> 3.5"])
end
It looks like the gem is working and is loaded, because when I run:
Will raise.
/usr/bin/will_ruby_raise:4:in `/': divided by 0 (ZeroDivisionError)
from /usr/bin/will_ruby_raise:4
I see in /var/log/abrt.log this line:
2014-12-30T07:15:50.806200-05:00 machine.domain abrt[16433]: detected unhandled Ruby exception in '/usr/bin/will_ruby_raise'
But nothing gets created in /var/spool/abrt and no email is sent.
All other tests work (will_cpp_segfault, will_oops, will_python_raise, etc.), so I don't think it's a configuration problem.
1) ABRT handles exception in 'abrt.rb' with RubyGems disabled
Failure/Error:
expect { system "ruby --disable-gems #{abrt_rb}" }
.to output(/\A\Z/).to_stdout_from_any_process
.and output(output_message_pattern).to_stderr_from_any_process
expected block to output /\A\/builddir\/abrt-0.4.0\/spec\/..\/lib\/abrt.rb:\d+:in `<main>': can't modify frozen Array(: \[1, 2, 3\])? \((FrozenError|RuntimeError)\)\n\Z/ to stderr, but output "/usr/bin/ruby-mri: No such file or directory -- /builddir/abrt-0.4.0/spec/../lib/abrt.rb (LoadError)\n"
# ./spec/abrt_spec.rb:9:in `block (3 levels) in <top (required)>'
2) ABRT handles exception in 'abrt.rb' with RubyGems enabled
Failure/Error:
expect { system "ruby --disable-gems -rrubygems #{abrt_rb}" }
.to output(/\A\Z/).to_stdout_from_any_process
.and output(output_message_pattern).to_stderr_from_any_process
expected block to output /\A\/builddir\/abrt-0.4.0\/spec\/..\/lib\/abrt.rb:\d+:in `<main>': can't modify frozen Array(: \[1, 2, 3\])? \((FrozenError|RuntimeError)\)\n\Z/ to stderr, but output "/usr/bin/ruby-mri: No such file or directory -- /builddir/abrt-0.4.0/spec/../lib/abrt.rb (LoadError)\n"
# ./spec/abrt_spec.rb:15:in `block (3 levels) in <top (required)>'
The backtrace is currently build using custom method. Consider usage of Exception.full_message(:highlight => false, :order => :bottom)
instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.