Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1e5c78

Browse files
author
Frank Natividad
committed
Update 5-logging Gemfile for Rails 4.2.6
1 parent 49a0996 commit f1e5c78

File tree

7 files changed

+57
-61
lines changed

7 files changed

+57
-61
lines changed

5-logging/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
source "https://rubygems.org"
1515

16-
gem "rails"
16+
gem "rails", "4.2.6"
1717
gem "google-cloud"
1818
gem "jquery-rails"
1919
gem "fog"

5-logging/Gemfile.lock

Lines changed: 49 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,44 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
CFPropertyList (2.3.3)
5-
actioncable (5.0.0.1)
6-
actionpack (= 5.0.0.1)
7-
nio4r (~> 1.2)
8-
websocket-driver (~> 0.6.1)
9-
actionmailer (5.0.0.1)
10-
actionpack (= 5.0.0.1)
11-
actionview (= 5.0.0.1)
12-
activejob (= 5.0.0.1)
5+
actionmailer (4.2.6)
6+
actionpack (= 4.2.6)
7+
actionview (= 4.2.6)
8+
activejob (= 4.2.6)
139
mail (~> 2.5, >= 2.5.4)
14-
rails-dom-testing (~> 2.0)
15-
actionpack (5.0.0.1)
16-
actionview (= 5.0.0.1)
17-
activesupport (= 5.0.0.1)
18-
rack (~> 2.0)
19-
rack-test (~> 0.6.3)
20-
rails-dom-testing (~> 2.0)
10+
rails-dom-testing (~> 1.0, >= 1.0.5)
11+
actionpack (4.2.6)
12+
actionview (= 4.2.6)
13+
activesupport (= 4.2.6)
14+
rack (~> 1.6)
15+
rack-test (~> 0.6.2)
16+
rails-dom-testing (~> 1.0, >= 1.0.5)
2117
rails-html-sanitizer (~> 1.0, >= 1.0.2)
22-
actionview (5.0.0.1)
23-
activesupport (= 5.0.0.1)
18+
actionview (4.2.6)
19+
activesupport (= 4.2.6)
2420
builder (~> 3.1)
2521
erubis (~> 2.7.0)
26-
rails-dom-testing (~> 2.0)
22+
rails-dom-testing (~> 1.0, >= 1.0.5)
2723
rails-html-sanitizer (~> 1.0, >= 1.0.2)
28-
activejob (5.0.0.1)
29-
activesupport (= 5.0.0.1)
30-
globalid (>= 0.3.6)
31-
activemodel (5.0.0.1)
32-
activesupport (= 5.0.0.1)
33-
activerecord (5.0.0.1)
34-
activemodel (= 5.0.0.1)
35-
activesupport (= 5.0.0.1)
36-
arel (~> 7.0)
37-
activesupport (5.0.0.1)
38-
concurrent-ruby (~> 1.0, >= 1.0.2)
24+
activejob (4.2.6)
25+
activesupport (= 4.2.6)
26+
globalid (>= 0.3.0)
27+
activemodel (4.2.6)
28+
activesupport (= 4.2.6)
29+
builder (~> 3.1)
30+
activerecord (4.2.6)
31+
activemodel (= 4.2.6)
32+
activesupport (= 4.2.6)
33+
arel (~> 6.0)
34+
activesupport (4.2.6)
3935
i18n (~> 0.7)
36+
json (~> 1.7, >= 1.7.7)
4037
minitest (~> 5.1)
38+
thread_safe (~> 0.3, >= 0.3.4)
4139
tzinfo (~> 1.1)
4240
addressable (2.5.0)
4341
public_suffix (~> 2.0, >= 2.0.2)
44-
arel (7.1.4)
42+
arel (6.0.3)
4543
builder (3.2.2)
4644
capybara (2.10.1)
4745
addressable
@@ -312,7 +310,7 @@ GEM
312310
rails-dom-testing (>= 1, < 3)
313311
railties (>= 4.2.0)
314312
thor (>= 0.14, < 2.0)
315-
json (2.0.2)
313+
json (1.8.3)
316314
jwt (1.5.6)
317315
little-plugger (1.1.4)
318316
logging (2.1.0)
@@ -323,7 +321,6 @@ GEM
323321
mail (2.6.4)
324322
mime-types (>= 1.16, < 4)
325323
memoist (0.15.0)
326-
method_source (0.8.2)
327324
mime-types (3.1)
328325
mime-types-data (~> 3.2015)
329326
mime-types-data (3.2016.0521)
@@ -333,7 +330,6 @@ GEM
333330
multi_xml (0.5.5)
334331
multipart-post (2.0.0)
335332
mysql2 (0.3.21)
336-
nio4r (1.2.1)
337333
nokogiri (1.6.8.1)
338334
mini_portile2 (~> 2.1.0)
339335
oauth2 (1.2.0)
@@ -360,30 +356,31 @@ GEM
360356
cliver (~> 0.3.1)
361357
websocket-driver (>= 0.2.0)
362358
public_suffix (2.0.4)
363-
rack (2.0.1)
359+
rack (1.6.5)
364360
rack-test (0.6.3)
365361
rack (>= 1.0)
366-
rails (5.0.0.1)
367-
actioncable (= 5.0.0.1)
368-
actionmailer (= 5.0.0.1)
369-
actionpack (= 5.0.0.1)
370-
actionview (= 5.0.0.1)
371-
activejob (= 5.0.0.1)
372-
activemodel (= 5.0.0.1)
373-
activerecord (= 5.0.0.1)
374-
activesupport (= 5.0.0.1)
362+
rails (4.2.6)
363+
actionmailer (= 4.2.6)
364+
actionpack (= 4.2.6)
365+
actionview (= 4.2.6)
366+
activejob (= 4.2.6)
367+
activemodel (= 4.2.6)
368+
activerecord (= 4.2.6)
369+
activesupport (= 4.2.6)
375370
bundler (>= 1.3.0, < 2.0)
376-
railties (= 5.0.0.1)
377-
sprockets-rails (>= 2.0.0)
378-
rails-dom-testing (2.0.1)
379-
activesupport (>= 4.2.0, < 6.0)
371+
railties (= 4.2.6)
372+
sprockets-rails
373+
rails-deprecated_sanitizer (1.0.3)
374+
activesupport (>= 4.2.0.alpha)
375+
rails-dom-testing (1.0.7)
376+
activesupport (>= 4.2.0.beta, < 5.0)
380377
nokogiri (~> 1.6.0)
378+
rails-deprecated_sanitizer (>= 1.0.1)
381379
rails-html-sanitizer (1.0.3)
382380
loofah (~> 2.0)
383-
railties (5.0.0.1)
384-
actionpack (= 5.0.0.1)
385-
activesupport (= 5.0.0.1)
386-
method_source
381+
railties (4.2.6)
382+
actionpack (= 4.2.6)
383+
activesupport (= 4.2.6)
387384
rake (>= 0.8.7)
388385
thor (>= 0.18.1, < 2.0)
389386
rake (11.3.0)
@@ -455,7 +452,7 @@ DEPENDENCIES
455452
omniauth-google-oauth2
456453
poltergeist
457454
rack-test
458-
rails
455+
rails (= 4.2.6)
459456
rspec-rails
460457
sqlite3
461458
tzinfo-data

5-logging/config/environments/development.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# Print deprecation notices to the Rails logger.
3030
config.active_support.deprecation = :log
3131

32-
config.public_file_server.enabled = true
32+
config.serve_static_files = true
3333
config.assets.debug = true
3434
config.assets.digest = true
3535
config.assets.raise_runtime_errors = true

5-logging/config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
# Serve static files from the `/public` folder by default.
3737
# Consider using a CDN for better performance
38-
config.public_file_server.enabled = true
38+
config.serve_static_files = true
3939

4040
# Specifies the header that your server uses for sending files.
4141
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache

5-logging/config/environments/test.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@
2626
config.eager_load = false
2727

2828
# Configure static file server for tests with Cache-Control for performance.
29-
config.public_file_server.enabled = true
30-
config.public_file_server.headers = {
31-
'Cache-Control' => 'public, max-age=3600'
32-
}
29+
config.serve_static_files = true
30+
config.static_cache_control = 'public, max-age=3600'
31+
3332
# Show full error reports and disable caching.
3433
config.consider_all_requests_local = true
3534
config.action_controller.perform_caching = false

5-logging/structured_data/datastore/app/controllers/books_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def destroy
4848
redirect_to books_path
4949
end
5050

51-
before_action :convert_published_on_to_date
51+
before_filter :convert_published_on_to_date
5252

5353
def create
5454
@book = Book.new book_params

5-logging/structured_data/datastore/app/controllers/user_books_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class UserBooksController < ApplicationController
1515

1616
PER_PAGE = 10
1717

18-
before_action :login_required
18+
before_filter :login_required
1919

2020
def index
2121
# [START books_by_creator]

0 commit comments

Comments
 (0)