bourgeois 0.0.1 → 0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -33,16 +33,14 @@ end
33
33
  Then, you can use the `present` helper in your views to wrap `ActiveModel` (and `ActiveRecord`) objects around a presenter:
34
34
 
35
35
  ```erb
36
- # app/view/users/show.erb
37
-
38
- <%= present(@user) do |user| %>
36
+ <% present User.first do |user| %>
39
37
  <p>This is <%= user.formatted_name %></p>
40
38
  <% end %>
41
39
  ```
42
40
 
43
- Methods that aren’t in the presenter (`first_name` and `last_name`) are delegated to the presented object.
41
+ Methods that aren’t in the presenter (`first_name` and `last_name`) are delegated to the presented object. You can also use the `view` method in the presenter to get the original view it was called in.
44
42
 
45
- ## Inpiration
43
+ ## Inspiration
46
44
 
47
45
  Bourgeois was inspired by some code [@rafBM](https://twitter.com/rafBM) wrote for [his OpenCode talk](https://github.com/rafBM/opencode12-rails) on May 28th, 2013.
48
46
 
data/bourgeois.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Bourgeois::VERSION
9
9
  spec.authors = ['Rémi Prévost']
10
10
  spec.email = ['rprevost@mirego.com']
11
- spec.description = ''
12
- spec.summary = ''
11
+ spec.description = 'Bourgeois is a Ruby library that makes using presenters a very simple thing.'
12
+ spec.summary = 'Bourgeois is a Ruby library that makes using presenters a very simple thing.'
13
13
  spec.homepage = 'https://github.com/mirego/bourgeois'
14
14
  spec.license = 'BSD 3-Clause'
15
15
 
@@ -1,3 +1,3 @@
1
1
  module Bourgeois
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bourgeois
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: '0.1'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -75,7 +75,8 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: 3.0.0
78
- description: ''
78
+ description: Bourgeois is a Ruby library that makes using presenters a very simple
79
+ thing.
79
80
  email:
80
81
  - rprevost@mirego.com
81
82
  executables: []
@@ -108,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
109
  version: '0'
109
110
  segments:
110
111
  - 0
111
- hash: 4543301259511540129
112
+ hash: -1720415151698695919
112
113
  required_rubygems_version: !ruby/object:Gem::Requirement
113
114
  none: false
114
115
  requirements:
@@ -117,11 +118,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
118
  version: '0'
118
119
  segments:
119
120
  - 0
120
- hash: 4543301259511540129
121
+ hash: -1720415151698695919
121
122
  requirements: []
122
123
  rubyforge_project:
123
124
  rubygems_version: 1.8.23
124
125
  signing_key:
125
126
  specification_version: 3
126
- summary: ''
127
+ summary: Bourgeois is a Ruby library that makes using presenters a very simple thing.
127
128
  test_files: []