wire-framework 0.1.4.12 → 0.1.4.13

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/app/cache.rb +7 -7
  3. data/lib/wire.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bda50b7d8148e2419510cf310f949189bca22f27
4
- data.tar.gz: 7792e29e6d038b564e3a0097dde1c0141f16ec4a
3
+ metadata.gz: 1f1c6326e62f942125bccb17ab820e47626fb6cc
4
+ data.tar.gz: c06951196559a75da17ae60eaf08c8a2a94f2607
5
5
  SHA512:
6
- metadata.gz: 6c5f98c1a8922731798d50c9dce96af7d6b40886c84228756cb6d7607559239f1ce66663244990923f49c683e2facfe1c34ace75a01ffc944929a239d008c32d
7
- data.tar.gz: 659e7c4eac01d66c863ade58ca10429c1dd48021c11f713fb6aacd86fea53c816231119d848750d8c35048c6ab5f4345ec7f7a38b09d839dd22fab61f3ef38ca
6
+ metadata.gz: 107776190a01a5ba7f4cc10c1106c948722cfdcec901bb4a61995e5197450b7f48e6f3c951d04d227e46de2227f921d096cc544c8b1a0aff1bce7a46dce5c319
7
+ data.tar.gz: 2393bb3249945696485ef84b6693eb464f62c42d47fd888e790eb80b6182798a4520a24b2db51cdcbebf120cb5836e43ba5f3abaeff374e48afb1b3ba74175ab
data/lib/app/cache.rb CHANGED
@@ -18,13 +18,7 @@ module Cache
18
18
  env = $cache[context.app[:remote_uri]]
19
19
  db = env.database
20
20
  begin
21
- if [:create,:update,:delete].include? context.action
22
- result = forward(:readAll,context)
23
- env.transaction do
24
- db[all] = result
25
- end
26
- result = nil
27
- end
21
+
28
22
  if context.uri[3]
29
23
  result = forward(:read,context)
30
24
  else
@@ -36,7 +30,13 @@ module Cache
36
30
  else
37
31
  db[uri] = result
38
32
  end
33
+ end
39
34
 
35
+ if [:create,:update,:delete].include? context.action
36
+ thing = forward(:readAll,context)
37
+ env.transaction do
38
+ db[all] = thing
39
+ end
40
40
  end
41
41
  rescue RestClient::ResourceNotFound
42
42
  # gracefully ignore
data/lib/wire.rb CHANGED
@@ -24,5 +24,5 @@ end
24
24
  # @author Bryan T. Meyers
25
25
  module Wire
26
26
  # Current version of the Wire Gem
27
- VERSION = '0.1.4.12'
27
+ VERSION = '0.1.4.13'
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wire-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4.12
4
+ version: 0.1.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan T. Meyers