wedge 0.1.71 → 0.1.72
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wedge/plugins/current_user.rb +9 -2
- data/lib/wedge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97fde48cbfd13bdbc256762b6a20110c881d9f5b
|
4
|
+
data.tar.gz: 7e1047ecb8746f401172bf013d40b8edb7f7c319
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96f3379459eafed0e6cc4a7f96555a1fcc48795fe2bcf453b85c7a7e9d389f769637dda6cd8ace7c9f4940f47e9651a344bc33272fcacda2f6b5f7e059fc1843
|
7
|
+
data.tar.gz: b1833299a38ad3ceea7aae5e12b5a08d7b102a52458c48c8a701cd3f65c4d3b5a49bc7a5c8fcc55f467ddd548e1c83338162f86bc6dc0eb879d666e687443013
|
@@ -19,8 +19,15 @@ class Wedge
|
|
19
19
|
end
|
20
20
|
|
21
21
|
module InstanceMethods
|
22
|
-
def wedge_current_user
|
23
|
-
|
22
|
+
def wedge_current_user &block
|
23
|
+
if block_given?
|
24
|
+
wedge(:current_user_plugin).get_current_user do |data|
|
25
|
+
block.call data
|
26
|
+
Store[:current_user] ||= Wedge[:current_user, data]
|
27
|
+
end
|
28
|
+
else
|
29
|
+
Store[:current_user] ||= Wedge[:current_user, wedge(:current_user_plugin).get_current_user]
|
30
|
+
end
|
24
31
|
end
|
25
32
|
alias_method :current_user, :wedge_current_user
|
26
33
|
end
|
data/lib/wedge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wedge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.72
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal-wedge
|