rspectacular 0.63.0 → 0.64.0

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: 8e952e6750e0fa3c90c1dd05c61b7f34978339fe
4
- data.tar.gz: 048fb839836e627495a837bbd057a6eef4fa9c06
3
+ metadata.gz: 14d39af677d480c904f5066f93d9f21948b79608
4
+ data.tar.gz: 3acef2e61df9e97668e456cd196818426bce842f
5
5
  SHA512:
6
- metadata.gz: 9b37afda30be307d1a97692e48abcc49ad31f9ea0310a7bd3f5e80b533aa53d34dd848ba8e1555b8abfae59ce34a9df49f3c3e3fb73df6b39a183bbcb211fad5
7
- data.tar.gz: 9618d93b65b266428c75136c8b79e70ef1bbb830358758b4e0595af703fe2b7c3470bcbbfde66f988bfb93be19daf03ed5c15b2da3bc9e6337392077cc210a39
6
+ metadata.gz: 7537a61ce61735596027c7cc8a4e5f56db2145569ddd08ab6d03f3cb92256693ac7dd60aff73b19dc75fd49af1edfbd4d3324d8dec2835f0933ee0eaa29cafb1
7
+ data.tar.gz: fd7cd53756014cbe921d4d280f0eaa62db5acaeb1f52c6b7a82d4d8c2e3bf3b8fb3220f522b128fb4556accaa65d695d35f02027d3162145d11c6abd91f63924
@@ -56,14 +56,14 @@ RSpec.configure do |config|
56
56
 
57
57
  authentication_result = authentication_successful ? instance : nil
58
58
 
59
- authentication_controller_class.send(:define_method, authentication_method) { authentication_successful }
60
- authentication_controller_class.send(:define_method, current_class_method) { authentication_result }
61
- authentication_controller_class.send(:helper_method, current_class_method)
62
- example.example_group_instance.class.let(current_class_method) { authentication_result }
59
+ authentication_controller_class.__send__(:define_method, authentication_method) { authentication_successful }
60
+ authentication_controller_class.__send__(:define_method, current_class_method) { authentication_result }
61
+ authentication_controller_class.__send__(:helper_method, current_class_method)
62
+ example.example_group_instance.class.let(current_class_method) { authentication_result }
63
63
 
64
64
  example.run
65
65
 
66
- authentication_controller_class.send(:remove_method, current_class_method)
66
+ authentication_controller_class.__send__(:remove_method, current_class_method)
67
67
 
68
68
  instance.delete unless options.is_a?(Hash) && options[:strategy] == :instance
69
69
  end
@@ -6,7 +6,7 @@ begin
6
6
  require 'database_cleaner'
7
7
 
8
8
  begin
9
- autodetected = DatabaseCleaner::Base.new.send(:autodetect)
9
+ autodetected = DatabaseCleaner::Base.new.__send__(:autodetect)
10
10
  rescue DatabaseCleaner::NoORMDetected
11
11
  autodetected = false
12
12
  end
@@ -27,31 +27,6 @@ begin
27
27
  config.after(:suite, elasticsearch: ->(v) { !!v }) do
28
28
  Elasticsearch::Extensions::Test::Cluster.stop(port: 9200) if Elasticsearch::Extensions::Test::Cluster.running?
29
29
  end
30
-
31
- # config.around(:each, time_mock: ->(v) { !!v }) do |example|
32
- # options = example.metadata[:time_mock]
33
- # options = case options
34
- # when Time
35
- # { time: options }
36
- # when FalseClass
37
- # false
38
- # when TrueClass
39
- # {}
40
- # end
41
- #
42
- # if options
43
- # mock_type = options.fetch(:type, :freeze)
44
- # time = options.fetch(:time, Time.utc(2012, 7, 26, 18, 0, 0))
45
- #
46
- # Timecop.send(mock_type, time)
47
- # else
48
- # Timecop.return
49
- # end
50
- #
51
- # example.run
52
- #
53
- # Timecop.return
54
- # end
55
30
  end
56
31
  rescue LoadError
57
32
  end
@@ -7,8 +7,8 @@ RSpec.configure do |config|
7
7
  require 'singleton'
8
8
 
9
9
  options = example.metadata[:singletons]
10
- options = options.is_a?(TrueClass) ? subject.class : options
11
- singletons_to_reset = options.respond_to?(:each) ? options : [options]
10
+ options = options.is_a?(TrueClass) ? described_class : options
11
+ singletons_to_reset = Array(options)
12
12
 
13
13
  singletons_to_reset.each do |singleton|
14
14
  Singleton.__init__(singleton)
@@ -21,7 +21,7 @@ begin
21
21
  mock_type = options.fetch(:type, :freeze)
22
22
  time = options.fetch(:time, Time.utc(2012, 7, 26, 18, 0, 0))
23
23
 
24
- Timecop.send(mock_type, time)
24
+ Timecop.public_send(mock_type, time)
25
25
  else
26
26
  Timecop.return
27
27
  end
@@ -1,3 +1,3 @@
1
1
  module Rspectacular
2
- VERSION = '0.63.0'
2
+ VERSION = '0.64.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspectacular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.63.0
4
+ version: 0.64.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jfelchner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-23 00:00:00.000000000 Z
11
+ date: 2015-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  version: '0'
125
125
  requirements: []
126
126
  rubyforge_project: rspectacular
127
- rubygems_version: 2.4.7
127
+ rubygems_version: 2.4.8
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: RSpec Support And Matchers