Skip to content

Commit

Permalink
install redis-objects
Browse files Browse the repository at this point in the history
  • Loading branch information
i2bskn committed May 4, 2015
1 parent b24b34e commit 2c117b9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 26 deletions.
12 changes: 4 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
language: ruby
rvm:
- 2.1.0
- 2.2.0
branches:
only:
- master
- 2.1.5
- 2.2.1
gemfile:
- Gemfile
script: bundle exec rake spec
notifications:
mails:
- i2bskn@gmail.com
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'

# Specify your gem's dependencies in findable.gemspec
gemspec

7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"

task :default => :spec

desc "Run all specs"
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end

task :default => :spec
desc "Console with library"
task :console do
sh "pry -I lib -r bundler/setup -r findable"
end

5 changes: 3 additions & 2 deletions findable.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'findable/version'
Expand All @@ -19,13 +20,13 @@ Gem::Specification.new do |spec|

spec.add_dependency "activesupport"
spec.add_dependency "activemodel"
spec.add_dependency "redis"
spec.add_dependency "redis-objects"
spec.add_dependency "oj"

spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec-rails"
spec.add_development_dependency "simplecov"
spec.add_development_dependency "pry"
spec.add_development_dependency "coveralls"
end

2 changes: 1 addition & 1 deletion lib/findable.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "active_support"
require "active_model"
require "redis"
require "redis/objects"
require "oj"

require "findable/version"
Expand Down
14 changes: 1 addition & 13 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
require "simplecov"
require "findable"
require "coveralls"
Coveralls.wear!

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
add_filter "spec"
add_filter ".bundle"
end

require "findable"

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
Expand Down
2 changes: 2 additions & 0 deletions spec/support/initialize_redis.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Redis.current.flushdb

0 comments on commit 2c117b9

Please sign in to comment.