Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Net dns #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Net dns #4

wants to merge 5 commits into from

Conversation

tyrauber
Copy link

net-dns2 includes a couple extra libraries, one of which (pcaprub) fails to compile on Heroku (see below). This fix switches back to net-dns and also switches from flexmock to rspec-mocks, because flexmock had issues with net-dns.

This pull requests builds on rack-middleware, but the last commit could be extracted minus the middleware spec.

net-dns2 heroku deploy pcaprub stacktrace:

pcaprub compile error on heroku.

remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
remote: /tmp/build_036e9e092858505707219fa81cffaa02/vendor/ruby-2.2.1/bin/ruby -r ./siteconf20151214-291-11gbnxa.rb extconf.rb
remote: [] Running checks for pcaprub_c code...
remote: platform is x86_64-linux
remote: checking for pcap_open_live() in -lpcap... no
remote: checking for pcap_setnonblock() in -lpcap... no
remote: creating Makefile
remote: make "DESTDIR=" clean
remote: make "DESTDIR="
remote: compiling pcaprub.c
remote: pcaprub.c:8:18: fatal error: pcap.h: No such file or directory
remote: #include 
remote: ^
remote: compilation terminated.
remote: make: ** [pcaprub.o] Error 1
remote: make failed, exit code 2
remote: Gem files will remain installed in /tmp/build_036e9e092858505707219fa81cffaa02/vendor/bundle/ruby/2.2.0/gems/pcaprub-0.12.0 for inspection.
remote: Results logged to /tmp/build_036e9e092858505707219fa81cffaa02/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/pcaprub-0.12.0/gem_make.out

…ment, method, offense, or tolerance for threat, including no_tolerance, score_tolerance, or last_activity_tolerance. Adds gem configuration and middleware Railtie for easy Rails installation and configuration.
- add Rakefile for easier testing, $ rspec or $ rake
- update rspec syntax to expect from should
- add in middleware_spec
- enable non-rails usage
	- use nil? instead of present?
	- if defined? ::Rails::Railtie
Rack middleware - Automatically block requests from suspicious IPs
…one of which (pcaprub) fails to compile on Heroku. This fix switches back to net-dns and also switches from flexmock to spec-mocks, because flexmock had issues with net-dns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant