metasploit_data_models 1.0.0.pre.rails.pre.4.0a → 1.0.0.pre.rails.pre.4.0b

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: 5190db99abdc62da0a77b62b517412b481be8957
4
- data.tar.gz: a67d53030938408032e52f22a92c1f330195f4e0
3
+ metadata.gz: 8786462afa4886795f010d8d1932ed02af472907
4
+ data.tar.gz: 54bb9201b29cf04d859e05094e265761ef80ada4
5
5
  SHA512:
6
- metadata.gz: 1231e579d907eeedee180ab9ee77472cefbb0a72cfcbf8f78162fa9bd51366174875e4e9706d1e0ce1ded6233a7342557ab5a8d272677409a388bf1bed5816bd
7
- data.tar.gz: 6eb74b74f6451727d9d739a307779283dd69a9a9003403d7cdf0e75aafa8f957fb93884c3d37e6bbd81cdc14e5ba5d04888f685e319e41907ef03ee4afd79052
6
+ metadata.gz: 8dacbe23f336c1bd3b56ca69feea5bcd133aa427e88562f7a23b25b060c8a2f1f5c3ae268b96c8dbd87de6234d7ac33f4cc69bb5a53710e39477e50c90870115
7
+ data.tar.gz: 19443fc84ba571a7cc3fc0a3da5975ec597060cbd4c345c356012fc6e99a6151e0313d3309ee7bca5c493337428a93862542e4ec2f5e1e72b1e53fb98197dc0e
@@ -8,7 +8,7 @@ module MetasploitDataModels
8
8
  # The patch number, scoped to the {MAJOR} and {MINOR} version numbers.
9
9
  PATCH = 0
10
10
  # The prerelease version, scoped to the {MAJOR}, {MINOR}, and {PATCH} version numbers.
11
- PRERELEASE = 'rails-4.0a'
11
+ PRERELEASE = 'rails-4.0b'
12
12
 
13
13
  # The full version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the `PRERELEASE` in the
14
14
  # {http://semver.org/spec/v2.0.0.html semantic versioning v2.0.0} format.
@@ -25,19 +25,8 @@ module MetasploitDataModels
25
25
  version
26
26
  end
27
27
 
28
- # The full gem version string, including the {MAJOR}, {MINOR}, {PATCH}, and optionally, the {PRERELEASE} in the
29
- # {http://guides.rubygems.org/specification-reference/#version RubyGems versioning} format.
30
- #
31
- # @return [String] '{MAJOR}.{MINOR}.{PATCH}' on master. '{MAJOR}.{MINOR}.{PATCH}.{PRERELEASE}' on any branch
32
- # other than master.
33
- def self.gem
34
- full.gsub('-', '.pre.')
35
- end
36
28
  end
37
29
 
38
- # @see Version.gem
39
- GEM_VERSION = Version.gem
40
-
41
30
  # @see Version.full
42
31
  VERSION = Version.full
43
32
  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::GEM_VERSION
7
+ s.version = MetasploitDataModels::VERSION
8
8
  s.authors = [
9
9
  'Samuel Huckins',
10
10
  'Luke Imhoff',
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: 1.0.0.pre.rails.pre.4.0a
4
+ version: 1.0.0.pre.rails.pre.4.0b
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: 2015-04-29 00:00:00.000000000 Z
14
+ date: 2015-04-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
@@ -648,8 +648,6 @@ files:
648
648
  - spec/support/shared/examples/metasploit_data_models/search/visitor/includes/visit/with_children.rb
649
649
  - spec/support/shared/examples/metasploit_data_models/search/visitor/includes/visit/with_metasploit_model_search_operation_base.rb
650
650
  - spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record.rb
651
- - spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
652
- - spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_operator_deprecated_authority.rb
653
651
  - spec/support/shared/examples/metasploit_data_models/search/visitor/where/visit/with_equality.rb
654
652
  - spec/support/shared/examples/metasploit_data_models/search/visitor/where/visit/with_metasploit_model_search_group_base.rb
655
653
  homepage: ''
@@ -856,8 +854,6 @@ test_files:
856
854
  - spec/support/shared/examples/metasploit_data_models/search/visitor/includes/visit/with_children.rb
857
855
  - spec/support/shared/examples/metasploit_data_models/search/visitor/includes/visit/with_metasploit_model_search_operation_base.rb
858
856
  - spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record.rb
859
- - spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_opeator_deprecated_platform.rb
860
- - spec/support/shared/examples/metasploit_data_models/search/visitor/relation/visit/matching_record/with_metasploit_model_search_operator_deprecated_authority.rb
861
857
  - spec/support/shared/examples/metasploit_data_models/search/visitor/where/visit/with_equality.rb
862
858
  - spec/support/shared/examples/metasploit_data_models/search/visitor/where/visit/with_metasploit_model_search_group_base.rb
863
859
  has_rdoc:
@@ -1,31 +0,0 @@
1
- shared_examples_for 'MetasploitDataModels::Search::Visitor::Relation#visit matching record with Metasploit::Model::Search::Operator::Deprecated::Platform' do |options={}|
2
- options.assert_valid_keys(:name)
3
-
4
- name = options.fetch(:name)
5
-
6
- context "with #{name}" do
7
- let(:formatted) do
8
- "#{name}:\"#{value}\""
9
- end
10
-
11
- context 'with Mdm::Platform#fully_qualified_name' do
12
- let(:value) do
13
- matching_record.platforms.sample.fully_qualified_name
14
- end
15
-
16
- it 'should find only matching record' do
17
- expect(visit).to match_array([matching_record])
18
- end
19
- end
20
-
21
- context 'with Mdm::Module::Target#name' do
22
- let(:value) do
23
- matching_record.targets.sample.name
24
- end
25
-
26
- it 'should find only matching record' do
27
- expect(visit).to match_array([matching_record])
28
- end
29
- end
30
- end
31
- end
@@ -1,78 +0,0 @@
1
- shared_examples_for 'MetasploitDataModels::Search::Visitor::Relation#visit matching record with Metasploit::Model::Search::Operator::Deprecated::Authority' do |options={}|
2
- options.assert_valid_keys(:abbreviation)
3
-
4
- abbreviation = options.fetch(:abbreviation)
5
-
6
- context "with #{abbreviation}" do
7
- #
8
- # lets
9
- #
10
-
11
- let(:formatted) do
12
- "#{abbreviation}:#{value}"
13
- end
14
-
15
- let(:matching_authority) do
16
- FactoryGirl.create(
17
- :mdm_authority,
18
- :abbreviation => abbreviation
19
- )
20
- end
21
-
22
- let(:matching_record) do
23
- FactoryGirl.build(
24
- :mdm_module_instance,
25
- module_class: matching_module_class,
26
- # disable factory making references automatically so Mdm::Module::Reference#reference can be set to
27
- # matching_reference
28
- module_references_length: 0
29
- ).tap { |module_instance|
30
- module_instance.module_references << FactoryGirl.build(
31
- :mdm_module_reference,
32
- module_instance: module_instance,
33
- reference: matching_reference
34
- )
35
- }
36
- end
37
-
38
- let(:matching_reference) do
39
- FactoryGirl.create(
40
- :mdm_reference,
41
- :authority => matching_authority
42
- )
43
- end
44
-
45
- let(:non_matching_authority) do
46
- FactoryGirl.create(:mdm_authority)
47
- end
48
-
49
- let(:non_matching_record) do
50
- FactoryGirl.build(
51
- :mdm_module_instance,
52
- module_class: non_matching_module_class,
53
- module_references_length: 0
54
- ).tap { |module_instance|
55
- module_instance.module_references << FactoryGirl.build(
56
- :mdm_module_reference,
57
- module_instance: module_instance,
58
- reference: non_matching_reference
59
- )
60
- }
61
- end
62
-
63
- let(:non_matching_reference) do
64
- FactoryGirl.create(
65
- :mdm_reference,
66
- :authority => non_matching_authority
67
- )
68
- end
69
-
70
- let(:value) do
71
- matching_reference.designation
72
- end
73
-
74
- it 'should find only matching record' do
75
- expect(visit).to match_array([matching_record])
76
- end
77
- end
78
- end