Skip to content

Commit

Permalink
Merge pull request #14 from everypolitician-scrapers/rake-rubocop
Browse files Browse the repository at this point in the history
Add 'rake rubocop' and configure travis to run it
  • Loading branch information
tmtmtmtm committed Dec 23, 2016
2 parents 68bb42c + bc9106f commit 932008b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 30 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
@@ -0,0 +1,4 @@
language: ruby
rvm:
- 2.3.1
cache: bundler
9 changes: 3 additions & 6 deletions Gemfile
Expand Up @@ -7,13 +7,10 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}.git" }

ruby '2.3.1'

gem 'scraperwiki', git: 'https://github.com/openaustralia/scraperwiki-ruby.git', branch: 'morph_defaults'
gem 'execjs'
gem 'pry'
gem 'colorize'
gem 'open-uri-cached'
gem 'fuzzy_match'
gem 'wikidata-client', '~> 0.0.7', require: 'wikidata'
gem 'pry'
gem 'rake'
gem 'rubocop'
gem 'scraped', github: 'everypolitician/scraped'
gem 'scraperwiki', github: 'openaustralia/scraperwiki-ruby', branch: 'morph_defaults'
gem 'table_unspanner', github: 'everypolitician/table_unspanner'
27 changes: 4 additions & 23 deletions Gemfile.lock
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/everypolitician/scraped.git
revision: 15262aac9e30049459f4b13028bcc9c68b16de3f
revision: 0b7474c54ee395fd9bec30a64702255d093f9b31
specs:
scraped (0.1.0)
field_serializer (>= 0.3.0)
Expand Down Expand Up @@ -28,33 +28,22 @@ GEM
specs:
ast (2.3.0)
coderay (1.1.1)
colorize (0.8.1)
excon (0.52.0)
execjs (2.7.0)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
faraday_middleware (0.10.0)
faraday (>= 0.7.4, < 0.10)
field_serializer (0.3.0)
fuzzy_match (2.1.0)
hashie (3.4.4)
httpclient (2.8.2.4)
method_source (0.8.2)
mini_portile2 (2.1.0)
multipart-post (2.0.0)
nokogiri (1.6.8)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
open-uri-cached (0.0.5)
parser (2.3.1.4)
ast (~> 2.2)
pkg-config (1.1.7)
powerpack (0.1.1)
pry (0.10.4)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
slop (~> 3.4)
rainbow (2.1.0)
rake (11.2.2)
require_all (1.3.3)
rubocop (0.44.1)
parser (>= 2.3.1.1, < 3.0)
Expand All @@ -68,26 +57,18 @@ GEM
sqlite_magic (0.0.6)
sqlite3
unicode-display_width (1.1.1)
wikidata-client (0.0.10)
excon (~> 0.40)
faraday (~> 0.9)
faraday_middleware (~> 0.9)
hashie (~> 3.3)

PLATFORMS
ruby

DEPENDENCIES
colorize
execjs
fuzzy_match
open-uri-cached
pry
rake
rubocop
scraped!
scraperwiki!
table_unspanner!
wikidata-client (~> 0.0.7)

RUBY VERSION
ruby 2.3.1p112
Expand Down
6 changes: 6 additions & 0 deletions Rakefile
@@ -0,0 +1,6 @@
# frozen_string_literal: true
require 'rubocop/rake_task'

RuboCop::RakeTask.new

task default: %w(rubocop)
1 change: 0 additions & 1 deletion lib/member_table.rb
Expand Up @@ -2,7 +2,6 @@
require 'table_unspanner'

class MemberTable < Scraped::HTML

private

def table
Expand Down

0 comments on commit 932008b

Please sign in to comment.