metasploit-model 0.29.2 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a9c1a9696d76d878f1d6ca7af8e0679236683af
4
- data.tar.gz: 7a4e99f2ef50ac6c24dae62b72c200982d7ead95
3
+ metadata.gz: 235a79f29aaf17e9b445017a5649d4f859d36687
4
+ data.tar.gz: c670825ac3a662b24435ba94bd83f8ba680b7e0c
5
5
  SHA512:
6
- metadata.gz: cc2b3e78a52f97152e1cb3d54467c51f9b40bf9e931d6378be548956bb493157d78aa2350790dbad9c480817cbe4919dd64f588105e5809e51ebd1529501d4b5
7
- data.tar.gz: 30a4cdb23916edb3b633af299bb8473c7006e9dc38ee52bc1238daa9935eba497e50520a7d20744b6df977a383dc8df13bcfb4ba2df9b1f1eb19f166a696e2a5
6
+ metadata.gz: 5442c6276cb32a18dc81d648bf8dc9a275930e46c1b1a46c56d1e86ab4e6510c20b1fca7ed510f3f2a845e2311d051e1039d05a4ded97c97c843c9f68542e2b8
7
+ data.tar.gz: d324a69cbd6f761be4d082b2570a97f4e6deee5f5df138049be059e651959416556dcb83676ec14fe98a2bfefd0ea0d3616a72dbea18915e8f4edb4406e929d1
data/.travis.yml CHANGED
@@ -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: ruby
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
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: metasploit-yard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -190,7 +204,6 @@ files:
190
204
  - lib/metasploit/model/version.rb
191
205
  - lib/metasploit/model/visitation.rb
192
206
  - lib/metasploit/model/visitation/visit.rb
193
- - lib/tasks/yard.rake
194
207
  - metasploit-model.gemspec
195
208
  - script/rails
196
209
  - spec/app/models/metasploit/model/association/reflection_spec.rb
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