metasploit_data_models 0.20.1-java → 0.21.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: bd169636ad2f76b6cfa15eda5c0ddaf40a4e8c63
4
- data.tar.gz: b3b193c418adb69608c060c1d60efb7b5a91f752
3
+ metadata.gz: d35554409458b75e4cc8fbe2b49f658606391248
4
+ data.tar.gz: 2cd9308c86a09a5018db91e5bdf25ae13733dde8
5
5
  SHA512:
6
- metadata.gz: 1e93833da4880770997c763cc337e0a8547a94085953f3b57189662a7ccb965125916f19ae9f5056e40d0344451916504b14e49da0a14aa9ffdf7a430d832c11
7
- data.tar.gz: 11895fb0fd416553acbc53fcb7dfa1a32f02aaadca4f1ce739f22cfd66f103cbb7e9cf2ec37d4847b6c185445cbbdb00fe1b710ff5e874fb38d6ff6b65b0bd3c
6
+ metadata.gz: 11be59f76afc4eb8dfaf1de8cf1bbaff5d14f5f25f61d7f0dbc7e67d6d43c5b58993e4ede91bd1907bfef7a2642c3a00e19925d13712e17ec7718e059bad055b
7
+ data.tar.gz: 0d2dc7cd4b38c97b211b3afcde3daf790f1a3b71c9e92a0e6c6ed37cd1cfb8ad938c5cc4a9836e4bd08f9bc403aa5997caa10b8cb413865011b29d55eb3455fe
data/README.md CHANGED
@@ -19,24 +19,28 @@ __MetasploitDataModels__ exists to do several key things:
19
19
 
20
20
  In a Rails application, MetasploitDataModels acts a
21
21
  [Rails Engine](http://edgeapi.rubyonrails.org/classes/Rails/Engine.html) and the models are available to application
22
- just as if they were defined under app/models. If your Rails appliation needs to modify the models, this can be done
23
- using ActiveSupport.on_load hooks in initializers. The block passed to on_load hook is evaluated in the context of the
22
+ just as if they were defined under `app/models`. If your Rails appliation needs to modify the models, this can be done
23
+ using `ActiveSupport.on_load` hooks in initializers. The block passed to on_load hook is evaluated in the context of the
24
24
  model class, so defining method and including modules will work just like reopeninng the class, but
25
- ActiveSupport.on_load ensures that the monkey patches will work after reloading in development mode. Each class has a
26
- different on_load name, which is just the class name converted to an underscored symbol, so Mdm::ApiKey runs the
27
- :mdm_api_key load hooks, etc.
25
+ `ActiveSupport.on_load` ensures that the monkey patches will work after reloading in development mode. Each class has a
26
+ different `on_load` name, which is just the class name converted to an underscored symbol, so `Mdm::ApiKey` runs the
27
+ `:mdm_api_key` load hooks, etc.
28
28
 
29
29
  # Gemfile
30
30
  gem :metasploiit_data_models, :git => git://github.com/rapid7/metasploit_data_models.git, :tag => 'v0.3.0'
31
31
 
32
32
  # config/initializers/metasploit_data_models.rb
33
33
  ActiveSupport.on_load(:mdm_api_key) do
34
- # Returns the String obfuscated token for display. Meant to avoid CSRF
35
- # api-key stealing attackes.
36
- def obfuscated_token
37
- token[0..3] + "****************************"
38
- end
34
+ # Returns the String obfuscated token for display. Meant to avoid CSRF
35
+ # api-key stealing attackes.
36
+ def obfuscated_token
37
+ token[0..3] + "****************************"
38
+ end
39
39
  end
40
+
41
+ **This gem's `Rails::Engine` is not required automatically.** You'll need to also add the following to your `config/application.rb`:
42
+
43
+ require 'metasploit_data_models/engine'
40
44
 
41
45
  ### Metasploit Framework
42
46
 
@@ -24,7 +24,6 @@ require 'arel-helpers'
24
24
  require 'mdm'
25
25
  require 'mdm/module'
26
26
  require 'metasploit_data_models/base64_serializer'
27
- require 'metasploit_data_models/engine'
28
27
  require 'metasploit_data_models/serialized_prefs'
29
28
  require 'metasploit_data_models/version'
30
29
 
@@ -4,9 +4,9 @@ module MetasploitDataModels
4
4
  # The major version number.
5
5
  MAJOR = 0
6
6
  # The minor version number, scoped to the {MAJOR} version number.
7
- MINOR = 20
7
+ MINOR = 21
8
8
  # The patch number, scoped to the {MINOR} version number.
9
- PATCH = 1
9
+ PATCH = 0
10
10
 
11
11
  # The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the `PRERELEASE` in the
12
12
  # {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format.
@@ -39,8 +39,8 @@ Gem::Specification.new do |s|
39
39
  # @see MSP-2971
40
40
  s.add_runtime_dependency 'activerecord', '>= 3.2.13', '< 4.0.0'
41
41
  s.add_runtime_dependency 'activesupport'
42
- s.add_runtime_dependency 'metasploit-concern', '~> 0.2.1'
43
- s.add_runtime_dependency 'metasploit-model', '~> 0.27.0'
42
+ s.add_runtime_dependency 'metasploit-concern', '~> 0.3.0'
43
+ s.add_runtime_dependency 'metasploit-model', '~> 0.28.0'
44
44
  s.add_runtime_dependency 'railties', '< 4.0.0'
45
45
 
46
46
  # arel-helpers: Useful tools to help construct database queries with ActiveRecord and Arel.
@@ -6,6 +6,9 @@ Bundler.require(*Rails.groups)
6
6
  # require the engine being tested. In a non-dummy app this would be handled by the engine's gem being in the Gemfile
7
7
  # for real app and Bundler.require requiring the gem.
8
8
  require 'metasploit_data_models'
9
+ require 'metasploit_data_models/engine'
10
+ require 'metasploit/concern/engine'
11
+ require 'metasploit/model/engine'
9
12
 
10
13
  module Dummy
11
14
  class Application < Rails::Application
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metasploit_data_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.21.0
5
5
  platform: java
6
6
  authors:
7
7
  - Samuel Huckins
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-09-18 00:00:00.000000000 Z
14
+ date: 2014-10-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
@@ -95,12 +95,12 @@ dependencies:
95
95
  requirements:
96
96
  - - ~>
97
97
  - !ruby/object:Gem::Version
98
- version: 0.2.1
98
+ version: 0.3.0
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ~>
102
102
  - !ruby/object:Gem::Version
103
- version: 0.2.1
103
+ version: 0.3.0
104
104
  prerelease: false
105
105
  type: :runtime
106
106
  - !ruby/object:Gem::Dependency
@@ -109,12 +109,12 @@ dependencies:
109
109
  requirements:
110
110
  - - ~>
111
111
  - !ruby/object:Gem::Version
112
- version: 0.27.0
112
+ version: 0.28.0
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 0.27.0
117
+ version: 0.28.0
118
118
  prerelease: false
119
119
  type: :runtime
120
120
  - !ruby/object:Gem::Dependency