Skip to content

Commit 12e05fc

Browse files
committed
Initial Commit
0 parents  commit 12e05fc

File tree

98 files changed

+9601
-0
lines changed

Some content is hidden

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

98 files changed

+9601
-0
lines changed

.browserslistrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
defaults

.bundle/config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
BUNDLE_JOBS: "4"
3+
BUNDLE_DEPLOYMENT: "true"
4+
BUNDLE_PATH: "vendor/bundle"

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
tests:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup FluentCI
12+
uses: fluentci-io/setup-fluentci@v5
13+
with:
14+
wasm: true
15+
plugin: postgres
16+
args: |
17+
start
18+
env:
19+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
POSTGRES_USER: postgres
21+
POSTGRES_DB: demo-rails5_test
22+
- name: check style + security
23+
run: |
24+
fluentci run --wasm ruby bundle_exec rubocop
25+
fluentci run --wasm ruby bundle_exec brakeman
26+
env:
27+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
RUBY_VERSION: 2.7.3
29+
- name: RSpec - model tests
30+
run: |
31+
fluentci run --wasm ruby bundle_exec rspec spec/models
32+
env:
33+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
- name: RSpec - controller tests
35+
run: |
36+
fluentci run --wasm ruby bundle_exec rspec spec/controllers
37+
env:
38+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
- name: RSpec - feature specs
40+
run: |
41+
fluentci run --wasm ruby bundle_exec rake db:setup
42+
fluentci run --wasm ruby bundle_exec rspec spec/features
43+
env:
44+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Ignore bundler config.
2+
/vendor/bundle
3+
4+
# Ignore all logfiles and tempfiles.
5+
/log/*
6+
/tmp/*
7+
!/log/.keep
8+
!/tmp/.keep
9+
10+
# Ignore uploaded files in development
11+
/storage/*
12+
!/storage/.keep
13+
14+
/node_modules
15+
/yarn-error.log
16+
17+
/public/assets
18+
.byebug_history
19+
20+
# Ignore master key for decrypting credentials and more.
21+
/config/master.key
22+
23+
*.swp
24+
25+
/public/packs
26+
/public/packs-test
27+
/node_modules
28+
/yarn-error.log
29+
yarn-debug.log*
30+
.yarn-integrity

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--require spec_helper --format documentation
2+
--format RspecJunitFormatter
3+
--out junit.xml

.rubocop.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
require: rubocop-rspec
2+
3+
AllCops:
4+
Exclude:
5+
- "db/schema.rb"
6+
- "db/seeds.rb"
7+
- "db/migrate/**/*"
8+
- "lib/tasks/**/*"
9+
- "bin/*"
10+
- "config/**/*"
11+
- Rakefile
12+
- Gemfile
13+
- "spec/spec_helper.rb"
14+
- "spec/rails_helper.rb"
15+
- "vendor/**/*"
16+
- "node_modules/**/*"
17+
18+
Style/Documentation:
19+
Enabled: false
20+
21+
Style/FrozenStringLiteralComment:
22+
Enabled: false
23+
24+
Style/StringLiterals:
25+
Enabled: false
26+
27+
Layout/EmptyLineAfterMagicComment:
28+
Enabled: false
29+
30+
Layout/EmptyLinesAroundBlockBody:
31+
Enabled: false
32+
33+
Layout/EmptyLinesAroundClassBody:
34+
Enabled: false
35+
36+
Capybara/FeatureMethods:
37+
Enabled: false

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.3

Gemfile

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
def next?
2+
File.basename(__FILE__) == "Gemfile.next"
3+
end
4+
source 'https://rubygems.org'
5+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
6+
7+
gem 'webpacker'
8+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
9+
gem 'rails', '~> 6.0.1'
10+
# Use postgresql as the database for Active Record
11+
gem 'pg', '>= 0.18', '< 2.0'
12+
# Use Puma as the app server
13+
gem 'puma', '~> 3.12'
14+
# Use SCSS for stylesheets
15+
gem 'sass-rails', '~> 5.0'
16+
# Use Uglifier as compressor for JavaScript assets
17+
gem 'uglifier', '>= 1.3.0'
18+
# See https://github.com/rails/execjs#readme for more supported runtimes
19+
# gem 'mini_racer', platforms: :ruby
20+
21+
# Use CoffeeScript for .coffee assets and views
22+
gem 'coffee-rails', '~> 4.2'
23+
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
24+
gem 'turbolinks', '~> 5'
25+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
26+
gem 'jbuilder', '~> 2.5'
27+
# Use Redis adapter to run Action Cable in production
28+
# gem 'redis', '~> 4.0'
29+
# Use ActiveModel has_secure_password
30+
# gem 'bcrypt', '~> 3.1.7'
31+
32+
# Use ActiveStorage variant
33+
# gem 'mini_magick', '~> 4.8'
34+
35+
# Use Capistrano for deployment
36+
# gem 'capistrano-rails', group: :development
37+
38+
group :development, :test do
39+
gem 'brakeman'
40+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
41+
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
42+
gem 'capybara'
43+
gem 'rspec-rails'
44+
gem 'rubocop', require: false
45+
gem 'rubocop-rails', require: false
46+
gem 'rubocop-rspec'
47+
gem 'next_rails'
48+
49+
# be able to demonstrate mysql config on Semaphore
50+
gem 'mysql2', '~> 0.5.2'
51+
gem "rspec_junit_formatter"
52+
end
53+
54+
group :development do
55+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
56+
gem 'web-console', '>= 3.3.0'
57+
gem 'listen', '>= 3.0.5', '< 3.2'
58+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
59+
gem 'spring'
60+
gem 'spring-watcher-listen', '~> 2.0.0'
61+
end
62+
63+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
64+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

0 commit comments

Comments
 (0)