-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrails-3-0-7-example-gemfile.html
148 lines (146 loc) · 8.68 KB
/
rails-3-0-7-example-gemfile.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Example Gemfile for Rails 3.0.7</title>
<link rel="stylesheet" href="/css/screen.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="/css/gollum.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="/css/syntax.css" type="text/css" charset="utf-8" />
<script src="http://code.jquery.com/jquery-1.6.min.js" type="text/javascript"></script>
<script src="/javascript/jquery.text_selection-1.0.0.min.js" type="text/javascript"></script>
<script src="/javascript/jquery.previewable_comment_form.js" type="text/javascript"></script>
<script src="/javascript/jquery.tabs.js" type="text/javascript"></script>
<script src="/javascript/gollum.js" type="text/javascript"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-5109366-14']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="main">
<div class="site">
<div id="guides">
<div class="guide">
<div class="main">
<div class="actions">
<a href="http://railsapps.github.com/"><img src="http://railsapps.github.com/images/rails-36x36.jpg" title="Home" alt="Home"></a>
<a href="http://railsapps.github.com/">Rails Apps</a>
<a href="https://github.com/RailsApps">GitHub Repository</a>
</div><!-- class="actions" -->
<h1>Example Gemfile for Rails 3.0.7</h1>
<div class="content wikistyle gollum textile">
<h1>Example Gemfile for Rails 3.0.7</h1>
<p>Here are Gemfiles for the example apps in the <a href="http://railsapps.github.com/">Rails Apps</a> repository.</p>
<h2>Background</h2>
<p>For background, see <a href="http://railsapps.github.com/managing-rails-versions-gems.html">Managing Rails Versions and Gems</a>.</p>
<p>The example apps have been tested with this configuration:</p>
<ul><li>Ruby 1.9.2</li>
<li>RubyGems 1.7.2</li>
<li>Rails 3.0.7</li>
<li>Rake 0.8.7</li>
<li>Bundler 1.0.12</li>
</ul><h2>Required Gems</h2>
<p>The example applications use the following gems.</p>
<ul><li><a href="http://rubygems.org/gems/rails">rails</a></li>
<li><a href="http://rubygems.org/gems/rspec-rails">rspec-rails</a></li>
<li><a href="http://rubygems.org/gems/database_cleaner">database_cleaner</a></li>
<li><a href="http://rubygems.org/gems/factory_girl_rails">factory_girl_rails</a></li>
<li><a href="http://rubygems.org/gems/cucumber-rails">cucumber-rails</a></li>
<li><a href="http://rubygems.org/gems/capybara">capybara</a></li>
</ul><p>Two of the example apps use the <a href="http://mongoid.org/">Mongoid</a> gem for access to a MongoDB datastore.</p>
<ul><li><a href="http://rubygems.org/gems/mongoid">mongoid</a></li>
</ul><p>Two of the example apps use <a href="http://github.com/plataformatec/devise">Devise</a> for authentication.</p>
<ul><li><a href="http://rubygems.org/gems/devise">devise</a></li>
</ul><p>One of the example apps uses <a href="https://github.com/intridea/omniauth">OmniAuth</a> for authentication.</p>
<ul><li><a href="http://rubygems.org/gems/omniauth">omniauth</a></li>
</ul><p>I recommend using the versions of the gems specified below.</p>
<h2>Example Gemfile for Rails 3.0.7</h2>
<p>For the example apps built with <strong>Rails 3.0.7</strong>, we recommend that you use the following gems and specify versions absolutely. Your <strong>Gemfile</strong> will look like this:</p>
<pre>
source 'http://rubygems.org'
gem 'rails', '3.0.7'
gem 'rake', '0.8.7'
gem 'rspec-rails', '2.5.0', :group => [:development, :test]
gem 'factory_girl_rails', '1.1.beta1', :group => :test
gem 'cucumber-rails', '0.4.1', :group => :test
gem 'capybara', '0.4.1.2', :group => :test
gem 'database_cleaner', '0.6.7', :group => :test
</pre>
<blockquote>
<p>Note that rake is constrained to version 0.8.7.</p>
</blockquote>
<p>As of release 0.9.0 (20 May 2011), the rake gem broke Rails 3.0.7 and required Rails 3.1 (which was still in beta at the time). Use rake version 0.8.7 to avoid problems or upgrade to Rails 3.0.8 and use rake 0.9.0 or newer.</p>
<p>You may use ActiveRecord with the SQLite database:</p>
<pre>
gem 'sqlite3'
</pre>
<p>Alternatively, you may add Mongoid and the bson_ext gem for access to a MongoDB datastore:</p>
<pre>
gem 'mongoid', '2.0.1'
gem 'bson_ext', '1.3.1'
</pre>
<p>You may add Devise for authentication:</p>
<pre>
gem 'devise', '1.3.4'
</pre>
<p>You may add OmniAuth for authentication:</p>
<pre>
gem 'omniauth', '0.2.6'
</pre>
</div><!-- class="content" -->
<div class="comments">
<div class="content wikistyle gollum">
<h2>Comments</h2>
</div>
<p>Is this helpful? Please "like" below. Question or suggestion? Please add a comment below. Got a correction or addition? You can edit this page <a href="https://github.com/railsapps/railsapps.github.com/wiki/_pages">on the wiki</a> or create a <a href="https://github.com/RailsApps/railsapps.github.com/issues">GitHub issue</a> to alert me.</p>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'railsapps'; // required: replace example with your forum shortname
// The following are highly recommended additional parameters.
// var disqus_identifier = 'rails-3-0-7-example-gemfile.html';
// var disqus_url = 'http://railsapps.github.com/rails-3-0-7-example-gemfile.html';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div><!-- class="comments" -->
<br />
<br />
<div class="credits">
<div class="content wikistyle gollum">
<h2>Credits</h2>
</div>
<p>Daniel Kehoe (<a href="http://danielkehoe.com/">http://danielkehoe.com/</a>) initiated the project and wrote some examples and tutorials.</p>
<p>Your contributions are welcome!</p>
</div><!-- class="credits" -->
<div class="admin">
<small>Corrections? Additions? You can edit this page <a href="https://github.com/railsapps/railsapps.github.com/wiki/_pages">on the wiki</a>.</small>
<div style="float: right;">
<small>Last edited by <b>Daniel Kehoe</b>, 2011-09-01 12:24:10</small>
</div>
</div><!-- class="admin" -->
</div><!-- class="main" -->
</div><!-- class="guide" -->
</div><!-- id="guides" -->
</div><!-- class="site" -->
</div><!-- id="main" -->
<!-- MixPanel analytics -->
<script type='text/javascript'> var mp_protocol = (('https:' == document.location.protocol) ? 'https://' : 'http://'); document.write(unescape('%3Cscript src="' + mp_protocol + 'api.mixpanel.com/site_media/js/api/mixpanel.js" type="text/javascript"%3E%3C/script%3E')); </script> <script type='text/javascript'> try { var mpmetrics = new MixpanelLib('b1cf97418f8c5b129847e8a52edbae68'); } catch(err) { null_fn = function () {}; var mpmetrics = { track: null_fn, track_funnel: null_fn, register: null_fn, register_once: null_fn, register_funnel: null_fn }; } </script>
<!-- Clicky analytics -->
<script src="//static.getclicky.com/js" type="text/javascript"></script>
<script type="text/javascript">try{ clicky.init(66423523); }catch(e){}</script>
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/66423523ns.gif" /></p></noscript>
</body>
</html>