Skip to content

Commit 0f8f279

Browse files
committed
update for Rails 4.1 final
1 parent ffdd299 commit 0f8f279

File tree

9 files changed

+65
-67
lines changed

9 files changed

+65
-67
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ db/*.sqlite3
2121
/log/*
2222
/tmp/*
2323

24-
# configuration file introduced in Rails 4.1
25-
/config/secrets.yml
26-
2724
# various artifacts
2825
**.war
2926
*.rbc

Gemfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
source 'https://rubygems.org'
22
ruby '2.1.1'
3-
gem 'rails', '4.1.0.rc1'
3+
gem 'rails', '4.1.0'
44
gem 'sqlite3'
5-
gem 'sass-rails', '~> 4.0.1'
5+
gem 'sass-rails', '~> 4.0.3'
66
gem 'uglifier', '>= 1.3.0'
77
gem 'coffee-rails', '~> 4.0.0'
88
gem 'jquery-rails'
99
gem 'turbolinks'
1010
gem 'jbuilder', '~> 2.0'
1111
gem 'sdoc', '~> 0.4.0', group: :doc
1212
gem 'spring', group: :development
13-
gem 'bootstrap-sass', '>= 3.0.0.0'
13+
gem 'bootstrap-sass'
1414
gem 'high_voltage'
1515
group :development do
1616
gem 'better_errors'

Gemfile.lock

Lines changed: 46 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actionmailer (4.1.0.rc1)
5-
actionpack (= 4.1.0.rc1)
6-
actionview (= 4.1.0.rc1)
4+
actionmailer (4.1.0)
5+
actionpack (= 4.1.0)
6+
actionview (= 4.1.0)
77
mail (~> 2.5.4)
8-
actionpack (4.1.0.rc1)
9-
actionview (= 4.1.0.rc1)
10-
activesupport (= 4.1.0.rc1)
8+
actionpack (4.1.0)
9+
actionview (= 4.1.0)
10+
activesupport (= 4.1.0)
1111
rack (~> 1.5.2)
1212
rack-test (~> 0.6.2)
13-
actionview (4.1.0.rc1)
14-
activesupport (= 4.1.0.rc1)
13+
actionview (4.1.0)
14+
activesupport (= 4.1.0)
1515
builder (~> 3.1)
1616
erubis (~> 2.7.0)
17-
activemodel (4.1.0.rc1)
18-
activesupport (= 4.1.0.rc1)
17+
activemodel (4.1.0)
18+
activesupport (= 4.1.0)
1919
builder (~> 3.1)
20-
activerecord (4.1.0.rc1)
21-
activemodel (= 4.1.0.rc1)
22-
activesupport (= 4.1.0.rc1)
20+
activerecord (4.1.0)
21+
activemodel (= 4.1.0)
22+
activesupport (= 4.1.0)
2323
arel (~> 5.0.0)
24-
activesupport (4.1.0.rc1)
24+
activesupport (4.1.0)
2525
i18n (~> 0.6, >= 0.6.9)
2626
json (~> 1.7, >= 1.7.7)
2727
minitest (~> 5.1)
2828
thread_safe (~> 0.1)
2929
tzinfo (~> 1.1)
3030
arel (5.0.0)
31-
atomic (1.1.15)
3231
better_errors (1.1.0)
3332
coderay (>= 1.0.0)
3433
erubis (>= 2.6.6)
@@ -51,9 +50,9 @@ GEM
5150
high_voltage (2.1.0)
5251
hike (1.2.3)
5352
i18n (0.6.9)
54-
jbuilder (2.0.3)
55-
activesupport (>= 3.0.0)
56-
multi_json (>= 1.2.0)
53+
jbuilder (2.0.6)
54+
activesupport (>= 3.0.0, < 5)
55+
multi_json (~> 1.2)
5756
jquery-rails (3.1.0)
5857
railties (>= 3.0, < 5.0)
5958
thor (>= 0.14, < 2.0)
@@ -62,38 +61,39 @@ GEM
6261
mime-types (~> 1.16)
6362
treetop (~> 1.4.8)
6463
mime-types (1.25.1)
65-
minitest (5.3.0)
66-
multi_json (1.8.4)
64+
minitest (5.3.2)
65+
multi_json (1.9.2)
6766
polyglot (0.3.4)
6867
quiet_assets (1.0.2)
6968
railties (>= 3.1, < 5.0)
7069
rack (1.5.2)
7170
rack-test (0.6.2)
7271
rack (>= 1.0)
73-
rails (4.1.0.rc1)
74-
actionmailer (= 4.1.0.rc1)
75-
actionpack (= 4.1.0.rc1)
76-
actionview (= 4.1.0.rc1)
77-
activemodel (= 4.1.0.rc1)
78-
activerecord (= 4.1.0.rc1)
79-
activesupport (= 4.1.0.rc1)
72+
rails (4.1.0)
73+
actionmailer (= 4.1.0)
74+
actionpack (= 4.1.0)
75+
actionview (= 4.1.0)
76+
activemodel (= 4.1.0)
77+
activerecord (= 4.1.0)
78+
activesupport (= 4.1.0)
8079
bundler (>= 1.3.0, < 2.0)
81-
railties (= 4.1.0.rc1)
82-
sprockets-rails (~> 2.0.0)
83-
rails_layout (1.0.10)
84-
railties (4.1.0.rc1)
85-
actionpack (= 4.1.0.rc1)
86-
activesupport (= 4.1.0.rc1)
80+
railties (= 4.1.0)
81+
sprockets-rails (~> 2.0)
82+
rails_layout (1.0.14)
83+
railties (4.1.0)
84+
actionpack (= 4.1.0)
85+
activesupport (= 4.1.0)
8786
rake (>= 0.8.7)
8887
thor (>= 0.18.1, < 2.0)
89-
rake (10.1.1)
88+
rake (10.2.2)
9089
rdoc (4.1.1)
9190
json (~> 1.4)
92-
sass (3.2.14)
93-
sass-rails (4.0.1)
91+
sass (3.2.19)
92+
sass-rails (4.0.3)
9493
railties (>= 4.0.0, < 5.0)
95-
sass (>= 3.1.10)
96-
sprockets-rails (~> 2.0.0)
94+
sass (~> 3.2.0)
95+
sprockets (~> 2.8, <= 2.11.0)
96+
sprockets-rails (~> 2.0)
9797
sdoc (0.4.0)
9898
json (~> 1.8)
9999
rdoc (~> 4.0, < 5.0)
@@ -103,23 +103,22 @@ GEM
103103
multi_json (~> 1.0)
104104
rack (~> 1.0)
105105
tilt (~> 1.1, != 1.3.0)
106-
sprockets-rails (2.0.1)
106+
sprockets-rails (2.1.1)
107107
actionpack (>= 3.0)
108108
activesupport (>= 3.0)
109109
sprockets (~> 2.8)
110110
sqlite3 (1.3.9)
111-
thor (0.18.1)
112-
thread_safe (0.2.0)
113-
atomic (>= 1.1.7, < 2)
111+
thor (0.19.1)
112+
thread_safe (0.3.3)
114113
tilt (1.4.1)
115114
treetop (1.4.15)
116115
polyglot
117116
polyglot (>= 0.3.1)
118-
turbolinks (2.2.1)
117+
turbolinks (2.2.2)
119118
coffee-rails
120119
tzinfo (1.1.0)
121120
thread_safe (~> 0.1)
122-
uglifier (2.4.0)
121+
uglifier (2.5.0)
123122
execjs (>= 0.3.0)
124123
json (>= 1.8.0)
125124

@@ -129,15 +128,15 @@ PLATFORMS
129128
DEPENDENCIES
130129
better_errors
131130
binding_of_caller
132-
bootstrap-sass (>= 3.0.0.0)
131+
bootstrap-sass
133132
coffee-rails (~> 4.0.0)
134133
high_voltage
135134
jbuilder (~> 2.0)
136135
jquery-rails
137136
quiet_assets
138-
rails (= 4.1.0.rc1)
137+
rails (= 4.1.0)
139138
rails_layout
140-
sass-rails (~> 4.0.1)
139+
sass-rails (~> 4.0.3)
141140
sdoc (~> 0.4.0)
142141
spring
143142
sqlite3

README.textile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
h1. !http://railsapps.github.io/images/rails-36x36.jpg(Rails Bootstrap)! Rails and Bootstrap
22

3-
Rails 4.1 example application that integrates Rails and Bootstrap 3.1.
3+
Rails 4.1 example application that integrates Rails and Bootstrap 3.2.
44

55
"Bootstrap":http://getbootstrap.com/ (formerly Twitter Bootstrap) provides CSS stylesheets and JavaScript code for the visual design of websites. Bootstrap is a framework for client-side (browser-based or “front end”) development, much like Ruby on Rails is a framework for server-side development.
66

app/assets/stylesheets/application.css.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
66
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
77
*
8-
* You're free to add application-wide styles to this file and they'll appear at the top of the
9-
* compiled file, but it's generally better to create a new file per style scope.
8+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
9+
* compiled file so the styles you add here take precedence over styles defined in any styles
10+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11+
* file per style scope.
1012
*
11-
*= require_self
1213
*= require_tree .
14+
*= require_self
1315
*/

app/assets/stylesheets/framework_and_overrides.css.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// Temporary workaround for Rails 4.1.2 pending releaase of bootstrap-sass 3.1.2
2+
//= depend_on_asset "bootstrap/glyphicons-halflings-regular.eot"
3+
//= depend_on_asset "bootstrap/glyphicons-halflings-regular.svg"
4+
//= depend_on_asset "bootstrap/glyphicons-halflings-regular.ttf"
5+
//= depend_on_asset "bootstrap/glyphicons-halflings-regular.woff"
6+
17
// import the CSS framework
28
@import "bootstrap";
39

app/views/layouts/application.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta name="viewport" content="width=device-width, initial-scale=1.0">
55
<title><%= content_for?(:title) ? yield(:title) : "Rails Bootstrap" %></title>
66
<meta name="description" content="<%= content_for?(:description) ? yield(:description) : "Rails Bootstrap" %>">
7-
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
8-
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
7+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
8+
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
99
<%= csrf_meta_tags %>
1010
</head>
1111
<body>

config/database.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ test:
2020
<<: *default
2121
database: db/test.sqlite3
2222

23-
# Do not keep production credentials in the repository,
24-
# instead read the configuration from the environment.
25-
#
26-
# Example:
27-
# sqlite3://myuser:mypass@localhost/full/path/to/somedatabase
28-
#
2923
production:
30-
url: <%= ENV["DATABASE_URL"] %>
24+
<<: *default
25+
database: db/production.sqlite3

config/initializers/mime_types.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22

33
# Add new mime types for use in respond_to blocks:
44
# Mime::Type.register "text/richtext", :rtf
5-
# Mime::Type.register_alias "text/html", :iphone

0 commit comments

Comments
 (0)