viu 0.0.6 → 0.0.7

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: 34b16c8835912c41e5464fa58b2e7f70b947d502c02fd50954464a7db5656820
4
- data.tar.gz: a5dea697f921f16c336d6d038d6416e4353e5ee103a8d2dc081b9ed8b7ad6cba
3
+ metadata.gz: 9edfbe265c55fd9fc3a3577ebdb1e4861188565d75ee30bd48d55266f0fa53d2
4
+ data.tar.gz: 718f552c4b1e9b28b93aeb2dea02aae4a147ff6b4d7b15203dd1da51b963f0c4
5
5
  SHA512:
6
- metadata.gz: e65307f39be95a5e33328e22368a8072ece3357bf71bf53598f797470a71a6dd81241817b22bb623c1953e7e24db36dc54112a92ea27ad3f44ab8974c55b085d
7
- data.tar.gz: 4ff6b0286b900b2cec67f034342238b498ecda7d455f1210ea610f44323d0d19423fcee6bd55f766934d8be58f14ee5ce9624706be15f32eb23366aedac9a924
6
+ metadata.gz: 1580d4292754df11655385b8358e9eb79706968d814f5b8182abbdf94cb989f40d9a4fc68fc2848fe2e12e2906a764470c30f95ac933f7e47d5b38142789f304
7
+ data.tar.gz: 0f956d9168108108cad578b21d1078c374b85736d836fb8c443189fa08735e01028aaf727456e4cb5c65a3b384ad230048b6a8980027916aab5132f9cfb392d0
@@ -1,3 +1,7 @@
1
+ ### 0.0.7 2020-12-24
2
+
3
+ - Allow #render_view to accept a :format option
4
+
1
5
  ## 0.0.6 2020-12-23
2
6
 
3
7
  - Set content type as "text/html" when using #render_view
@@ -86,7 +86,7 @@ GIT
86
86
  PATH
87
87
  remote: .
88
88
  specs:
89
- viu (0.0.6)
89
+ viu (0.0.7)
90
90
 
91
91
  GEM
92
92
  remote: https://rubygems.org/
@@ -10,7 +10,8 @@ module Viu
10
10
 
11
11
  module ActionControllerHelpers
12
12
  def render_view(view, options = EMPTY_HASH)
13
- render(html: view.render_in(view_context, options))
13
+ format = options.fetch(:format) { :html }
14
+ render(format => view.render_in(view_context, options))
14
15
  end
15
16
  end
16
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Viu
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ralf Schmitz Bongiolo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-23 00:00:00.000000000 Z
11
+ date: 2020-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler