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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 557423830a92670748587d61ad8b3043887544ad
4
- data.tar.gz: 56837121f14983f07e3299e869cd9d5ff2e9103a
3
+ metadata.gz: 90f3e6ce19b3f78cee49254bc48d8ab05e51bd60
4
+ data.tar.gz: c487c5be2ec3f011e38a195317c17789a49b7713
5
5
  SHA512:
6
- metadata.gz: fa8ce1aa1f80c41da366164a6b9f0af293c9a893d80a135112f8c3346a4c0726285ea77af454f6d2e14670c54edc7a38af18bdb5cd22404e65e706800ee5b97d
7
- data.tar.gz: 1123d83e8552be4a0e454cd1e4de85082451510ef20a367d6886db38aae18db49da49d347f6ecedb429fec9fddd3fcb9f4d095ee068a17f039e981c5ede310ba
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
@@ -1,3 +1,5 @@
1
+ require 'request_store'
2
+
1
3
  require "easy_presenter/version"
2
4
  require "easy_presenter/base"
3
5
  require "easy_presenter/railtie"
@@ -1,3 +1,3 @@
1
1
  module EasyPresenter
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,6 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
3
 
4
4
  require 'active_record'
5
5
 
6
- require 'request_store'
7
6
  require 'easy_presenter'
8
7
 
9
8
  require 'fake_app/fake_app'
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.0
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-23 00:00:00.000000000 Z
11
+ date: 2013-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails