Skip to content

Commit b586ae0

Browse files
committed
update to rails 4.2.4
1 parent b935e9d commit b586ae0

File tree

8 files changed

+131
-117
lines changed

8 files changed

+131
-117
lines changed

Gemfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'https://rubygems.org'
22
ruby '2.2.2'
3-
gem 'rails', '4.2.1'
3+
gem 'rails', '4.2.4'
44
gem 'sqlite3'
55
gem 'sass-rails', '~> 5.0'
66
gem 'uglifier', '>= 1.3.0'
@@ -9,6 +9,8 @@ gem 'jquery-rails'
99
gem 'jbuilder', '~> 2.0'
1010
group :development, :test do
1111
gem 'byebug'
12+
end
13+
group :development do
1214
gem 'web-console', '~> 2.0'
1315
gem 'spring'
1416
end

Gemfile.lock

Lines changed: 90 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
aasm (4.1.0)
5-
actionmailer (4.2.1)
6-
actionpack (= 4.2.1)
7-
actionview (= 4.2.1)
8-
activejob (= 4.2.1)
4+
aasm (4.2.0)
5+
actionmailer (4.2.4)
6+
actionpack (= 4.2.4)
7+
actionview (= 4.2.4)
8+
activejob (= 4.2.4)
99
mail (~> 2.5, >= 2.5.4)
1010
rails-dom-testing (~> 1.0, >= 1.0.5)
11-
actionpack (4.2.1)
12-
actionview (= 4.2.1)
13-
activesupport (= 4.2.1)
11+
actionpack (4.2.4)
12+
actionview (= 4.2.4)
13+
activesupport (= 4.2.4)
1414
rack (~> 1.6)
1515
rack-test (~> 0.6.2)
1616
rails-dom-testing (~> 1.0, >= 1.0.5)
17-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
18-
actionview (4.2.1)
19-
activesupport (= 4.2.1)
17+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
18+
actionview (4.2.4)
19+
activesupport (= 4.2.4)
2020
builder (~> 3.1)
2121
erubis (~> 2.7.0)
2222
rails-dom-testing (~> 1.0, >= 1.0.5)
23-
rails-html-sanitizer (~> 1.0, >= 1.0.1)
24-
activejob (4.2.1)
25-
activesupport (= 4.2.1)
23+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
24+
activejob (4.2.4)
25+
activesupport (= 4.2.4)
2626
globalid (>= 0.3.0)
27-
activemodel (4.2.1)
28-
activesupport (= 4.2.1)
27+
activemodel (4.2.4)
28+
activesupport (= 4.2.4)
2929
builder (~> 3.1)
30-
activerecord (4.2.1)
31-
activemodel (= 4.2.1)
32-
activesupport (= 4.2.1)
30+
activerecord (4.2.4)
31+
activemodel (= 4.2.4)
32+
activesupport (= 4.2.4)
3333
arel (~> 6.0)
34-
activesupport (4.2.1)
34+
activesupport (4.2.4)
3535
i18n (~> 0.7)
3636
json (~> 1.7, >= 1.7.7)
3737
minitest (~> 5.1)
3838
thread_safe (~> 0.3, >= 0.3.4)
3939
tzinfo (~> 1.1)
4040
addressable (2.3.8)
41-
arel (6.0.0)
42-
autoprefixer-rails (5.1.11)
41+
arel (6.0.3)
42+
autoprefixer-rails (6.0.0)
4343
execjs
4444
json
4545
bcrypt (3.1.10)
@@ -50,13 +50,12 @@ GEM
5050
binding_of_caller (0.7.2)
5151
debug_inspector (>= 0.0.1)
5252
blankslate (3.1.3)
53-
bootstrap-sass (3.3.4.1)
53+
bootstrap-sass (3.3.5.1)
5454
autoprefixer-rails (>= 5.0.0.1)
55-
sass (>= 3.2.19)
55+
sass (>= 3.3.0)
5656
builder (3.2.2)
57-
byebug (4.0.5)
58-
columnize (= 0.9.0)
59-
capybara (2.4.4)
57+
byebug (6.0.2)
58+
capybara (2.5.0)
6059
mime-types (>= 1.16)
6160
nokogiri (>= 1.3.3)
6261
rack (>= 1.0.0)
@@ -74,11 +73,10 @@ GEM
7473
coffee-script-source
7574
execjs
7675
coffee-script-source (1.9.1.1)
77-
columnize (0.9.0)
7876
dante (0.2.0)
79-
database_cleaner (1.4.1)
77+
database_cleaner (1.5.0)
8078
debug_inspector (0.0.2)
81-
devise (3.4.1)
79+
devise (3.5.2)
8280
bcrypt (~> 3.0)
8381
orm_adapter (~> 0.1)
8482
railties (>= 3.2.6, < 5)
@@ -89,89 +87,88 @@ GEM
8987
domain_name (0.5.24)
9088
unf (>= 0.0.5, < 1.0.0)
9189
erubis (2.7.0)
92-
execjs (2.5.2)
90+
execjs (2.6.0)
9391
factory_girl (4.5.0)
9492
activesupport (>= 3.0.0)
9593
factory_girl_rails (4.5.0)
9694
factory_girl (~> 4.5.0)
9795
railties (>= 3.0.0)
98-
faker (1.4.3)
96+
faker (1.5.0)
9997
i18n (~> 0.5)
100-
ffi (1.9.8)
101-
gibbon (1.1.5)
102-
httparty
103-
multi_json (>= 1.9.0)
104-
globalid (0.3.5)
98+
faraday (0.9.1)
99+
multipart-post (>= 1.2, < 3)
100+
ffi (1.9.10)
101+
gibbon (2.0.0)
102+
faraday (>= 0.9.1)
103+
multi_json (>= 1.11.0)
104+
globalid (0.3.6)
105105
activesupport (>= 4.1.0)
106106
hitimes (1.2.2)
107107
http-cookie (1.0.2)
108108
domain_name (~> 0.5)
109-
httparty (0.13.3)
110-
json (~> 1.8)
111-
multi_xml (>= 0.5.2)
112109
i18n (0.7.0)
113-
jbuilder (2.2.13)
110+
jbuilder (2.3.1)
114111
activesupport (>= 3.0.0, < 5)
115112
multi_json (~> 1.2)
116113
jimson-temp (0.9.5)
117114
blankslate (>= 3.1.2)
118115
multi_json (~> 1.0)
119116
rack (~> 1.4)
120117
rest-client (~> 1.0)
121-
jquery-rails (4.0.3)
118+
jquery-rails (4.0.5)
122119
rails-dom-testing (~> 1.0)
123120
railties (>= 4.2.0)
124121
thor (>= 0.14, < 2.0)
125-
json (1.8.2)
122+
json (1.8.3)
126123
launchy (2.4.3)
127124
addressable (~> 2.3)
128-
loofah (2.0.1)
125+
loofah (2.0.3)
129126
nokogiri (>= 1.5.9)
130127
mail (2.6.3)
131128
mime-types (>= 1.16, < 3)
132-
mime-types (2.4.3)
129+
mime-types (2.6.1)
133130
mini_portile (0.6.2)
134-
minitest (5.6.0)
135-
multi_json (1.11.0)
136-
multi_xml (0.5.5)
131+
minitest (5.8.0)
132+
multi_json (1.11.2)
133+
multipart-post (2.0.0)
137134
netrc (0.10.3)
138135
nokogiri (1.6.6.2)
139136
mini_portile (~> 0.6.0)
140137
orm_adapter (0.5.0)
141-
payola-payments (1.3.1)
138+
payola-payments (1.3.2)
142139
aasm (>= 4.0.7)
143140
jquery-rails
144141
rails (>= 4.1)
145142
stripe (= 1.20.1)
146143
stripe_event (>= 1.3.0)
147144
quiet_assets (1.1.0)
148145
railties (>= 3.1, < 5.0)
149-
rack (1.6.0)
146+
rack (1.6.4)
150147
rack-test (0.6.3)
151148
rack (>= 1.0)
152-
rails (4.2.1)
153-
actionmailer (= 4.2.1)
154-
actionpack (= 4.2.1)
155-
actionview (= 4.2.1)
156-
activejob (= 4.2.1)
157-
activemodel (= 4.2.1)
158-
activerecord (= 4.2.1)
159-
activesupport (= 4.2.1)
149+
rails (4.2.4)
150+
actionmailer (= 4.2.4)
151+
actionpack (= 4.2.4)
152+
actionview (= 4.2.4)
153+
activejob (= 4.2.4)
154+
activemodel (= 4.2.4)
155+
activerecord (= 4.2.4)
156+
activesupport (= 4.2.4)
160157
bundler (>= 1.3.0, < 2.0)
161-
railties (= 4.2.1)
158+
railties (= 4.2.4)
162159
sprockets-rails
163160
rails-deprecated_sanitizer (1.0.3)
164161
activesupport (>= 4.2.0.alpha)
165-
rails-dom-testing (1.0.6)
162+
rails-dom-testing (1.0.7)
166163
activesupport (>= 4.2.0.beta, < 5.0)
167164
nokogiri (~> 1.6.0)
168165
rails-deprecated_sanitizer (>= 1.0.1)
169166
rails-html-sanitizer (1.0.2)
170167
loofah (~> 2.0)
171-
rails_layout (1.0.25)
172-
railties (4.2.1)
173-
actionpack (= 4.2.1)
174-
activesupport (= 4.2.1)
168+
rails_layout (1.0.26)
169+
railties (4.2.4)
170+
actionpack (= 4.2.4)
171+
activesupport (= 4.2.4)
175172
rake (>= 0.8.7)
176173
thor (>= 0.18.1, < 2.0)
177174
rake (10.4.2)
@@ -181,42 +178,42 @@ GEM
181178
http-cookie (>= 1.0.2, < 2.0)
182179
mime-types (>= 1.16, < 3.0)
183180
netrc (~> 0.7)
184-
rspec-core (3.2.3)
185-
rspec-support (~> 3.2.0)
186-
rspec-expectations (3.2.1)
181+
rspec-core (3.3.2)
182+
rspec-support (~> 3.3.0)
183+
rspec-expectations (3.3.1)
187184
diff-lcs (>= 1.2.0, < 2.0)
188-
rspec-support (~> 3.2.0)
189-
rspec-mocks (3.2.1)
185+
rspec-support (~> 3.3.0)
186+
rspec-mocks (3.3.2)
190187
diff-lcs (>= 1.2.0, < 2.0)
191-
rspec-support (~> 3.2.0)
192-
rspec-rails (3.2.1)
188+
rspec-support (~> 3.3.0)
189+
rspec-rails (3.3.3)
193190
actionpack (>= 3.0, < 4.3)
194191
activesupport (>= 3.0, < 4.3)
195192
railties (>= 3.0, < 4.3)
196-
rspec-core (~> 3.2.0)
197-
rspec-expectations (~> 3.2.0)
198-
rspec-mocks (~> 3.2.0)
199-
rspec-support (~> 3.2.0)
200-
rspec-support (3.2.2)
193+
rspec-core (~> 3.3.0)
194+
rspec-expectations (~> 3.3.0)
195+
rspec-mocks (~> 3.3.0)
196+
rspec-support (~> 3.3.0)
197+
rspec-support (3.3.0)
201198
rubyzip (1.1.7)
202-
sass (3.4.13)
203-
sass-rails (5.0.3)
199+
sass (3.4.18)
200+
sass-rails (5.0.4)
204201
railties (>= 4.0.0, < 5.0)
205202
sass (~> 3.1)
206203
sprockets (>= 2.8, < 4.0)
207204
sprockets-rails (>= 2.0, < 4.0)
208-
tilt (~> 1.1)
209-
selenium-webdriver (2.45.0)
205+
tilt (>= 1.1, < 3)
206+
selenium-webdriver (2.47.1)
210207
childprocess (~> 0.5)
211208
multi_json (~> 1.0)
212209
rubyzip (~> 1.0)
213210
websocket (~> 1.0)
214-
spring (1.3.4)
211+
spring (1.3.6)
215212
spring-commands-rspec (1.0.4)
216213
spring (>= 0.9.1)
217-
sprockets (3.0.2)
214+
sprockets (3.3.4)
218215
rack (~> 1.0)
219-
sprockets-rails (2.2.4)
216+
sprockets-rails (2.3.2)
220217
actionpack (>= 3.0)
221218
activesupport (>= 3.0)
222219
sprockets (>= 2.8, < 4.0)
@@ -232,24 +229,24 @@ GEM
232229
stripe_event (1.5.0)
233230
activesupport (>= 3.1)
234231
stripe (~> 1.6)
235-
sucker_punch (1.4.0)
236-
celluloid (~> 0.16.0)
232+
sucker_punch (1.5.1)
233+
celluloid (= 0.16.0)
237234
thor (0.19.1)
238235
thread_safe (0.3.5)
239-
tilt (1.4.1)
240-
timers (4.0.1)
236+
tilt (2.0.1)
237+
timers (4.0.4)
241238
hitimes
242239
tzinfo (1.2.2)
243240
thread_safe (~> 0.1)
244-
uglifier (2.7.1)
241+
uglifier (2.7.2)
245242
execjs (>= 0.3.0)
246243
json (>= 1.8.0)
247244
unf (0.1.4)
248245
unf_ext
249246
unf_ext (0.0.7.1)
250247
warden (1.2.3)
251248
rack (>= 1.0)
252-
web-console (2.1.2)
249+
web-console (2.2.1)
253250
activemodel (>= 4.0)
254251
binding_of_caller (>= 0.7.2)
255252
railties (>= 4.0)
@@ -277,7 +274,7 @@ DEPENDENCIES
277274
launchy
278275
payola-payments
279276
quiet_assets
280-
rails (= 4.2.1)
277+
rails (= 4.2.4)
281278
rails_layout
282279
rspec-rails
283280
sass-rails (~> 5.0)
@@ -289,3 +286,6 @@ DEPENDENCIES
289286
sucker_punch
290287
uglifier (>= 1.3.0)
291288
web-console (~> 2.0)
289+
290+
BUNDLED WITH
291+
1.10.6

app/views/layouts/_navigation_links.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<li><%= link_to 'Sign up', new_user_registration_path, data: { no_turbolink: true } %></li>
88
<% end %>
99
<% if user_signed_in? %>
10-
<% if current_user.admin? %>
10+
<% if current_user.try(:admin?) %>
1111
<li><%= link_to 'Users', users_path %></li>
1212
<% end %>
1313
<% end %>

config/environments/development.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
config.consider_all_requests_local = true
1414
config.action_controller.perform_caching = false
1515

16+
# Don't care if the mailer can't send.
17+
config.action_mailer.raise_delivery_errors = false
18+
1619
# Print deprecation notices to the Rails logger.
1720
config.active_support.deprecation = :log
1821

@@ -36,7 +39,6 @@
3639
# ActionMailer Config
3740
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
3841
config.action_mailer.delivery_method = :smtp
39-
# Set to false if you do not care if the mailer cannot send.
4042
config.action_mailer.raise_delivery_errors = true
4143
# Send email in development mode?
4244
config.action_mailer.perform_deliveries = true

0 commit comments

Comments
 (0)