Skip to content

Commit

Permalink
Merge ac29f28 into 4ef85f2
Browse files Browse the repository at this point in the history
  • Loading branch information
i2bskn committed Apr 7, 2017
2 parents 4ef85f2 + ac29f28 commit 28a7c26
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@
/pkg/
/spec/reports/
/tmp/

# rspec failure tracking
.rspec_status

.DS_Store
9 changes: 6 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
language: ruby

rvm:
- 2.1.7
- 2.2.3
before_install: gem install bundler -v 1.10.6
- 2.3.3
- 2.4.1

before_install: gem install bundler -v 1.14.6

services:
- redis-server
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'
source "https://rubygems.org"

# Specify your gem's dependencies in redis_eval.gemspec
gemspec
1 change: 1 addition & 0 deletions bin/setup
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
set -vx

bundle install

Expand Down
17 changes: 14 additions & 3 deletions redis_eval.gemspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'redis_eval/version'
require "redis_eval/version"

Gem::Specification.new do |spec|
spec.name = "redis_eval"
Expand All @@ -14,7 +14,18 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/i2bskn/redis_eval"
spec.license = "MIT"

spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
# to allow pushing to a single host or delete this section to allow pushing to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
else
raise "RubyGems 2.0 or newer is required to protect against " \
"public gem pushes."
end

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
Expand Down
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
TEST_DB = "redis://localhost:6379/10"

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
config.example_status_persistence_file_path = ".rspec_status"

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

config.order = :random
config.after(:each) {
RedisEval.config.reset
Expand Down

0 comments on commit 28a7c26

Please sign in to comment.