Skip to content
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
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pkg/
*.gem
.bundle/
.yardoc/
Gemfile.lock
/_yardoc/
*.DS_store
.rspec_status
coverage/
dump.rdb
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
24 changes: 24 additions & 0 deletions .rspec_formatter.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
RSpec::Support.require_rspec_core 'formatters/base_text_formatter'

class SimpleFormatter < RSpec::Core::Formatters::BaseTextFormatter
RSpec::Core::Formatters.register self,
:example_passed, :example_pending, :example_failed, :dump_pending, :dump_failures, :dump_summary

def example_passed(message); end

def example_pending(message); end

def example_failed(message); end

def dump_pending(message); end

def dump_failures(message); end

def dump_summary(message)
colorizer = ::RSpec::Core::Formatters::ConsoleCodes

output.puts "\nFinished in #{message.formatted_duration} " \
"(files took #{message.formatted_load_time} to load)\n" \
"#{message.colorized_totals_line(colorizer)}\n"
end
end
92 changes: 92 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
require: rubocop-rspec

AllCops:
Include:
- 'lib/**/*'
Exclude:
- 'docs/*'
- 'exe/*'
- 'profile/*'
- 'lib/assets/*'
- 'lib/templates/*'
DisplayCopNames: true
TargetRubyVersion: 2.1

# Preferred codebase style ---------------------------------------------

Layout/ExtraSpacing:
AllowForAlignment: true

Style/FormatString:
EnforcedStyle: percent

Style/AndOr:
EnforcedStyle: conditionals

Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space

Layout/SpaceInsideBlockBraces:
EnforcedStyle: space

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Layout/AlignParameters:
EnforcedStyle: with_fixed_indentation

Style/EmptyElse:
EnforcedStyle: empty

Metrics/LineLength:
Max: 120

Metrics/ModuleLength:
Max: 200

Metrics/ClassLength:
Max: 350

Metrics/ParameterLists:
Max: 15

Naming/FileName:
Enabled: false

Style/ParallelAssignment:
Enabled: false

Style/DoubleNegation:
Enabled: false

Style/SingleLineBlockParams:
Enabled: false

Style/PerlBackrefs:
Enabled: false

Layout/SpaceAfterComma:
Enabled: false

Layout/SpaceAroundOperators:
Enabled: false

Style/EmptyCaseCondition:
Enabled: false

Style/MultilineBlockChain:
Enabled: false

# Current preferred metrics --------------------------------------------
# Better values are encouraged, but not required.
Metrics/AbcSize:
Max: 30

Metrics/MethodLength:
Max: 20

Metrics/CyclomaticComplexity:
Max: 8

Metrics/PerceivedComplexity:
Max: 8
26 changes: 18 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
language: ruby
language:
ruby

rvm:
- 2.2
before_deploy:
- gem install mime-types-data -v '3.2016.0521'
before_script:
- gem install mechanize
- gem install json
script: cd auto/ruby && ruby index.rb
- '2.1'
- '2.2'
- '2.3.0'
- '2.4.0'
- '2.5.0'

script:
- bundle exec rubocop
- bundle exec rspec
- rake install
# - tvseries bb


install:
- gem install bundler
- bundle install
File renamed without changes.
6 changes: 2 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
source " http://rubygems.org/"

gem "mechanize", "2.7.5"
gem "json", "2.0.3"
source "https://rubygems.org/"
gemspec
6 changes: 0 additions & 6 deletions Gemfile.lock

This file was deleted.

7 changes: 7 additions & 0 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
guard :rspec, cmd: 'rspec' do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/daru/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }
end

# TODO: Run Rubocop in the background
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,17 @@ Website is accessible at https://athityakumar.github.io/tvseries/index.html
- [ ] Narcos
- [ ] Person of Interest
- [ ] Prisonbreak
- [ ] Scandal
- [ ] Seinfeld
- [ ] Sherlock
- [ ] Suits
- [ ] Supergirl
- [ ] Supernatural
- [ ] The Big Bang Theory
- [x] The Flash
- [ ] The Walking Dead
- [ ] Vixen
- [ ] Young Sheldon

Feel free to add more series' to the list by sending Pull Requests.

Expand Down
13 changes: 13 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require 'bundler/setup'
require 'rubygems/tasks'
Gem::Tasks.new

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new

require 'rubocop/rake_task'
RuboCop::RakeTask.new do |task|
task.requires << 'rubocop-rspec'
end

task default: %w[spec rubocop]
436 changes: 0 additions & 436 deletions auto/data/bb.json

This file was deleted.

114 changes: 0 additions & 114 deletions auto/data/firefly.json

This file was deleted.

Loading