sprockets-caches 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ .ruby-version
2
+ .rbenv-version
3
+ .rbenv-gemsets
4
+ pkg
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in sprockets-cache-riak.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ sprockets-caches (0.0.1)
5
+ sprockets-cache-memcache
6
+ sprockets-cache-mongodb
7
+ sprockets-cache-redis
8
+ sprockets-cache-riak
9
+
10
+ GEM
11
+ remote: http://rubygems.org/
12
+ specs:
13
+ sprockets-cache-memcache (0.0.1)
14
+ sprockets-cache-mongodb (0.0.2)
15
+ sprockets-cache-redis (0.0.3)
16
+ sprockets-cache-riak (0.0.2)
17
+
18
+ PLATFORMS
19
+ ruby
20
+
21
+ DEPENDENCIES
22
+ sprockets-caches!
data/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (C) 2012 Christoph Grabo
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,30 @@
1
+ # Sprockets Caches
2
+
3
+ Meta gem for different sprocket cache store implementations like Memcache, MongoDb, Redis and Riak.
4
+
5
+ ## Usage
6
+
7
+ Gemfile:
8
+
9
+ ```ruby
10
+ gem "sprockets"
11
+ gem "sprockets-caches"
12
+ # ...
13
+ ```
14
+
15
+ config.ru:
16
+
17
+ ```ruby
18
+ require "sprockets"
19
+ # and one of the following:
20
+ require "sprockets/cache/memcache_store"
21
+ require "sprockets/cache/mongodb_store"
22
+ require "sprockets/cache/redis_store"
23
+ require "sprockets/cache/riak_store"
24
+
25
+ env = Sprockets::Environment.new
26
+ env.cache = Sprockets::Cache::RiakStore.new(riak, "sprockets") # example for Riak
27
+ # ...
28
+ ```
29
+
30
+ First argument is the desired client/connection and the second (an optional) key prefix/bucket/database name.
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1 @@
1
+ require "sprockets-caches/version"
@@ -0,0 +1,5 @@
1
+ module Sprockets
2
+ module Caches
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require "sprockets-cache-memcache"
@@ -0,0 +1 @@
1
+ require "sprockets-cache-mongodb"
@@ -0,0 +1 @@
1
+ require "sprockets-cache-redis"
@@ -0,0 +1 @@
1
+ require "sprockets-cache-riak"
@@ -0,0 +1,24 @@
1
+ # encoding: utf-8
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "sprockets-caches/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "sprockets-caches"
7
+ s.version = Sprockets::Caches::VERSION
8
+ s.authors = ["Christoph Grabo"]
9
+ s.email = ["chris@dinarrr.com"]
10
+ s.homepage = "https://github.com/CarrotCornCat/sprockets-caches"
11
+ s.summary = %q{Meta gem for different sprocket cache store implementations}
12
+ s.description = %q{Meta gem for different sprocket cache store implementations like Memcache, MongoDb, Redis and Riak.}
13
+ s.license = "MIT"
14
+
15
+ s.files = `git ls-files`.split("\n")
16
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
18
+ s.require_paths = ["lib"]
19
+
20
+ s.add_dependency "sprockets-cache-memcache"
21
+ s.add_dependency "sprockets-cache-mongodb"
22
+ s.add_dependency "sprockets-cache-redis"
23
+ s.add_dependency "sprockets-cache-riak"
24
+ end
metadata ADDED
@@ -0,0 +1,130 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sprockets-caches
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Christoph Grabo
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-11-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: sprockets-cache-memcache
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: sprockets-cache-mongodb
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: sprockets-cache-redis
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: sprockets-cache-riak
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: Meta gem for different sprocket cache store implementations like Memcache,
79
+ MongoDb, Redis and Riak.
80
+ email:
81
+ - chris@dinarrr.com
82
+ executables: []
83
+ extensions: []
84
+ extra_rdoc_files: []
85
+ files:
86
+ - .gitignore
87
+ - Gemfile
88
+ - Gemfile.lock
89
+ - LICENSE
90
+ - README.md
91
+ - Rakefile
92
+ - lib/sprockets-caches.rb
93
+ - lib/sprockets-caches/version.rb
94
+ - lib/sprockets/cache/memcache_store.rb
95
+ - lib/sprockets/cache/mongodb_store.rb
96
+ - lib/sprockets/cache/redis_store.rb
97
+ - lib/sprockets/cache/riak_store.rb
98
+ - sprockets-caches.gemspec
99
+ homepage: https://github.com/CarrotCornCat/sprockets-caches
100
+ licenses:
101
+ - MIT
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ! '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ segments:
113
+ - 0
114
+ hash: -1782973048888748356
115
+ required_rubygems_version: !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ! '>='
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ segments:
122
+ - 0
123
+ hash: -1782973048888748356
124
+ requirements: []
125
+ rubyforge_project:
126
+ rubygems_version: 1.8.23
127
+ signing_key:
128
+ specification_version: 3
129
+ summary: Meta gem for different sprocket cache store implementations
130
+ test_files: []