metasploit_data_models 0.18.0 → 0.18.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDhlYjBmNDQ2Mzk3MmNiZjFkYTA3YmNiZjIzNjNhMzdkYjBkNGQwYQ==
4
+ ZmYwZGZmZjY0YTdlNzkxNzQyMTQzZTc0ZmNiNGI0NWMzZGFlYjg4Zg==
5
5
  data.tar.gz: !binary |-
6
- MzNiYzNjOTNkODJkNTZiMTdjYmE4YTE0OGNmNzFkZDk2ZDdjYjk0Zg==
6
+ OWIxOTY3ZDJkMmJlNGM3NDMzNDJkYThjNzdmMDI2MDBhNDIyZGFkYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGJjZThjMDM4MDU0OTZhODM3N2EyMDE5ZTBkYzI5OGU5OGI0ZTNmOTUxNDJi
10
- NWJiZjE0ZmY2MGY4ODEwMmQ4YWVhZmRlMjE4ZmNiZDAyZGRlYTA3MDI4MTY2
11
- ZmQ5NGQ3YzdmMzUyMmZiMWYwNjNlZWM5Njc2NWNmZDY0MTA5NWU=
9
+ ZGE3MGQ5YmQ3MTE1NDU0NDFjZDE0MDFmMDk5YmE1MDU3NGFhZjEwN2Y4YTcy
10
+ YWFmYWQ2NmRiNWNjNTM4NzQzYmVhYzUyM2VlMTVjNTA4NTA3ODA3YWFiZTU3
11
+ NDExMGFlNTM4N2QzM2Q4NTY2M2Y1NjE2NWU1NmYwODE0MTZmNDE=
12
12
  data.tar.gz: !binary |-
13
- NmVhOWU4ODQ0MjI2YzY2NTNkYTU5ZjVlNDY3MzBjOTc4ZWNlNzI2NzM0NGM3
14
- MTZlMWFhNjVhM2RlOWEzNDI1ODEwMGNmMTgwZmI4Y2JmMGZmMDBiMjkzNmIz
15
- ZjZkOGZhNzNlM2NjODY2ZGFlN2I3MzMxOTY0ZmRiMWVkMDFhODM=
13
+ NzQ3Zjc0MGVhYjFjY2Y1YTEyNzYzZDFhZjJlOTJlOTNmZDVhOGFkZTA0ZWU5
14
+ NjRlZTVlZjNjOTJlN2IyZjFmOWExZjg0YjY0NGRlZWE4OGQwNzYzZTNhYTk5
15
+ NjI5ZTEwYzJkMWEwYzlkYTVhMTAxZDU4NjA4NDg2MzJjNDcyM2U=
@@ -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: ruby
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
  - - <
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0.26'
126
+ - !ruby/object:Gem::Dependency
127
+ name: arel-helpers
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ! '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
126
140
  - !ruby/object:Gem::Dependency
127
141
  name: redcarpet
128
142
  requirement: !ruby/object:Gem::Requirement
@@ -236,6 +250,7 @@ files:
236
250
  - app/validators/parameters_validator.rb
237
251
  - app/validators/password_is_strong_validator.rb
238
252
  - bin/mdm_console
253
+ - config/initializers/arel_helper.rb
239
254
  - config/locales/en.yml
240
255
  - console_db.yml
241
256
  - db/migrate/000_create_tables.rb