metasploit-concern 0.4.0 → 0.5.0
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.
- checksums.yaml +4 -4
- data/Rakefile +24 -5
- data/lib/metasploit/concern/engine.rb +2 -1
- data/lib/metasploit/concern/version.rb +1 -3
- metadata +16 -3
- data/lib/tasks/yard.rake +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 637a9d3fb7a8deada037c28deb39a383be1dd414
|
4
|
+
data.tar.gz: 1e21817d348656a669fe456ba33889933ef6c016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cd502e83759a7b249d585dd0065b2af261a69b91bda2ef28ddaf380a79f38f204fd9f3d470b1031de48022992d84159c39d362588d5a9e23a0c8713924205b2
|
7
|
+
data.tar.gz: 509e820e2d5d4288937a59238163bdfc803e312f5996a6318318559929db50fbaf1d8b788fe34749ad9d23a779dfdbca50c657fb0f99ae7e94e16c85dbda8f9d
|
data/Rakefile
CHANGED
@@ -30,11 +30,17 @@ Dir.glob(rakefile_glob) do |rakefile|
|
|
30
30
|
load rakefile
|
31
31
|
end
|
32
32
|
|
33
|
-
|
34
|
-
require 'cucumber
|
35
|
-
|
36
|
-
|
37
|
-
t
|
33
|
+
begin
|
34
|
+
require 'cucumber'
|
35
|
+
require 'cucumber/rake/task'
|
36
|
+
rescue LoadError
|
37
|
+
puts "cucumber not in bundle, so can't set up features task. " \
|
38
|
+
"To run features ensure to install the development and test groups."
|
39
|
+
print_without = true
|
40
|
+
else
|
41
|
+
Cucumber::Rake::Task.new(:features) do |t|
|
42
|
+
t.cucumber_opts = 'features --format pretty'
|
43
|
+
end
|
38
44
|
end
|
39
45
|
|
40
46
|
begin
|
@@ -52,6 +58,19 @@ else
|
|
52
58
|
task :default => :spec
|
53
59
|
end
|
54
60
|
|
61
|
+
# Use find_all_by_name instead of find_by_name as find_all_by_name will return pre-release versions
|
62
|
+
gem_specification = Gem::Specification.find_all_by_name('metasploit-yard').first
|
63
|
+
|
64
|
+
if gem_specification
|
65
|
+
Dir[File.join(gem_specification.gem_dir, 'lib', 'tasks', '**', '*.rake')].each do |rake|
|
66
|
+
load rake
|
67
|
+
end
|
68
|
+
else
|
69
|
+
puts "metasploit-yard not in bundle, so can't setup yard tasks. " \
|
70
|
+
"To run yard ensure to install the development group."
|
71
|
+
print_without = true
|
72
|
+
end
|
73
|
+
|
55
74
|
if print_without
|
56
75
|
puts "Bundle currently installed '--without #{Bundler.settings.without.join(' ')}'."
|
57
76
|
puts "To clear the without option do `bundle install --without ''` (the --without flag with an empty string) or " \
|
@@ -5,11 +5,9 @@ module Metasploit
|
|
5
5
|
# The major version number.
|
6
6
|
MAJOR = 0
|
7
7
|
# The minor version number, scoped to the {MAJOR} version number.
|
8
|
-
MINOR =
|
8
|
+
MINOR = 5
|
9
9
|
# The patch number, scoped to the {MAJOR} and {MINOR} version numbers.
|
10
10
|
PATCH = 0
|
11
|
-
# The prerelease version, scoped to the {MAJOR}, {MINOR}, and {PATCH} version numbers.
|
12
|
-
# PRERELEASE =
|
13
11
|
|
14
12
|
# The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the `PRERELEASE` in the
|
15
13
|
# {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format.
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metasploit-concern
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Imhoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: metasploit-yard
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: activesupport
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -65,7 +79,6 @@ files:
|
|
65
79
|
- lib/metasploit/concern/error/eager_load.rb
|
66
80
|
- lib/metasploit/concern/error/skip_autoload.rb
|
67
81
|
- lib/metasploit/concern/version.rb
|
68
|
-
- lib/tasks/yard.rake
|
69
82
|
- spec/support/shared/examples/metasploit/concern/run.rb
|
70
83
|
homepage: https://github.com/rapid7/metasploit-concern
|
71
84
|
licenses:
|
data/lib/tasks/yard.rake
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# @note All options not specific to any given rake task should go in the .yardopts file so they are available to both
|
2
|
-
# the below rake tasks and when invoking `yard` from the command line
|
3
|
-
|
4
|
-
if defined? YARD
|
5
|
-
namespace :yard do
|
6
|
-
YARD::Rake::YardocTask.new(:doc) do |t|
|
7
|
-
# --no-stats here as 'stats' task called after will print fuller stats
|
8
|
-
t.options = ['--no-stats']
|
9
|
-
|
10
|
-
t.after = Proc.new {
|
11
|
-
Rake::Task['yard:stats'].execute
|
12
|
-
}
|
13
|
-
end
|
14
|
-
|
15
|
-
desc "Shows stats for YARD Documentation including listing undocumented modules, classes, constants, and methods"
|
16
|
-
task :stats => :environment do
|
17
|
-
stats = YARD::CLI::Stats.new
|
18
|
-
stats.run('--compact', '--list-undoc')
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
# @todo Figure out how to just clone description from yard:doc
|
23
|
-
desc "Generate YARD documentation"
|
24
|
-
# allow calling namespace to as a task that goes to default task for namespace
|
25
|
-
task :yard => ['yard:doc']
|
26
|
-
|
27
|
-
task :default => :yard
|
28
|
-
else
|
29
|
-
puts 'YARD not defined, so yard tasks cannot be setup.'
|
30
|
-
end
|