Skip to content

Commit 2e4760c

Browse files
committed
Merge pull request rapid7#1533 from rapid7/feature/migrations-in-metasploit_data_models
All steps passing as described.
2 parents 8f21271 + b855bd3 commit 2e4760c

File tree

196 files changed

+1068
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+1068
-190
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gem 'activerecord'
77
# Needed for some admin modules (scrutinizer_add_user.rb)
88
gem 'json'
99
# Database models shared between framework and Pro.
10-
gem 'metasploit_data_models', :git => 'git://github.com/rapid7/metasploit_data_models.git', :tag => '0.4.0'
10+
gem 'metasploit_data_models', :git => 'git://github.com/rapid7/metasploit_data_models.git', :tag => '0.5.1'
1111
# Needed by msfgui and other rpc components
1212
gem 'msgpack'
1313
# Needed by anemone crawler

Gemfile.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
GIT
22
remote: git://github.com/rapid7/metasploit_data_models.git
3-
revision: 448c1065329efea1eac76a3897f626f122666743
4-
tag: 0.4.0
3+
revision: 1e3e0c2effb8e1bb6cec9683b830e4244babf706
4+
tag: 0.5.1
55
specs:
6-
metasploit_data_models (0.4.0)
6+
metasploit_data_models (0.5.1)
77
activerecord (>= 3.2.10)
88
activesupport
99
pg
@@ -12,33 +12,33 @@ GIT
1212
GEM
1313
remote: http://rubygems.org/
1414
specs:
15-
activemodel (3.2.11)
16-
activesupport (= 3.2.11)
15+
activemodel (3.2.12)
16+
activesupport (= 3.2.12)
1717
builder (~> 3.0.0)
18-
activerecord (3.2.11)
19-
activemodel (= 3.2.11)
20-
activesupport (= 3.2.11)
18+
activerecord (3.2.12)
19+
activemodel (= 3.2.12)
20+
activesupport (= 3.2.12)
2121
arel (~> 3.0.2)
2222
tzinfo (~> 0.3.29)
23-
activesupport (3.2.11)
23+
activesupport (3.2.12)
2424
i18n (~> 0.6)
2525
multi_json (~> 1.0)
2626
arel (3.0.2)
2727
builder (3.0.4)
28-
coderay (1.0.8)
28+
coderay (1.0.9)
2929
diff-lcs (1.1.3)
30-
i18n (0.6.1)
30+
i18n (0.6.4)
3131
json (1.7.7)
3232
method_source (0.8.1)
3333
msgpack (0.5.2)
3434
multi_json (1.0.4)
3535
nokogiri (1.5.6)
3636
pcaprub (0.11.3)
3737
pg (0.14.1)
38-
pry (0.9.10)
38+
pry (0.9.12)
3939
coderay (~> 1.0.5)
4040
method_source (~> 0.8)
41-
slop (~> 3.3.1)
41+
slop (~> 3.4)
4242
rake (10.0.2)
4343
redcarpet (2.2.2)
4444
robots (0.10.1)
@@ -54,7 +54,7 @@ GEM
5454
multi_json (~> 1.0.3)
5555
simplecov-html (~> 0.5.3)
5656
simplecov-html (0.5.3)
57-
slop (3.3.3)
57+
slop (3.4.3)
5858
tzinfo (0.3.35)
5959
yard (0.8.3)
6060

data/sql/migrate/20110610085000_move_old_imported_creds_to_new_files.rb

Lines changed: 0 additions & 127 deletions
This file was deleted.

lib/gemcache/ruby/1.9.1/gems/metasploit_data_models-0.4.0/Gemfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

lib/gemcache/ruby/1.9.1/gems/metasploit_data_models-0.4.0/Rakefile

Lines changed: 0 additions & 7 deletions
This file was deleted.

lib/gemcache/ruby/1.9.1/gems/metasploit_data_models-0.4.0/app/models/mdm/web_vuln.rb

Lines changed: 0 additions & 16 deletions
This file was deleted.

lib/gemcache/ruby/1.9.1/gems/metasploit_data_models-0.4.0/lib/metasploit_data_models/version.rb

Lines changed: 0 additions & 7 deletions
This file was deleted.

lib/gemcache/ruby/1.9.1/gems/metasploit_data_models-0.4.0/.gitignore renamed to lib/gemcache/ruby/1.9.1/gems/metasploit_data_models-0.5.1/.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@
66
*.gem
77
# Rubymine project configuration
88
.idea
9+
# logs
10+
*.log
911
# Don't check in rvmrc since this is a gem
1012
.rvmrc
13+
# YARD database
14+
.yardoc
15+
# coverage report directory for simplecov/Rubymine
16+
coverage
17+
# generated yardocs
18+
doc
1119
# Installed gem versions. Not stored for the same reasons as .rvmrc
1220
Gemfile.lock
1321
# Packaging directory for builds
1422
pkg/*
1523
# Database configuration (with passwords) for specs
1624
spec/dummy/config/database.yml
17-
# logs
18-
*.log
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# RM_INFO is set when using Rubymine. In Rubymine, starting SimpleCov is
2+
# controlled by running with coverage, so don't explicitly start coverage (and
3+
# therefore generate a report) when in Rubymine. This _will_ generate a report
4+
# whenever `rake spec` is run.
5+
unless ENV['RM_INFO']
6+
SimpleCov.start
7+
end
8+
9+
SimpleCov.configure do
10+
load_adapter('rails')
11+
12+
# ignore this file
13+
add_filter '.simplecov'
14+
15+
#
16+
# Changed Files in Git Group
17+
# @see http://fredwu.me/post/35625566267/simplecov-test-coverage-for-changed-files-only
18+
#
19+
20+
untracked = `git ls-files --exclude-standard --others`
21+
unstaged = `git diff --name-only`
22+
staged = `git diff --name-only --cached`
23+
all = untracked + unstaged + staged
24+
changed_filenames = all.split("\n")
25+
26+
add_group 'Changed' do |source_file|
27+
changed_filenames.detect { |changed_filename|
28+
source_file.filename.end_with?(changed_filename)
29+
}
30+
end
31+
32+
#
33+
# Specs are reported on to ensure that all examples are being run and all
34+
# lets, befores, afters, etc are being used.
35+
#
36+
37+
add_group 'Specs', 'spec'
38+
end

0 commit comments

Comments
 (0)