Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
e1e1dd6
commit 2340992
Showing
2 changed files
with
25 additions
and
0 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,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 |
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 @@ | ||
require 'flipper/adapters/dalli' |