metasploit_data_models 0.18.0-java → 0.18.1-java

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: e4ccf2e0ce2690f807d0c5b2b95e2dbfd039fc23
4
- data.tar.gz: a01eefba6e078ba1e0eee5e571886c4c61529b71
3
+ metadata.gz: b7be5dc8c400b0c4e171151e3791f9d5d2151398
4
+ data.tar.gz: 5ebfc43baa37dca8de4022cf1ed924143e96d44b
5
5
  SHA512:
6
- metadata.gz: e9e9160aa91a069d43aca5701ea24e8198f49cc3701c091da3828b3386421d9dfacb9904495b7b4f1704f5f267fc415d718b78a89bd2e74c1d1388dff7da2dff
7
- data.tar.gz: 1fcc31a57f2c3fd741f1927782b62f11691a7ea1e68691eb4ea2eed38b40f8d4ab67657d57a165dea4b502f4343737785b02f9080ef2bfdfee622ba3c5d7b7c5
6
+ metadata.gz: 877b157502eb0805f7bda613cf4457ab1108fec4dc09a12f627a0be6d898ca97f7f7b2105288c0ab94980bf9e6750a0bf0458dcc060992ee4ab0b7150e0c3847
7
+ data.tar.gz: 41ae62017bbe000b4fdd461082dcc90e19f54e63da9e7e619e50473d9eb633d1edd3e49c4a9bce960d9bceb0997b8e99ba218245abdce77bd3e47592168e1578
@@ -0,0 +1,5 @@
1
+ # Including arel-helpers in all active record models.
2
+ # https://github.com/camertron/arel-helpers
3
+
4
+ ActiveRecord::Base.send(:include, ArelHelpers::ArelTable)
5
+ ActiveRecord::Base.send(:include, ArelHelpers::JoinAssociation)
@@ -6,12 +6,17 @@ require 'shellwords'
6
6
  #
7
7
  # Gems
8
8
  #
9
+ # gems must load explicitly any gem declared in gemspec
10
+ # @see https://github.com/bundler/bundler/issues/2018#issuecomment-6819359
11
+ #
12
+ #
9
13
  require 'active_record'
10
14
  require 'active_support'
11
15
  require 'active_support/all'
12
16
  require 'active_support/dependencies'
13
17
  require 'metasploit/concern'
14
18
  require 'metasploit/model'
19
+ require 'arel-helpers'
15
20
 
16
21
  #
17
22
  # Project
@@ -6,7 +6,7 @@ module MetasploitDataModels
6
6
  # The minor version number, scoped to the {MAJOR} version number.
7
7
  MINOR = 18
8
8
  # The patch number, scoped to the {MINOR} version number.
9
- PATCH = 0
9
+ PATCH = 1
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.
@@ -22,8 +22,20 @@ module MetasploitDataModels
22
22
 
23
23
  version
24
24
  end
25
+
26
+ # The full gem version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the {PRERELEASE} in the
27
+ # {http://guides.rubygems.org/specification-reference/#version RubyGems versioning} format.
28
+ #
29
+ # @return [String] '{MAJOR}.{MINOR}.{PATCH}' on master. '{MAJOR}.{MINOR}.{PATCH}.{PRERELEASE}' on any branch
30
+ # other than master.
31
+ def self.gem
32
+ full.gsub('-', '.pre.')
33
+ end
25
34
  end
26
35
 
36
+ # @see Version.gem
37
+ GEM_VERSION = Version.gem
38
+
27
39
  # @see Version.full
28
40
  VERSION = Version.full
29
41
  end
@@ -4,7 +4,7 @@ require 'metasploit_data_models/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'metasploit_data_models'
7
- s.version = MetasploitDataModels::VERSION
7
+ s.version = MetasploitDataModels::GEM_VERSION
8
8
  s.authors = [
9
9
  'Samuel Huckins',
10
10
  'Luke Imhoff',
@@ -41,6 +41,9 @@ Gem::Specification.new do |s|
41
41
  s.add_runtime_dependency 'metasploit-concern', '~> 0.1.0'
42
42
  s.add_runtime_dependency 'metasploit-model', '>= 0.25.1', '< 0.26'
43
43
 
44
+ # arel-helpers: Useful tools to help construct database queries with ActiveRecord and Arel.
45
+ s.add_runtime_dependency 'arel-helpers'
46
+
44
47
  if RUBY_PLATFORM =~ /java/
45
48
  # markdown formatting for yard
46
49
  s.add_development_dependency 'kramdown'
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.18.0
4
+ version: 0.18.1
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-07-07 00:00:00.000000000 Z
14
+ date: 2014-07-17 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
@@ -123,6 +123,20 @@ dependencies:
123
123
  version: '0.26'
124
124
  prerelease: false
125
125
  type: :runtime
126
+ - !ruby/object:Gem::Dependency
127
+ name: arel-helpers
128
+ version_requirements: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - '>='
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ prerelease: false
139
+ type: :runtime
126
140
  - !ruby/object:Gem::Dependency
127
141
  name: kramdown
128
142
  version_requirements: !ruby/object:Gem::Requirement
@@ -249,6 +263,7 @@ files:
249
263
  - app/validators/parameters_validator.rb
250
264
  - app/validators/password_is_strong_validator.rb
251
265
  - bin/mdm_console
266
+ - config/initializers/arel_helper.rb
252
267
  - config/locales/en.yml
253
268
  - console_db.yml
254
269
  - db/migrate/000_create_tables.rb