formie 1.0.2 → 1.0.3

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: 11eb2cab3c397141a12277050a9c6e507085371a6683e8aad32d5e9ead345606
4
- data.tar.gz: 346d67c443b127c37da3d99c7e722e5be39e87f153fefa6257cca6fc2705df42
3
+ metadata.gz: bf05276e31376fb6d74565fe62bb9cfed4cfa2a600b4ef7cc84e4494c92fe1b0
4
+ data.tar.gz: f81c854c7a58241e819605905661e5e43a38b96f05845ca03d8676cb565c9f4e
5
5
  SHA512:
6
- metadata.gz: be8b57e6ab2141b5368b27a5adfb62755ff8fed7940ff6f6bbd34b500b34d34122933ecb0984b15048633bac5c3ca9b911b6dc972ec1bdba03a1531c5806bbc9
7
- data.tar.gz: 0d122795334bb074b70417c270e2475379aed3794bed5aaec4a45b419636ff790e09ee346e497931586b94780ea58cb3952725f3fd02ad9378512837684edbfb
6
+ metadata.gz: 8451254fcb9bff1ecbe3ddc467205aeda8d3f2f27271cd89b4a2e23f3ee864efcd62c1378c3b5e819a8e371761e0dc972935d17afa7b95dff7006492e8fd4cca
7
+ data.tar.gz: 8fa8f33c7a3324ed2c8ff7bfa20a7a432d8723a9a22a3eefa68c43508e70c4fca2237cc5d1d7b67c73bb8f6c294638959615e1305674f7186293548c27b3c880
data/README.md CHANGED
@@ -2,7 +2,7 @@ Formie
2
2
  ======
3
3
 
4
4
  [![Gem Version](https://badge.fury.io/rb/formie.svg)](https://badge.fury.io/rb/formie)
5
- [![Build Status](https://travis-ci.org/matique/formie.png?branch=master)](https://travis-ci.org/matique/formie)
5
+ [![Build Status](https://travis-ci.org/matique/formie.svg?branch=master)](https://travis-ci.org/matique/formie)
6
6
 
7
7
  Tired of programming each HTML tag?
8
8
  Are you in search of DRYness for Rails views?
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
24
24
  s.require_paths = ['lib']
25
25
 
26
- s.add_development_dependency 'bundler', '~> 1'
26
+ s.add_development_dependency 'bundler'
27
27
  s.add_development_dependency 'rake', '~> 13'
28
28
  s.add_development_dependency 'appraisal', '~> 2'
29
29
  s.add_development_dependency 'combustion', '~> 1.1'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'formie/engine.rb'
3
+ require 'formie/engine'
4
4
 
5
5
  module Formie
6
6
  Rails6 = Rails.version.to_f >= 6.0
@@ -35,7 +35,8 @@ module Formie
35
35
  options[:locals].update params
36
36
  options[:locals].update formiename: formiename,
37
37
  block: block, form: self, args: args
38
- if defined?(controller) == 'method'
38
+ if defined?(controller) == 'method' &&
39
+ controller.respond_to?(:render_to_body) # credits to MARS
39
40
  controller.render_to_body(options)
40
41
  else
41
42
  @template.render(options)
@@ -1,7 +1,8 @@
1
1
  # rubocop: disable all
2
2
 
3
3
  module Formie
4
- VERSION = '1.0.2' # 2020-07-14
4
+ VERSION = '1.0.3' # 2020-07-23
5
+ # VERSION = '1.0.2' # 2020-07-14
5
6
  # VERSION = '1.0.1' # 2020-04-27
6
7
  # VERSION = '1.0.0' # 2019-09-26
7
8
  # VERSION = '0.9.16' # 2019-03-05
@@ -7,7 +7,7 @@ end
7
7
 
8
8
  require "combustion"
9
9
  Combustion.path = "test/internal"
10
- Combustion.initialize! :all
10
+ Combustion.initialize! :active_record
11
11
 
12
12
  require 'rails/test_help'
13
13
  require 'minitest/autorun'
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dittmar Krall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-14 00:00:00.000000000 Z
11
+ date: 2020-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  - !ruby/object:Gem::Version
178
178
  version: '0'
179
179
  requirements: []
180
- rubygems_version: 3.0.8
180
+ rubygems_version: 3.1.4
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: Formie is like a Rails helper, but uses the notation of a partial.