softwear-lib 1.5.4 → 1.5.5

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: 95c6df2e85c3cd5d44897c5199ec054cfec14761
4
- data.tar.gz: 53fe8a7beb63096febe8136c35dd7223ef5465d7
3
+ metadata.gz: 6233f925080da3e48097c8a65a22c015a15b61c4
4
+ data.tar.gz: 244bec492a43d14c59f318765c8d65283cac8071
5
5
  SHA512:
6
- metadata.gz: 6cdc2269d81063f05345bb57f50e2d6ace9a8b9f43a71e23e7a3298764ba22af85786b6ad9dc30801caee2a77ac426fced66815a5b1142b2de9a8b19d7875e07
7
- data.tar.gz: b1dafb7c8b21c547c4aaa0525cc98d85bfcbc2429d792bf4582dd749db77c0af60720abb32d62b7c3c948745602640bacfdb193ee4ffe7f4cfb66d73f92ca2b7
6
+ metadata.gz: 7d898e16f08b82ecca883f4adaa4056bb9ff3f3f3b0d5620900c0d363e85db1d200a7dcd0187900ebaf8d3d43babf2691167253cf50eb3861fa3dfd8e55d5ed7
7
+ data.tar.gz: 633f91b96bcc356362db034f6876acf03d8edc9419a769958111e8cc0170b88e3f0883cec973bcb9d307d58d0f8f4f51346187a01c7333534b24900f01780879
@@ -10,7 +10,7 @@ module Softwear
10
10
  User.instance_variable_set(:@_spec_users, [])
11
11
 
12
12
  allow(User).to receive(:all) { spec_users }
13
- allow(User).to receive(:find) { |n| spec_users.find { |u| u.id == n } }
13
+ allow(User).to receive(:find) { |n| spec_users.find { |u| u.id.to_s == n.to_s } }
14
14
  allow(User).to receive(:auth) { @_signed_in_user or false }
15
15
  allow(User).to receive(:raw_query) { |q| raise "Unstubbed authentication query \"#{q}\"" }
16
16
 
@@ -19,6 +19,8 @@ module Softwear
19
19
  .and_return('')
20
20
 
21
21
  if (controller rescue false)
22
+ controller.class_eval { helper Softwear::Auth::Helper }
23
+
22
24
  allow(controller).to receive(:current_user) { @_signed_in_user }
23
25
  controller.class_eval { helper_method :current_user }
24
26
 
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.5.4"
3
+ VERSION = "1.5.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: softwear-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nigel Baillie