softwear-lib 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softwear/auth/emails_helper.rb +7 -5
- data/lib/softwear/auth/spec.rb +2 -2
- data/lib/softwear/library/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc3fb9a32735ab94300da8b9383204ead9b50da8
|
4
|
+
data.tar.gz: 3cfcb465924c9866f36d80a1eda0fd7dbf627a3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8269719c5b571dc2ea70fba292fc3399967b5eab32651b1c6ffcc9840f7885998b0dc19ebde4f8f1b88ca205c2151bda237319eeb56edffacb4531f142b16c7
|
7
|
+
data.tar.gz: 66135cc44f897fc8d7dab0a9ff2d1e3fb979cbd1a7627988003989aecdc9b0a7a4a46dd1605b4812fc894f5912a77a8d5edcddafb6a613d4e1feeae97da593e6
|
@@ -1,9 +1,11 @@
|
|
1
1
|
module Softwear
|
2
|
-
module
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
module Auth
|
3
|
+
module EmailsHelper
|
4
|
+
def backtrace_is_from_app?(line)
|
5
|
+
!(line.include?('/gems/') || /^kernel\// =~ line || line.include?('/vendor_ruby/'))
|
6
|
+
end
|
6
7
|
|
7
|
-
|
8
|
+
extend self
|
9
|
+
end
|
8
10
|
end
|
9
11
|
end
|
data/lib/softwear/auth/spec.rb
CHANGED
@@ -16,7 +16,7 @@ module Softwear
|
|
16
16
|
|
17
17
|
allow(Figaro.env).to receive(:softwear_hub_url).and_return 'http://hub.example.com'
|
18
18
|
|
19
|
-
allow_any_instance_of(Softwear::
|
19
|
+
allow_any_instance_of(Softwear::Library::ControllerAuthentication)
|
20
20
|
.to receive(:user_token)
|
21
21
|
.and_return('')
|
22
22
|
|
@@ -48,7 +48,7 @@ module Softwear
|
|
48
48
|
def sign_in_as(user)
|
49
49
|
@_signed_in_user = user
|
50
50
|
|
51
|
-
allow_any_instance_of(Softwear::
|
51
|
+
allow_any_instance_of(Softwear::Library::ControllerAuthentication)
|
52
52
|
.to receive(:user_token).and_return 'abc123'
|
53
53
|
|
54
54
|
if respond_to?(:session) && session.respond_to?(:[]=)
|