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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c595180fe4779866c4b837eb1dc505179e0a656c
4
- data.tar.gz: 9cc3cfb837591e92e95865db5c1c8d3827edb1c5
3
+ metadata.gz: 97fde48cbfd13bdbc256762b6a20110c881d9f5b
4
+ data.tar.gz: 7e1047ecb8746f401172bf013d40b8edb7f7c319
5
5
  SHA512:
6
- metadata.gz: 2340bf5a135a4f23f7eeeaae825bede9883c66dc098c60c6bbb96e7510e9da566cb4b4342a976c4712767344736cf8a59f5ae56a0fee8c444b34ee7683cd5239
7
- data.tar.gz: 253595b22f6cfb1089f4df27ba75dd2fde8246b1bb040c3407adf76a0422425e51d1806124ea41dedaad88ce3f169e78f09ec701133eb5c8afc7d878f4da5a25
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
- Store[:current_user] ||= Wedge[:current_user, wedge(:current_user_plugin).get_current_user]
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
@@ -1,3 +1,3 @@
1
1
  class Wedge
2
- VERSION = '0.1.71'
2
+ VERSION = '0.1.72'
3
3
  end
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.71
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-19 00:00:00.000000000 Z
11
+ date: 2015-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal-wedge