rafters 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/rafters/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: dfb96c1fb775e7313b0911d32679586bcd2ced2f
|
4
|
+
data.tar.gz: e48e5801a7f11e7099dd3009df82f9b925d5f35c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93abdd3b6e4a5714a3c826f6d6776e54e0207599a304d6885194a8e6ac683da7ec1e83e4711e9b8c0a0b4b92f8258682596054256f2de82185b54ab3d5aa1c74
|
7
|
+
data.tar.gz: 4419ac55b0c987f5c24d2b16928c7b49435d834bcc6801594814f00d4f1398400912c356a5a9fa62975ee765ad91dad741d77850f8f795b9720c284fadccc1cd
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/andyhite/rafters.png?branch=master)](https://travis-ci.org/andyhite/rafters)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/rafters.png)](http://badge.fury.io/rb/rafters)
|
5
|
+
[![Code Climate](https://codeclimate.com/github/andyhite/rafters.png)](https://codeclimate.com/github/andyhite/rafters)
|
5
6
|
|
6
7
|
Rafters lets you think about each page of your application as a collection of small pieces instead of monolithic, difficult to maintain
|
7
8
|
views.
|
@@ -72,7 +73,7 @@ You can render components anywhere - in your view, in your controller, in anothe
|
|
72
73
|
|
73
74
|
### Adding an attribute to a component
|
74
75
|
|
75
|
-
Each component exposes `attributes` to it's view as locals. The `attributes` are simply a collection of methods that you explicitly declare as `attributes` in your component, using the Rafters::Component.attribute` or `Rafters::Component.attributes` methods.
|
76
|
+
Each component exposes `attributes` to it's view as locals. The `attributes` are simply a collection of methods that you explicitly declare as `attributes` in your component, using the `Rafters::Component.attribute` or `Rafters::Component.attributes` methods.
|
76
77
|
|
77
78
|
For instance, let's say we have a HeadingComponent that exposes a title attribute:
|
78
79
|
|
data/lib/rafters/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rafters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Hite
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|