Skip to content

Commit 4ba07b9

Browse files
committed
Changes to gems and syntax
1 parent f5dfdb6 commit 4ba07b9

File tree

11 files changed

+394
-342
lines changed

11 files changed

+394
-342
lines changed

Gemfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ gem 'json'
1313
gem 'jbuilder'
1414
gem 'bcrypt-ruby', '~> 3.1.2'
1515

16-
gem 'doorkeeper', '~> 1.4.1'
16+
gem 'doorkeeper', '~> 4.3.2'
1717
gem 'omniauth', '~> 1.8.1'
18+
gem 'omniauth-identity'
1819

1920
gem 'figaro'
2021
gem 'hashie'
@@ -40,12 +41,13 @@ gem 'pusher'
4041
gem 'eventmachine', '~> 1.0.4'
4142
gem 'em-websocket', '~> 0.5.1'
4243

43-
gem 'simple_form', '~> 3.5.1'
44+
gem 'simple_form', '~> 4.0.1'
4445
gem 'slim-rails'
4546
gem 'sass-rails', '~> 5.0.7'
4647
gem 'coffee-rails'
4748
gem 'uglifier'
4849
gem "jquery-rails"
50+
gem 'simple_form_extension'
4951
gem "angularjs-rails"
5052
gem 'bootstrap-sass', '~> 3.2.0.2'
5153
gem 'bootstrap-wysihtml5-rails'

Gemfile.lock

+34-7
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,15 @@ GEM
137137
debug_inspector (0.0.3)
138138
descendants_tracker (0.0.4)
139139
thread_safe (~> 0.3, >= 0.3.1)
140+
devise (4.4.3)
141+
bcrypt (~> 3.0)
142+
orm_adapter (~> 0.1)
143+
railties (>= 4.1.0, < 6.0)
144+
responders
145+
warden (~> 1.2.3)
140146
diff-lcs (1.3)
141-
doorkeeper (1.4.2)
142-
railties (>= 3.1)
147+
doorkeeper (4.3.2)
148+
railties (>= 4.2)
143149
dotenv (2.5.0)
144150
dotenv-rails (2.5.0)
145151
dotenv (= 2.5.0)
@@ -276,7 +282,11 @@ GEM
276282
omniauth (1.8.1)
277283
hashie (>= 3.4.6, < 3.6.0)
278284
rack (>= 1.6.2, < 3)
285+
omniauth-identity (1.1.1)
286+
bcrypt-ruby (~> 3.0)
287+
omniauth (~> 1.0)
279288
open4 (1.3.4)
289+
orm_adapter (0.5.0)
280290
paper_trail (9.2.0)
281291
activerecord (>= 4.2, < 5.3)
282292
paper_trail-association_tracking (< 2)
@@ -346,6 +356,10 @@ GEM
346356
rb-inotify (0.9.10)
347357
ffi (>= 0.5.0, < 2)
348358
rbtree (0.4.2)
359+
redactor-rails (0.5.0)
360+
devise
361+
mime-types
362+
orm_adapter
349363
redis (4.0.1)
350364
redis-actionpack (5.0.2)
351365
actionpack (>= 4.0, < 6)
@@ -365,6 +379,9 @@ GEM
365379
redis (>= 2.2, < 5)
366380
request_store (1.4.1)
367381
rack (>= 1.4)
382+
responders (2.4.0)
383+
actionpack (>= 4.2.0, < 5.3)
384+
railties (>= 4.2.0, < 5.3)
368385
rest-client (1.6.9)
369386
mime-types (~> 1.16)
370387
rotp (3.3.1)
@@ -400,16 +417,22 @@ GEM
400417
sprockets (>= 2.8, < 4.0)
401418
sprockets-rails (>= 2.0, < 4.0)
402419
tilt (>= 1.1, < 3)
420+
selectize-rails (0.12.5)
403421
selenium-webdriver (3.14.0)
404422
childprocess (~> 0.5)
405423
rubyzip (~> 1.2)
406424
shoulda-matchers (3.1.2)
407425
activesupport (>= 4.0.0)
408426
simple_captcha2 (0.4.3)
409427
rails (>= 4.1)
410-
simple_form (3.5.1)
411-
actionpack (> 4, < 5.2)
412-
activemodel (> 4, < 5.2)
428+
simple_form (4.0.1)
429+
actionpack (>= 5.0)
430+
activemodel (>= 5.0)
431+
simple_form_extension (1.4.12)
432+
rails (>= 3.1)
433+
redactor-rails
434+
selectize-rails
435+
simple_form
413436
slim (3.0.9)
414437
temple (>= 0.7.6, < 0.9)
415438
tilt (>= 1.3.3, < 2.1)
@@ -445,6 +468,8 @@ GEM
445468
coercible (~> 1.0)
446469
descendants_tracker (~> 0.0, >= 0.0.3)
447470
equalizer (~> 0.0, >= 0.0.9)
471+
warden (1.2.7)
472+
rack (>= 1.0)
448473
websocket-driver (0.6.5)
449474
websocket-extensions (>= 0.1.0)
450475
websocket-extensions (0.1.3)
@@ -479,7 +504,7 @@ DEPENDENCIES
479504
daemons-rails
480505
database_cleaner
481506
datagrid
482-
doorkeeper (~> 1.4.1)
507+
doorkeeper (~> 4.3.2)
483508
dotenv-rails
484509
easy_table
485510
eco
@@ -511,6 +536,7 @@ DEPENDENCIES
511536
momentjs-rails
512537
mysql2 (~> 0.3.21)
513538
omniauth (~> 1.8.1)
539+
omniauth-identity
514540
paper_trail (~> 9.2.0)
515541
paranoid2
516542
phonelib (~> 0.3.5)
@@ -532,7 +558,8 @@ DEPENDENCIES
532558
selenium-webdriver
533559
shoulda-matchers
534560
simple_captcha2
535-
simple_form (~> 3.5.1)
561+
simple_form (~> 4.0.1)
562+
simple_form_extension
536563
slim-rails
537564
test-unit
538565
timecop

app/assets/stylesheets/application.css.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@import "bourbon";
2-
2+
@import "simple_form_extension";
33
@import 'vars/bootstrap';
44

55
@import 'bootstrap';

app/models/deposit.rb

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ class Deposit < ActiveRecord::Base
44
extend Enumerize
55

66
include AASM
7-
include AASM::Locking
87
include Currencible
98

109
has_paper_trail on: [:update, :destroy]

app/models/withdraw.rb

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class Withdraw < ActiveRecord::Base
66
extend Enumerize
77

88
include AASM
9-
include AASM::Locking
109
include Currencible
1110

1211
has_paper_trail on: [:update, :destroy]

config/application.rb

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
require File.expand_path('../boot', __FILE__)
1+
require_relative 'boot'
22

3-
# Pick the frameworks you want:
4-
require "active_record/railtie"
5-
require "action_controller/railtie"
6-
require "action_mailer/railtie"
7-
require "sprockets/railtie"
8-
# require "rails/test_unit/railtie"
3+
require 'rails/all'
94

105
# Require the gems listed in Gemfile, including any gems
116
# you've limited to :test, :development, or :production.
@@ -28,7 +23,6 @@ class Application < Rails::Application
2823
config.i18n.available_locales = ['en', 'zh-CN', 'ko']
2924

3025
config.autoload_paths += %W(#{config.root}/lib #{config.root}/lib/extras)
31-
3226
#config.assets.precompile += ['bootstrap-datetimepicker.css']
3327
config.assets.initialize_on_precompile = true
3428

config/environments/production.rb

-2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,4 @@
9393
# Use default logging formatter so that PID and timestamp are not suppressed.
9494
config.log_formatter = ::Logger::Formatter.new
9595
config.active_record.default_timezone = :local
96-
97-
config.middleware.insert_before Rack::Runtime, Middleware::Security
9896
end

config/initializers/assets.rb

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

33
# Version of your assets, change this if you want to expire all your assets.
44
Rails.application.config.assets.version = '1.0'
5+
Rails.application.config.assets.precompile += %w( html5.js market.css market.js )
56

67
# Add additional assets to the asset load path
78
# Rails.application.config.assets.paths << Emoji.images_path

config/locales/simple_form.en.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
en:
2+
simple_form:
3+
"yes": 'Yes'
4+
"no": 'No'
5+
required:
6+
text: 'required'
7+
mark: '*'
8+
# You can uncomment the line below if you need to overwrite the whole required html.
9+
# When using html, text and mark won't be used.
10+
# html: '<abbr title="required">*</abbr>'
11+
error_notification:
12+
default_message: "Please review the problems below:"
13+
# Examples
14+
# labels:
15+
# defaults:
16+
# password: 'Password'
17+
# user:
18+
# new:
19+
# email: 'E-mail to sign in.'
20+
# edit:
21+
# email: 'E-mail.'
22+
# hints:
23+
# defaults:
24+
# username: 'User name to sign in.'
25+
# password: 'No special characters, please.'
26+
# include_blanks:
27+
# defaults:
28+
# age: 'Rather not say'
29+
# prompts:
30+
# defaults:
31+
# age: 'Select your age'

0 commit comments

Comments
 (0)