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

Skip to content

Commit a14b3d2

Browse files
author
Frank Natividad
committed
Reverting Rails 5 update on 2-cloud-datastore
Reverting Rails 5 update on 2-cloud-datastore
1 parent c2a5849 commit a14b3d2

File tree

6 files changed

+60
-63
lines changed

6 files changed

+60
-63
lines changed

2-cloud-datastore/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# [START dependencies]
1515
source "https://rubygems.org"
1616

17-
gem "rails"
17+
gem "rails", "4.2.6"
1818
gem "google-cloud"
1919
# [END dependencies]
2020
gem "jquery-rails"

2-cloud-datastore/Gemfile.lock

Lines changed: 54 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,44 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (5.0.0.1)
5-
actionpack (= 5.0.0.1)
6-
nio4r (~> 1.2)
7-
websocket-driver (~> 0.6.1)
8-
actionmailer (5.0.0.1)
9-
actionpack (= 5.0.0.1)
10-
actionview (= 5.0.0.1)
11-
activejob (= 5.0.0.1)
4+
actionmailer (4.2.6)
5+
actionpack (= 4.2.6)
6+
actionview (= 4.2.6)
7+
activejob (= 4.2.6)
128
mail (~> 2.5, >= 2.5.4)
13-
rails-dom-testing (~> 2.0)
14-
actionpack (5.0.0.1)
15-
actionview (= 5.0.0.1)
16-
activesupport (= 5.0.0.1)
17-
rack (~> 2.0)
18-
rack-test (~> 0.6.3)
19-
rails-dom-testing (~> 2.0)
9+
rails-dom-testing (~> 1.0, >= 1.0.5)
10+
actionpack (4.2.6)
11+
actionview (= 4.2.6)
12+
activesupport (= 4.2.6)
13+
rack (~> 1.6)
14+
rack-test (~> 0.6.2)
15+
rails-dom-testing (~> 1.0, >= 1.0.5)
2016
rails-html-sanitizer (~> 1.0, >= 1.0.2)
21-
actionview (5.0.0.1)
22-
activesupport (= 5.0.0.1)
17+
actionview (4.2.6)
18+
activesupport (= 4.2.6)
2319
builder (~> 3.1)
2420
erubis (~> 2.7.0)
25-
rails-dom-testing (~> 2.0)
21+
rails-dom-testing (~> 1.0, >= 1.0.5)
2622
rails-html-sanitizer (~> 1.0, >= 1.0.2)
27-
activejob (5.0.0.1)
28-
activesupport (= 5.0.0.1)
29-
globalid (>= 0.3.6)
30-
activemodel (5.0.0.1)
31-
activesupport (= 5.0.0.1)
32-
activerecord (5.0.0.1)
33-
activemodel (= 5.0.0.1)
34-
activesupport (= 5.0.0.1)
35-
arel (~> 7.0)
36-
activesupport (5.0.0.1)
37-
concurrent-ruby (~> 1.0, >= 1.0.2)
23+
activejob (4.2.6)
24+
activesupport (= 4.2.6)
25+
globalid (>= 0.3.0)
26+
activemodel (4.2.6)
27+
activesupport (= 4.2.6)
28+
builder (~> 3.1)
29+
activerecord (4.2.6)
30+
activemodel (= 4.2.6)
31+
activesupport (= 4.2.6)
32+
arel (~> 6.0)
33+
activesupport (4.2.6)
3834
i18n (~> 0.7)
35+
json (~> 1.7, >= 1.7.7)
3936
minitest (~> 5.1)
37+
thread_safe (~> 0.3, >= 0.3.4)
4038
tzinfo (~> 1.1)
4139
addressable (2.5.0)
4240
public_suffix (~> 2.0, >= 2.0.2)
43-
arel (7.1.4)
41+
arel (6.0.3)
4442
builder (3.2.2)
4543
capybara (2.10.1)
4644
addressable
@@ -67,19 +65,19 @@ GEM
6765
mime-types (>= 1.6)
6866
representable (~> 2.3.0)
6967
retriable (~> 2.0)
70-
google-cloud (0.21.1)
68+
google-cloud (0.22.0)
7169
google-cloud-bigquery (~> 0.21.0)
7270
google-cloud-datastore (~> 0.21.0)
7371
google-cloud-dns (~> 0.21.0)
7472
google-cloud-error_reporting (~> 0.21.0)
75-
google-cloud-language (~> 0.21.0)
73+
google-cloud-language (~> 0.22.0)
7674
google-cloud-logging (~> 0.21.0)
7775
google-cloud-monitoring (~> 0.21.0)
7876
google-cloud-pubsub (~> 0.21.0)
7977
google-cloud-resource_manager (~> 0.21.0)
8078
google-cloud-speech (~> 0.21.0)
8179
google-cloud-storage (~> 0.21.0)
82-
google-cloud-translate (~> 0.21.0)
80+
google-cloud-translate (~> 0.22.0)
8381
google-cloud-vision (~> 0.21.0)
8482
google-cloud-bigquery (0.21.0)
8583
google-api-client (~> 0.9.11)
@@ -101,7 +99,7 @@ GEM
10199
google-protobuf (~> 3.0)
102100
googleapis-common-protos (~> 1.3)
103101
grpc (~> 1.0)
104-
google-cloud-language (0.21.0)
102+
google-cloud-language (0.22.0)
105103
google-cloud-core (~> 0.21.0)
106104
google-gax (~> 0.6.0)
107105
google-protobuf (~> 3.0)
@@ -139,8 +137,7 @@ GEM
139137
digest-crc (~> 0.4)
140138
google-api-client (~> 0.9.11)
141139
google-cloud-core (~> 0.21.0)
142-
google-cloud-translate (0.21.0)
143-
google-api-client (~> 0.9.11)
140+
google-cloud-translate (0.22.0)
144141
google-cloud-core (~> 0.21.0)
145142
google-cloud-vision (0.21.1)
146143
google-cloud-core (~> 0.21.0)
@@ -179,6 +176,7 @@ GEM
179176
rails-dom-testing (>= 1, < 3)
180177
railties (>= 4.2.0)
181178
thor (>= 0.14, < 2.0)
179+
json (1.8.3)
182180
jwt (1.5.6)
183181
little-plugger (1.1.4)
184182
logging (2.1.0)
@@ -189,15 +187,13 @@ GEM
189187
mail (2.6.4)
190188
mime-types (>= 1.16, < 4)
191189
memoist (0.15.0)
192-
method_source (0.8.2)
193190
mime-types (3.1)
194191
mime-types-data (~> 3.2015)
195192
mime-types-data (3.2016.0521)
196193
mini_portile2 (2.1.0)
197194
minitest (5.9.1)
198195
multi_json (1.12.1)
199196
multipart-post (2.0.0)
200-
nio4r (1.2.1)
201197
nokogiri (1.6.8.1)
202198
mini_portile2 (~> 2.1.0)
203199
orderedhash (0.0.6)
@@ -207,30 +203,31 @@ GEM
207203
cliver (~> 0.3.1)
208204
websocket-driver (>= 0.2.0)
209205
public_suffix (2.0.4)
210-
rack (2.0.1)
206+
rack (1.6.5)
211207
rack-test (0.6.3)
212208
rack (>= 1.0)
213-
rails (5.0.0.1)
214-
actioncable (= 5.0.0.1)
215-
actionmailer (= 5.0.0.1)
216-
actionpack (= 5.0.0.1)
217-
actionview (= 5.0.0.1)
218-
activejob (= 5.0.0.1)
219-
activemodel (= 5.0.0.1)
220-
activerecord (= 5.0.0.1)
221-
activesupport (= 5.0.0.1)
209+
rails (4.2.6)
210+
actionmailer (= 4.2.6)
211+
actionpack (= 4.2.6)
212+
actionview (= 4.2.6)
213+
activejob (= 4.2.6)
214+
activemodel (= 4.2.6)
215+
activerecord (= 4.2.6)
216+
activesupport (= 4.2.6)
222217
bundler (>= 1.3.0, < 2.0)
223-
railties (= 5.0.0.1)
224-
sprockets-rails (>= 2.0.0)
225-
rails-dom-testing (2.0.1)
226-
activesupport (>= 4.2.0, < 6.0)
218+
railties (= 4.2.6)
219+
sprockets-rails
220+
rails-deprecated_sanitizer (1.0.3)
221+
activesupport (>= 4.2.0.alpha)
222+
rails-dom-testing (1.0.7)
223+
activesupport (>= 4.2.0.beta, < 5.0)
227224
nokogiri (~> 1.6.0)
225+
rails-deprecated_sanitizer (>= 1.0.1)
228226
rails-html-sanitizer (1.0.3)
229227
loofah (~> 2.0)
230-
railties (5.0.0.1)
231-
actionpack (= 5.0.0.1)
232-
activesupport (= 5.0.0.1)
233-
method_source
228+
railties (4.2.6)
229+
actionpack (= 4.2.6)
230+
activesupport (= 4.2.6)
234231
rake (>= 0.8.7)
235232
thor (>= 0.18.1, < 2.0)
236233
rake (11.3.0)
@@ -290,7 +287,7 @@ DEPENDENCIES
290287
jquery-rails
291288
poltergeist
292289
rack-test
293-
rails
290+
rails (= 4.2.6)
294291
rspec-rails
295292
tzinfo-data
296293

2-cloud-datastore/app/controllers/books_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def destroy
5656
end
5757
# [END destroy]
5858

59-
before_action :convert_published_on_to_date
59+
before_filter :convert_published_on_to_date
6060

6161
# [START create]
6262
def create

2-cloud-datastore/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

2-cloud-datastore/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

2-cloud-datastore/config/environments/test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
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 = {'Cache-Control' => 'public, max-age=3600'}
29+
config.serve_static_files = true
30+
config.static_cache_control = 'public, max-age=3600'
3131

3232
# Show full error reports and disable caching.
3333
config.consider_all_requests_local = true

0 commit comments

Comments
 (0)