h2ocube_rails_cache 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +5 -0
- data/LICENSE.txt +1 -1
- data/README.md +4 -5
- data/Rakefile +10 -0
- data/h2ocube_rails_cache.gemspec +7 -4
- data/lib/active_support/cache/h2ocube_rails_cache.rb +10 -4
- data/lib/h2ocube_rails_cache.rb +8 -1
- data/test/cache_test.rb +40 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +12 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/test.rb +24 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/log/test.log +132 -0
- data/test/dummy/script/rails +6 -0
- data/test/test_helper.rb +6 -0
- metadata +83 -17
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cde9a6de4cd47adf5e75b9664c99df6241c8e1bc
|
4
|
+
data.tar.gz: 586c1e50cee658cc6ae694b3dfabc5d8339f1c66
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3179d4d8ca3a236fe1d1ba7ba7188a90535419814f4262e08408099c593dbfbd47372e51c0d389d6f1609ca8b8c1e6a3f87133407ec547304006750bcdc44e1d
|
7
|
+
data.tar.gz: 59dc620c052efde50c6a7210a60a69ba9bb9781061e4b89460fc6a58fd837a3c924a6d3b16bff4254a843b084b5643c4c205115cd5b9699629fd77b42d08219f
|
data/.travis.yml
ADDED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
# H2ocubeRailsCache
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/h2ocube_rails_cache.png)](http://badge.fury.io/rb/h2ocube_rails_cache)
|
4
|
+
[![Build Status](https://travis-ci.org/h2ocube/h2ocube_rails_cache.png?branch=master)](https://travis-ci.org/h2ocube/h2ocube_rails_cache)
|
5
|
+
|
3
6
|
Just an redis cache.
|
4
7
|
|
5
8
|
## Installation
|
6
9
|
|
7
10
|
Add this line to your application's Gemfile:
|
8
11
|
|
9
|
-
gem 'h2ocube_rails_cache'
|
10
|
-
|
11
|
-
Add this line to config/environments/production.rb:
|
12
|
-
|
13
|
-
config.cache_store = :h2ocube_rails_cache
|
12
|
+
gem 'h2ocube_rails_cache', group: :production
|
14
13
|
|
15
14
|
And then execute:
|
16
15
|
|
data/Rakefile
CHANGED
data/h2ocube_rails_cache.gemspec
CHANGED
@@ -4,17 +4,20 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = 'h2ocube_rails_cache'
|
7
|
-
gem.version = '0.0.
|
7
|
+
gem.version = '0.0.2'
|
8
8
|
gem.authors = ['Ben']
|
9
9
|
gem.email = ['ben@h2ocube.com']
|
10
|
-
gem.description =
|
11
|
-
gem.summary =
|
10
|
+
gem.description = 'Just an redis cache.'
|
11
|
+
gem.summary = 'Just an redis cache.'
|
12
12
|
gem.homepage = 'https://github.com/h2ocube/h2ocube_rails_cache'
|
13
|
+
gem.license = 'MIT'
|
13
14
|
|
14
15
|
gem.files = `git ls-files`.split($/)
|
15
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
16
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
17
|
-
gem.require_paths = [
|
18
|
+
gem.require_paths = ['lib']
|
18
19
|
|
19
20
|
gem.add_dependency 'redis-namespace'
|
21
|
+
|
22
|
+
%w(rails minitest).each{ |g| gem.add_development_dependency g }
|
20
23
|
end
|
@@ -10,6 +10,10 @@ module ActiveSupport
|
|
10
10
|
@data = Redis::Namespace.new(Rails.application.class.to_s.split("::").first << ':Cache')
|
11
11
|
end
|
12
12
|
|
13
|
+
def keys key = '*'
|
14
|
+
@data.keys key
|
15
|
+
end
|
16
|
+
|
13
17
|
def read(key, options = nil)
|
14
18
|
return nil if key.start_with?('http')
|
15
19
|
if exist? key
|
@@ -24,17 +28,19 @@ module ActiveSupport
|
|
24
28
|
@data.set key, Marshal.dump(entry)
|
25
29
|
true
|
26
30
|
end
|
27
|
-
|
31
|
+
|
28
32
|
def delete(name, options = nil)
|
29
33
|
@data.keys(name).each{ |k| @data.del k }
|
34
|
+
true
|
30
35
|
end
|
31
|
-
|
36
|
+
|
32
37
|
def exist?(name, options = nil)
|
33
38
|
@data.exists name
|
34
39
|
end
|
35
|
-
|
40
|
+
|
36
41
|
def clear
|
37
|
-
@data.
|
42
|
+
@data.keys('*').each{ |k| @data.del k }
|
43
|
+
true
|
38
44
|
end
|
39
45
|
end
|
40
46
|
end
|
data/lib/h2ocube_rails_cache.rb
CHANGED
data/test/cache_test.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
describe 'h2ocube_rails_cache' do
|
4
|
+
before do
|
5
|
+
@redis = Redis.new
|
6
|
+
@cache_key = Rails.application.class.to_s.split("::").first << ':Cache'
|
7
|
+
@cache = Redis::Namespace.new(@cache_key)
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'should work' do
|
11
|
+
true
|
12
|
+
end
|
13
|
+
|
14
|
+
it '.keys' do
|
15
|
+
Rails.cache.keys.must_be_kind_of Array
|
16
|
+
end
|
17
|
+
|
18
|
+
it '.clear' do
|
19
|
+
Rails.cache.clear.must_be_same_as true
|
20
|
+
Rails.cache.keys('*').must_be_empty
|
21
|
+
|
22
|
+
@redis.keys(@cache_key).must_be_empty
|
23
|
+
end
|
24
|
+
|
25
|
+
it '.write, .exist?, .read and .delete' do
|
26
|
+
Rails.cache.write('a', 'true').must_be_same_as true
|
27
|
+
|
28
|
+
Rails.cache.exist?('a').must_be_same_as true
|
29
|
+
|
30
|
+
Rails.cache.read('a').must_equal 'true'
|
31
|
+
|
32
|
+
Marshal.load(@redis.get("#{@cache_key}:a")).must_equal 'true'
|
33
|
+
|
34
|
+
Rails.cache.delete('a').must_be_same_as true
|
35
|
+
|
36
|
+
Rails.cache.exist?('a').must_be_same_as false
|
37
|
+
|
38
|
+
Rails.cache.read('a').must_be_nil
|
39
|
+
end
|
40
|
+
end
|
data/test/dummy/Rakefile
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
|
+
|
4
|
+
require File.expand_path('../config/application', __FILE__)
|
5
|
+
require 'rake'
|
6
|
+
|
7
|
+
Dummy::Application.load_tasks
|
@@ -0,0 +1,24 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
config.eager_load = true if config.respond_to? :eager_load=
|
11
|
+
|
12
|
+
# Show full error reports and disable caching
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Raise exceptions instead of rendering exception templates
|
17
|
+
config.action_dispatch.show_exceptions = false
|
18
|
+
|
19
|
+
# Disable request forgery protection in test environment
|
20
|
+
config.action_controller.allow_forgery_protection = false
|
21
|
+
|
22
|
+
# Print deprecation notices to the stderr
|
23
|
+
config.active_support.deprecation = :stderr
|
24
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format
|
4
|
+
# (all these examples are active by default):
|
5
|
+
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
+
# inflect.singular /^(ox)en/i, '\1'
|
8
|
+
# inflect.irregular 'person', 'people'
|
9
|
+
# inflect.uncountable %w( fish sheep )
|
10
|
+
# end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
Dummy::Application.config.secret_token = 'ca3f29ce2033cebff511999f2fce3f4777dda12be7b8ad71e3f82bead7b95c26cd995ece00052674ee35dfd7892b7c78d0faaaffc9274fcf1b9bb49805ff0a2e'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# Dummy::Application.config.session_store :active_record_store
|
@@ -0,0 +1,58 @@
|
|
1
|
+
Dummy::Application.routes.draw do
|
2
|
+
# The priority is based upon order of creation:
|
3
|
+
# first created -> highest priority.
|
4
|
+
|
5
|
+
# Sample of regular route:
|
6
|
+
# match 'products/:id' => 'catalog#view'
|
7
|
+
# Keep in mind you can assign values other than :controller and :action
|
8
|
+
|
9
|
+
# Sample of named route:
|
10
|
+
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
11
|
+
# This route can be invoked with purchase_url(:id => product.id)
|
12
|
+
|
13
|
+
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
14
|
+
# resources :products
|
15
|
+
|
16
|
+
# Sample resource route with options:
|
17
|
+
# resources :products do
|
18
|
+
# member do
|
19
|
+
# get 'short'
|
20
|
+
# post 'toggle'
|
21
|
+
# end
|
22
|
+
#
|
23
|
+
# collection do
|
24
|
+
# get 'sold'
|
25
|
+
# end
|
26
|
+
# end
|
27
|
+
|
28
|
+
# Sample resource route with sub-resources:
|
29
|
+
# resources :products do
|
30
|
+
# resources :comments, :sales
|
31
|
+
# resource :seller
|
32
|
+
# end
|
33
|
+
|
34
|
+
# Sample resource route with more complex sub-resources
|
35
|
+
# resources :products do
|
36
|
+
# resources :comments
|
37
|
+
# resources :sales do
|
38
|
+
# get 'recent', :on => :collection
|
39
|
+
# end
|
40
|
+
# end
|
41
|
+
|
42
|
+
# Sample resource route within a namespace:
|
43
|
+
# namespace :admin do
|
44
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
45
|
+
# # (app/controllers/admin/products_controller.rb)
|
46
|
+
# resources :products
|
47
|
+
# end
|
48
|
+
|
49
|
+
# You can have the root of your site routed with "root"
|
50
|
+
# just remember to delete public/index.html.
|
51
|
+
# root :to => "welcome#index"
|
52
|
+
|
53
|
+
# See how all your routes lay out with "rake routes"
|
54
|
+
|
55
|
+
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
56
|
+
# Note: This route will make all actions in every controller accessible via GET requests.
|
57
|
+
# match ':controller(/:action(/:id(.:format)))'
|
58
|
+
end
|
@@ -0,0 +1,132 @@
|
|
1
|
+
Error compiling asset jquery_test.js:
|
2
|
+
Sprockets::FileNotFound: couldn't find file 'jquery/1'
|
3
|
+
(in /Users/ben/h2ocube_rails_assets/vendor/assets/javascripts/jquery.js:1)
|
4
|
+
Error compiling asset jquery.ui_test.js:
|
5
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
6
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
7
|
+
Error compiling asset jquery_test.js:
|
8
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
9
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
10
|
+
Error compiling asset jquery-turbolinks_test.js:
|
11
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
12
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
13
|
+
Error compiling asset jquery.ui_test.js:
|
14
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
15
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
16
|
+
Error compiling asset jquery_test.js:
|
17
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
18
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
19
|
+
Error compiling asset jquery-turbolinks_test.js:
|
20
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
21
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
22
|
+
Error compiling asset jquery.ui_test.js:
|
23
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
24
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
25
|
+
Error compiling asset jquery_test.js:
|
26
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
27
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
28
|
+
Error compiling asset jquery-turbolinks_test.js:
|
29
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
30
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
31
|
+
Error compiling asset jquery.ui_test.js:
|
32
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
33
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
34
|
+
Error compiling asset jquery_test.js:
|
35
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
36
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
37
|
+
Error compiling asset jquery-turbolinks_test.js:
|
38
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
39
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
40
|
+
Error compiling asset jquery.ui_test.js:
|
41
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
42
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
43
|
+
Error compiling asset jquery_test.js:
|
44
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
45
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
46
|
+
Error compiling asset jquery-turbolinks_test.js:
|
47
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
48
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
49
|
+
Error compiling asset jquery.ui_test.js:
|
50
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
51
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
52
|
+
Error compiling asset jquery_test.js:
|
53
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
54
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
55
|
+
Error compiling asset jquery-turbolinks_test.js:
|
56
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
57
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
58
|
+
Error compiling asset jquery.ui_test.js:
|
59
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
60
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
61
|
+
Error compiling asset jquery_test.js:
|
62
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
63
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
64
|
+
Error compiling asset jquery-turbolinks_test.js:
|
65
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
66
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
67
|
+
Error compiling asset jquery.ui_test.js:
|
68
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
69
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
70
|
+
Error compiling asset jquery_test.js:
|
71
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
72
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
73
|
+
Error compiling asset jquery-turbolinks_test.js:
|
74
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
75
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
76
|
+
Error compiling asset jquery.ui_test.js:
|
77
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
78
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
79
|
+
Error compiling asset jquery_test.js:
|
80
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
81
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
82
|
+
Error compiling asset jquery-turbolinks_test.js:
|
83
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
84
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
85
|
+
Error compiling asset jquery.ui_test.js:
|
86
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
87
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
88
|
+
Error compiling asset jquery_test.js:
|
89
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
90
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
91
|
+
Error compiling asset jquery-turbolinks_test.js:
|
92
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
93
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
94
|
+
Error compiling asset jquery.ui_test.js:
|
95
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
96
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
97
|
+
Error compiling asset jquery_test.js:
|
98
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
99
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
100
|
+
Error compiling asset jquery-turbolinks_test.js:
|
101
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
102
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
103
|
+
Error compiling asset jquery.ui_test.js:
|
104
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
105
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
106
|
+
Error compiling asset jquery_test.js:
|
107
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
108
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
109
|
+
Error compiling asset jquery-turbolinks_test.js:
|
110
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
111
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
112
|
+
Error compiling asset jquery.ui_test.js:
|
113
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
114
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
115
|
+
Error compiling asset jquery_test.js:
|
116
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
117
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
118
|
+
Error compiling asset jquery-turbolinks_test.js:
|
119
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
120
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
121
|
+
Error compiling asset jquery.ui_test.js:
|
122
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.ui'
|
123
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery.ui_test.coffee:1)
|
124
|
+
Error compiling asset jquery_test.js:
|
125
|
+
Sprockets::FileNotFound: couldn't find file 'jquery'
|
126
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery_test.coffee:1)
|
127
|
+
Error compiling asset jquery-turbolinks_test.js:
|
128
|
+
Sprockets::FileNotFound: couldn't find file 'jquery.turbolinks'
|
129
|
+
(in /Users/ben/h2ocube_rails_assets/test/dummy/app/assets/javascripts/jquery-turbolinks_test.js:1)
|
130
|
+
|
131
|
+
***** Debugger requested, but was not available (ensure ruby-debug is listed in Gemfile/installed as gem): Start server with --debugger to enable *****
|
132
|
+
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
metadata
CHANGED
@@ -1,33 +1,58 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: h2ocube_rails_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ben
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: redis-namespace
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
|
-
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: Just an redis cache.
|
31
56
|
email:
|
32
57
|
- ben@h2ocube.com
|
33
58
|
executables: []
|
@@ -35,6 +60,7 @@ extensions: []
|
|
35
60
|
extra_rdoc_files: []
|
36
61
|
files:
|
37
62
|
- .gitignore
|
63
|
+
- .travis.yml
|
38
64
|
- Gemfile
|
39
65
|
- LICENSE.txt
|
40
66
|
- README.md
|
@@ -42,28 +68,68 @@ files:
|
|
42
68
|
- h2ocube_rails_cache.gemspec
|
43
69
|
- lib/active_support/cache/h2ocube_rails_cache.rb
|
44
70
|
- lib/h2ocube_rails_cache.rb
|
71
|
+
- test/cache_test.rb
|
72
|
+
- test/dummy/Rakefile
|
73
|
+
- test/dummy/app/controllers/application_controller.rb
|
74
|
+
- test/dummy/app/helpers/application_helper.rb
|
75
|
+
- test/dummy/app/views/layouts/application.html.erb
|
76
|
+
- test/dummy/config.ru
|
77
|
+
- test/dummy/config/application.rb
|
78
|
+
- test/dummy/config/boot.rb
|
79
|
+
- test/dummy/config/environment.rb
|
80
|
+
- test/dummy/config/environments/test.rb
|
81
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
82
|
+
- test/dummy/config/initializers/inflections.rb
|
83
|
+
- test/dummy/config/initializers/mime_types.rb
|
84
|
+
- test/dummy/config/initializers/secret_token.rb
|
85
|
+
- test/dummy/config/initializers/session_store.rb
|
86
|
+
- test/dummy/config/locales/en.yml
|
87
|
+
- test/dummy/config/routes.rb
|
88
|
+
- test/dummy/log/test.log
|
89
|
+
- test/dummy/script/rails
|
90
|
+
- test/test_helper.rb
|
45
91
|
homepage: https://github.com/h2ocube/h2ocube_rails_cache
|
46
|
-
licenses:
|
92
|
+
licenses:
|
93
|
+
- MIT
|
94
|
+
metadata: {}
|
47
95
|
post_install_message:
|
48
96
|
rdoc_options: []
|
49
97
|
require_paths:
|
50
98
|
- lib
|
51
99
|
required_ruby_version: !ruby/object:Gem::Requirement
|
52
|
-
none: false
|
53
100
|
requirements:
|
54
|
-
- -
|
101
|
+
- - '>='
|
55
102
|
- !ruby/object:Gem::Version
|
56
103
|
version: '0'
|
57
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
105
|
requirements:
|
60
|
-
- -
|
106
|
+
- - '>='
|
61
107
|
- !ruby/object:Gem::Version
|
62
108
|
version: '0'
|
63
109
|
requirements: []
|
64
110
|
rubyforge_project:
|
65
|
-
rubygems_version:
|
111
|
+
rubygems_version: 2.0.5
|
66
112
|
signing_key:
|
67
|
-
specification_version:
|
68
|
-
summary: Just an
|
69
|
-
test_files:
|
113
|
+
specification_version: 4
|
114
|
+
summary: Just an redis cache.
|
115
|
+
test_files:
|
116
|
+
- test/cache_test.rb
|
117
|
+
- test/dummy/Rakefile
|
118
|
+
- test/dummy/app/controllers/application_controller.rb
|
119
|
+
- test/dummy/app/helpers/application_helper.rb
|
120
|
+
- test/dummy/app/views/layouts/application.html.erb
|
121
|
+
- test/dummy/config.ru
|
122
|
+
- test/dummy/config/application.rb
|
123
|
+
- test/dummy/config/boot.rb
|
124
|
+
- test/dummy/config/environment.rb
|
125
|
+
- test/dummy/config/environments/test.rb
|
126
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
127
|
+
- test/dummy/config/initializers/inflections.rb
|
128
|
+
- test/dummy/config/initializers/mime_types.rb
|
129
|
+
- test/dummy/config/initializers/secret_token.rb
|
130
|
+
- test/dummy/config/initializers/session_store.rb
|
131
|
+
- test/dummy/config/locales/en.yml
|
132
|
+
- test/dummy/config/routes.rb
|
133
|
+
- test/dummy/log/test.log
|
134
|
+
- test/dummy/script/rails
|
135
|
+
- test/test_helper.rb
|