icebreaker 0.0.2 → 0.0.3
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/lib/icebreaker/version.rb +1 -1
- data/templates/bootstrap.rb +6 -3
- data/templates/gemfile.rb +4 -0
- data/templates/jquery.rb +1 -0
- data/templates/mongoid.rb +20 -0
- metadata +5 -4
data/lib/icebreaker/version.rb
CHANGED
data/templates/bootstrap.rb
CHANGED
@@ -44,16 +44,19 @@ apply File.expand_path("../gemfile.rb", __FILE__)
|
|
44
44
|
# Apply Mongoid
|
45
45
|
apply File.expand_path("../mongoid.rb", __FILE__)
|
46
46
|
|
47
|
-
#
|
47
|
+
# Apply JQuery
|
48
|
+
apply File.expand_path("../jquery.rb", __FILE__)
|
49
|
+
|
50
|
+
# Apply Test Suite
|
48
51
|
apply File.expand_path("../test_suite.rb", __FILE__)
|
49
52
|
|
50
|
-
#
|
53
|
+
# Remove RSpec stuff we are not gonna use right away
|
51
54
|
apply File.expand_path("../rspec_clean.rb", __FILE__)
|
52
55
|
|
53
56
|
# Apply rails clean up
|
54
57
|
apply File.expand_path("../rails_clean.rb", __FILE__)
|
55
58
|
|
56
|
-
#
|
59
|
+
# Apply RVM settings
|
57
60
|
apply File.expand_path("../rvm.rb", __FILE__)
|
58
61
|
|
59
62
|
git :add => "."
|
data/templates/gemfile.rb
CHANGED
@@ -10,8 +10,12 @@ gem 'bson', '1.2.1'
|
|
10
10
|
gem 'bson_ext', '1.2.1'
|
11
11
|
|
12
12
|
# HTML, CSS and JavaScript
|
13
|
+
gem "haml-rails"
|
13
14
|
gem "will_paginate", "3.0.pre2"
|
14
15
|
|
16
|
+
# JavaScript
|
17
|
+
gem "jquery-rails"
|
18
|
+
|
15
19
|
# Development dependencies
|
16
20
|
# gem 'html5-boilerplate' # TODO: Get html5-boilerplate working
|
17
21
|
gem 'rspec-rails', '2.5.0', :group => [:development]
|
data/templates/jquery.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
run "rails generate jquery:install --ui"
|
data/templates/mongoid.rb
CHANGED
@@ -3,3 +3,23 @@
|
|
3
3
|
#----------------------------------------------------------------------------
|
4
4
|
say "creating 'config/mongoid.yml' Mongoid configuration file..."
|
5
5
|
run 'rails generate mongoid:config'
|
6
|
+
|
7
|
+
say "modifying 'config/application.rb' file for Mongoid..."
|
8
|
+
append_file 'config/application.rb' do #, :after => /\# require \"rails\/test_unit\/railtie\"/ do
|
9
|
+
<<-RUBY
|
10
|
+
|
11
|
+
# If you are deploying to Heroku and MongoHQ,
|
12
|
+
# you supply connection information here.
|
13
|
+
require 'uri'
|
14
|
+
if ENV['MONGOHQ_URL']
|
15
|
+
mongo_uri = URI.parse(ENV['MONGOHQ_URL'])
|
16
|
+
ENV['MONGOID_HOST'] = mongo_uri.host
|
17
|
+
ENV['MONGOID_PORT'] = mongo_uri.port.to_s
|
18
|
+
ENV['MONGOID_USERNAME'] = mongo_uri.user
|
19
|
+
ENV['MONGOID_PASSWORD'] = mongo_uri.password
|
20
|
+
ENV['MONGOID_DATABASE'] = mongo_uri.path.gsub('/', '')
|
21
|
+
end
|
22
|
+
|
23
|
+
require 'mongoid/railtie'
|
24
|
+
RUBY
|
25
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Mark Dillon
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-02-
|
17
|
+
date: 2011-02-12 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- templates/bootstrap.rb
|
82
82
|
- templates/gemfile.rb
|
83
83
|
- templates/html5_boilerplate.rb
|
84
|
+
- templates/jquery.rb
|
84
85
|
- templates/mongoid.rb
|
85
86
|
- templates/rails_clean.rb
|
86
87
|
- templates/rspec_clean.rb
|
@@ -119,6 +120,6 @@ rubyforge_project: icebreaker
|
|
119
120
|
rubygems_version: 1.3.7
|
120
121
|
signing_key:
|
121
122
|
specification_version: 3
|
122
|
-
summary: icebreaker-0.0.
|
123
|
+
summary: icebreaker-0.0.3
|
123
124
|
test_files: []
|
124
125
|
|