Skip to content

Introduce Rails to core #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .env
Empty file.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ yarn-error.log
log/*
/tmp

coverage

.idea/*
.idea/*.xml
.idea

.DS_Store
erd.pdf
.env
*.dump
pubnub.log
dump.rdb
log/dump.rdb

.vscode
.vscode

package-lock.json
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
74 changes: 74 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
Style/Documentation:
Enabled: false

LineLength:
Max: 120

Rails:
Enabled: true

AllCops:
Exclude:
- "bin/**/*"
- "db/**/*"
- "node_modules/**/*"

Style/MultilineOperationIndentation:
EnforcedStyle: indented

Style/MultilineMethodCallIndentation:
EnforcedStyle: indented

Style/Lambda:
Enabled: false

Style/StringLiterals:
EnforcedStyle: "double_quotes"

Style/NumericPredicate:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

# Removing Blocks Cop for RSpec so we can do expect { ... }
Style/BlockDelimiters:
Exclude:
- 'spec/**/*'

Style/SymbolArray:
Enabled: false

# DSLs are allowed long blocks.
Metrics/BlockLength:
Enabled: false

Rails/HttpPositionalArguments:
Enabled: false

Style/TrailingCommaInLiteral:
Enabled: false

Rails/SkipsModelValidations:
Enabled: false

# Can remove when bbatsov/rubocop#4189 is released
Lint/AmbiguousBlockAssociation:
Enabled: false

# Let us line up case/if statements how we want
Lint/EndAlignment:
Enabled: false

Style/CaseIndentation:
Enabled: false

# This is buggy https://github.com/bbatsov/rubocop/issues/4321
Style/RedundantSelf:
Enabled: false

Security/YAMLLoad:
Enabled: false

Style/AlignHash:
EnforcedLastArgumentHashStyle: ignore_implicit
72 changes: 72 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
source 'https://rubygems.org'

git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end

# Serialization
gem 'active_model_serializers'
gem 'rubocop'
# Rack stuff
gem 'rack'
gem 'rack-proxy'
# Background job processing
gem 'sidekiq'
gem 'sidekiq-scheduler'
gem 'connection_pool'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'dotenv-rails'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
gem 'httparty'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :test do
gem 'rspec-rails', '~> 3.6'
gem 'simplecov', require: false
end

group :development, :test do
gem 'pry'
gem 'pry-rails'
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
gem 'factory_girl_rails'
gem 'shoulda-matchers', git: 'https://github.com/thoughtbot/shoulda-matchers.git', branch: 'rails-5'
end

group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
gem 'better_errors'
gem 'binding_of_caller'
end

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