Skip to content

Commit 0ef8ada

Browse files
committed
Merge branch 'master' of https://github.com/yxlau/project_djello
2 parents e1f4a78 + e3c6e80 commit 0ef8ada

File tree

8 files changed

+136
-117
lines changed

8 files changed

+136
-117
lines changed

Diff for: .ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.4.10

Diff for: Gemfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ git_source(:github) do |repo_name|
55
"https://github.com/#{repo_name}.git"
66
end
77

8-
98
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
109
gem 'rails', '~> 5.0.2'
1110
# Use postgresql as the database for Active Record
@@ -18,7 +17,7 @@ gem 'jbuilder', '~> 2.5'
1817
# gem 'redis', '~> 3.0'
1918
# Use ActiveModel has_secure_password
2019
gem 'bcrypt', '~> 3.1.7'
21-
gem 'knock'
20+
gem 'knock', '~> 2.1.1'
2221
gem 'jwt'
2322
gem 'responders'
2423

@@ -36,8 +35,8 @@ group :development, :test do
3635
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
3736
gem 'byebug', platform: :mri
3837
gem 'jazz_fingers'
39-
gem 'rspec-rails'
40-
gem 'factory_bot_rails'
38+
gem 'rspec-rails', '3.5.2'
39+
gem 'factory_bot_rails', '4.8.2'
4140
end
4241

4342
group :development do

Diff for: Gemfile.lock

+102-110
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,93 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (5.0.6)
5-
actionpack (= 5.0.6)
4+
actioncable (5.0.7.2)
5+
actionpack (= 5.0.7.2)
66
nio4r (>= 1.2, < 3.0)
77
websocket-driver (~> 0.6.1)
8-
actionmailer (5.0.6)
9-
actionpack (= 5.0.6)
10-
actionview (= 5.0.6)
11-
activejob (= 5.0.6)
8+
actionmailer (5.0.7.2)
9+
actionpack (= 5.0.7.2)
10+
actionview (= 5.0.7.2)
11+
activejob (= 5.0.7.2)
1212
mail (~> 2.5, >= 2.5.4)
1313
rails-dom-testing (~> 2.0)
14-
actionpack (5.0.6)
15-
actionview (= 5.0.6)
16-
activesupport (= 5.0.6)
14+
actionpack (5.0.7.2)
15+
actionview (= 5.0.7.2)
16+
activesupport (= 5.0.7.2)
1717
rack (~> 2.0)
1818
rack-test (~> 0.6.3)
1919
rails-dom-testing (~> 2.0)
2020
rails-html-sanitizer (~> 1.0, >= 1.0.2)
21-
actionview (5.0.6)
22-
activesupport (= 5.0.6)
21+
actionview (5.0.7.2)
22+
activesupport (= 5.0.7.2)
2323
builder (~> 3.1)
2424
erubis (~> 2.7.0)
2525
rails-dom-testing (~> 2.0)
2626
rails-html-sanitizer (~> 1.0, >= 1.0.3)
27-
activejob (5.0.6)
28-
activesupport (= 5.0.6)
27+
activejob (5.0.7.2)
28+
activesupport (= 5.0.7.2)
2929
globalid (>= 0.3.6)
30-
activemodel (5.0.6)
31-
activesupport (= 5.0.6)
32-
activerecord (5.0.6)
33-
activemodel (= 5.0.6)
34-
activesupport (= 5.0.6)
30+
activemodel (5.0.7.2)
31+
activesupport (= 5.0.7.2)
32+
activerecord (5.0.7.2)
33+
activemodel (= 5.0.7.2)
34+
activesupport (= 5.0.7.2)
3535
arel (~> 7.0)
36-
activesupport (5.0.6)
36+
activesupport (5.0.7.2)
3737
concurrent-ruby (~> 1.0, >= 1.0.2)
38-
i18n (~> 0.7)
38+
i18n (>= 0.7, < 2)
3939
minitest (~> 5.1)
4040
tzinfo (~> 1.1)
4141
arel (7.1.4)
42-
awesome_print (1.8.0)
43-
bcrypt (3.1.11)
44-
builder (3.2.3)
45-
bullet (5.5.1)
42+
awesome_print (1.9.2)
43+
bcrypt (3.1.20)
44+
builder (3.2.4)
45+
bullet (7.1.6)
4646
activesupport (>= 3.0.0)
47-
uniform_notifier (~> 1.10.0)
48-
byebug (9.1.0)
49-
coderay (1.1.2)
50-
concurrent-ruby (1.0.5)
47+
uniform_notifier (~> 1.11)
48+
byebug (11.1.3)
49+
coderay (1.1.3)
50+
concurrent-ruby (1.2.3)
5151
coolline (0.5.0)
5252
unicode_utils (~> 1.4)
53-
crass (1.0.2)
54-
diff-lcs (1.3)
53+
crass (1.0.6)
54+
diff-lcs (1.5.1)
5555
erubis (2.7.0)
5656
factory_bot (4.8.2)
5757
activesupport (>= 3.0.0)
5858
factory_bot_rails (4.8.2)
5959
factory_bot (~> 4.8.2)
6060
railties (>= 3.0.0)
61-
faker (1.8.4)
62-
i18n (~> 0.5)
63-
ffi (1.9.18)
64-
formatador (0.2.5)
65-
globalid (0.4.0)
61+
faker (2.12.0)
62+
i18n (>= 1.6, < 2)
63+
ffi (1.15.5)
64+
formatador (1.1.0)
65+
globalid (0.4.2)
6666
activesupport (>= 4.2.0)
67-
guard (2.14.1)
67+
guard (2.18.1)
6868
formatador (>= 0.2.4)
6969
listen (>= 2.7, < 4.0)
70-
lumberjack (~> 1.0)
70+
lumberjack (>= 1.0.12, < 2.0)
7171
nenv (~> 0.1)
7272
notiffany (~> 0.0)
73-
pry (>= 0.9.12)
73+
pry (>= 0.13.0)
7474
shellany (~> 0.0)
7575
thor (>= 0.18.1)
7676
guard-compat (1.2.1)
7777
guard-rspec (4.7.3)
7878
guard (~> 2.1)
7979
guard-compat (~> 1.1)
8080
rspec (>= 2.99.0, < 4.0)
81-
hirb (0.7.3)
82-
i18n (0.9.0)
81+
i18n (1.14.4)
8382
concurrent-ruby (~> 1.0)
84-
jazz_fingers (4.0.1)
83+
jazz_fingers (5.2.2)
8584
awesome_print (~> 1.6)
86-
hirb (~> 0.7)
8785
pry (~> 0.10)
8886
pry-byebug (~> 3.4)
8987
pry-coolline (~> 0.2)
90-
pry-doc (~> 0.6)
91-
jbuilder (2.7.0)
92-
activesupport (>= 4.2.0)
93-
multi_json (>= 1.2)
88+
jbuilder (2.11.5)
89+
actionview (>= 5.0.0)
90+
activesupport (>= 5.0.0)
9491
jwt (1.5.6)
9592
knock (2.1.1)
9693
bcrypt (~> 3.1)
@@ -99,73 +96,70 @@ GEM
9996
listen (3.0.8)
10097
rb-fsevent (~> 0.9, >= 0.9.4)
10198
rb-inotify (~> 0.9, >= 0.9.7)
102-
loofah (2.1.1)
99+
loofah (2.21.1)
103100
crass (~> 1.0.2)
104101
nokogiri (>= 1.5.9)
105-
lumberjack (1.0.11)
106-
mail (2.6.6)
107-
mime-types (>= 1.16, < 4)
108-
method_source (0.9.0)
109-
mime-types (3.1)
110-
mime-types-data (~> 3.2015)
111-
mime-types-data (3.2016.0521)
112-
mini_portile2 (2.3.0)
113-
minitest (5.10.3)
114-
multi_json (1.12.1)
102+
lumberjack (1.2.10)
103+
mail (2.7.1)
104+
mini_mime (>= 0.1.1)
105+
method_source (1.0.0)
106+
mini_mime (1.1.2)
107+
mini_portile2 (2.4.0)
108+
minitest (5.15.0)
115109
nenv (0.3.0)
116-
nio4r (2.1.0)
117-
nokogiri (1.8.1)
118-
mini_portile2 (~> 2.3.0)
119-
notiffany (0.1.1)
110+
nio4r (2.7.0)
111+
nokogiri (1.10.10)
112+
mini_portile2 (~> 2.4.0)
113+
notiffany (0.1.3)
120114
nenv (~> 0.1)
121115
shellany (~> 0.0)
122116
pg (0.21.0)
123-
pry (0.11.2)
124-
coderay (~> 1.1.0)
125-
method_source (~> 0.9.0)
126-
pry-byebug (3.5.0)
127-
byebug (~> 9.1)
117+
pry (0.14.2)
118+
coderay (~> 1.1)
119+
method_source (~> 1.0)
120+
pry-byebug (3.8.0)
121+
byebug (~> 11.0)
128122
pry (~> 0.10)
129-
pry-coolline (0.2.5)
123+
pry-coolline (0.2.6)
130124
coolline (~> 0.5)
131-
pry-doc (0.11.1)
132-
pry (~> 0.9)
133-
yard (~> 0.9)
134-
puma (3.10.0)
135-
rack (2.0.3)
136-
rack-cors (0.4.1)
125+
pry (~> 0.13)
126+
puma (3.12.6)
127+
rack (2.2.8.1)
128+
rack-cors (2.0.2)
129+
rack (>= 2.0.0)
137130
rack-test (0.6.3)
138131
rack (>= 1.0)
139-
rails (5.0.6)
140-
actioncable (= 5.0.6)
141-
actionmailer (= 5.0.6)
142-
actionpack (= 5.0.6)
143-
actionview (= 5.0.6)
144-
activejob (= 5.0.6)
145-
activemodel (= 5.0.6)
146-
activerecord (= 5.0.6)
147-
activesupport (= 5.0.6)
132+
rails (5.0.7.2)
133+
actioncable (= 5.0.7.2)
134+
actionmailer (= 5.0.7.2)
135+
actionpack (= 5.0.7.2)
136+
actionview (= 5.0.7.2)
137+
activejob (= 5.0.7.2)
138+
activemodel (= 5.0.7.2)
139+
activerecord (= 5.0.7.2)
140+
activesupport (= 5.0.7.2)
148141
bundler (>= 1.3.0)
149-
railties (= 5.0.6)
142+
railties (= 5.0.7.2)
150143
sprockets-rails (>= 2.0.0)
151-
rails-dom-testing (2.0.3)
152-
activesupport (>= 4.2.0)
144+
rails-dom-testing (2.1.1)
145+
activesupport (>= 5.0.0)
146+
minitest
153147
nokogiri (>= 1.6)
154-
rails-html-sanitizer (1.0.3)
155-
loofah (~> 2.0)
156-
railties (5.0.6)
157-
actionpack (= 5.0.6)
158-
activesupport (= 5.0.6)
148+
rails-html-sanitizer (1.5.0)
149+
loofah (~> 2.19, >= 2.19.1)
150+
railties (5.0.7.2)
151+
actionpack (= 5.0.7.2)
152+
activesupport (= 5.0.7.2)
159153
method_source
160154
rake (>= 0.8.7)
161155
thor (>= 0.18.1, < 2.0)
162-
rake (12.1.0)
163-
rb-fsevent (0.10.2)
164-
rb-inotify (0.9.10)
165-
ffi (>= 0.5.0, < 2)
166-
responders (2.4.0)
167-
actionpack (>= 4.2.0, < 5.3)
168-
railties (>= 4.2.0, < 5.3)
156+
rake (13.1.0)
157+
rb-fsevent (0.11.2)
158+
rb-inotify (0.10.1)
159+
ffi (~> 1.0)
160+
responders (3.0.1)
161+
actionpack (>= 5.0)
162+
railties (>= 5.0)
169163
rspec (3.5.0)
170164
rspec-core (~> 3.5.0)
171165
rspec-expectations (~> 3.5.0)
@@ -188,28 +182,26 @@ GEM
188182
rspec-support (~> 3.5.0)
189183
rspec-support (3.5.0)
190184
shellany (0.0.1)
191-
spring (2.0.2)
192-
activesupport (>= 4.2)
185+
spring (2.1.1)
193186
spring-watcher-listen (2.0.1)
194187
listen (>= 2.7, < 4.0)
195188
spring (>= 1.2, < 3.0)
196-
sprockets (3.7.1)
189+
sprockets (3.7.2)
197190
concurrent-ruby (~> 1.0)
198191
rack (> 1, < 3)
199-
sprockets-rails (3.2.1)
192+
sprockets-rails (3.2.2)
200193
actionpack (>= 4.0)
201194
activesupport (>= 4.0)
202195
sprockets (>= 3.0.0)
203-
thor (0.20.0)
196+
thor (1.2.2)
204197
thread_safe (0.3.6)
205-
tzinfo (1.2.3)
198+
tzinfo (1.2.11)
206199
thread_safe (~> 0.1)
207200
unicode_utils (1.4.0)
208-
uniform_notifier (1.10.0)
201+
uniform_notifier (1.16.0)
209202
websocket-driver (0.6.5)
210203
websocket-extensions (>= 0.1.0)
211-
websocket-extensions (0.1.2)
212-
yard (0.9.9)
204+
websocket-extensions (0.1.5)
213205

214206
PLATFORMS
215207
ruby
@@ -218,23 +210,23 @@ DEPENDENCIES
218210
bcrypt (~> 3.1.7)
219211
bullet
220212
byebug
221-
factory_bot_rails
213+
factory_bot_rails (= 4.8.2)
222214
faker
223215
guard-rspec
224216
jazz_fingers
225217
jbuilder (~> 2.5)
226218
jwt
227-
knock
219+
knock (~> 2.1.1)
228220
listen (~> 3.0.5)
229221
pg (~> 0.18)
230222
puma (~> 3.0)
231223
rack-cors
232224
rails (~> 5.0.2)
233225
responders
234-
rspec-rails
226+
rspec-rails (= 3.5.2)
235227
spring
236228
spring-watcher-listen (~> 2.0.0)
237229
tzinfo-data
238230

239231
BUNDLED WITH
240-
1.15.4
232+
1.17.3

Diff for: bin/render-build.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
# exit on error
3+
set -o errexit
4+
5+
bundle install
6+
bundle exec rake db:migrate
7+
bundle exec rake db:seed

Diff for: config/environments/production.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
# Disable serving static files from the `/public` folder by default since
1818
# Apache or NGINX already handles this.
19-
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
19+
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
20+
2021

2122

2223
# Enable serving of images, stylesheets, and JavaScripts from an asset server.

Diff for: config/initializers/cors.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
Rails.application.config.middleware.insert_before 0, Rack::Cors do
99
allow do
10-
origins ENV['CORS_ORIGINS']
10+
origins '*'
11+
# origins ENV['CORS_ORIGINS']
1112
resource '*',
1213
headers: :any,
1314
:methods => [:get, :post, :put, :delete]

0 commit comments

Comments
 (0)