cashew 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +17 -0
- data/Gemfile +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +38 -0
- data/Rakefile +9 -0
- data/cashew.gemspec +20 -0
- data/lib/cashew.rb +5 -0
- data/lib/cashew/version.rb +3 -0
- data/spec/spec_helper.rb +13 -0
- metadata +72 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2013 Joe Fredette
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# WARNING:
|
|
2
|
+
|
|
3
|
+
This document is probably lies, it endeavors to become more true on our way to
|
|
4
|
+
`1.0.0`
|
|
5
|
+
|
|
6
|
+
# Cashew
|
|
7
|
+
|
|
8
|
+
Cashew is a collection of various implementations of a cache, sporting different
|
|
9
|
+
performance characteristics, features, and other low-level details. We aim to
|
|
10
|
+
make adding a caching structure (whether independent and class-locally-managed, or
|
|
11
|
+
shared and globally-managed) to your programs as easy as possible.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Add this line to your application's Gemfile:
|
|
16
|
+
|
|
17
|
+
gem 'cashew'
|
|
18
|
+
|
|
19
|
+
And then execute:
|
|
20
|
+
|
|
21
|
+
$ bundle
|
|
22
|
+
|
|
23
|
+
Or install it yourself as:
|
|
24
|
+
|
|
25
|
+
$ gem install cashew
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
Simply install cashew and require `cashew` in your gemfile. If you'd like to
|
|
30
|
+
require just one type of cache -- we're working on it.
|
|
31
|
+
|
|
32
|
+
## Contributing
|
|
33
|
+
|
|
34
|
+
1. Fork it
|
|
35
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
36
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
37
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
38
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/cashew.gemspec
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'cashew/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |gem|
|
|
7
|
+
gem.name = "cashew"
|
|
8
|
+
gem.version = Cashew::VERSION
|
|
9
|
+
gem.authors = ["Joe Fredette"]
|
|
10
|
+
gem.email = ["jfredett@gmail.com"]
|
|
11
|
+
gem.description = %q{Cashew, a collection of conveniently encapsulated caching constructions.}
|
|
12
|
+
gem.summary = File.read("README.md")
|
|
13
|
+
|
|
14
|
+
gem.homepage = ""
|
|
15
|
+
|
|
16
|
+
gem.files = `git ls-files`.split($/)
|
|
17
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
|
18
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
gem.require_paths = ["lib"]
|
|
20
|
+
end
|
data/lib/cashew.rb
ADDED
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
require 'bundler/setup'
|
|
2
|
+
require 'pry'
|
|
3
|
+
|
|
4
|
+
require 'clockah'
|
|
5
|
+
|
|
6
|
+
#include helpers
|
|
7
|
+
Dir["./spec/helpers/*.rb"].each { |file| require file }
|
|
8
|
+
|
|
9
|
+
RSpec.configure do |config|
|
|
10
|
+
config.before do
|
|
11
|
+
allow_message_expectations_on_nil #because we're making proper nullclasses.
|
|
12
|
+
end
|
|
13
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: cashew
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
prerelease:
|
|
6
|
+
platform: ruby
|
|
7
|
+
authors:
|
|
8
|
+
- Joe Fredette
|
|
9
|
+
autorequire:
|
|
10
|
+
bindir: bin
|
|
11
|
+
cert_chain: []
|
|
12
|
+
date: 2013-02-19 00:00:00.000000000 Z
|
|
13
|
+
dependencies: []
|
|
14
|
+
description: Cashew, a collection of conveniently encapsulated caching constructions.
|
|
15
|
+
email:
|
|
16
|
+
- jfredett@gmail.com
|
|
17
|
+
executables: []
|
|
18
|
+
extensions: []
|
|
19
|
+
extra_rdoc_files: []
|
|
20
|
+
files:
|
|
21
|
+
- .gitignore
|
|
22
|
+
- Gemfile
|
|
23
|
+
- LICENSE.txt
|
|
24
|
+
- README.md
|
|
25
|
+
- Rakefile
|
|
26
|
+
- cashew.gemspec
|
|
27
|
+
- lib/cashew.rb
|
|
28
|
+
- lib/cashew/version.rb
|
|
29
|
+
- spec/spec_helper.rb
|
|
30
|
+
homepage: ''
|
|
31
|
+
licenses: []
|
|
32
|
+
post_install_message:
|
|
33
|
+
rdoc_options: []
|
|
34
|
+
require_paths:
|
|
35
|
+
- lib
|
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
37
|
+
none: false
|
|
38
|
+
requirements:
|
|
39
|
+
- - ! '>='
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: '0'
|
|
42
|
+
segments:
|
|
43
|
+
- 0
|
|
44
|
+
hash: -4286573014201868553
|
|
45
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
|
+
none: false
|
|
47
|
+
requirements:
|
|
48
|
+
- - ! '>='
|
|
49
|
+
- !ruby/object:Gem::Version
|
|
50
|
+
version: '0'
|
|
51
|
+
segments:
|
|
52
|
+
- 0
|
|
53
|
+
hash: -4286573014201868553
|
|
54
|
+
requirements: []
|
|
55
|
+
rubyforge_project:
|
|
56
|
+
rubygems_version: 1.8.24
|
|
57
|
+
signing_key:
|
|
58
|
+
specification_version: 3
|
|
59
|
+
summary: ! '# WARNING: This document is probably lies, it endeavors to become more
|
|
60
|
+
true on our way to `1.0.0` # Cashew Cashew is a collection of various implementations
|
|
61
|
+
of a cache, sporting different performance characteristics, features, and other
|
|
62
|
+
low-level details. We aim to make adding a caching structure (whether independent
|
|
63
|
+
and class-locally-managed, or shared and globally-managed) to your programs as easy
|
|
64
|
+
as possible. ## Installation Add this line to your application''s Gemfile: gem
|
|
65
|
+
''cashew'' And then execute: $ bundle Or install it yourself as: $ gem install
|
|
66
|
+
cashew ## Usage Simply install cashew and require `cashew` in your gemfile. If
|
|
67
|
+
you''d like to require just one type of cache -- we''re working on it. ## Contributing 1.
|
|
68
|
+
Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit
|
|
69
|
+
your changes (`git commit -am ''Add some feature''`) 4. Push to the branch (`git
|
|
70
|
+
push origin my-new-feature`) 5. Create new Pull Request'
|
|
71
|
+
test_files:
|
|
72
|
+
- spec/spec_helper.rb
|