easy_presenter 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -9
- data/README.md +5 -1
- data/lib/easy_presenter.rb +2 -0
- data/lib/easy_presenter/version.rb +1 -1
- data/spec/spec_helper.rb +0 -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: 90f3e6ce19b3f78cee49254bc48d8ab05e51bd60
|
4
|
+
data.tar.gz: c487c5be2ec3f011e38a195317c17789a49b7713
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a82f41f7fa0d99010b8b73c314a786a55158d6ec33b23f5d482f23c1d8007613721d37b9d15243e41f127172f371017a0ed035858d6de98f11b408983652a473
|
7
|
+
data.tar.gz: d88ea9abd01a7a0b6afd885f659aa19888ed03c5212cdccec4ea94d2ed8aa55431ad5a2d2a0c87a6f74f85591a0994c667a41fb2bfa3397681c6b1d44ea5b5ee
|
data/.travis.yml
CHANGED
@@ -8,14 +8,5 @@ gemfile:
|
|
8
8
|
- gemfiles/Gemfile-rails.3.2.x
|
9
9
|
- gemfiles/Gemfile-rails.4.0.x
|
10
10
|
matrix:
|
11
|
-
exclude:
|
12
|
-
- rvm: 2.0.0
|
13
|
-
gemfile: gemfiles/Gemfile-rails.3.0.x
|
14
|
-
- rvm: 2.0.0
|
15
|
-
gemfile: gemfiles/Gemfile-rails.3.1.x
|
16
|
-
- rvm: ruby-head
|
17
|
-
gemfile: gemfiles/Gemfile-rails.3.0.x
|
18
|
-
- rvm: ruby-head
|
19
|
-
gemfile: gemfiles/Gemfile-rails.3.1.x
|
20
11
|
allow_failures:
|
21
12
|
- rvm: ruby-head
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# EasyPresenter [![Build Status](https://travis-ci.org/s12chung/easy_presenter.png?branch=master)](https://travis-ci.org/s12chung/easy_presenter?branch=master) [![Code Climate](https://codeclimate.com/github/s12chung/easy_presenter.png)](https://codeclimate.com/github/s12chung/easy_presenter)
|
1
|
+
# EasyPresenter [![Gem Version](https://badge.fury.io/rb/easy_presenter.png)](http://badge.fury.io/rb/easy_presenter) [![Build Status](https://travis-ci.org/s12chung/easy_presenter.png?branch=master)](https://travis-ci.org/s12chung/easy_presenter?branch=master) [![Code Climate](https://codeclimate.com/github/s12chung/easy_presenter.png)](https://codeclimate.com/github/s12chung/easy_presenter)
|
2
2
|
|
3
3
|
Access view methods from model instances in `Ruby on Rails`.
|
4
4
|
|
@@ -54,6 +54,10 @@ end
|
|
54
54
|
`ActiveRecord`, `Mongoid`, you may add support to an ORM at the bottom of `lib/easy_presenter.rb` and send in a pull request if you wish.
|
55
55
|
|
56
56
|
### Advanced
|
57
|
+
#### Instance Variables
|
58
|
+
You can get controller instance variables using `controller_get(:@instance_variable)`, which calls `Object#instance_variable_get(p1)` on the controller.
|
59
|
+
|
60
|
+
#### Non-Supported ORM Models
|
57
61
|
You may `include` the following modules to add EasyPresenter to other classes.
|
58
62
|
|
59
63
|
* `EasyPresenter::Base` - add access to view methods
|
data/lib/easy_presenter.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_presenter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- s12chung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|