identity_cache.gemspec in identity_cache-0.5.1 vs identity_cache.gemspec in identity_cache-1.0.0

- old
+ new

@@ -1,26 +1,42 @@ # -*- encoding: utf-8 -*- +# frozen_string_literal: true require File.expand_path('../lib/identity_cache/version', __FILE__) Gem::Specification.new do |gem| - gem.authors = ["Camilo Lopez", "Tom Burns", "Harry Brundage", "Dylan Thacker-Smith", "Tobias Lutke", "Arthur Neves", "Francis Bogsanyi"] + gem.authors = [ + "Camilo Lopez", + "Tom Burns", + "Harry Brundage", + "Dylan Thacker-Smith", + "Tobias Lutke", + "Arthur Neves", + "Francis Bogsanyi", + ] gem.email = ["gems@shopify.com"] - gem.description = %q{Opt in read through ActiveRecord caching.} - gem.summary = %q{IdentityCache lets you specify how you want to cache your model objects, at the model level, and adds a number of convenience methods for accessing those objects through the cache. Memcached is used as the backend cache store, and the database is only hit when a copy of the object cannot be found in Memcached.} + gem.description = "Opt-in read through Active Record caching." + gem.summary = "IdentityCache lets you specify how you want to cache your " \ + "model objects, at the model level, and adds a number of " \ + "convenience methods for accessing those objects through " \ + "the cache. Memcached is used as the backend cache store, " \ + "and the database is only hit when a copy of the object " \ + "cannot be found in Memcached." gem.homepage = "https://github.com/Shopify/identity_cache" - gem.files = `git ls-files`.split($\) - gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } - gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) + gem.files = Dir.chdir(File.expand_path(__dir__)) do + %x(git ls-files -z).split("\x0").reject { |f| f.match(%r{^test/}) } + end + gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) } + gem.test_files = gem.files.grep(%r{^test/}) gem.name = "identity_cache" gem.require_paths = ["lib"] gem.version = IdentityCache::VERSION - gem.required_ruby_version = '>= 2.2.0' + gem.required_ruby_version = '>= 2.4.0' gem.add_dependency('ar_transaction_changes', '~> 1.0') - gem.add_dependency('activerecord', '>= 4.2.0') + gem.add_dependency('activerecord', '>= 5.2') gem.add_development_dependency('memcached', '~> 1.8.0') gem.add_development_dependency('memcached_store', '~> 1.0.0') gem.add_development_dependency('rake') gem.add_development_dependency('mocha', '0.14.0') @@ -30,9 +46,9 @@ if RUBY_PLATFORM == 'java' raise NotImplementedError else gem.add_development_dependency('cityhash', '0.6.0') gem.add_development_dependency('mysql2') - gem.add_development_dependency('pg') - gem.add_development_dependency('stackprof') if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new("2.1.0") + gem.add_development_dependency('pg', '~> 0.18') + gem.add_development_dependency('stackprof') end end