Skip to content

Commit

Permalink
Add dalli adapter gemspec
Browse files Browse the repository at this point in the history
Just having the file exist in the flipper gem is odd so let's instead have a gem where we can define the dependencies and versions required.
  • Loading branch information
jnunemaker committed Jun 25, 2016
1 parent e1e1dd6 commit 2340992
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions flipper-dalli.gemspec
@@ -0,0 +1,24 @@
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/flipper/version', __FILE__)

flipper_dalli_files = lambda { |file|
file =~ /dalli/
}

Gem::Specification.new do |gem|
gem.authors = ["John Nunemaker"]
gem.email = ["nunemaker@gmail.com"]
gem.summary = "Dalli adapter for Flipper"
gem.description = "Dalli adapter for Flipper"
gem.license = "MIT"
gem.homepage = "https://github.com/jnunemaker/flipper"

gem.files = `git ls-files`.split("\n").select(&flipper_dalli_files) + ["lib/flipper/version.rb"]
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").select(&flipper_dalli_files)
gem.name = "flipper-dalli"
gem.require_paths = ["lib"]
gem.version = Flipper::VERSION

gem.add_dependency 'flipper', "~> #{Flipper::VERSION}"
gem.add_dependency 'dalli', '>= 2.0', '< 3'
end
1 change: 1 addition & 0 deletions lib/flipper-dalli.rb
@@ -0,0 +1 @@
require 'flipper/adapters/dalli'

0 comments on commit 2340992

Please sign in to comment.