presents 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +7 -0
  2. data/README.txt +14 -3
  3. data/lib/presents.rb +1 -1
  4. metadata +1 -1
data/History.txt CHANGED
@@ -1,3 +1,10 @@
1
+ === 1.0.1 / 2012-09-25
2
+
3
+ * 1 bug fix:
4
+
5
+ * update README.txt for more complete usage
6
+
7
+
1
8
  === 1.0.0 / 2012-09-24
2
9
 
3
10
  * 1 major enhancement
data/README.txt CHANGED
@@ -14,10 +14,21 @@ Minimalist presenter pattern for Rails
14
14
  * Bulk up documentation.
15
15
 
16
16
  == SYNOPSIS:
17
-
17
+ class Foo < ActiveRecord::Base
18
+ # has 'name' attribute
19
+ end
20
+
21
+ class FooPresenter < Presents::BasePresenter
22
+ presents :foo
23
+
24
+ def name
25
+ foo.name.upcase
26
+ end
27
+ end
28
+
18
29
  - present @foo do |_foo|
19
- = @foo.do_normal
20
- = _foo.do_special
30
+ = @foo.name # => 'My Name'
31
+ = _foo.name # => 'MY NAME'
21
32
 
22
33
  == REQUIREMENTS:
23
34
 
data/lib/presents.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Presents
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
4
4
 
5
5
  Dir.glob(File.dirname(__FILE__) + '/presents/*.rb') { |file| require file }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: presents
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: