Skip to content

Commit a1ef085

Browse files
committed
Add app
1 parent 1676a08 commit a1ef085

File tree

1,785 files changed

+17153
-49894
lines changed

Some content is hidden

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

1,785 files changed

+17153
-49894
lines changed

Gemfile

+4-23
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,8 @@ gem 'rails', '~> 5.2.1'
99
gem 'sqlite3'
1010
# Use Puma as the app server
1111
gem 'puma', '~> 3.11'
12-
# Use SCSS for stylesheets
13-
gem 'sass-rails', '~> 5.0'
14-
# Use Uglifier as compressor for JavaScript assets
15-
gem 'uglifier', '>= 1.3.0'
16-
# See https://github.com/rails/execjs#readme for more supported runtimes
17-
# gem 'mini_racer', platforms: :ruby
18-
19-
# Use CoffeeScript for .coffee assets and views
20-
gem 'coffee-rails', '~> 4.2'
21-
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
22-
gem 'turbolinks', '~> 5'
2312
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
24-
gem 'jbuilder', '~> 2.5'
13+
# gem 'jbuilder', '~> 2.5'
2514
# Use Redis adapter to run Action Cable in production
2615
# gem 'redis', '~> 4.0'
2716
# Use ActiveModel has_secure_password
@@ -33,32 +22,24 @@ gem 'jbuilder', '~> 2.5'
3322
# Use Capistrano for deployment
3423
# gem 'capistrano-rails', group: :development
3524

36-
gem 'jquery-rails'
37-
3825
# Reduces boot times through caching; required in config/boot.rb
3926
gem 'bootsnap', '>= 1.1.0', require: false
4027

28+
# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
29+
gem 'rack-cors'
30+
4131
group :development, :test do
4232
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
4333
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
4434
end
4535

4636
group :development do
47-
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
48-
gem 'web-console', '>= 3.3.0'
4937
gem 'listen', '>= 3.0.5', '< 3.2'
5038
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
5139
gem 'spring'
5240
gem 'spring-watcher-listen', '~> 2.0.0'
5341
end
5442

55-
group :test do
56-
# Adds support for Capybara system testing and selenium driver
57-
gem 'capybara', '>= 2.15'
58-
gem 'selenium-webdriver'
59-
# Easy installation and use of chromedriver to run system tests with Chrome
60-
gem 'chromedriver-helper'
61-
end
6243

6344
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
6445
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Gemfile.lock

+3-76
Original file line numberDiff line numberDiff line change
@@ -42,53 +42,19 @@ GEM
4242
i18n (>= 0.7, < 2)
4343
minitest (~> 5.1)
4444
tzinfo (~> 1.1)
45-
addressable (2.5.2)
46-
public_suffix (>= 2.0.2, < 4.0)
47-
archive-zip (0.11.0)
48-
io-like (~> 0.3.0)
4945
arel (9.0.0)
50-
bindex (0.5.0)
5146
bootsnap (1.3.2)
5247
msgpack (~> 1.0)
5348
builder (3.2.3)
5449
byebug (10.0.2)
55-
capybara (3.10.1)
56-
addressable
57-
mini_mime (>= 0.1.3)
58-
nokogiri (~> 1.8)
59-
rack (>= 1.6.0)
60-
rack-test (>= 0.6.3)
61-
regexp_parser (~> 1.2)
62-
xpath (~> 3.2)
63-
childprocess (0.9.0)
64-
ffi (~> 1.0, >= 1.0.11)
65-
chromedriver-helper (2.1.0)
66-
archive-zip (~> 0.10)
67-
nokogiri (~> 1.8)
68-
coffee-rails (4.2.2)
69-
coffee-script (>= 2.2.0)
70-
railties (>= 4.0.0)
71-
coffee-script (2.4.1)
72-
coffee-script-source
73-
execjs
74-
coffee-script-source (1.12.2)
7550
concurrent-ruby (1.1.3)
7651
crass (1.0.4)
7752
erubi (1.7.1)
78-
execjs (2.7.0)
7953
ffi (1.9.25)
8054
globalid (0.4.1)
8155
activesupport (>= 4.2.0)
8256
i18n (1.1.1)
8357
concurrent-ruby (~> 1.0)
84-
io-like (0.3.0)
85-
jbuilder (2.8.0)
86-
activesupport (>= 4.2.0)
87-
multi_json (>= 1.2)
88-
jquery-rails (4.3.3)
89-
rails-dom-testing (>= 1, < 3)
90-
railties (>= 4.2.0)
91-
thor (>= 0.14, < 2.0)
9258
listen (3.1.5)
9359
rb-fsevent (~> 0.9, >= 0.9.4)
9460
rb-inotify (~> 0.9, >= 0.9.7)
@@ -106,13 +72,12 @@ GEM
10672
mini_portile2 (2.3.0)
10773
minitest (5.11.3)
10874
msgpack (1.2.4)
109-
multi_json (1.13.1)
11075
nio4r (2.3.1)
11176
nokogiri (1.8.5)
11277
mini_portile2 (~> 2.3.0)
113-
public_suffix (3.0.3)
11478
puma (3.12.0)
11579
rack (2.0.6)
80+
rack-cors (1.0.2)
11681
rack-test (1.1.0)
11782
rack (>= 1.0, < 3)
11883
rails (5.2.1)
@@ -143,23 +108,7 @@ GEM
143108
rb-fsevent (0.10.3)
144109
rb-inotify (0.9.10)
145110
ffi (>= 0.5.0, < 2)
146-
regexp_parser (1.2.0)
147111
ruby_dep (1.5.0)
148-
rubyzip (1.2.2)
149-
sass (3.7.2)
150-
sass-listen (~> 4.0.0)
151-
sass-listen (4.0.0)
152-
rb-fsevent (~> 0.9, >= 0.9.4)
153-
rb-inotify (~> 0.9, >= 0.9.7)
154-
sass-rails (5.0.7)
155-
railties (>= 4.0.0, < 6)
156-
sass (~> 3.1)
157-
sprockets (>= 2.8, < 4.0)
158-
sprockets-rails (>= 2.0, < 4.0)
159-
tilt (>= 1.1, < 3)
160-
selenium-webdriver (3.141.0)
161-
childprocess (~> 0.5)
162-
rubyzip (~> 1.2, >= 1.2.2)
163112
spring (2.0.2)
164113
activesupport (>= 4.2)
165114
spring-watcher-listen (2.0.1)
@@ -173,50 +122,28 @@ GEM
173122
activesupport (>= 4.0)
174123
sprockets (>= 3.0.0)
175124
sqlite3 (1.3.13)
176-
thor (0.20.0)
125+
thor (0.20.3)
177126
thread_safe (0.3.6)
178-
tilt (2.0.8)
179-
turbolinks (5.2.0)
180-
turbolinks-source (~> 5.2)
181-
turbolinks-source (5.2.0)
182127
tzinfo (1.2.5)
183128
thread_safe (~> 0.1)
184-
uglifier (4.1.19)
185-
execjs (>= 0.3.0, < 3)
186-
web-console (3.7.0)
187-
actionview (>= 5.0)
188-
activemodel (>= 5.0)
189-
bindex (>= 0.4.0)
190-
railties (>= 5.0)
191129
websocket-driver (0.7.0)
192130
websocket-extensions (>= 0.1.0)
193131
websocket-extensions (0.1.3)
194-
xpath (3.2.0)
195-
nokogiri (~> 1.8)
196132

197133
PLATFORMS
198134
ruby
199135

200136
DEPENDENCIES
201137
bootsnap (>= 1.1.0)
202138
byebug
203-
capybara (>= 2.15)
204-
chromedriver-helper
205-
coffee-rails (~> 4.2)
206-
jbuilder (~> 2.5)
207-
jquery-rails
208139
listen (>= 3.0.5, < 3.2)
209140
puma (~> 3.11)
141+
rack-cors
210142
rails (~> 5.2.1)
211-
sass-rails (~> 5.0)
212-
selenium-webdriver
213143
spring
214144
spring-watcher-listen (~> 2.0.0)
215145
sqlite3
216-
turbolinks (~> 5)
217146
tzinfo-data
218-
uglifier (>= 1.3.0)
219-
web-console (>= 3.3.0)
220147

221148
RUBY VERSION
222149
ruby 2.5.1p57

README.md

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
1-
# FFN
2-
Fighting fake news
1+
# README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* Ruby version
9+
10+
* System dependencies
11+
12+
* Configuration
13+
14+
* Database creation
15+
16+
* Database initialization
17+
18+
* How to run the test suite
19+
20+
* Services (job queues, cache servers, search engines, etc.)
21+
22+
* Deployment instructions
23+
24+
* ...

app/assets/config/manifest.js

-3
This file was deleted.

app/assets/javascripts/alerts.coffee

-3
This file was deleted.

app/assets/javascripts/application.js

-19
This file was deleted.

app/assets/javascripts/cable.js

-13
This file was deleted.

app/assets/javascripts/channels/.keep

Whitespace-only changes.

app/assets/javascripts/comments.coffee

-3
This file was deleted.

app/assets/javascripts/ffnis.coffee

-55
This file was deleted.

app/assets/javascripts/users.coffee

-3
This file was deleted.

app/assets/stylesheets/alerts.scss

-3
This file was deleted.

0 commit comments

Comments
 (0)