forked from fetlife/rollout
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94ae822
commit 3dedb65
Showing
9 changed files
with
95 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
AllCops: | ||
Exclude: | ||
- 'spec/**/*' | ||
|
||
Metrics/LineLength: | ||
Max: 120 | ||
Metrics/MethodLength: | ||
Max: 20 | ||
|
||
Style/TrailingCommaInArguments: | ||
EnforcedStyleForMultiline: comma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = ["[email protected]"] | ||
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 = ["[email protected]"] | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |