Sha256: ba30669bb123c85e923b80b8d4cf4f7022de927ff3b764bb942f59dc00bda6eb

Contents?: true

Size: 1.78 KB

Versions: 4

Compression:

Stored size: 1.78 KB

Contents

# -*- encoding: utf-8 -*-
require File.expand_path('../lib/second_level_cache/version', __FILE__)
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |gem|
  gem.authors       = ['Hooopo']
  gem.email         = ['hoooopo@gmail.com']
  gem.description   = 'Write Through and Read Through caching library inspired by CacheMoney and cache_fu, support  ActiveRecord 4.'
  gem.summary       = <<-SUMMARY
  SecondLevelCache is a write-through and read-through caching library inspired by Cache Money and cache_fu, support only Rails3 and ActiveRecord.

  Read-Through: Queries by ID, like current_user.articles.find(params[:id]), will first look in cache store and then look in the database for the results of that query. If there is a cache miss, it will populate the cache.

  Write-Through: As objects are created, updated, and deleted, all of the caches are automatically kept up-to-date and coherent.
  SUMMARY

  gem.homepage      = 'https://github.com/csdn-dev/second_level_cache'

  gem.files         = Dir.glob('lib/**/*.rb') + [
    'README.md',
    'Rakefile',
    'Gemfile',
    'CHANGELOG.md',
    'second_level_cache.gemspec'
  ]
  gem.test_files    = Dir.glob('test/**/*.rb')
  gem.executables   = gem.files.grep(%r{^bin/})
  gem.name          = 'second_level_cache'
  gem.require_paths = ['lib']
  gem.version       = SecondLevelCache::VERSION

  gem.add_runtime_dependency 'activesupport', ['>= 5.0.0.beta3', '< 5.1.0']
  gem.add_runtime_dependency 'activerecord', ['>= 5.0.0.beta3', '< 5.1.0']

  gem.add_development_dependency 'sqlite3'
  gem.add_development_dependency 'rake'
  gem.add_development_dependency 'pry'
  gem.add_development_dependency 'database_cleaner', '~> 1.3.0'
  gem.add_development_dependency 'rubocop', '~> 0.36.0'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
second_level_cache-2.2.6 second_level_cache.gemspec
second_level_cache-2.2.5 second_level_cache.gemspec
second_level_cache-2.2.4 second_level_cache.gemspec
second_level_cache-2.2.3 second_level_cache.gemspec