scorpion-ioc 0.5.23 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd48202033db84bfe2c09fc93f0e9e9c76151940
4
- data.tar.gz: 2279b7a82cb2f5d6cc17399ac80f94633bbe7a63
3
+ metadata.gz: 5315d42c953ef2d6cbdd91f5cbdfb022446cb809
4
+ data.tar.gz: c532df0cf7a914d1b90dca8525f73b9da5e71328
5
5
  SHA512:
6
- metadata.gz: a814f1bfa216266680ef72c89f897f0117d1d14d7c7d29ffa1aaec9d1d00fea904ae1d3cee021939d4a5972c70b08e8ed7cdec91b6a2b14794550083b40a0b16
7
- data.tar.gz: 5cf243c408fd2d96090c5b2104bdf452a29006e03b10fc9a2c92ec97f7ea0f4ba28d21e430816fc8cdcf10cf2d5c69a655ed53deac7a30e905de33bbf6843d4b
6
+ metadata.gz: 162246ea77d34ff5b08f8d618a06dcbacfe0acda81aa9e97550873e776da7a348a5446ddf97b12747accbb2f673cd414f0c5ae292c83b22e6d8ffcd43cf14748
7
+ data.tar.gz: 076ab0215464ce508c78cadb67782fb090a212d8bbacaf57d47495f4512f11a324d1ac5d09bc35698f4d763811f9e3a720ca9ba6135cb1b9a9abb87252d58b09
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.4.0
@@ -30,7 +30,7 @@ module Scorpion
30
30
  base.send :include, Scorpion::Object
31
31
  base.send :include, Scorpion::Rails::Nest
32
32
 
33
- base.around_filter :with_scorpion
33
+ base.around_action :with_scorpion
34
34
 
35
35
  base.class_eval do
36
36
  # Defined here to override the #scorpion method provided by Scorpion::Object.
@@ -38,7 +38,7 @@ module Scorpion
38
38
  if scope
39
39
  super
40
40
  else
41
- ensure_scorpion( env[ENV_KEY] )
41
+ ensure_scorpion( request.env[ENV_KEY] )
42
42
  end
43
43
  end
44
44
  end
@@ -67,14 +67,14 @@ module Scorpion
67
67
  end
68
68
 
69
69
  def assign_scorpion( scorpion )
70
- env[ENV_KEY] = scorpion
70
+ request.env[ENV_KEY] = scorpion
71
71
  end
72
72
 
73
73
  def free_scorpion
74
74
  scorpion.try( :destroy )
75
- env.delete ENV_KEY
75
+ request.env.delete ENV_KEY
76
76
  end
77
77
 
78
78
  end
79
79
  end
80
- end
80
+ end
@@ -11,7 +11,7 @@ module Scorpion
11
11
  # Setup dependency injection
12
12
  base.send :include, Scorpion::Object
13
13
  base.send :include, Scorpion::Rails::Nest
14
- base.send :around_filter, :with_scorpion
14
+ base.send :around_action, :with_scorpion
15
15
 
16
16
  super
17
17
  end
@@ -37,4 +37,4 @@ module Scorpion
37
37
  end
38
38
  end
39
39
  end
40
- end
40
+ end
@@ -1,5 +1,5 @@
1
1
  module Scorpion
2
- VERSION_NUMBER = "0.5.23"
2
+ VERSION_NUMBER = "0.6.0"
3
3
  VERSION_SUFFIX = ""
4
4
  VERSION = "#{VERSION_NUMBER}#{VERSION_SUFFIX}"
5
- end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scorpion-ioc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.23
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Alexander
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-08 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails