Skip to content

Commit

Permalink
Bump ruby, recog and dap 1.3.1 for release (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkienow-r7 committed Oct 26, 2022
2 parents 6580ae7 + 78ce38a commit 44050a6
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 118 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Ruby and tooling specific
.yardoc
doc/
/pkg/

# Ignore rvm files
.ruby-version
.ruby-gemset
Expand All @@ -8,8 +13,6 @@ data/GeoLite2-ASN.mmdb
data/GeoLite2-City.mmdb
data/GeoLite2-Country.mmdb

/pkg/

## Environment normalization:
/.bundle/
/vendor/bundle
Expand Down
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

8 changes: 3 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,18 @@ Finally, submit the PR. Navigate to ```https://github.com/<your-github-username
### Testing
When your PR is submitted, it will be automatically subjected to the full run
of tests in [Travis](https://travis-ci.org/rapid7/dap/), however you are
encourage to perform testing _before_ submitting the PR. There are two types of tests in place:
You are encourage to perform testing _before_ submitting the PR. There are two types of tests in place:
run `bundle exec rspec spec`. # Testing
There are two testing frameworks in place.
* Ruby `rspec`
* [bats](https://github.com/sstephenson/bats) integration tests
To run these outside of travis-ci, run:
To run these tests locally, run:
```
docker build -t dap_testing -f Dockerfile.testing . && \
docker run --rm --name dap_testing -it -e DAP_EXECUTABLE=dap dap_testing /bin/bash -l -c "rvm use 2.4.5 && gem build dap && gem install dap*.gem && bundle exec rspec spec && find /opt/bats_testing -name \*.bats | grep -v test/ test_helper/ | xargs -n1 bats"
docker run --rm --name dap_testing -it -e DAP_EXECUTABLE=dap dap_testing /bin/bash -l -c "rvm use 2.7.6 && gem build dap && gem install dap*.gem && bundle exec rspec spec && find /opt/bats_testing -name \*.bats | grep -v test/test_helper/ | xargs -n1 bats"
```
## Landing PRs
Expand Down
9 changes: 4 additions & 5 deletions Dockerfile.testing
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ RUN curl -sSL https://rvm.io/mpapis.asc | gpg --import -
RUN curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
RUN curl -sSL https://get.rvm.io | bash -s stable
RUN /bin/bash -l -c "rvm requirements"
RUN /bin/bash -l -c "rvm install 2.4.5"
RUN /bin/bash -l -c "rvm use 2.4.5 && gem update --system && gem install bundler"
ADD Gemfile* $TEST_DIR/
RUN /bin/bash -l -c "cd $TEST_DIR && rvm use 2.4.5 && bundle update --bundler && bundle install"
RUN /bin/bash -l -c "rvm install 2.7.6"
RUN /bin/bash -l -c "rvm use 2.7.6 && gem update --system && gem install bundler"
COPY . $TEST_DIR/
RUN /bin/bash -l -c "cd $TEST_DIR && rvm use 2.7.6 && bundle update --bundler && bundle install"

# install maxmind legacy data
RUN mkdir /var/lib/geoip
Expand All @@ -36,4 +36,3 @@ COPY test/test_data/geoip2/*.mmdb /var/lib/geoip2/
RUN git clone https://github.com/sstephenson/bats.git && cd bats && ./install.sh /usr

WORKDIR /opt/bats_testing
COPY . .
14 changes: 1 addition & 13 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
source 'https://rubygems.org'

gem 'oj'
gem 'htmlentities'
gem 'net-dns'
gem 'bit-struct'
gem 'geoip-c'
gem 'maxmind-db', '~> 1.0.0'
gem 'recog', '~> 3.0'

group :test do
gem 'rspec', '~> 3.9.0'
gem 'cucumber', '~> 4.0.0'
gem 'aruba', '~> 0.6.2'
end
gemspec
151 changes: 75 additions & 76 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,104 +1,103 @@
PATH
remote: .
specs:
dap (1.3.1)
bit-struct
geoip-c
htmlentities
maxmind-db
net-dns
nokogiri
oj
recog

GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
aruba (0.6.2)
childprocess (>= 0.3.6)
cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0)
aruba (2.1.0)
bundler (>= 1.17, < 3.0)
childprocess (>= 2.0, < 5.0)
contracts (>= 0.16.0, < 0.18.0)
cucumber (>= 4.0, < 9.0)
rspec-expectations (~> 3.4)
thor (~> 1.0)
bit-struct (0.17)
builder (3.2.4)
childprocess (4.1.0)
concurrent-ruby (1.1.10)
cucumber (4.0.1)
builder (~> 3.2, >= 3.2.3)
cucumber-core (~> 7.0, >= 7.0.0)
cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
cucumber-gherkin (~> 13.0, >= 13.0.0)
cucumber-html-formatter (~> 6.0, >= 6.0.1)
cucumber-messages (~> 12.1, >= 12.1.1)
cucumber-wire (~> 3.0, >= 3.0.0)
diff-lcs (~> 1.3, >= 1.3, < 1.4)
multi_test (~> 0.1, >= 0.1.2)
sys-uname (~> 1.0, >= 1.0.2)
cucumber-core (7.0.0)
cucumber-gherkin (~> 13.0, >= 13.0.0)
cucumber-messages (~> 12.1, >= 12.1.1)
cucumber-tag-expressions (~> 2.0, >= 2.0.4)
cucumber-cucumber-expressions (10.3.0)
cucumber-gherkin (13.0.0)
cucumber-messages (~> 12.0, >= 12.0.0)
cucumber-html-formatter (6.0.3)
cucumber-messages (~> 12.1, >= 12.1.1)
cucumber-messages (12.4.0)
protobuf-cucumber (~> 3.10, >= 3.10.8)
cucumber-tag-expressions (2.0.4)
cucumber-wire (3.0.0)
cucumber-core (~> 7.0, >= 7.0.0)
cucumber-cucumber-expressions (~> 10.1, >= 10.1.0)
cucumber-messages (~> 12.1, >= 12.1.1)
diff-lcs (1.3)
contracts (0.16.1)
cucumber (8.0.0)
builder (~> 3.2, >= 3.2.4)
cucumber-ci-environment (~> 9.0, >= 9.0.4)
cucumber-core (~> 11.0, >= 11.0.0)
cucumber-cucumber-expressions (~> 15.1, >= 15.1.1)
cucumber-gherkin (~> 23.0, >= 23.0.1)
cucumber-html-formatter (~> 19.1, >= 19.1.0)
cucumber-messages (~> 18.0, >= 18.0.0)
diff-lcs (~> 1.5, >= 1.5.0)
mime-types (~> 3.4, >= 3.4.1)
multi_test (~> 1.1, >= 1.1.0)
sys-uname (~> 1.2, >= 1.2.2)
cucumber-ci-environment (9.1.0)
cucumber-core (11.0.0)
cucumber-gherkin (~> 23.0, >= 23.0.1)
cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-tag-expressions (~> 4.1, >= 4.1.0)
cucumber-cucumber-expressions (15.2.0)
cucumber-gherkin (23.0.1)
cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-html-formatter (19.2.0)
cucumber-messages (~> 18.0, >= 18.0.0)
cucumber-messages (18.0.0)
cucumber-tag-expressions (4.1.0)
diff-lcs (1.5.0)
ffi (1.15.5)
geoip-c (0.9.1)
htmlentities (4.3.4)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
maxmind-db (1.0.0)
middleware (0.1.0)
maxmind-db (1.1.1)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2022.0105)
mini_portile2 (2.8.0)
minitest (5.16.3)
multi_test (0.1.2)
multi_test (1.1.0)
net-dns (0.9.0)
nokogiri (1.13.8)
nokogiri (1.13.9)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
oj (3.13.21)
protobuf-cucumber (3.10.8)
activesupport (>= 3.2)
middleware
thor
thread_safe
racc (1.6.0)
recog (3.0.2)
rake (13.0.6)
recog (3.0.3)
nokogiri
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.3)
rspec-support (~> 3.9.3)
rspec-expectations (3.9.4)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.4)
rspec-support (~> 3.11.0)
rspec-support (3.11.1)
sys-uname (1.2.2)
ffi (~> 1.1)
thor (1.2.1)
thread_safe (0.3.6)
tzinfo (2.0.5)
concurrent-ruby (~> 1.0)
webrick (1.7.0)
yard (0.9.28)
webrick (~> 1.7.0)

PLATFORMS
ruby

DEPENDENCIES
aruba (~> 0.6.2)
bit-struct
cucumber (~> 4.0.0)
geoip-c
htmlentities
maxmind-db (~> 1.0.0)
net-dns
oj
recog (~> 3.0)
rspec (~> 3.9.0)
aruba
cucumber
dap!
rake
rspec
yard

BUNDLED WITH
1.17.3
2.3.24
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# DAP: The Data Analysis Pipeline

[![Gem Version](https://badge.fury.io/rb/dap.svg)](http://badge.fury.io/rb/dap)
[![Build Status](https://travis-ci.org/rapid7/dap.svg?branch=master)](https://travis-ci.org/rapid7/dap)

DAP was created to transform text-based data on the command-line, specializing in transforms that are annoying or difficult to do with existing tools.

Expand All @@ -13,7 +12,7 @@ DAP was written to process terabyte-sized public scan datasets, such as those pr

### Prerequisites

DAP requires Ruby and is best suited for systems with a relatively current version with 2.4.x being the minimum requirement.
DAP requires Ruby and is best suited for systems with a relatively current version with 2.6.x being the minimum requirement.
Ideally, this will be managed with either
[`rbenv`](https://github.com/rbenv/rbenv) or [`rvm`](https://rvm.io/) with the bundler gem also installed and up to date.
Using system managed/installed Rubies is possible but fraught with peril.
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "bundler/gem_tasks"

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
t.pattern = "spec/**/*_spec.rb"
t.pattern = 'spec/**/*_spec.rb'
end

require 'yard'
Expand All @@ -15,7 +15,7 @@ require 'cucumber'
require 'cucumber/rake/task'

Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "features --format pretty"
t.cucumber_opts = %w(features --format pretty)
end

task :default => [ :spec, :features, :yard ]
Expand Down
4 changes: 3 additions & 1 deletion dap.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'dap/version'
Gem::Specification.new do |s|
s.name = 'dap'
s.version = Dap::VERSION
s.required_ruby_version = '>= 2.4'
s.required_ruby_version = '>= 2.6'
s.authors = [
'Rapid7 Research'
]
Expand All @@ -28,7 +28,9 @@ Gem::Specification.new do |s|

# ---- Dependencies ----

s.add_development_dependency 'rake'
s.add_development_dependency 'rspec'
s.add_development_dependency 'yard'
s.add_development_dependency 'cucumber'
s.add_development_dependency 'aruba'

Expand Down
2 changes: 1 addition & 1 deletion lib/dap/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Dap
VERSION = "1.3.0"
VERSION = "1.3.1"
end

0 comments on commit 44050a6

Please sign in to comment.