Skip to content
This repository was archived by the owner on Apr 3, 2021. It is now read-only.
Merged
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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: ruby
rvm:
- 2.2.3
- 2.3.0
bundler_args: "--without development production"
before_script:
- psql -c 'create database wdt_test;' -U postgres
Expand Down
5 changes: 3 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ end

group :development do
gem 'dotenv-rails', '~> 2.0.0'
gem 'powder', '~> 0.3.0'
gem 'rails_best_practices', '~> 1.16.0'
end

Expand All @@ -42,8 +43,8 @@ group :production do
end

group :test do
gem 'codecov', '~> 0.0.2', require: false
gem 'coveralls', '~> 0.8.14', require: false
gem 'fakeweb', '~> 1.3.0'
gem 'poltergeist', '~> 1.6.0'
gem 'simplecov', '~> 0.9.2', require: false
gem 'simplecov', '~> 0.12.0', require: false
end
29 changes: 18 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ GEM
cliver (0.3.2)
code_analyzer (0.4.5)
sexp_processor
codecov (0.0.2)
json
simplecov
url
coderay (1.1.1)
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
Expand All @@ -82,6 +78,12 @@ GEM
concurrent-ruby (1.0.1)
countries (0.9.3)
currencies (~> 0.4.2)
coveralls (0.8.14)
json (>= 1.8, < 3)
simplecov (~> 0.12.0)
term-ansicolor (~> 1.3)
thor (~> 0.19.1)
tins (~> 1.6.0)
currencies (0.4.2)
date_validator (0.7.1)
activemodel
Expand Down Expand Up @@ -154,6 +156,8 @@ GEM
cliver (~> 0.3.1)
multi_json (~> 1.0)
websocket-driver (>= 0.2.0)
powder (0.3.0)
thor (>= 0.11.5)
pry (0.10.3)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
Expand Down Expand Up @@ -230,11 +234,11 @@ GEM
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sexp_processor (4.7.0)
simplecov (0.9.2)
simplecov (0.12.0)
docile (~> 1.1.0)
multi_json (~> 1.0)
simplecov-html (~> 0.9.0)
simplecov-html (0.9.0)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.0)
slim (3.0.3)
temple (~> 0.7.3)
tilt (>= 1.3.3, < 2.1)
Expand All @@ -253,15 +257,17 @@ GEM
activesupport (>= 4.0)
sprockets (>= 3.0.0)
temple (0.7.5)
term-ansicolor (1.3.2)
tins (~> 1.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.2)
tins (1.6.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.7.1)
execjs (>= 0.3.0)
json (>= 1.8.0)
url (0.3.2)
websocket-driver (0.5.3)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
Expand All @@ -279,8 +285,8 @@ DEPENDENCIES
bootstrap-sass (~> 3.3.3)
capybara (~> 2.4.4)
capybara-webkit (~> 1.4.1)
codecov (~> 0.0.2)
coffee-rails (~> 4.1.1)
coveralls (~> 0.8.14)
dotenv-rails (~> 2.0.0)
fabrication (~> 2.12.2)
faker (~> 1.4.3)
Expand All @@ -292,14 +298,15 @@ DEPENDENCIES
omniauth-github (~> 1.1.2)
pg (~> 0.18.4)
poltergeist (~> 1.6.0)
powder (~> 0.3.0)
pry-byebug (~> 3.3.0)
puma (~> 3.1.0)
rails (~> 4.2.6)
rails_12factor (~> 0.0.3)
rails_best_practices (~> 1.16.0)
rspec-rails (~> 3.2.1)
sass-rails (~> 5.0.4)
simplecov (~> 0.9.2)
simplecov (~> 0.12.0)
slim-rails (~> 3.0.1)
uglifier (>= 2.7.1)

Expand Down
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,50 @@
# About

[![travis](https://img.shields.io/travis/webdevtalks/www.svg)](https://travis-ci.org/webdevtalks/www)
[![coveralls](https://img.shields.io/coveralls/webdevtalks/www.svg?maxAge=2592000)](https://coveralls.io/github/webdevtalks/www)
[![codecov](https://img.shields.io/codecov/c/github/webdevtalks/www.svg)](https://codecov.io/github/webdevtalks/www)

# Setup

## Dependencies

- PostgreSQL
- Ruby >= 2.3
- Pow

### Pow

Install pow by:

$ curl get.pow.cx | sh

## Configure

### Pow

In order to use a http://wwww.webdevtalks.dev testing domain (required to ease oauth login), proceed to:

- Rename directory app as www.webdevtalks
- Run the following:

$ powder link

This will create a symlink in `~/.pow` pointing to the app.

### App

For installing ruby gem dependencies run:

$ bundle install

Then, copy `.env.example` and ensure github and google tokens.

Now run:

$ rake db:setup

You should be ready to go.

Start the app by running:

$ powder up
11 changes: 6 additions & 5 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
require 'fakeweb'
FakeWeb.allow_net_connect = %r[^https?://codecov.io]

if ENV['COVER'] || ENV['CI']
if ENV['COVER']
require 'simplecov'
SimpleCov.start 'rails'
SimpleCov.start('rails')
end

if ENV['CI']
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
require 'coveralls'
FakeWeb.allow_net_connect = %r[^https?://coveralls.io]
Coveralls.wear!('rails')
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
end

RSpec.configure do |config|
Expand Down