h2ocube_rails_cache 0.0.1 → 0.0.2

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.
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
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ script: bundle exec rake test
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 TODO: Write your name
1
+ Copyright (c) 2013 H2ocube.com
2
2
 
3
3
  MIT License
4
4
 
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
@@ -1 +1,11 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << 'lib'
6
+ t.libs << 'test'
7
+ t.pattern = 'test/**/*_test.rb'
8
+ t.verbose = false
9
+ end
10
+
11
+ task :default => :test
@@ -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.1'
7
+ gem.version = '0.0.2'
8
8
  gem.authors = ['Ben']
9
9
  gem.email = ['ben@h2ocube.com']
10
- gem.description = %q{Just an helper collection}
11
- gem.summary = %q{Just an helper collection}
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 = ["lib"]
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.flushdb
42
+ @data.keys('*').each{ |k| @data.del k }
43
+ true
38
44
  end
39
45
  end
40
46
  end
@@ -1,3 +1,10 @@
1
1
  # coding: utf-8
2
-
3
2
  require 'active_support/cache/h2ocube_rails_cache'
3
+
4
+ module H2ocubeRailsCache
5
+ class Railtie < Rails::Railtie
6
+ config.before_configuration do |app|
7
+ app.config.cache_store = :h2ocube_rails_cache
8
+ end
9
+ end
10
+ end
@@ -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
@@ -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,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag :all %>
6
+ <%= javascript_include_tag :defaults %>
7
+ <%= csrf_meta_tag %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require "action_controller/railtie"
4
+
5
+ Bundler.require
6
+
7
+ Dir[File.dirname(__FILE__) << '/../../../']
8
+
9
+ module Dummy
10
+ class Application < Rails::Application
11
+ end
12
+ end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -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,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -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,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -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,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -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'
@@ -0,0 +1,6 @@
1
+ ENV['RAILS_ENV'] = 'test'
2
+
3
+ require File.expand_path('../dummy/config/environment.rb', __FILE__)
4
+ require 'minitest/autorun'
5
+
6
+ Rails.backtrace_cleaner.remove_silencers!
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.1
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: 2012-12-18 00:00:00.000000000 Z
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
- description: Just an helper collection
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: 1.8.24
111
+ rubygems_version: 2.0.5
66
112
  signing_key:
67
- specification_version: 3
68
- summary: Just an helper collection
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