nice_partials 0.9.2 → 0.9.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 +4 -4
- data/CHANGELOG.md +20 -0
- data/lib/nice_partials/monkey_patch.rb +1 -1
- data/lib/nice_partials/partial.rb +1 -1
- data/lib/nice_partials/version.rb +1 -1
- data/nice_partials.gemspec +32 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14580892ce441161fda38b893e61d4b4733b1fd1c0130f22cf73dc7170f9ddd2
|
4
|
+
data.tar.gz: '0696801e28b1ab5f3574cca9d71bcb03a702fa76d5076a25881ef0dfaa883638'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 302fdc205c1c433b670bcdd22d45a0a66bccdcdc15fae841ef88ae0209079a77cd2bddff199060a17be941164a7a8e852c16d6b508674483e123eebdb8f5c892
|
7
|
+
data.tar.gz: 8b9cff626b4a6c713d274609427c6ed28dbc20a31b9825aa52b21e8670c59f37e5c1f5552460a357ff06b47aca3af7a0fd78c937882bf6779c8f0281ac2b6b0c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
## CHANGELOG
|
2
2
|
|
3
|
+
### 0.9.3
|
4
|
+
|
5
|
+
* Fixed: section predicates not respecting `local_assigns` content
|
6
|
+
|
7
|
+
Previously, when doing something like this:
|
8
|
+
|
9
|
+
```erb
|
10
|
+
<%= render "card", title: "Hello there" %>
|
11
|
+
```
|
12
|
+
|
13
|
+
If the inner card partial had this,
|
14
|
+
|
15
|
+
```erb
|
16
|
+
<% if partial.title? %>
|
17
|
+
<%= partial.title %>
|
18
|
+
<% end %>
|
19
|
+
```
|
20
|
+
|
21
|
+
The `title?` predicate would fail, because it didn't look up content from the passed `local_assigns`. Now it does.
|
22
|
+
|
3
23
|
### 0.9.2
|
4
24
|
|
5
25
|
* Changed: view methods don't clobber section names
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
require File.dirname(__FILE__) + "/lib/nice_partials/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |gem|
|
6
|
+
gem.name = "nice_partials"
|
7
|
+
gem.version = NicePartials::VERSION
|
8
|
+
gem.summary = "A little bit of magic to make partials perfect for components."
|
9
|
+
gem.description = "A little bit of magic to make partials perfect for components."
|
10
|
+
gem.authors = ["Andrew Culver", "Dom Christie"]
|
11
|
+
gem.email = ["andrew.culver@gmail.com", "christiedom@gmail.com"]
|
12
|
+
gem.homepage = "https://github.com/bullet-train-co/nice_partials"
|
13
|
+
gem.license = "MIT"
|
14
|
+
|
15
|
+
# Specify which files should be added to the gem when it is released.
|
16
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
17
|
+
gem.files = Dir.chdir(__dir__) do
|
18
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
19
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
20
|
+
end
|
21
|
+
end
|
22
|
+
gem.bindir = "exe"
|
23
|
+
gem.executables = gem.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
24
|
+
gem.require_paths = ["lib"]
|
25
|
+
|
26
|
+
gem.required_ruby_version = ">= 2.0"
|
27
|
+
|
28
|
+
gem.add_dependency "actionview", '>= 4.2.6'
|
29
|
+
|
30
|
+
gem.add_development_dependency "rails"
|
31
|
+
gem.add_development_dependency "standard"
|
32
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nice_partials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionview
|
@@ -75,6 +75,7 @@ files:
|
|
75
75
|
- lib/nice_partials/partial/section.rb
|
76
76
|
- lib/nice_partials/partial/stack.rb
|
77
77
|
- lib/nice_partials/version.rb
|
78
|
+
- nice_partials.gemspec
|
78
79
|
homepage: https://github.com/bullet-train-co/nice_partials
|
79
80
|
licenses:
|
80
81
|
- MIT
|
@@ -94,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
95
|
- !ruby/object:Gem::Version
|
95
96
|
version: '0'
|
96
97
|
requirements: []
|
97
|
-
rubygems_version: 3.
|
98
|
+
rubygems_version: 3.4.7
|
98
99
|
signing_key:
|
99
100
|
specification_version: 4
|
100
101
|
summary: A little bit of magic to make partials perfect for components.
|