Skip to content

Commit 93c0237

Browse files
Upgrading to Rails 4.0.13
1 parent 96c7bfe commit 93c0237

File tree

138 files changed

+2137
-2266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+2137
-2266
lines changed

.rspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
--color
2-
--profile
2+
--require spec_helper

Gemfile

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
source 'https://rubygems.org'
22

3-
gem 'rails', '~> 4.0.12'
3+
gem 'rails', '~> 4.0.13'
44
gem 'rails-i18n'
5+
gem 'rake', '< 11.0'
56

67
gem 'mysql2', '~> 0.3.21'
78
gem 'daemons-rails'
@@ -70,7 +71,7 @@ gem 'simple_captcha2', require: 'simple_captcha'
7071
gem 'rest-client', '~> 1.6.8'
7172

7273
group :development, :test do
73-
gem 'factory_girl_rails'
74+
gem 'factory_bot_rails'
7475
gem 'faker', '~> 1.4.3'
7576
gem 'mina'
7677
gem 'mina-slack', github: 'InfraexDev/mina-slack'
@@ -87,13 +88,13 @@ group :development, :test do
8788
end
8889

8990
group :test do
90-
gem 'database_cleaner'
91-
gem 'mocha', :require => false
92-
gem 'shoulda-matchers'
9391
gem 'capybara'
92+
gem 'database_cleaner'
9493
gem 'launchy'
95-
gem 'selenium-webdriver'
94+
gem 'mocha', :require => false
9695
gem 'poltergeist'
96+
gem 'selenium-webdriver'
97+
gem 'shoulda-matchers'
9798

9899
# rspec-rails rely on test-unit if rails version less then 4.1.0
99100
# but test-unit has been removed from ruby core since 2.2.0

Gemfile.lock

+42-36
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ GEM
1717
remote: https://rubygems.org/
1818
specs:
1919
aasm (3.4.0)
20-
actionmailer (4.0.12)
21-
actionpack (= 4.0.12)
20+
actionmailer (4.0.13)
21+
actionpack (= 4.0.13)
2222
mail (~> 2.5, >= 2.5.4)
23-
actionpack (4.0.12)
24-
activesupport (= 4.0.12)
23+
actionpack (4.0.13)
24+
activesupport (= 4.0.13)
2525
builder (~> 3.1.0)
2626
erubis (~> 2.7.0)
2727
rack (~> 1.5.2)
2828
rack-test (~> 0.6.2)
2929
active_hash (1.3.0)
3030
activesupport (>= 2.2.2)
31-
activemodel (4.0.12)
32-
activesupport (= 4.0.12)
31+
activemodel (4.0.13)
32+
activesupport (= 4.0.13)
3333
builder (~> 3.1.0)
34-
activerecord (4.0.12)
35-
activemodel (= 4.0.12)
34+
activerecord (4.0.13)
35+
activemodel (= 4.0.13)
3636
activerecord-deprecated_finders (~> 1.0.2)
37-
activesupport (= 4.0.12)
37+
activesupport (= 4.0.13)
3838
arel (~> 4.0.0)
39-
activerecord-deprecated_finders (1.0.3)
40-
activesupport (4.0.12)
39+
activerecord-deprecated_finders (1.0.4)
40+
activesupport (4.0.13)
4141
i18n (~> 0.6, >= 0.6.9)
4242
minitest (~> 4.2)
4343
multi_json (~> 1.3)
@@ -52,7 +52,7 @@ GEM
5252
eventmachine
5353
angularjs-rails (1.3.15)
5454
arel (4.0.2)
55-
atomic (1.1.99)
55+
atomic (1.1.101)
5656
awesome_print (1.2.0)
5757
axiom-types (0.1.0)
5858
descendants_tracker (~> 0.0.3)
@@ -106,6 +106,7 @@ GEM
106106
execjs
107107
coffee-script-source (1.7.0)
108108
columnize (0.3.6)
109+
concurrent-ruby (1.0.5)
109110
countries (0.9.3)
110111
currencies (~> 0.4.2)
111112
country_select (2.1.0)
@@ -145,10 +146,10 @@ GEM
145146
erubis (2.7.0)
146147
eventmachine (1.0.4)
147148
execjs (2.2.1)
148-
factory_girl (4.3.0)
149+
factory_bot (4.10.0)
149150
activesupport (>= 3.0.0)
150-
factory_girl_rails (4.3.0)
151-
factory_girl (~> 4.3.0)
151+
factory_bot_rails (4.10.0)
152+
factory_bot (~> 4.10.0)
152153
railties (>= 3.0.0)
153154
faker (1.4.3)
154155
i18n (~> 0.5)
@@ -188,7 +189,8 @@ GEM
188189
http_accept_language (2.0.1)
189190
http_parser.rb (0.6.0)
190191
httpclient (2.3.4.1)
191-
i18n (0.7.0)
192+
i18n (0.9.5)
193+
concurrent-ruby (~> 1.0)
192194
ice_nine (0.11.0)
193195
jbuilder (2.0.2)
194196
activesupport (>= 3.0.0)
@@ -208,8 +210,8 @@ GEM
208210
addressable (~> 2.3)
209211
liability-proof (0.0.9)
210212
awesome_print
211-
mail (2.6.3)
212-
mime-types (>= 1.16, < 3)
213+
mail (2.7.0)
214+
mini_mime (>= 0.1.1)
213215
mails_viewer (0.1.2)
214216
jquery-datatables-rails
215217
jquery-rails (>= 2.0.1)
@@ -224,13 +226,14 @@ GEM
224226
mina (0.3.0)
225227
open4
226228
rake
229+
mini_mime (1.0.0)
227230
mini_portile (0.6.2)
228231
minitest (4.7.5)
229232
mocha (1.0.0)
230233
metaclass (~> 0.0.1)
231234
momentjs-rails (2.5.1)
232235
railties (>= 3.1)
233-
multi_json (1.10.1)
236+
multi_json (1.13.1)
234237
multi_xml (0.5.5)
235238
mysql2 (0.3.21)
236239
nokogiri (1.6.5)
@@ -260,13 +263,14 @@ GEM
260263
slop (~> 3.4)
261264
pry-rails (0.3.2)
262265
pry (>= 0.9.10)
266+
puma (3.11.4)
263267
pusher (0.12.0)
264268
httpclient (~> 2.3.0)
265269
multi_json (~> 1.0)
266270
signature (~> 0.1.6)
267271
quiet_assets (1.0.2)
268272
railties (>= 3.1, < 5.0)
269-
rack (1.5.2)
273+
rack (1.5.5)
270274
rack-accept (0.4.5)
271275
rack (>= 0.4)
272276
rack-attack (3.0.0)
@@ -277,25 +281,25 @@ GEM
277281
rack (>= 1.0.0)
278282
rack-test (0.6.3)
279283
rack (>= 1.0)
280-
rails (4.0.12)
281-
actionmailer (= 4.0.12)
282-
actionpack (= 4.0.12)
283-
activerecord (= 4.0.12)
284-
activesupport (= 4.0.12)
284+
rails (4.0.13)
285+
actionmailer (= 4.0.13)
286+
actionpack (= 4.0.13)
287+
activerecord (= 4.0.13)
288+
activesupport (= 4.0.13)
285289
bundler (>= 1.3.0, < 2.0)
286-
railties (= 4.0.12)
290+
railties (= 4.0.13)
287291
sprockets-rails (~> 2.0)
288292
rails-i18n (4.0.1)
289293
i18n (~> 0.6)
290294
rails (~> 4.0)
291295
rails-observers (0.1.2)
292296
activemodel (~> 4.0)
293-
railties (4.0.12)
294-
actionpack (= 4.0.12)
295-
activesupport (= 4.0.12)
297+
railties (4.0.13)
298+
actionpack (= 4.0.13)
299+
activesupport (= 4.0.13)
296300
rake (>= 0.8.7)
297301
thor (>= 0.18.1, < 2.0)
298-
rake (10.4.2)
302+
rake (10.5.0)
299303
rbtree (0.4.2)
300304
rdoc (4.1.1)
301305
json (~> 1.4)
@@ -370,15 +374,15 @@ GEM
370374
multi_json (~> 1.0)
371375
rack (~> 1.0)
372376
tilt (~> 1.1, != 1.3.0)
373-
sprockets-rails (2.2.2)
377+
sprockets-rails (2.3.3)
374378
actionpack (>= 3.0)
375379
activesupport (>= 3.0)
376380
sprockets (>= 2.8, < 4.0)
377381
structured_warnings (0.1.4)
378382
temple (0.6.7)
379383
test-unit (3.0.8)
380384
power_assert
381-
thor (0.19.1)
385+
thor (0.20.0)
382386
thread_safe (0.1.3)
383387
atomic
384388
tilt (1.4.1)
@@ -387,7 +391,7 @@ GEM
387391
builder (>= 2.1.2)
388392
jwt (>= 0.1.2)
389393
multi_json (>= 1.3.0)
390-
tzinfo (0.3.42)
394+
tzinfo (0.3.54)
391395
uglifier (2.4.0)
392396
execjs (>= 0.3.0)
393397
json (>= 1.8.0)
@@ -439,7 +443,7 @@ DEPENDENCIES
439443
em-websocket (~> 0.5.1)
440444
enumerize
441445
eventmachine (~> 1.0.4)
442-
factory_girl_rails
446+
factory_bot_rails
443447
faker (~> 1.4.3)
444448
figaro
445449
font-awesome-sass
@@ -470,12 +474,14 @@ DEPENDENCIES
470474
phonelib (~> 0.3.5)
471475
poltergeist
472476
pry-rails
477+
puma
473478
pusher
474479
quiet_assets
475480
rack-attack (~> 3.0.0)
476-
rails (~> 4.0.12)
481+
rails (~> 4.0.13)
477482
rails-i18n
478483
rails-observers
484+
rake (< 11.0)
479485
rbtree
480486
redis-rails
481487
rest-client (~> 1.6.8)
@@ -495,4 +501,4 @@ DEPENDENCIES
495501
whenever (~> 0.9.2)
496502

497503
BUNDLED WITH
498-
1.16.1
504+
1.16.2

config/boot.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
# Set up gems listed in the Gemfile.
44
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
55

6-
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
6+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])

config/database.yml

+9
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,12 @@ production:
77
pool: 10
88
reconnect: true
99
host: <%= ENV["MYSQL_HOST"] %>
10+
11+
development: &defaults
12+
adapter: mysql2
13+
encoding: utf8
14+
database: peatio_v2_development
15+
username: root
16+
password: 12345
17+
pool: 10
18+
reconnect: true

config/environment.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Load the rails application
1+
# Load the Rails application.
22
require File.expand_path('../application', __FILE__)
33

4-
# Initialize the rails application
4+
# Initialize the Rails application.
55
Peatio::Application.initialize!

config/initializers/secret_token.rb

+12-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
Peatio::Application.config.secret_key_base = '4adeecaaba6c4a5474d9c8d7893dd1f4243abdcd58187d8e628d3cf0be1855b5f0b780f63de790e8eb3fde4ba032b4d183ce623ed321c296382d7946826fcc5e'
1+
# Be sure to restart your server when you modify this file.
2+
3+
# Your secret key is used for verifying the integrity of signed cookies.
4+
# If you change this key, all old signed cookies will become invalid!
5+
6+
# Make sure the secret is at least 30 characters and all random,
7+
# no regular words or you'll be exposed to dictionary attacks.
8+
# You can use `rake secret` to generate a secure secret key.
9+
10+
# Make sure your secret_key_base is kept private
11+
# if you're sharing your code publicly.
12+
Peatio::Application.config.secret_key_base = 'f712e69206796ba8932125cb932c5ea147f6ce6eb86e0e22659d61a8a4217b9b1c63ff35533e64324c239fb0cb4d7ebe9d78cb4e50d8ab5d51801079d5e63933'

config/initializers/session_store.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Be sure to restart your server when you modify this file.
2+
3+
Peatio::Application.config.session_store :cookie_store, key: '_peatio_session'

config/locales/en.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Files in the config/locales directory are used for internationalization
2+
# and are automatically loaded by Rails. If you want to use locales other
3+
# than English, add the necessary files in this directory.
4+
#
5+
# To use the locales, use `I18n.t`:
6+
#
7+
# I18n.t 'hello'
8+
#
9+
# In views, this is aliased to just `t`:
10+
#
11+
# <%= t('hello') %>
12+
#
13+
# To use a different locale, set it with `I18n.locale`:
14+
#
15+
# I18n.locale = :es
16+
#
17+
# This would use the information in config/locales/es.yml.
18+
#
19+
# To learn more, please read the Rails Internationalization guide
20+
# available at http://guides.rubyonrails.org/i18n.html.
21+
22+
en:
23+
hello: "Hello world"

0 commit comments

Comments
 (0)