spectus 3.0.6 → 3.0.7

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
- SHA1:
3
- metadata.gz: 1df7f54d9d8df90f55dbbe97bb06970be7460c6d
4
- data.tar.gz: 3c00fb807ca789c34be1a6fb6688b4f0d54a0a35
2
+ SHA256:
3
+ metadata.gz: 7ead3920af826f01d43d473a00cdc6a3cbeeabc774394d69be471fd32db90f58
4
+ data.tar.gz: 5f9e62670c61654413e1d0475256fdffebc602e55c4d7f914464a9dc0a641578
5
5
  SHA512:
6
- metadata.gz: 2902b73d562bc9531cdb5eb650b54c938728f4e4c61311b91eeed24a2f8dd2497e334b5d869ce08b69cf83d02ac53572c297c51b5079d33b19305ab2a1007de5
7
- data.tar.gz: d49b1d11fb444f1e3599f8fb59d8b6531644a3a7c57c06890f189b73fd83f27807e964711f18ac33962a15c59903117daaf07e2061531fb960e68bdb0f0f3565
6
+ metadata.gz: a54c6dd1ede7066842ae67cea8d23d9aba28f51b6fc23e4e0aaab1b63bc647cd9e8b72185c1cf3758e1a0e935f08f64970ca5a31919808d70434bdc2e4ce0527
7
+ data.tar.gz: 2da708580de165196ee05559a78608cb662142f7fc8a150ed7291529c80236e0dbe447c353fa47454b200e3985c422094b6fa3f4e1370d633cf261fa8411c249
@@ -1,12 +1,12 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2015-11-26 23:14:37 +0100 using RuboCop version 0.35.1.
3
+ # on 2018-08-26 23:11:00 +0200 using RuboCop version 0.58.2.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 3
9
+ # Offense count: 2
10
10
  # Configuration parameters: CountComments.
11
11
  Metrics/MethodLength:
12
12
  Max: 12
@@ -16,10 +16,14 @@ Metrics/MethodLength:
16
16
  Metrics/ParameterLists:
17
17
  Max: 10
18
18
 
19
- # Offense count: 2
20
- # Cop supports --auto-correct.
21
- # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
22
- Style/TrivialAccessors:
19
+ # Offense count: 8
20
+ Style/MixinUsage:
23
21
  Exclude:
24
- - 'lib/spectus/report.rb'
25
- - 'lib/spectus/requirement_level/base.rb'
22
+ - 'test/level/test_high_fail.rb'
23
+ - 'test/level/test_high_pass.rb'
24
+ - 'test/level/test_low_fail.rb'
25
+ - 'test/level/test_low_pass.rb'
26
+ - 'test/level/test_medium_fail.rb'
27
+ - 'test/level/test_medium_pass.rb'
28
+ - 'test/test_with_isolation.rb'
29
+ - 'test/test_without_isolation.rb'
@@ -7,11 +7,10 @@ script:
7
7
  - bundle exec rubocop
8
8
  - bundle exec rake test
9
9
  rvm:
10
- - 2.0
11
- - 2.1
12
10
  - 2.2
13
11
  - 2.3.3
14
12
  - 2.4.0
13
+ - 2.5.0
15
14
  - ruby-head
16
15
  - jruby-head
17
16
  - rbx-3
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
data/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![Build Status](https://travis-ci.org/fixrb/spectus.svg?branch=master)][travis]
4
4
  [![Code Climate](https://codeclimate.com/github/fixrb/spectus/badges/gpa.svg)][codeclimate]
5
- [![Dependency Status](https://gemnasium.com/fixrb/spectus.svg)][gemnasium]
6
5
  [![Gem Version](https://badge.fury.io/rb/spectus.svg)][gem]
7
6
  [![Inline docs](http://inch-ci.org/github/fixrb/spectus.svg?branch=master)][inchpages]
8
7
  [![Documentation](http://img.shields.io/:yard-docs-38c800.svg)][rubydoc]
data/Rakefile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler/gem_tasks'
2
4
  require 'rake/testtask'
3
5
  require 'rubocop/rake_task'
@@ -1 +1 @@
1
- 3.0.6
1
+ 3.0.7
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'bundler/setup'
4
5
  require 'spectus'
data/bin/setup CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/bin/bash
2
+
2
3
  set -euo pipefail
3
4
  IFS=$'\n\t'
4
5
 
@@ -0,0 +1 @@
1
+ 940b1f35592e5730c4ad5520c79c13429bfae404c18cf84f3195fd928a2e182a884b9000ed37eca61be36af1f7c37bca1f096316f72be0df2495aa4df05a9162
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative File.join 'spectus', 'matchers'
2
4
 
3
5
  # Namespace for the Spectus library.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'defi'
2
4
 
3
5
  module Spectus
@@ -19,6 +21,7 @@ module Spectus
19
21
  end
20
22
 
21
23
  # rubocop:disable Style/MethodName
24
+ # rubocop:disable Naming/UncommunicativeMethodParamName
22
25
 
23
26
  # @api public
24
27
  #
@@ -141,6 +144,11 @@ module Spectus
141
144
  RequirementLevel::Low.new(m, false, subject, *challenges).result(true)
142
145
  end
143
146
 
147
+ # rubocop:enable Style/MethodName
148
+ # rubocop:enable Naming/UncommunicativeMethodParamName
149
+
150
+ # rubocop:disable Style/AccessModifierDeclarations
151
+
144
152
  # @!attribute [r] subject
145
153
  #
146
154
  # @return [BasicObject] The front object to be tested.
@@ -153,6 +161,8 @@ module Spectus
153
161
  attr_reader :challenges
154
162
  private :challenges
155
163
 
164
+ # rubocop:enable Style/AccessModifierDeclarations
165
+
156
166
  private
157
167
 
158
168
  # The first default challenge for blocks.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'matchi'
2
4
 
3
5
  module Spectus
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spectus
2
4
  # The class that is responsible for reporting the result of the test.
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'aw'
2
4
 
3
5
  module Spectus
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'base'
2
4
 
3
5
  module Spectus
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'base'
2
4
 
3
5
  module Spectus
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'base'
2
4
 
3
5
  module Spectus
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spectus
2
4
  # Namespace for the results.
3
5
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'base'
2
4
 
3
5
  module Spectus
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative 'base'
2
4
 
3
5
  module Spectus
@@ -1,9 +1,13 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Spectus
2
4
  # This class evaluate the expectation with the passed block.
3
5
  #
4
6
  # @api private
5
7
  #
6
8
  class Sandbox
9
+ # rubocop:disable Style/RescueStandardError
10
+
7
11
  # Execute the untested code from the passed block against the matcher.
8
12
  #
9
13
  # @param matcher [#matches?] The matcher.
@@ -21,6 +25,8 @@ module Spectus
21
25
  @exception = e
22
26
  end
23
27
 
28
+ # rubocop:enable Style/RescueStandardError
29
+
24
30
  # @!attribute [r] last_challenge
25
31
  #
26
32
  # @return [Defi::Challenge] The last evaluated challenge.
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'digest/sha2'
4
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Gem::Specification.new do |spec|
2
4
  spec.name = 'spectus'
3
5
  spec.version = File.read('VERSION.semver').chomp
@@ -14,15 +16,15 @@ Gem::Specification.new do |spec|
14
16
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
15
17
  spec.require_paths = ['lib']
16
18
 
17
- spec.add_dependency 'aw', '~> 0.1.1'
18
- spec.add_dependency 'defi', '~> 1.1.1'
19
- spec.add_dependency 'matchi', '~> 1.0.2'
19
+ spec.add_dependency 'aw', '~> 0.1.2'
20
+ spec.add_dependency 'defi', '~> 1.1.4'
21
+ spec.add_dependency 'matchi', '~> 1.0.3'
20
22
 
21
- spec.add_development_dependency 'bundler', '~> 1.14'
22
- spec.add_development_dependency 'rake', '~> 12.0'
23
+ spec.add_development_dependency 'bundler', '~> 1.16'
24
+ spec.add_development_dependency 'rake', '~> 12.3'
25
+ spec.add_development_dependency 'rubocop', '~> 0.58'
26
+ spec.add_development_dependency 'simplecov', '~> 0.16'
23
27
  spec.add_development_dependency 'yard', '~> 0.9'
24
- spec.add_development_dependency 'simplecov', '~> 0.14'
25
- spec.add_development_dependency 'rubocop', '~> 0.48'
26
28
 
27
29
  spec.cert_chain = ['certs/gem-fixrb-public_cert.pem']
28
30
  private_key = File.expand_path('~/.ssh/gem-fixrb-private_key.pem')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - certs/gem-fixrb-public_cert.pem
12
- date: 2017-04-29 00:00:00.000000000 Z
12
+ date: 2018-08-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aw
@@ -17,112 +17,112 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.1.1
20
+ version: 0.1.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.1.1
27
+ version: 0.1.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: defi
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 1.1.1
34
+ version: 1.1.4
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 1.1.1
41
+ version: 1.1.4
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: matchi
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 1.0.2
48
+ version: 1.0.3
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 1.0.2
55
+ version: 1.0.3
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: bundler
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '1.14'
62
+ version: '1.16'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '1.14'
69
+ version: '1.16'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rake
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '12.0'
76
+ version: '12.3'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '12.0'
83
+ version: '12.3'
84
84
  - !ruby/object:Gem::Dependency
85
- name: yard
85
+ name: rubocop
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: '0.9'
90
+ version: '0.58'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: '0.9'
97
+ version: '0.58'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: simplecov
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: '0.14'
104
+ version: '0.16'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: '0.14'
111
+ version: '0.16'
112
112
  - !ruby/object:Gem::Dependency
113
- name: rubocop
113
+ name: yard
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: '0.48'
118
+ version: '0.9'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: '0.48'
125
+ version: '0.9'
126
126
  description: Expectation library with RFC 2119's requirement levels.
127
127
  email:
128
128
  - contact@cyril.email
@@ -171,6 +171,7 @@ files:
171
171
  - checksum/spectus-3.0.2.gem.sha512
172
172
  - checksum/spectus-3.0.3.gem.sha512
173
173
  - checksum/spectus-3.0.5.gem.sha512
174
+ - checksum/spectus-3.0.6.gem.sha512
174
175
  - lib/spectus.rb
175
176
  - lib/spectus/expectation_target.rb
176
177
  - lib/spectus/matchers.rb
@@ -205,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
206
  version: '0'
206
207
  requirements: []
207
208
  rubyforge_project:
208
- rubygems_version: 2.6.11
209
+ rubygems_version: 2.7.6
209
210
  signing_key:
210
211
  specification_version: 4
211
212
  summary: Expectation library with RFC 2119 keywords.