focused_controller 2.0.2 → 2.0.3

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: fa706d1c092ffcf02346ce03c7a319c308abac3b
4
- data.tar.gz: 09e2a853bf2df8ad95d30133a1a38b58ac422168
3
+ metadata.gz: 2a2722ee476e3663d6aefafa80c3fc63d9159eed
4
+ data.tar.gz: 1b2f9fbe3d7c50175b61e6e7cf84a327e82d722f
5
5
  SHA512:
6
- metadata.gz: 0cce0f665bdcb1bb7b23f0e89e7f308dfe8caac4dc44042149fc0986bba78b5d33f3cc06934b5684886b134bbe9f8a224bcdbadf72c3c73aebdee9d9d54fb16f
7
- data.tar.gz: 23550874978ea8e0d256296f3edf4e4aa7f8eeae91d6044919368afa6b7e480b23335a885cb6827f210437992a9f5c4df6b6088a19c0174789123ddfc0a04cc1
6
+ metadata.gz: cf8441ca6ad2c426ec53ff72aed2878f674d7550faf80096b48f6fc4634121912b415340e2c10f120e7e9b8d3e169c4435ae3dc210d5bcad4361535688223288
7
+ data.tar.gz: 98818933532d086d5cf9cc0bfaba20a3c3f74e27334d56de2fb4531544faf1dda7cec2dd189bce9d2f7fdff008f1c996b26f25bb18fea0e96dd96a980383a157
@@ -1,3 +1,7 @@
1
+ ## 2.0.3 ##
2
+
3
+ * Fix RSpec 3 deprecation warning
4
+
1
5
  ## 2.0.2 ##
2
6
 
3
7
  * Rails 4.2.5.1 compatibility fix
@@ -1,12 +1,20 @@
1
+ require "rspec/version"
2
+
1
3
  module FocusedController
2
4
  module RSpecControllerClass
3
5
  def controller_class
4
- metadata = self.metadata[:example_group]
6
+ metadata = self.metadata
7
+ metadata = metadata[:example_group] if RSpec::Version::STRING < "3"
5
8
  klass = nil
6
9
 
7
10
  until metadata.nil? || klass.respond_to?(:new)
8
11
  klass = metadata[:description_args].first
9
- metadata = metadata[:example_group]
12
+
13
+ if RSpec::Version::STRING < "3"
14
+ metadata = metadata[:example_group]
15
+ else
16
+ metadata = metadata[:parent_example_group]
17
+ end
10
18
  end
11
19
 
12
20
  klass.respond_to?(:new) ? klass : super
@@ -1,3 +1,3 @@
1
1
  module FocusedController
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
@@ -24,6 +24,8 @@ end
24
24
  require "rspec/core"
25
25
  RSpec.configure do |config|
26
26
  config.expose_dsl_globally = false
27
+ config.raise_errors_for_deprecations!
28
+ config.expect_with(:rspec) { |c| c.syntax = :should }
27
29
  end
28
30
  [singleton_class, Module].each do |mod|
29
31
  mod.class_eval { alias describe minitest_describe }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: focused_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Leighton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-26 00:00:00.000000000 Z
11
+ date: 2016-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -218,7 +218,7 @@ files:
218
218
  - test/unit/functional_test_helper_test.rb
219
219
  - test/unit/mixin_test.rb
220
220
  - test/unit/route_mapper_test.rb
221
- - test/unit/rspec_functional_helper.rb
221
+ - test/unit/rspec_functional_helper_test.rb
222
222
  - test/unit/rspec_helper_test.rb
223
223
  - test/unit/test_helper_test.rb
224
224
  homepage: http://github.com/jonleighton/focused_controller
@@ -240,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
240
  version: '0'
241
241
  requirements: []
242
242
  rubyforge_project: focused_controller
243
- rubygems_version: 2.4.8
243
+ rubygems_version: 2.5.1
244
244
  signing_key:
245
245
  specification_version: 4
246
246
  summary: Write Rails controllers with one class per action
@@ -307,6 +307,6 @@ test_files:
307
307
  - test/unit/functional_test_helper_test.rb
308
308
  - test/unit/mixin_test.rb
309
309
  - test/unit/route_mapper_test.rb
310
- - test/unit/rspec_functional_helper.rb
310
+ - test/unit/rspec_functional_helper_test.rb
311
311
  - test/unit/rspec_helper_test.rb
312
312
  - test/unit/test_helper_test.rb