<commit_before># -*- encoding: utf-8 -*-
require File.expand_path('../lib/flipper/version', __FILE__)

flipper_redis_files = lambda do |file|
  file =~ /redis/
end

Gem::Specification.new do |gem|
  gem.authors       = ['<NAME>']
  gem.email         = ['<EMAIL>']
  gem.summary       = 'Redis adapter for Flipper'
  gem.description   = 'Redis adapter for Flipper'
  gem.license       = 'MIT'
  gem.homepage      = 'https://github.com/jnunemaker/flipper'

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

  gem.add_dependency 'flipper', "~> #{Flipper::VERSION}"
  gem.add_dependency 'redis', '>= 2.2', '< 4.0.0'
end<commit_msg>Allow to use redis-adapter with redis 4.0.x<commit_after># -*- encoding: utf-8 -*-
require File.expand_path('../lib/flipper/version', __FILE__)

flipper_redis_files = lambda do |file|
  file =~ /redis/
end

Gem::Specification.new do |gem|
  gem.authors       = ['<NAME>']
  gem.email         = ['<EMAIL>']
  gem.summary       = 'Redis adapter for Flipper'
  gem.description   = 'Redis adapter for Flipper'
  gem.license       = 'MIT'
  gem.homepage      = 'https://github.com/jnunemaker/flipper'

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

  gem.add_dependency 'flipper', "~> #{Flipper::VERSION}"
  gem.add_dependency 'redis', '>= 2.2', '< 4.1.0'
end
{'fraction_non_alphanumeric': 0.17947310647639955, 'fraction_numerical': 0.007683863885839737, 'mean_word_length': 3.1244343891402715, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3998479', 'n_tokens_mistral': 676, 'n_tokens_neox': 674, 'n_words': 117}