tiny_cache 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.md +32 -0
- data/Rakefile +15 -30
- data/lib/tiny_cache.rb +14 -1
- data/lib/tiny_cache/active_record.rb +18 -0
- data/lib/tiny_cache/active_record/base.rb +133 -0
- data/lib/tiny_cache/active_record/belongs_to_association.rb +37 -0
- data/lib/tiny_cache/active_record/fetch_by_uniq_key.rb +39 -0
- data/lib/tiny_cache/active_record/finder_methods.rb +132 -0
- data/lib/tiny_cache/active_record/has_many_association.rb +37 -0
- data/lib/tiny_cache/active_record/has_one_association.rb +36 -0
- data/lib/tiny_cache/active_record/persistence.rb +28 -0
- data/lib/tiny_cache/arel/wheres.rb +36 -0
- data/lib/tiny_cache/config.rb +23 -0
- data/lib/tiny_cache/record_marshal.rb +27 -0
- data/lib/tiny_cache/version.rb +2 -1
- data/spec/dummy/README.rdoc +28 -0
- data/{test → spec}/dummy/Rakefile +0 -1
- data/{test → spec}/dummy/app/assets/javascripts/application.js +3 -5
- data/{app/assets/stylesheets/tiny_cache → spec/dummy/app/assets/stylesheets}/application.css +0 -0
- data/spec/dummy/app/controllers/application_controller.rb +6 -0
- data/{test → spec}/dummy/app/helpers/application_helper.rb +1 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/{test → spec}/dummy/config.ru +1 -1
- data/spec/dummy/config/application.rb +24 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/{test → spec}/dummy/config/database.yml +0 -0
- data/spec/dummy/config/environment.rb +6 -0
- data/spec/dummy/config/environments/development.rb +30 -0
- data/spec/dummy/config/environments/production.rb +81 -0
- data/{test → spec}/dummy/config/environments/test.rb +14 -14
- data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +5 -0
- data/spec/dummy/config/initializers/inflections.rb +17 -0
- data/{test → spec}/dummy/config/initializers/mime_types.rb +1 -0
- data/spec/dummy/config/initializers/secret_token.rb +13 -0
- data/spec/dummy/config/initializers/session_store.rb +4 -0
- data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +7 -6
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +57 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/{test → spec}/dummy/public/favicon.ico +0 -0
- data/spec/spec_helper.rb +41 -0
- metadata +95 -84
- data/README.rdoc +0 -3
- data/app/assets/javascripts/tiny_cache/application.js +0 -15
- data/app/controllers/tiny_cache/application_controller.rb +0 -4
- data/app/helpers/tiny_cache/application_helper.rb +0 -4
- data/app/views/layouts/tiny_cache/application.html.erb +0 -14
- data/config/routes.rb +0 -2
- data/lib/tiny_cache/engine.rb +0 -5
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -3
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config/application.rb +0 -59
- data/test/dummy/config/boot.rb +0 -10
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -37
- data/test/dummy/config/environments/production.rb +0 -67
- data/test/dummy/config/initializers/inflections.rb +0 -15
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/config/locales/en.yml +0 -5
- data/test/dummy/config/routes.rb +0 -4
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/script/rails +0 -6
- data/test/integration/navigation_test.rb +0 -10
- data/test/test_helper.rb +0 -15
- data/test/tiny_cache_test.rb +0 -7
@@ -1,5 +1,6 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
Dummy::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
4
|
|
4
5
|
# The test environment is used exclusively to run your application's
|
5
6
|
# test suite. You never need to work with it otherwise. Remember that
|
@@ -7,31 +8,30 @@ Dummy::Application.configure do
|
|
7
8
|
# and recreated between test runs. Don't rely on the data there!
|
8
9
|
config.cache_classes = true
|
9
10
|
|
10
|
-
#
|
11
|
-
|
12
|
-
|
11
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
12
|
+
# just for the purpose of running a single test. If you are using a tool that
|
13
|
+
# preloads Rails for running tests, you may have to set it to true.
|
14
|
+
config.eager_load = false
|
13
15
|
|
14
|
-
#
|
15
|
-
config.
|
16
|
+
# Configure static asset server for tests with Cache-Control for performance.
|
17
|
+
config.serve_static_assets = true
|
18
|
+
config.static_cache_control = "public, max-age=3600"
|
16
19
|
|
17
|
-
# Show full error reports and disable caching
|
20
|
+
# Show full error reports and disable caching.
|
18
21
|
config.consider_all_requests_local = true
|
19
22
|
config.action_controller.perform_caching = false
|
20
23
|
|
21
|
-
# Raise exceptions instead of rendering exception templates
|
24
|
+
# Raise exceptions instead of rendering exception templates.
|
22
25
|
config.action_dispatch.show_exceptions = false
|
23
26
|
|
24
|
-
# Disable request forgery protection in test environment
|
25
|
-
config.action_controller.allow_forgery_protection
|
27
|
+
# Disable request forgery protection in test environment.
|
28
|
+
config.action_controller.allow_forgery_protection = false
|
26
29
|
|
27
30
|
# Tell Action Mailer not to deliver emails to the real world.
|
28
31
|
# The :test delivery method accumulates sent emails in the
|
29
32
|
# ActionMailer::Base.deliveries array.
|
30
33
|
config.action_mailer.delivery_method = :test
|
31
34
|
|
32
|
-
#
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
|
-
# Print deprecation notices to the stderr
|
35
|
+
# Print deprecation notices to the stderr.
|
36
36
|
config.active_support.deprecation = :stderr
|
37
37
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
# Be sure to restart your server when you modify this file.
|
3
|
+
|
4
|
+
# Add new inflection rules using the following format. Inflections
|
5
|
+
# are locale specific, and you may define rules for as many different
|
6
|
+
# locales as you wish. All of these examples are active by default:
|
7
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
8
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
9
|
+
# inflect.singular /^(ox)en/i, '\1'
|
10
|
+
# inflect.irregular 'person', 'people'
|
11
|
+
# inflect.uncountable %w( fish sheep )
|
12
|
+
# end
|
13
|
+
|
14
|
+
# These inflection rules are supported but not enabled by default:
|
15
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
16
|
+
# inflect.acronym 'RESTful'
|
17
|
+
# end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
# Be sure to restart your server when you modify this file.
|
3
|
+
|
4
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
5
|
+
# If you change this key, all old signed cookies will become invalid!
|
6
|
+
|
7
|
+
# Make sure the secret is at least 30 characters and all random,
|
8
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
9
|
+
# You can use `rake secret` to generate a secure secret key.
|
10
|
+
|
11
|
+
# Make sure your secret_key_base is kept private
|
12
|
+
# if you're sharing your code publicly.
|
13
|
+
Dummy::Application.config.secret_key_base = '88d27b77b3733ef58cbb52eaaf685ae8554c2d16b2bae1dc93bfd32c12d6edb6f998eb8b46a184ed35a5fb7a4aabd4fc1ab63bf9d7dd183967962f7098a5dccc'
|
@@ -1,14 +1,15 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
1
2
|
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
+
|
3
4
|
# This file contains settings for ActionController::ParamsWrapper which
|
4
5
|
# is enabled by default.
|
5
6
|
|
6
7
|
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
8
|
ActiveSupport.on_load(:action_controller) do
|
8
|
-
wrap_parameters format: [:json]
|
9
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
10
|
end
|
10
11
|
|
11
|
-
#
|
12
|
-
ActiveSupport.on_load(:active_record) do
|
13
|
-
self.include_root_in_json =
|
14
|
-
end
|
12
|
+
# To enable root element in JSON for ActiveRecord objects.
|
13
|
+
# ActiveSupport.on_load(:active_record) do
|
14
|
+
# self.include_root_in_json = true
|
15
|
+
# end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
Dummy::Application.routes.draw do
|
3
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
4
|
+
# See how all your routes lay out with "rake routes".
|
5
|
+
|
6
|
+
# You can have the root of your site routed with "root"
|
7
|
+
# root 'welcome#index'
|
8
|
+
|
9
|
+
# Example of regular route:
|
10
|
+
# get 'products/:id' => 'catalog#view'
|
11
|
+
|
12
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
13
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
14
|
+
|
15
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
16
|
+
# resources :products
|
17
|
+
|
18
|
+
# Example resource route with options:
|
19
|
+
# resources :products do
|
20
|
+
# member do
|
21
|
+
# get 'short'
|
22
|
+
# post 'toggle'
|
23
|
+
# end
|
24
|
+
#
|
25
|
+
# collection do
|
26
|
+
# get 'sold'
|
27
|
+
# end
|
28
|
+
# end
|
29
|
+
|
30
|
+
# Example resource route with sub-resources:
|
31
|
+
# resources :products do
|
32
|
+
# resources :comments, :sales
|
33
|
+
# resource :seller
|
34
|
+
# end
|
35
|
+
|
36
|
+
# Example resource route with more complex sub-resources:
|
37
|
+
# resources :products do
|
38
|
+
# resources :comments
|
39
|
+
# resources :sales do
|
40
|
+
# get 'recent', on: :collection
|
41
|
+
# end
|
42
|
+
# end
|
43
|
+
|
44
|
+
# Example resource route with concerns:
|
45
|
+
# concern :toggleable do
|
46
|
+
# post 'toggle'
|
47
|
+
# end
|
48
|
+
# resources :posts, concerns: :toggleable
|
49
|
+
# resources :photos, concerns: :toggleable
|
50
|
+
|
51
|
+
# Example resource route within a namespace:
|
52
|
+
# namespace :admin do
|
53
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
54
|
+
# # (app/controllers/admin/products_controller.rb)
|
55
|
+
# resources :products
|
56
|
+
# end
|
57
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/404.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
54
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|
File without changes
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
2
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
3
|
+
|
4
|
+
ENV["RAILS_ENV"] ||= 'test'
|
5
|
+
|
6
|
+
require File.expand_path("../dummy/config/environment", __FILE__)
|
7
|
+
require 'rspec/rails'
|
8
|
+
require 'rspec/autorun'
|
9
|
+
|
10
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
11
|
+
# in spec/support/ and its subdirectories.
|
12
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
|
13
|
+
|
14
|
+
RSpec.configure do |config|
|
15
|
+
# ## Mock Framework
|
16
|
+
#
|
17
|
+
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
|
18
|
+
#
|
19
|
+
# config.mock_with :mocha
|
20
|
+
# config.mock_with :flexmock
|
21
|
+
# config.mock_with :rr
|
22
|
+
|
23
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
24
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
25
|
+
|
26
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
27
|
+
# examples within a transaction, remove the following line or assign false
|
28
|
+
# instead of true.
|
29
|
+
config.use_transactional_fixtures = true
|
30
|
+
|
31
|
+
# If true, the base class of anonymous controllers will be inferred
|
32
|
+
# automatically. This will be the default behavior in future versions of
|
33
|
+
# rspec-rails.
|
34
|
+
config.infer_base_class_for_anonymous_controllers = false
|
35
|
+
|
36
|
+
# Run specs in random order to surface order dependencies. If you find an
|
37
|
+
# order dependency and want to debug it, you can fix the order by providing
|
38
|
+
# the seed, which is printed after each run.
|
39
|
+
# --seed 1234
|
40
|
+
config.order = "random"
|
41
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiny_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,30 +9,30 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-08-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- - ~>
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 4.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- - ~>
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 4.0.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: sqlite3
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
|
-
- -
|
35
|
+
- - ">="
|
36
36
|
- !ruby/object:Gem::Version
|
37
37
|
version: '0'
|
38
38
|
type: :development
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ">="
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
description: Description of TinyCache.
|
@@ -50,51 +50,56 @@ executables: []
|
|
50
50
|
extensions: []
|
51
51
|
extra_rdoc_files: []
|
52
52
|
files:
|
53
|
-
-
|
54
|
-
-
|
55
|
-
-
|
56
|
-
-
|
57
|
-
-
|
58
|
-
-
|
53
|
+
- lib/tiny_cache/active_record/has_one_association.rb
|
54
|
+
- lib/tiny_cache/active_record/fetch_by_uniq_key.rb
|
55
|
+
- lib/tiny_cache/active_record/persistence.rb
|
56
|
+
- lib/tiny_cache/active_record/belongs_to_association.rb
|
57
|
+
- lib/tiny_cache/active_record/has_many_association.rb
|
58
|
+
- lib/tiny_cache/active_record/finder_methods.rb
|
59
|
+
- lib/tiny_cache/active_record/base.rb
|
60
|
+
- lib/tiny_cache/config.rb
|
61
|
+
- lib/tiny_cache/version.rb
|
62
|
+
- lib/tiny_cache/record_marshal.rb
|
63
|
+
- lib/tiny_cache/active_record.rb
|
64
|
+
- lib/tiny_cache/arel/wheres.rb
|
59
65
|
- lib/tasks/tiny_cache_tasks.rake
|
60
66
|
- lib/tiny_cache.rb
|
61
|
-
- lib/tiny_cache/engine.rb
|
62
|
-
- lib/tiny_cache/version.rb
|
63
67
|
- MIT-LICENSE
|
64
68
|
- Rakefile
|
65
|
-
- README.
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
69
|
-
-
|
70
|
-
-
|
71
|
-
-
|
72
|
-
-
|
73
|
-
-
|
74
|
-
-
|
75
|
-
-
|
76
|
-
-
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
|
69
|
+
- README.md
|
70
|
+
- spec/dummy/README.rdoc
|
71
|
+
- spec/dummy/config/routes.rb
|
72
|
+
- spec/dummy/config/boot.rb
|
73
|
+
- spec/dummy/config/application.rb
|
74
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
75
|
+
- spec/dummy/config/initializers/mime_types.rb
|
76
|
+
- spec/dummy/config/initializers/secret_token.rb
|
77
|
+
- spec/dummy/config/initializers/session_store.rb
|
78
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
79
|
+
- spec/dummy/config/initializers/inflections.rb
|
80
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
81
|
+
- spec/dummy/config/locales/en.yml
|
82
|
+
- spec/dummy/config/environment.rb
|
83
|
+
- spec/dummy/config/environments/development.rb
|
84
|
+
- spec/dummy/config/environments/test.rb
|
85
|
+
- spec/dummy/config/environments/production.rb
|
86
|
+
- spec/dummy/config/database.yml
|
87
|
+
- spec/dummy/bin/rake
|
88
|
+
- spec/dummy/bin/bundle
|
89
|
+
- spec/dummy/bin/rails
|
90
|
+
- spec/dummy/public/404.html
|
91
|
+
- spec/dummy/public/422.html
|
92
|
+
- spec/dummy/public/favicon.ico
|
93
|
+
- spec/dummy/public/500.html
|
94
|
+
- spec/dummy/config.ru
|
95
|
+
- spec/dummy/Rakefile
|
96
|
+
- spec/dummy/app/controllers/application_controller.rb
|
97
|
+
- spec/dummy/app/helpers/application_helper.rb
|
98
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
99
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
100
|
+
- spec/dummy/app/assets/javascripts/application.js
|
101
|
+
- spec/spec_helper.rb
|
102
|
+
homepage: http://blogsoso.net
|
98
103
|
licenses: []
|
99
104
|
post_install_message:
|
100
105
|
rdoc_options: []
|
@@ -103,51 +108,57 @@ require_paths:
|
|
103
108
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
109
|
none: false
|
105
110
|
requirements:
|
106
|
-
- -
|
111
|
+
- - ">="
|
107
112
|
- !ruby/object:Gem::Version
|
108
113
|
version: '0'
|
114
|
+
segments:
|
115
|
+
- 0
|
116
|
+
hash: -2326302247483562612
|
109
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
118
|
none: false
|
111
119
|
requirements:
|
112
|
-
- -
|
120
|
+
- - ">="
|
113
121
|
- !ruby/object:Gem::Version
|
114
122
|
version: '0'
|
123
|
+
segments:
|
124
|
+
- 0
|
125
|
+
hash: -2326302247483562612
|
115
126
|
requirements: []
|
116
127
|
rubyforge_project:
|
117
|
-
rubygems_version: 1.8.
|
128
|
+
rubygems_version: 1.8.25
|
118
129
|
signing_key:
|
119
130
|
specification_version: 3
|
120
131
|
summary: Summary of TinyCache.
|
121
132
|
test_files:
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
125
|
-
-
|
126
|
-
-
|
127
|
-
-
|
128
|
-
-
|
129
|
-
-
|
130
|
-
-
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
135
|
-
-
|
136
|
-
-
|
137
|
-
-
|
138
|
-
-
|
139
|
-
-
|
140
|
-
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
|
133
|
+
- spec/dummy/README.rdoc
|
134
|
+
- spec/dummy/config/routes.rb
|
135
|
+
- spec/dummy/config/boot.rb
|
136
|
+
- spec/dummy/config/application.rb
|
137
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
138
|
+
- spec/dummy/config/initializers/mime_types.rb
|
139
|
+
- spec/dummy/config/initializers/secret_token.rb
|
140
|
+
- spec/dummy/config/initializers/session_store.rb
|
141
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
142
|
+
- spec/dummy/config/initializers/inflections.rb
|
143
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
144
|
+
- spec/dummy/config/locales/en.yml
|
145
|
+
- spec/dummy/config/environment.rb
|
146
|
+
- spec/dummy/config/environments/development.rb
|
147
|
+
- spec/dummy/config/environments/test.rb
|
148
|
+
- spec/dummy/config/environments/production.rb
|
149
|
+
- spec/dummy/config/database.yml
|
150
|
+
- spec/dummy/bin/rake
|
151
|
+
- spec/dummy/bin/bundle
|
152
|
+
- spec/dummy/bin/rails
|
153
|
+
- spec/dummy/public/404.html
|
154
|
+
- spec/dummy/public/422.html
|
155
|
+
- spec/dummy/public/favicon.ico
|
156
|
+
- spec/dummy/public/500.html
|
157
|
+
- spec/dummy/config.ru
|
158
|
+
- spec/dummy/Rakefile
|
159
|
+
- spec/dummy/app/controllers/application_controller.rb
|
160
|
+
- spec/dummy/app/helpers/application_helper.rb
|
161
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
162
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
163
|
+
- spec/dummy/app/assets/javascripts/application.js
|
164
|
+
- spec/spec_helper.rb
|