komponent 2.0.0.pre.1 → 2.0.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 +13 -2
- data/lib/generators/component/templates/view.html.erb.erb +1 -1
- data/lib/generators/component/templates/view.html.haml.erb +1 -1
- data/lib/generators/component/templates/view.html.slim.erb +1 -1
- data/lib/generators/komponent/install_generator.rb +2 -1
- data/lib/komponent/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 610fb0c8b248f5226502a802d27a057bfe59379f
|
4
|
+
data.tar.gz: 32663c31a285ada02b9c6d64e4b55c4bc15b0966
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79d976d2ac66900176e80336d42825005730b710d8f8fef880ff8f854e6bcee67cad84a2bedf27e51e288d6b084b3a998ca98bf42e3bafac60d11f0ae827b407
|
7
|
+
data.tar.gz: 572bad8d05dc4defb113907fe443f41fbb3cca8577cec78f8f015ecfd55b7c7e265b4cbe593e169353ab29c7ae1fbe82ca446e184d5e25c6ed67a14cce860033
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
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
4
|
[![Dependency Status](https://beta.gemnasium.com/badges/github.com/komposable/komponent.svg)](https://beta.gemnasium.com/projects/github.com/komposable/komponent)
|
5
|
-
[![
|
5
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/36d6dcf883df8f63893a/maintainability)](https://codeclimate.com/github/komposable/komponent/maintainability)
|
6
|
+
![Coveralls github](https://img.shields.io/coveralls/github/komposable/komponent.svg)
|
6
7
|
|
7
8
|
**Komponent** implements an opinionated way of organizing front-end code in Ruby on Rails, based on _components_.
|
8
9
|
|
@@ -86,6 +87,16 @@ Then, render it in your views with the `component` helper (or its alias `c`).
|
|
86
87
|
= c "button"
|
87
88
|
```
|
88
89
|
|
90
|
+
Or, directly from your controllers:
|
91
|
+
|
92
|
+
```ruby
|
93
|
+
# app/controllers/pages_controller.rb
|
94
|
+
|
95
|
+
def home
|
96
|
+
render html: helpers.component("home")
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
89
100
|
Make sure to include javascript pack tag and stylesheet pack tag in your application layout file, for instance:
|
90
101
|
|
91
102
|
```slim
|
@@ -38,8 +38,9 @@ module Komponent
|
|
38
38
|
|
39
39
|
def create_stimulus_file
|
40
40
|
return if File.exist?(stimulus_application_path)
|
41
|
+
return unless stimulus?
|
41
42
|
|
42
|
-
create_file(stimulus_application_path,
|
43
|
+
create_file(stimulus_application_path, stimulus_application_template)
|
43
44
|
end
|
44
45
|
|
45
46
|
def append_to_application_configuration
|
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.0.0
|
4
|
+
version: 2.0.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-
|
11
|
+
date: 2018-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -149,9 +149,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: 2.2.0
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- - "
|
152
|
+
- - ">="
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
154
|
+
version: '0'
|
155
155
|
requirements: []
|
156
156
|
rubyforge_project:
|
157
157
|
rubygems_version: 2.6.13
|