metasploit-model 0.29.2-java → 0.30.0-java

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b150c41b2ca68b5d851bf1861493f2b53e5d0d1d
4
- data.tar.gz: 66cceb2757470aa2e26efcdb41d8cd0d665212f7
3
+ metadata.gz: 4570e3936093f4399b4c5e4076c40393d936dd6b
4
+ data.tar.gz: a879e61ad6fe1a357260e0704878555038fc0571
5
5
  SHA512:
6
- metadata.gz: 4a270f0baf6f4763df5ac967078687d648bb4acdb48e03d7bd16c945feadd188d8a682e2ff7fdf6f741a6754dba1450b4429c3c6d16f66abd0f11443678459e3
7
- data.tar.gz: 47d3cde65dd04c7569f9783ce0f2ec9cd4c92a8a4e4118195550ca63fb7686a858d8c92342f703a65526eb96d4a2135275520d329ffef36e940a1e2c45677f77
6
+ metadata.gz: 5d9bd46453342e7d0abc58b78613a150c1f4b18502b861e3e35082993c43b80fe8a9cefe64c603347c6846424cba39c601dacceab9cef2848db55cbdfa587771
7
+ data.tar.gz: e9c25dcddefe8b864d603da307f56def939e82efef9e2b4b20c825cdfdf05b5a86049f7024bca0379f8bc3f8f1ec9b0d67796f0604a602490f2fa65eba60b003
@@ -1,3 +1,5 @@
1
+ addons:
2
+ postgresql: '9.3'
1
3
  cache: bundler
2
4
  language: ruby
3
5
  rvm:
@@ -6,4 +8,5 @@ rvm:
6
8
  - 'jruby-1.7.13'
7
9
  # >= 1.7.14
8
10
  - 'jruby-1.7.14'
11
+ script: bundle exec rake spec yard
9
12
  sudo: false
data/Rakefile CHANGED
@@ -45,6 +45,20 @@ else
45
45
  task :default => :spec
46
46
  end
47
47
 
48
+ # Use find_all_by_name instead of find_by_name as find_all_by_name will return pre-release versions
49
+ gem_specification = Gem::Specification.find_all_by_name('metasploit-yard').first
50
+
51
+ if gem_specification
52
+
53
+ Dir[File.join(gem_specification.gem_dir, 'lib', 'tasks', '**', '*.rake')].each do |rake|
54
+ load rake
55
+ end
56
+ else
57
+ puts "metasploit-yard not in bundle, so can't setup yard tasks. " \
58
+ "To run yard ensure to install the development group."
59
+ print_without = true
60
+ end
61
+
48
62
  if print_without
49
63
  puts "Bundle currently installed '--without #{Bundler.settings.without.join(' ')}'."
50
64
  puts "To clear the without option do `bundle install --without ''` (the --without flag with an empty string) or " \
@@ -5,9 +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 = 29
8
+ MINOR = 30
9
9
  # The patch number, scoped to the {MAJOR} and {MINOR} version numbers.
10
- PATCH = 2
10
+ PATCH = 0
11
11
 
12
12
  # The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the {PRERELEASE} in the
13
13
  # {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format.
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.required_ruby_version = '>= 2.1'
20
20
 
21
21
  spec.add_development_dependency 'bundler', '~> 1.3'
22
+ spec.add_development_dependency 'metasploit-yard', '~> 1.0'
22
23
  spec.add_development_dependency 'rake'
23
24
 
24
25
  # documentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit-model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.2
4
+ version: 0.30.0
5
5
  platform: java
6
6
  authors:
7
7
  - Luke Imhoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-02 00:00:00.000000000 Z
11
+ date: 2015-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,6 +24,20 @@ dependencies:
24
24
  version: '1.3'
25
25
  prerelease: false
26
26
  type: :development
27
+ - !ruby/object:Gem::Dependency
28
+ name: metasploit-yard
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: '1.0'
39
+ prerelease: false
40
+ type: :development
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  version_requirements: !ruby/object:Gem::Requirement
@@ -189,7 +203,6 @@ files:
189
203
  - lib/metasploit/model/version.rb
190
204
  - lib/metasploit/model/visitation.rb
191
205
  - lib/metasploit/model/visitation/visit.rb
192
- - lib/tasks/yard.rake
193
206
  - metasploit-model.gemspec
194
207
  - script/rails
195
208
  - spec/app/models/metasploit/model/association/reflection_spec.rb
@@ -318,7 +331,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
318
331
  version: '0'
319
332
  requirements: []
320
333
  rubyforge_project:
321
- rubygems_version: 2.2.2
334
+ rubygems_version: 2.4.5
322
335
  signing_key:
323
336
  specification_version: 4
324
337
  summary: Metasploit Model Mixins and Validators
@@ -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