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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 610fb0c8b248f5226502a802d27a057bfe59379f
4
- data.tar.gz: 32663c31a285ada02b9c6d64e4b55c4bc15b0966
3
+ metadata.gz: 4bc33ea363a4b36cdcac55451d53d0d7820a8420
4
+ data.tar.gz: 0be312d16fc8f34fa4c63b34f0be96d2b57db88e
5
5
  SHA512:
6
- metadata.gz: 79d976d2ac66900176e80336d42825005730b710d8f8fef880ff8f854e6bcee67cad84a2bedf27e51e288d6b084b3a998ca98bf42e3bafac60d11f0ae827b407
7
- data.tar.gz: 572bad8d05dc4defb113907fe443f41fbb3cca8577cec78f8f015ecfd55b7c7e265b4cbe593e169353ab29c7ae1fbe82ca446e184d5e25c6ed67a14cce860033
6
+ metadata.gz: d86754c2778f9ae90066090229b0467d74a1e3467fc224a74c9769a8c8589703c3f3736f85d288000f0717b3841f4959d940395ef920ff20c1c6662e3f773cc3
7
+ data.tar.gz: a3d654154152e906a9a61f2b1a8ee8682c3a45eafeb8d16e05dc5e9a4737a8c26a3a8ded4ca890522678276efa851acff1b7d994b4a1de6251016967bf2ac520
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Upcoming release
4
4
 
5
+ ## v2.1.0 (2018-05-31)
6
+
7
+ **Enhancements:**
8
+
9
+ - Block given to component now pass return values
10
+
5
11
  ## v2.0.0 (2018-04-22)
6
12
 
7
13
  **Enhancements:**
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
- ## Table of contents
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(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Komponent
4
- VERSION = "2.0.0"
4
+ VERSION = "2.1.0"
5
5
  end
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.0.0
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-04-22 00:00:00.000000000 Z
11
+ date: 2018-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview