rspeckled 1.3.0 → 1.3.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
  SHA256:
3
- metadata.gz: f32207f98a7da42ae502be1f48e5b984cffe281c356bbab6a20f0f28362f9195
4
- data.tar.gz: 3858a98089950d12737d6ada59c84cdd2b27aaedf30a40419677c33dadf62242
3
+ metadata.gz: beb68fa5d9b158d21d9970216d83a0435726e9a243525f2edcac75936b3a5e76
4
+ data.tar.gz: 5998dfa919ebaa420a2dd188bead8d2e423ac1ae4641bc6ec6633c1e09d37a21
5
5
  SHA512:
6
- metadata.gz: 04a75923f4be68391645545216dbca92ddb01ca11afc36edcdfbe435db38e714186b13bae1f7f9c1c34b69e4ae93cf40628f129e79f387b17520ce27ff13dfdc
7
- data.tar.gz: 10bdadab100f374512ba7e6bee89575827517765efaa16fe2c78bf19d749fff965f687bc54c5844c1a772975e60e40307ddd4b42505de8c0d4ad113c14fae7a5
6
+ metadata.gz: fd9ca3c1e7cd74ae578877f40a9698620e36bdd071f34ee7fe23425a077976c82093d3c9e554dde179fd79d129e5259691cf66c3cafc34b92bd65c1b167fa591
7
+ data.tar.gz: 2619e9441e791b04a2ecb1fb77db8bf5ee59f5e91faab8152e4fe47ab0068b35aebebb736fa2fe20187911f7077d810c6c23ccce01c7e8ce6853ab04842467bd
checksums.yaml.gz.sig CHANGED
Binary file
@@ -4,9 +4,7 @@ def root_filepath
4
4
  @root_filepath ||= begin
5
5
  current_directory = Dir.pwd
6
6
 
7
- until Dir.exist?(current_directory + '/spec')
8
- current_directory += '/..'
9
- end
7
+ current_directory += '/..' until Dir.exist?(current_directory + '/spec')
10
8
 
11
9
  File.expand_path(current_directory)
12
10
  end
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # rubocop:disable Layout/IndentHash
4
3
  RSpec.configure do |config|
5
4
  config.around(:each, :authentication => lambda { |v| !!v }) do |example|
6
5
  config.rspeckled_logger.debug("Around Each - Start - #{__FILE__}")
@@ -26,17 +25,17 @@ RSpec.configure do |config|
26
25
  .downcase
27
26
 
28
27
  defaults = {
29
- :type => :json_web_token,
30
- :authentication_method => :"authenticate_#{class_name_underscored}!",
31
- :class_instance_overrides => {},
32
- :class_instance_traits => {},
33
- :method => :"current_#{class_name_underscored}",
34
- :strategy => :factory,
35
- :successful? => true,
36
- :token => {
37
- :roles => 'standard',
38
- },
39
- }
28
+ :type => :json_web_token,
29
+ :authentication_method => :"authenticate_#{class_name_underscored}!",
30
+ :class_instance_overrides => {},
31
+ :class_instance_traits => {},
32
+ :method => :"current_#{class_name_underscored}",
33
+ :strategy => :factory,
34
+ :successful? => true,
35
+ :token => {
36
+ :roles => 'standard',
37
+ },
38
+ }
40
39
 
41
40
  options = defaults.deep_merge(options)
42
41
 
@@ -105,4 +104,3 @@ RSpec.configure do |config|
105
104
  config.rspeckled_logger.debug("Before Each - End - #{__FILE__}")
106
105
  end
107
106
  end
108
- # rubocop:enable Layout/IndentHash
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- SIDEKIQ_BATCH_CALLBACK_PATTERN = /\Ab\-[a-zA-Z0-9_\-]{14}\z/
4
- SIDEKIQ_BATCH_DATA_PATTERN = /\Abatches\z/
5
- SIDEKIQ_BATCH_JOBS_PATTERN = /\Ab\-[a-zA-Z0-9_\-]{14}-jids\z/
6
- SIDEKIQ_LIMITER_DATA_PATTERN = /\Almtr-c-/
7
- SIDEKIQ_LIMITER_JOBS_PATTERN = /\Almtr-cfree-/
3
+ SIDEKIQ_BATCH_CALLBACK_PATTERN = /\Ab\-[a-zA-Z0-9_\-]{14}\z/.freeze
4
+ SIDEKIQ_BATCH_DATA_PATTERN = /\Abatches\z/.freeze
5
+ SIDEKIQ_BATCH_JOBS_PATTERN = /\Ab\-[a-zA-Z0-9_\-]{14}-jids\z/.freeze
6
+ SIDEKIQ_LIMITER_DATA_PATTERN = /\Almtr-c-/.freeze
7
+ SIDEKIQ_LIMITER_JOBS_PATTERN = /\Almtr-cfree-/.freeze
8
8
 
9
9
  RSpec.configure do |config|
10
10
  config.before(:each, :queue => lambda { |v| !!v }) do |example|
@@ -119,26 +119,18 @@ require 'rspeckled/plugins/extensions/vcr' if defined?(::VCR)
119
119
  #
120
120
  RSpec.configure do |config|
121
121
  config.when_first_matching_example_defined(:email) do
122
- unless defined?(::EmailSpec)
123
- fail LoadError, "Add 'email_spec' to your gemspec for Gemfile to use the :email metadata"
124
- end
122
+ fail LoadError, "Add 'email_spec' to your gemspec for Gemfile to use the :email metadata" unless defined?(::EmailSpec)
125
123
  end
126
124
 
127
125
  config.when_first_matching_example_defined(:time_mock) do
128
- unless defined?(::Timecop)
129
- fail LoadError, "Add 'timecop' to your gemspec for Gemfile to use the :time_mock metadata"
130
- end
126
+ fail LoadError, "Add 'timecop' to your gemspec for Gemfile to use the :time_mock metadata" unless defined?(::Timecop)
131
127
  end
132
128
 
133
129
  config.when_first_matching_example_defined(:vcr) do
134
- unless defined?(::VCR)
135
- fail LoadError, "Add 'vcr' to your gemspec for Gemfile to use the :vcr metadata"
136
- end
130
+ fail LoadError, "Add 'vcr' to your gemspec for Gemfile to use the :vcr metadata" unless defined?(::VCR)
137
131
  end
138
132
 
139
133
  config.when_first_matching_example_defined(:webmock) do
140
- unless defined?(::WebMock)
141
- fail LoadError, "Add 'webmock' to your gemspec for Gemfile to use the :webmock metadata"
142
- end
134
+ fail LoadError, "Add 'webmock' to your gemspec for Gemfile to use the :webmock metadata" unless defined?(::WebMock)
143
135
  end
144
136
  end
@@ -19,7 +19,7 @@ class Example
19
19
  ^RELEASE|
20
20
  ^SAVEPOINT
21
21
  )
22
- }xi
22
+ }xi.freeze
23
23
 
24
24
  attr_accessor :counts,
25
25
  :example
@@ -90,7 +90,7 @@ class Example
90
90
  def execution_result
91
91
  @execution_result ||= begin
92
92
  if example.execution_result.is_a?(Hash)
93
- OpenStruct.new(example.execution_result)
93
+ OpenStruct.new(example.execution_result) # rubocop:disable Performance/OpenStruct
94
94
  else
95
95
  example.execution_result
96
96
  end
@@ -61,9 +61,7 @@ RSpec.configure do |config|
61
61
  # PROFILING
62
62
  ##############################################################################
63
63
 
64
- if config.files_to_run.length > 1
65
- config.profile_examples = [(config.files_to_run.length * 0.1).to_i, 10].max
66
- end
64
+ config.profile_examples = ((config.files_to_run.length * 0.1) < 10) ? 0 : 10
67
65
 
68
66
  config.reporter.register_listener Rspeckled::Reporting::Runner.new,
69
67
  :example_failed,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rspeckled
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspeckled
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thegranddesign
@@ -35,7 +35,7 @@ cert_chain:
35
35
  eUgMp+qKjyM1NGj/222soSUpWqOE16L23vv8sWIbMIADdR8dephQ6jMovYylUmE5
36
36
  KHp+JJQviSN0i4z8gVL2zloo+xZf791LiJH8Kcjpx43jhg0WdR4=
37
37
  -----END CERTIFICATE-----
38
- date: 2018-12-04 00:00:00.000000000 Z
38
+ date: 2019-07-03 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rspec
@@ -193,7 +193,12 @@ homepage: https://github.com/thekompanee/rspeckled
193
193
  licenses:
194
194
  - MIT
195
195
  metadata:
196
- allowed_push_host: https://rubygems.org
196
+ bug_tracker_uri: https://github.com/thekompanee/rspeckled/issues
197
+ changelog_uri: https://github.com/thekompanee/rspeckled/blob/master/CHANGELOG.md
198
+ documentation_uri: https://github.com/thekompanee/rspeckled/tree/releases/v1.3.0
199
+ homepage_uri: https://github.com/thekompanee/rspeckled
200
+ source_code_uri: https://github.com/thekompanee/rspeckled
201
+ wiki_uri: https://github.com/thekompanee/rspeckled/wiki
197
202
  post_install_message:
198
203
  rdoc_options: []
199
204
  require_paths:
@@ -209,8 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
214
  - !ruby/object:Gem::Version
210
215
  version: '0'
211
216
  requirements: []
212
- rubyforge_project:
213
- rubygems_version: 2.7.6
217
+ rubygems_version: 3.0.4
214
218
  signing_key:
215
219
  specification_version: 4
216
220
  summary: Stop Copying and Pasting Your RSpec Configuration
metadata.gz.sig CHANGED
Binary file