Permalink
Browse files

Merge pull request #8 from beatrichartz/master

Fixed Bundle Exec Rspec
  • Loading branch information...
floere committed Oct 29, 2012
2 parents 5485ae9 + 10693f7 commit 87bc80abcbb977086ba113835f68b55bfc09126f
Showing with 19 additions and 0 deletions.
  1. +12 −0 Gemfile.lock
  2. +6 −0 README.textile
  3. +1 −0 view_models.gemspec
View
@@ -2,13 +2,17 @@ PATH
remote: .
specs:
view_models (3.0.0)
+ actionmailer (>= 3.0.0)
actionpack (>= 3.0.0)
activerecord (>= 3.0.0)
GEM
remote: http://rubygems.org/
specs:
RedCloth (4.2.9)
+ actionmailer (3.2.8)
+ actionpack (= 3.2.8)
+ mail (~> 2.4.4)
actionpack (3.2.8)
activemodel (= 3.2.8)
activesupport (= 3.2.8)
@@ -76,9 +80,14 @@ GEM
json (1.7.5)
libwebsocket (0.1.5)
addressable
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
mime-types (1.19)
multi_json (1.3.6)
nokogiri (1.5.5)
+ polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
@@ -131,6 +140,9 @@ GEM
temple (0.4.1)
thor (0.16.0)
tilt (1.3.3)
+ treetop (1.4.11)
+ polyglot
+ polyglot (>= 0.3.1)
tzinfo (0.3.33)
xpath (0.1.4)
nokogiri (~> 1.3)
View
@@ -17,6 +17,12 @@ Create a directory "view_models" in your app folder, and you're good to go.
<pre><code>mkdir ./app/view_models
</code></pre>
+h2. TODOs
+
+What you can look forward to in future versions of this gem:
+- Bootstrapping for easier installation
+- JSON generation out of view models
+
h2. Basic Usage
Let's say you have a model User (with a first and a last name and an address in the database):
View
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
s.add_dependency 'activerecord', '>= 3.0.0'
s.add_dependency 'actionpack', '>= 3.0.0'
+ s.add_dependency 'actionmailer', '>= 3.0.0'
s.add_development_dependency 'rake', '>= 0.8.7'
s.add_development_dependency 'aruba'

0 comments on commit 87bc80a

Please sign in to comment.