Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
reneklacan committed Jun 29, 2019
1 parent 94ae822 commit 3dedb65
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 107 deletions.
5 changes: 0 additions & 5 deletions .document

This file was deleted.

11 changes: 11 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,11 @@
AllCops:
Exclude:
- 'spec/**/*'

Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 20

Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
10 changes: 5 additions & 5 deletions .travis.yml
Expand Up @@ -4,13 +4,13 @@ sudo: false
services:
- redis-server
rvm:
- 2.4.1
- 2.3.1
- 2.6
- 2.5
- 2.4
- 2.3
- 2.2
- 2.1
- 2.0.0
- 1.9.3
- jruby-19mode
- 2.0
env:
- USE_REAL_REDIS=true
gemfile:
Expand Down
7 changes: 0 additions & 7 deletions Appraisals

This file was deleted.

77 changes: 43 additions & 34 deletions Gemfile.lock
Expand Up @@ -2,55 +2,64 @@ PATH
remote: .
specs:
rollout (2.4.3)
redis (~> 4.0)

GEM
remote: https://rubygems.org/
specs:
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
codeclimate-test-reporter (1.0.8)
simplecov (<= 0.13)
ast (2.4.0)
diff-lcs (1.3)
docile (1.1.5)
fakeredis (0.6.0)
redis (~> 3.2)
json (2.1.0)
rake (12.0.0)
redis (3.3.3)
rspec (3.6.0)
rspec-core (~> 3.6.0)
rspec-expectations (~> 3.6.0)
rspec-mocks (~> 3.6.0)
rspec-core (3.6.0)
rspec-support (~> 3.6.0)
rspec-expectations (3.6.0)
docile (1.3.2)
fakeredis (0.7.0)
redis (>= 3.2, < 5.0)
jaro_winkler (1.5.3)
json (2.2.0)
parallel (1.17.0)
parser (2.6.3.0)
ast (~> 2.4.0)
rainbow (3.0.0)
redis (4.1.2)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-core (3.8.2)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.4)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.6.0)
rspec-mocks (3.6.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.6.0)
rspec-support (3.6.0)
simplecov (0.13.0)
docile (~> 1.1.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.2)
rspec_junit_formatter (0.4.1)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (0.72.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.6)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 1.7)
ruby-progressbar (1.10.1)
simplecov (0.16.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.1)
thor (0.19.4)
simplecov-html (0.10.2)
unicode-display_width (1.6.0)

PLATFORMS
ruby

DEPENDENCIES
appraisal
bundler (>= 1.0.0)
codeclimate-test-reporter
bundler (~> 1.17)
fakeredis
redis
rollout!
rspec
simplecov
rspec (~> 3.0)
rspec_junit_formatter (~> 0.4)
rubocop (~> 0.71)
simplecov (~> 0.16)

BUNDLED WITH
1.15.1
1.17.2
13 changes: 0 additions & 13 deletions gemfiles/redis_3.gemfile

This file was deleted.

13 changes: 0 additions & 13 deletions gemfiles/redis_4.gemfile

This file was deleted.

43 changes: 23 additions & 20 deletions rollout.gemspec
Expand Up @@ -2,26 +2,29 @@
$:.push File.expand_path("../lib", __FILE__)
require "rollout/version"

Gem::Specification.new do |s|
s.name = "rollout"
s.version = Rollout::VERSION
s.authors = ["James Golick"]
s.email = ["jamesgolick@gmail.com"]
s.description = "Feature flippers with redis."
s.summary = "Feature flippers with redis."
s.homepage = "https://github.com/FetLife/rollout"
s.license = "MIT"
Gem::Specification.new do |spec|
spec.name = "rollout"
spec.version = Rollout::VERSION
spec.authors = ["James Golick"]
spec.email = ["jamesgolick@gmail.com"]
spec.description = "Feature flippers with redis."
spec.summary = "Feature flippers with redis."
spec.homepage = "https://github.com/FetLife/rollout"
spec.license = "MIT"

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
spec.files = `git ls-files`.split("\n")
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
spec.require_paths = ["lib"]

s.add_development_dependency "rspec"
s.add_development_dependency "appraisal"
s.add_development_dependency "bundler", ">= 1.0.0"
s.add_development_dependency "redis"
s.add_development_dependency "fakeredis"
s.add_development_dependency "simplecov"
s.add_development_dependency "codeclimate-test-reporter"
spec.required_ruby_version = '>= 2.0'

spec.add_dependency "redis", "~> 4.0"

spec.add_development_dependency "bundler", "~> 1.17"
spec.add_development_dependency "fakeredis"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rspec_junit_formatter", "~> 0.4"
spec.add_development_dependency "rubocop", "~> 0.71"
spec.add_development_dependency "simplecov", "~> 0.16"
end
23 changes: 13 additions & 10 deletions spec/spec_helper.rb
@@ -1,18 +1,21 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
# frozen_string_literal: true

require "simplecov"
require "rspec"
require ENV["USE_REAL_REDIS"] == "true" ? "redis" : "fakeredis"
require 'simplecov'

SimpleCov.start do
formatter SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
])
end
SimpleCov.start

require 'bundler/setup'
require ENV["USE_REAL_REDIS"] == "true" ? "redis" : "fakeredis"
require "rollout"

RSpec.configure do |config|
config.example_status_persistence_file_path = '.rspec_status'

# config.disable_monkey_patching!

config.expect_with :rspec do |c|
c.syntax = :expect
end

config.before { Redis.new.flushdb }
end

0 comments on commit 3dedb65

Please sign in to comment.