turbostreamer 1.8.0 → 1.9.0

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
  SHA256:
3
- metadata.gz: cae111420ec0cf24aa152f0c863f2cd13ee091a06af9f617053eb254e563ba3d
4
- data.tar.gz: 4f61485ae07ea14d560fbc7c1acae941a8fb877d4b051666c001be018bab8ccd
3
+ metadata.gz: 5560f65eafd9983a08cc6cd0745101c0909d923dbca5cb012b9f5b884446de37
4
+ data.tar.gz: 14697af3049c50e3504e46e66a0209cf694c450ba95ac84fa4b723038126460d
5
5
  SHA512:
6
- metadata.gz: 1e19984cacc4a690231327b12d9e8607388b3d549cbe8e756fc54668047dd1609d9c2ebb2bdeb3e84b10d11ab6f44a6ee72e5599b85be5ddbbf0605182040973
7
- data.tar.gz: 9c9643f59bf92ca79e785b29f6fc10fc53237d57c87c2ca2351881a02213d68fcb124e9901ec6d45372f72a737c9cbd0fd68883fbdec9fbc41d695c8d4099700
6
+ metadata.gz: 894d614c59b3b002130c00519a5b687cc0814c4bd5358c033858f590f3a5e6082dec8b220cba91b59114eb1236129f1f166f27eb276c4ddbfab7bd796e81bacf
7
+ data.tar.gz: f0d5a68cf0e48ce0e73f50b879d69dc21fcdd6ed35110b4d8498255eeb33f35fb1b1326ff13619dee729adaca4a79ed787ced23f471931112bef5cf2657c1c03
@@ -106,8 +106,8 @@ class TurboStreamer::Template < TurboStreamer
106
106
  # json.cache_if! !admin?, @person, expires_in: 10.minutes do
107
107
  # json.extract! @person, :name, :age
108
108
  # end
109
- def cache_if!(condition, *args)
110
- condition ? cache!(*args, &::Proc.new) : yield
109
+ def cache_if!(condition, *args, &block)
110
+ condition ? cache!(*args, &block) : yield
111
111
  end
112
112
 
113
113
  private
@@ -1,3 +1,3 @@
1
1
  class TurboStreamer
2
- VERSION = '1.8.0'
2
+ VERSION = '1.9.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbostreamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-13 00:00:00.000000000 Z
11
+ date: 2020-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -192,7 +192,7 @@ dependencies:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
- description:
195
+ description:
196
196
  email:
197
197
  - jonbracy@gmail.com
198
198
  executables: []
@@ -217,7 +217,7 @@ homepage: https://github.com/malomalo/turbostreamer
217
217
  licenses:
218
218
  - MIT
219
219
  metadata: {}
220
- post_install_message:
220
+ post_install_message:
221
221
  rdoc_options:
222
222
  - "--main"
223
223
  - README.md
@@ -234,8 +234,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  - !ruby/object:Gem::Version
235
235
  version: '0'
236
236
  requirements: []
237
- rubygems_version: 3.0.3
238
- signing_key:
237
+ rubygems_version: 3.1.2
238
+ signing_key:
239
239
  specification_version: 4
240
240
  summary: Stream JSON via a Builder-style DSL
241
241
  test_files: []