Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit f00e45d

Browse files
committed
Upgrade to Rails 5.0
[Closes #6]
1 parent 1274c25 commit f00e45d

File tree

5 files changed

+87
-77
lines changed

5 files changed

+87
-77
lines changed

.travis.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,4 @@ script: ./bin/ci
55
after_script: '[ "$TRAVIS_RUBY_VERSION" != "2.5.5" ] || bundle exec rake coveralls:push'
66
rvm:
77
- 2.5.5
8-
notifications:
9-
email:
10-
on_failure: always
11-
slack:
12-
secure: YLqK6RvH71ZjXEWP84D2AsjDWpG549XE3EQsLizCsURV1VFvDj1g4L9zhVoSAuVj5LLAFSahQqQ1RpZdzaPUtjh72QmHWrOf4lRAS93tH6XTcbIMHCZ8nIO9HX+ErmH8uxEqwiejNxJWvI24hPjfPEtsV2MiJW7Ub2tHABG1WfA=
8+
- 2.6.3

Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "rails", "~> 4.2"
5+
gem "rails", "~> 5.0.0"
66
gem "puma"
77
gem "sass-rails"
88
gem "uglifier" # Use Uglifier as compressor for JavaScript assets
@@ -16,7 +16,7 @@ gem "jquery-rails" # Use jquery as the JavaScript library
1616

1717
# Our additional Gems are listed below
1818
gem "secure_headers", "< 4" # TODO: upgrade
19-
gem "rails-i18n"
19+
gem "rails-i18n", "~> 5.1" # for 5.0.x, 5.1.x and 5.2.x
2020
gem "crazy_money"
2121
gem "ordinalize_full", require: "ordinalize_full/integer"
2222
gem "buckybox-api" # to use the git version: git: "https://github.com/buckybox/buckybox-api-ruby"

Gemfile.lock

+77-68
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,50 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actionmailer (4.2.11.1)
5-
actionpack (= 4.2.11.1)
6-
actionview (= 4.2.11.1)
7-
activejob (= 4.2.11.1)
4+
actioncable (5.0.7.2)
5+
actionpack (= 5.0.7.2)
6+
nio4r (>= 1.2, < 3.0)
7+
websocket-driver (~> 0.6.1)
8+
actionmailer (5.0.7.2)
9+
actionpack (= 5.0.7.2)
10+
actionview (= 5.0.7.2)
11+
activejob (= 5.0.7.2)
812
mail (~> 2.5, >= 2.5.4)
9-
rails-dom-testing (~> 1.0, >= 1.0.5)
10-
actionpack (4.2.11.1)
11-
actionview (= 4.2.11.1)
12-
activesupport (= 4.2.11.1)
13-
rack (~> 1.6)
14-
rack-test (~> 0.6.2)
15-
rails-dom-testing (~> 1.0, >= 1.0.5)
13+
rails-dom-testing (~> 2.0)
14+
actionpack (5.0.7.2)
15+
actionview (= 5.0.7.2)
16+
activesupport (= 5.0.7.2)
17+
rack (~> 2.0)
18+
rack-test (~> 0.6.3)
19+
rails-dom-testing (~> 2.0)
1620
rails-html-sanitizer (~> 1.0, >= 1.0.2)
17-
actionview (4.2.11.1)
18-
activesupport (= 4.2.11.1)
21+
actionview (5.0.7.2)
22+
activesupport (= 5.0.7.2)
1923
builder (~> 3.1)
2024
erubis (~> 2.7.0)
21-
rails-dom-testing (~> 1.0, >= 1.0.5)
25+
rails-dom-testing (~> 2.0)
2226
rails-html-sanitizer (~> 1.0, >= 1.0.3)
23-
activejob (4.2.11.1)
24-
activesupport (= 4.2.11.1)
25-
globalid (>= 0.3.0)
26-
activemodel (4.2.11.1)
27-
activesupport (= 4.2.11.1)
27+
activejob (5.0.7.2)
28+
activesupport (= 5.0.7.2)
29+
globalid (>= 0.3.6)
30+
activemodel (5.0.7.2)
31+
activesupport (= 5.0.7.2)
32+
activemodel-serializers-xml (1.0.2)
33+
activemodel (> 5.x)
34+
activesupport (> 5.x)
2835
builder (~> 3.1)
29-
activerecord (4.2.11.1)
30-
activemodel (= 4.2.11.1)
31-
activesupport (= 4.2.11.1)
32-
arel (~> 6.0)
33-
activesupport (4.2.11.1)
34-
i18n (~> 0.7)
36+
activerecord (5.0.7.2)
37+
activemodel (= 5.0.7.2)
38+
activesupport (= 5.0.7.2)
39+
arel (~> 7.0)
40+
activesupport (5.0.7.2)
41+
concurrent-ruby (~> 1.0, >= 1.0.2)
42+
i18n (>= 0.7, < 2)
3543
minitest (~> 5.1)
36-
thread_safe (~> 0.3, >= 0.3.4)
3744
tzinfo (~> 1.1)
38-
addressable (2.5.2)
45+
addressable (2.6.0)
3946
public_suffix (>= 2.0.2, < 4.0)
40-
arel (6.0.4)
47+
arel (7.1.4)
4148
ast (2.4.0)
4249
autoprefixer-rails (8.2.0)
4350
execjs
@@ -129,13 +136,14 @@ GEM
129136
thread_safe (~> 0.3, >= 0.3.1)
130137
diff-lcs (1.3)
131138
docile (1.1.5)
132-
draper (2.1.0)
133-
actionpack (>= 3.0)
134-
activemodel (>= 3.0)
135-
activesupport (>= 3.0)
136-
request_store (~> 1.0)
139+
draper (3.1.0)
140+
actionpack (>= 5.0)
141+
activemodel (>= 5.0)
142+
activemodel-serializers-xml (>= 1.0)
143+
activesupport (>= 5.0)
144+
request_store (>= 1.0)
137145
equalizer (0.0.11)
138-
erubi (1.7.1)
146+
erubi (1.8.0)
139147
erubis (2.7.0)
140148
ethon (0.11.0)
141149
ffi (>= 1.3.0)
@@ -182,15 +190,17 @@ GEM
182190
nokogiri (>= 1.5.9)
183191
mail (2.7.1)
184192
mini_mime (>= 0.1.1)
193+
method_source (0.9.2)
185194
mime-types (3.1)
186195
mime-types-data (~> 3.2015)
187196
mime-types-data (3.2016.0521)
188-
mini_mime (1.0.1)
197+
mini_mime (1.0.2)
189198
mini_portile2 (2.4.0)
190199
minitest (5.11.3)
191200
multi_json (1.13.1)
192201
multi_test (0.1.2)
193202
naught (1.1.0)
203+
nio4r (2.4.0)
194204
nokogiri (1.10.3)
195205
mini_portile2 (~> 2.4.0)
196206
oj (3.5.0)
@@ -199,45 +209,44 @@ GEM
199209
parallel (1.12.1)
200210
parser (2.5.0.5)
201211
ast (~> 2.4.0)
202-
poltergeist (1.17.0)
203-
capybara (~> 2.1)
212+
poltergeist (1.18.1)
213+
capybara (>= 2.1, < 4)
204214
cliver (~> 0.3.1)
205215
websocket-driver (>= 0.2.0)
206216
powerpack (0.1.1)
207-
public_suffix (3.0.2)
217+
public_suffix (3.1.1)
208218
puma (3.11.3)
209-
rack (1.6.11)
219+
rack (2.0.7)
210220
rack-test (0.6.3)
211221
rack (>= 1.0)
212-
rails (4.2.11.1)
213-
actionmailer (= 4.2.11.1)
214-
actionpack (= 4.2.11.1)
215-
actionview (= 4.2.11.1)
216-
activejob (= 4.2.11.1)
217-
activemodel (= 4.2.11.1)
218-
activerecord (= 4.2.11.1)
219-
activesupport (= 4.2.11.1)
220-
bundler (>= 1.3.0, < 2.0)
221-
railties (= 4.2.11.1)
222-
sprockets-rails
223-
rails-deprecated_sanitizer (1.0.3)
224-
activesupport (>= 4.2.0.alpha)
225-
rails-dom-testing (1.0.9)
226-
activesupport (>= 4.2.0, < 5.0)
227-
nokogiri (~> 1.6)
228-
rails-deprecated_sanitizer (>= 1.0.1)
222+
rails (5.0.7.2)
223+
actioncable (= 5.0.7.2)
224+
actionmailer (= 5.0.7.2)
225+
actionpack (= 5.0.7.2)
226+
actionview (= 5.0.7.2)
227+
activejob (= 5.0.7.2)
228+
activemodel (= 5.0.7.2)
229+
activerecord (= 5.0.7.2)
230+
activesupport (= 5.0.7.2)
231+
bundler (>= 1.3.0)
232+
railties (= 5.0.7.2)
233+
sprockets-rails (>= 2.0.0)
234+
rails-dom-testing (2.0.3)
235+
activesupport (>= 4.2.0)
236+
nokogiri (>= 1.6)
229237
rails-html-sanitizer (1.0.4)
230238
loofah (~> 2.2, >= 2.2.2)
231-
rails-i18n (4.0.9)
232-
i18n (~> 0.7)
233-
railties (~> 4.0)
234-
railties (4.2.11.1)
235-
actionpack (= 4.2.11.1)
236-
activesupport (= 4.2.11.1)
239+
rails-i18n (5.1.3)
240+
i18n (>= 0.7, < 2)
241+
railties (>= 5.0, < 6)
242+
railties (5.0.7.2)
243+
actionpack (= 5.0.7.2)
244+
activesupport (= 5.0.7.2)
245+
method_source
237246
rake (>= 0.8.7)
238247
thor (>= 0.18.1, < 2.0)
239248
rainbow (3.0.0)
240-
rake (12.3.2)
249+
rake (12.3.3)
241250
rb-fsevent (0.10.3)
242251
rb-inotify (0.10.0)
243252
ffi (~> 1.0)
@@ -334,10 +343,10 @@ GEM
334343
addressable (>= 2.3.6)
335344
crack (>= 0.3.2)
336345
hashdiff
337-
websocket-driver (0.7.0)
346+
websocket-driver (0.6.5)
338347
websocket-extensions (>= 0.1.0)
339-
websocket-extensions (0.1.3)
340-
xpath (3.0.0)
348+
websocket-extensions (0.1.4)
349+
xpath (3.2.0)
341350
nokogiri (~> 1.8)
342351

343352
PLATFORMS
@@ -371,9 +380,9 @@ DEPENDENCIES
371380
ordinalize_full
372381
poltergeist
373382
puma
374-
rails (~> 4.2)
383+
rails (~> 5.0.0)
375384
rails-html-sanitizer
376-
rails-i18n
385+
rails-i18n (~> 5.1)
377386
redis
378387
rspec-rails
379388
rubocop

app/views/payment_options/payment_options.html.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
%h4= t 'payment_options.phone'
3232
.row-fluid
3333
.span9= f.input :phone_number, label: false, placeholder: t('payment_options.enter_phone'), required: payment_options.require_phone, input_html: { class: 'span12', value: payment_options.default_phone_number }
34-
.span3= f.input :phone_type, collection: payment_options.phone_types, label: false, required: payment_options.require_phone, include_blank: false, prompt: "", selected: payment_options.default_phone_type, input_html: { class: 'span12' }
34+
.span3= f.input :phone_type, collection: payment_options.phone_types, label: false, required: payment_options.require_phone, prompt: "", selected: payment_options.default_phone_type, input_html: { class: 'span12' }
3535

3636
- unless payment_options.pickup_point?
3737
.row-fluid

features/support/env.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
ActionController::Base.allow_rescue = true
77

88
require "capybara/poltergeist"
9-
Capybara.javascript_driver = :poltergeist
9+
# Capybara.javascript_driver = :poltergeist
10+
11+
Capybara.register_driver :poltergeist_debug do |app|
12+
Capybara::Poltergeist::Driver.new(app, debug: true)
13+
end
14+
Capybara.javascript_driver = :poltergeist_debug
1015

1116
require "capybara-screenshot/cucumber"
1217

0 commit comments

Comments
 (0)