metasploit-model 1.0.0 → 1.0.1

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: d1968cb01611576829be9cee99731ec519c7d744
4
- data.tar.gz: af71934474a21158825dde88a043cbd0beca3367
3
+ metadata.gz: 519db0e496006de97b485933109b516a41db09df
4
+ data.tar.gz: 1b1233f121bfad3dae1e50b566d831f4c14b4104
5
5
  SHA512:
6
- metadata.gz: dc52b352a519f19121f6bd64a7703c0e2cbe9c92bf67cac3c9f1ef1bf3dd6d1f4e1a72aac3079760557b7f17e565c2d90ea0ad2a7c3ef71e9215fa090bbe93a5
7
- data.tar.gz: 6806e8a9307caf65bacda42f348ebb83d55bf3dca0e645ecbeb6bfd9579bcbf368f8f4bda743674d91021a242b22b729ff800729b41dc67ad52362713e2078f5
6
+ metadata.gz: c8156cf5bd0866171c32254f599a9333af2272bfe8adf4ca4e15d54b91599541fc4a449e3475fd032340402122160c89730efc257373e738d7869a06075beb58
7
+ data.tar.gz: 2a66fdfb500d80a040b62cfadbff5508f69901cead9dfb87e8ac601b867755419ee6cefff528e6abb8139c6e1601e581645b1f232d315cd1d682f72af634ccdc
@@ -4,9 +4,10 @@ cache: bundler
4
4
  language: ruby
5
5
  rvm:
6
6
  - '2.1'
7
+ # JRuby failing for redcarpet and shoulda-matchers gems
7
8
  # < 1.7.14
8
- - 'jruby-1.7.13'
9
+ #- 'jruby-1.7.13'
9
10
  # >= 1.7.14
10
- - 'jruby-1.7.14'
11
+ #- 'jruby-1.7.14'
11
12
  script: bundle exec rake spec yard
12
13
  sudo: false
@@ -11,7 +11,7 @@ module Metasploit
11
11
  # The minor version number, scoped to the {MAJOR} version number.
12
12
  MINOR = 0
13
13
  # The patch version number, scoped to the {MAJOR} and {MINOR} version numbers.
14
- PATCH = 0
14
+ PATCH = 1
15
15
 
16
16
  #
17
17
  # Module Methods
@@ -1,3 +1,3 @@
1
1
  RSpec.describe Metasploit::Model::Search::Group::Base, type: :model do
2
- it { is_expected.to ensure_length_of(:children).is_at_least(1) }
2
+ it { is_expected.to validate_length_of(:children).is_at_least(1) }
3
3
  end
@@ -7,7 +7,7 @@ RSpec.describe Metasploit::Model::Search::Operation::Group::Base, type: :model d
7
7
 
8
8
  context 'validations' do
9
9
  context 'children' do
10
- it { is_expected.to ensure_length_of(:children).is_at_least(1).with_short_message('is too short (minimum is 1 child)') }
10
+ it { is_expected.to validate_length_of(:children).is_at_least(1).with_short_message('is too short (minimum is 1 child)') }
11
11
 
12
12
  context '#children_valid' do
13
13
  subject(:children_valid) do
@@ -114,3 +114,12 @@ RSpec.configure do |config|
114
114
  Metasploit::Model::Spec.remove_temporary_pathname
115
115
  end
116
116
  end
117
+
118
+ Shoulda::Matchers.configure do |config|
119
+ config.integrate do |with|
120
+ with.library :active_record
121
+ with.library :active_model
122
+
123
+ with.test_framework :rspec
124
+ end
125
+ end
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: 1.0.0
4
+ version: 1.0.1
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-05-11 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler