Skip to content
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

Set up rubocop for travis #4

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 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
9 changes: 9 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
AllCops:
Exclude:
- 'Vagrantfile'
- 'vendor/**/*'
TargetRubyVersion: 2.3

inherit_from:
- https://raw.githubusercontent.com/everypolitician/everypolitician-data/master/.rubocop_base.yml
- .rubocop_todo.yml
Empty file added .rubocop_todo.yml
Empty file.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: ruby
rvm:
- 2.3.3
sudo: false
cache: bundler
script:
- bundle exec rake
13 changes: 8 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# frozen_string_literal: true

# It's easy to add more libraries or choose different versions. Any libraries
# specified here will be installed and made available to your morph.io scraper.
# Find out more: https://morph.io/documentation/ruby

source "https://rubygems.org"
source 'https://rubygems.org'

ruby "2.0.0"
ruby '2.3.3'

gem "scraperwiki", git: "https://github.com/openaustralia/scraperwiki-ruby.git", branch: "morph_defaults"
gem "nokogiri"
gem "scraped_page_archive"
gem 'nokogiri'
gem 'rubocop'
gem 'scraped_page_archive'
gem 'scraperwiki', git: 'https://github.com/openaustralia/scraperwiki-ruby.git', branch: 'morph_defaults'
20 changes: 18 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ GEM
specs:
addressable (2.5.0)
public_suffix (~> 2.0, >= 2.0.2)
ast (2.3.0)
crack (0.4.3)
safe_yaml (~> 1.0.0)
git (1.3.0)
Expand All @@ -20,14 +21,28 @@ GEM
mini_portile (0.6.2)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
parser (2.4.0.0)
ast (~> 2.2)
powerpack (0.1.1)
public_suffix (2.0.4)
rainbow (2.2.2)
rake
rake (12.0.0)
rubocop (0.48.1)
parser (>= 2.3.3.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1)
safe_yaml (1.0.4)
scraped_page_archive (0.5.0)
git (~> 1.3.0)
vcr-archive (~> 0.3.0)
sqlite3 (1.3.10)
sqlite_magic (0.0.3)
sqlite3
unicode-display_width (1.2.1)
vcr (3.0.3)
vcr-archive (0.3.0)
vcr (~> 3.0.2)
Expand All @@ -42,11 +57,12 @@ PLATFORMS

DEPENDENCIES
nokogiri
rubocop
scraped_page_archive
scraperwiki!

RUBY VERSION
ruby 2.0.0p648
ruby 2.3.3p222

BUNDLED WITH
1.13.6
1.14.6
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# frozen_string_literal: true

require 'rubocop/rake_task'

task default: %w[rubocop]