komponent 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +3 -2
- data/lib/komponent/komponent_helper.rb +1 -1
- data/lib/komponent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bc33ea363a4b36cdcac55451d53d0d7820a8420
|
4
|
+
data.tar.gz: 0be312d16fc8f34fa4c63b34f0be96d2b57db88e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d86754c2778f9ae90066090229b0467d74a1e3467fc224a74c9769a8c8589703c3f3736f85d288000f0717b3841f4959d940395ef920ff20c1c6662e3f773cc3
|
7
|
+
data.tar.gz: a3d654154152e906a9a61f2b1a8ee8682c3a45eafeb8d16e05dc5e9a4737a8c26a3a8ded4ca890522678276efa851acff1b7d994b4a1de6251016967bf2ac520
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# <img alt="Komponent" src="https://raw.github.com/ouvrages/komponent/master/logo.svg?sanitize=true" width="200" height="40" />
|
2
2
|
[![Build Status](https://travis-ci.org/komposable/komponent.svg?branch=master)](https://travis-ci.org/komposable/komponent)
|
3
3
|
![GitHub release](https://img.shields.io/github/release/komposable/komponent.svg)
|
4
|
-
[![Dependency Status](https://beta.gemnasium.com/badges/github.com/komposable/komponent.svg)](https://beta.gemnasium.com/projects/github.com/komposable/komponent)
|
5
4
|
[![Maintainability](https://api.codeclimate.com/v1/badges/36d6dcf883df8f63893a/maintainability)](https://codeclimate.com/github/komposable/komponent/maintainability)
|
6
5
|
![Coveralls github](https://img.shields.io/coveralls/github/komposable/komponent.svg)
|
7
6
|
|
@@ -18,7 +17,8 @@ This README examples are written in Slim, but Komponent is compatible with:
|
|
18
17
|
|
19
18
|
This gem has been inspired by our Rails development practices at [Ouvrages](https://ouvrages-web.fr) and [Etamin Studio](https://etaminstudio.com), and the (excellent) [_Modern Front-end in Rails_](https://evilmartians.com/chronicles/evil-front-part-1) article from Evil Martians.
|
20
19
|
|
21
|
-
|
20
|
+
<details>
|
21
|
+
<summary>Table of Contents</summary>
|
22
22
|
|
23
23
|
- [Compatibility](#compatibility)
|
24
24
|
- [Getting started](#getting-started)
|
@@ -42,6 +42,7 @@ This gem has been inspired by our Rails development practices at [Ouvrages](http
|
|
42
42
|
- [Additional paths](#additional-paths)
|
43
43
|
- [Contributing](#contributing)
|
44
44
|
- [License](#license)
|
45
|
+
</details>
|
45
46
|
|
46
47
|
## Compatibility
|
47
48
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module KomponentHelper
|
4
4
|
def component(component_name, locals = {}, options = {}, &block)
|
5
|
-
captured_block = proc { capture(&block) } if block_given?
|
5
|
+
captured_block = proc { |args| capture(args, &block) } if block_given?
|
6
6
|
Komponent::ComponentRenderer.new(
|
7
7
|
controller,
|
8
8
|
).render(
|
data/lib/komponent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: komponent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ouvrages
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|