third_party_wxa 0.2.5 → 0.2.6

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
  SHA256:
3
- metadata.gz: 9cfb9b68f7286bf6c23413f590edca75960b6ad16336191d5380d8dbe7ecc2aa
4
- data.tar.gz: 71cb776611d8db6f837579b5ad6b023fe200a1aaa30d30e2d9793b5867fe688b
3
+ metadata.gz: 1442512f1b53cf7b09e4dbf866e7e3e6d3563d2cc59b89b8b2b89ca7b71f77cb
4
+ data.tar.gz: '08a85fd5e8a547e5651928718e130e6babe929a6040076a3c0b071ede54c733c'
5
5
  SHA512:
6
- metadata.gz: bc52bc17a9453ee6e79e3fcd6de3d719385a7df9b9a8784170a1f03d16b0e5e8d0b196031fa13f87972d6b95e66bdc1a384a238a40cb70f4f9235425bd645368
7
- data.tar.gz: dad6795052192fafa7320dd908b25aff7e5ce1ac05b00ee0885d483195b2c0146fba57f09c97ab6535a3f7da31fc131096ee380d03afad780ae427d3aec9d1ab
6
+ metadata.gz: e07263c368396fc66bbafe88a1fcf659c726b45587264b977504ffcaa958e98599b0fbdfcc6d50d97f73f4ed716b74d29bb109784fe9edb33c07dd9149de86a8
7
+ data.tar.gz: 6cb13cee68c5e04442395a0e10d34651d09f970ad51d6fc0023f15386abd1bb72cb8da57ebbb81a199edc31c1ca7b4cc1d25c9cc3893c5a2707cdf9cb37e9674
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- third_party_wxa (0.2.5)
4
+ third_party_wxa (0.2.6)
5
5
  activesupport
6
6
  json (>= 1.8.6)
7
7
  redis
@@ -1,8 +1,6 @@
1
- require 'singleton'
2
1
  module ThirdPartyWxa
3
2
  class Plugin
4
3
 
5
- include Singleton
6
4
  include Api::Authorize
7
5
  include Api::Code
8
6
  include Api::Login
@@ -44,8 +42,11 @@ module ThirdPartyWxa
44
42
  end
45
43
 
46
44
  def get_component_access_token
47
- set_component_access_token if !component_access_token_valid?
48
- @component_access_token
45
+ m = Mutex.new
46
+ m.synchronize{
47
+ set_component_access_token if !component_access_token_valid?
48
+ @component_access_token
49
+ }
49
50
  end
50
51
 
51
52
  def set_component_access_token
@@ -1,3 +1,3 @@
1
1
  module ThirdPartyWxa
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: third_party_wxa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - hzy