cacheable_delegator 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YTU4MzA2ZTBhYTBkZGJhMzk1OWQxMjE4NzlmZGMzOTk4OWY4MjBjMA==
5
+ data.tar.gz: !binary |-
6
+ MTliMjc4YmI3Njk1M2EwYzk1NDUzYWUxMWYyNmRlOWJmYTY0MWRhMg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NzA2ODUwNzM2NGFhZDUxYjYyMTYzYjU4NmU1ZWQzNDVhMDU5OGM1Nzc0OGZj
10
+ NWMwMDQxZDEyNDU4NjY1OTVlYjJkMmUxODk2MjY0ZDQxOWUxNjBlN2Y3YmFl
11
+ YTcwZjg4MTM4OGM2OWZiNjk1YWU5NGQ4ODZiMjU0N2RiZjBjZGU=
12
+ data.tar.gz: !binary |-
13
+ N2ZjMTQ2YTk4MWM1Nzg2YTk1MzExNTY0MTMxMDQ4Mzc3MGFhNGVhYTU4ZTNk
14
+ NjAzNWY5N2FkNDRjNzk4MTliOWVmOWE1YTQzMjNiMjI2ZjI1YWZiMTkyYTlj
15
+ YmU4YjY1OTM3ZjYzMGU2MTNlOGY5YmI5ZjU2ZWFkMTE0M2VmMjE=
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source "http://rubygems.org"
2
+
3
+
4
+ # Add dependencies to develop your gem here.
5
+ # Include everything needed to run rake, tests, features, etc.
6
+ group :development do
7
+ gem "rspec", "~> 2.14.1"
8
+ gem "bundler", "~> 1.0"
9
+ gem "jeweler", "~> 1.8.7"
10
+ gem 'activerecord', '~> 3.2.14'
11
+ gem 'database_cleaner', '~> 1.0.1'
12
+ gem 'sqlite3'
13
+ end
14
+
15
+ gem 'pry'
16
+ gem 'activesupport', '~> 3.2.14'
data/Gemfile.lock ADDED
@@ -0,0 +1,90 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activemodel (3.2.14)
5
+ activesupport (= 3.2.14)
6
+ builder (~> 3.0.0)
7
+ activerecord (3.2.14)
8
+ activemodel (= 3.2.14)
9
+ activesupport (= 3.2.14)
10
+ arel (~> 3.0.2)
11
+ tzinfo (~> 0.3.29)
12
+ activesupport (3.2.14)
13
+ i18n (~> 0.6, >= 0.6.4)
14
+ multi_json (~> 1.0)
15
+ addressable (2.3.5)
16
+ arel (3.0.2)
17
+ builder (3.0.4)
18
+ coderay (1.0.9)
19
+ database_cleaner (1.0.1)
20
+ diff-lcs (1.2.4)
21
+ faraday (0.8.8)
22
+ multipart-post (~> 1.2.0)
23
+ git (1.2.6)
24
+ github_api (0.10.1)
25
+ addressable
26
+ faraday (~> 0.8.1)
27
+ hashie (>= 1.2)
28
+ multi_json (~> 1.4)
29
+ nokogiri (~> 1.5.2)
30
+ oauth2
31
+ hashie (2.0.5)
32
+ highline (1.6.19)
33
+ httpauth (0.2.0)
34
+ i18n (0.6.5)
35
+ jeweler (1.8.8)
36
+ builder
37
+ bundler (~> 1.0)
38
+ git (>= 1.2.5)
39
+ github_api (= 0.10.1)
40
+ highline (>= 1.6.15)
41
+ nokogiri (= 1.5.10)
42
+ rake
43
+ rdoc
44
+ json (1.8.0)
45
+ jwt (0.1.8)
46
+ multi_json (>= 1.5)
47
+ method_source (0.8.2)
48
+ multi_json (1.8.1)
49
+ multi_xml (0.5.5)
50
+ multipart-post (1.2.0)
51
+ nokogiri (1.5.10)
52
+ oauth2 (0.9.2)
53
+ faraday (~> 0.8)
54
+ httpauth (~> 0.2)
55
+ jwt (~> 0.1.4)
56
+ multi_json (~> 1.0)
57
+ multi_xml (~> 0.5)
58
+ rack (~> 1.2)
59
+ pry (0.9.12.2)
60
+ coderay (~> 1.0.5)
61
+ method_source (~> 0.8)
62
+ slop (~> 3.4)
63
+ rack (1.5.2)
64
+ rake (10.1.0)
65
+ rdoc (4.0.1)
66
+ json (~> 1.4)
67
+ rspec (2.14.1)
68
+ rspec-core (~> 2.14.0)
69
+ rspec-expectations (~> 2.14.0)
70
+ rspec-mocks (~> 2.14.0)
71
+ rspec-core (2.14.5)
72
+ rspec-expectations (2.14.3)
73
+ diff-lcs (>= 1.1.3, < 2.0)
74
+ rspec-mocks (2.14.3)
75
+ slop (3.4.6)
76
+ sqlite3 (1.3.8)
77
+ tzinfo (0.3.37)
78
+
79
+ PLATFORMS
80
+ ruby
81
+
82
+ DEPENDENCIES
83
+ activerecord (~> 3.2.14)
84
+ activesupport (~> 3.2.14)
85
+ bundler (~> 1.0)
86
+ database_cleaner (~> 1.0.1)
87
+ jeweler (~> 1.8.7)
88
+ pry
89
+ rspec (~> 2.14.1)
90
+ sqlite3
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Dan Nguyen
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,19 @@
1
+ = cacheable_delegator
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to cacheable_delegator
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
+ * Fork the project.
10
+ * Start a feature/bugfix branch.
11
+ * Commit and push until you are happy with your contribution.
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2013 Dan Nguyen. See LICENSE.txt for
18
+ further details.
19
+
data/Rakefile ADDED
@@ -0,0 +1,49 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "cacheable_delegator"
18
+ gem.homepage = "http://github.com/dannguyen/cacheable_delegator"
19
+ gem.license = "MIT"
20
+ gem.summary = %Q{Create a cache model}
21
+ gem.description = %Q{Create a cache model for your active records}
22
+ gem.email = "dansonguyen@gmail.com"
23
+ gem.authors = ["Dan Nguyen"]
24
+ # dependencies defined in Gemfile
25
+ end
26
+ Jeweler::RubygemsDotOrgTasks.new
27
+
28
+ require 'rspec/core'
29
+ require 'rspec/core/rake_task'
30
+ RSpec::Core::RakeTask.new(:spec) do |spec|
31
+ spec.pattern = FileList['spec/**/*_spec.rb']
32
+ end
33
+
34
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
35
+ spec.pattern = 'spec/**/*_spec.rb'
36
+ spec.rcov = true
37
+ end
38
+
39
+ task :default => :spec
40
+
41
+ require 'rdoc/task'
42
+ Rake::RDocTask.new do |rdoc|
43
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
44
+
45
+ rdoc.rdoc_dir = 'rdoc'
46
+ rdoc.title = "cacheable_delegator #{version}"
47
+ rdoc.rdoc_files.include('README*')
48
+ rdoc.rdoc_files.include('lib/**/*.rb')
49
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -0,0 +1,72 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "cacheable_delegator"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Dan Nguyen"]
12
+ s.date = "2013-10-09"
13
+ s.description = "Create a cache model for your active records"
14
+ s.email = "dansonguyen@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ "Gemfile",
23
+ "Gemfile.lock",
24
+ "LICENSE.txt",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "cacheable_delegator.gemspec",
29
+ "lib/cacheable_delegator.rb",
30
+ "spec/cacheable_delegator_spec.rb",
31
+ "spec/spec_helper.rb"
32
+ ]
33
+ s.homepage = "http://github.com/dannguyen/cacheable_delegator"
34
+ s.licenses = ["MIT"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = "2.0.5"
37
+ s.summary = "Create a cache model"
38
+
39
+ if s.respond_to? :specification_version then
40
+ s.specification_version = 4
41
+
42
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
+ s.add_runtime_dependency(%q<pry>, [">= 0"])
44
+ s.add_runtime_dependency(%q<activesupport>, ["~> 3.2.14"])
45
+ s.add_development_dependency(%q<rspec>, ["~> 2.14.1"])
46
+ s.add_development_dependency(%q<bundler>, ["~> 1.0"])
47
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
48
+ s.add_development_dependency(%q<activerecord>, ["~> 3.2.14"])
49
+ s.add_development_dependency(%q<database_cleaner>, ["~> 1.0.1"])
50
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
51
+ else
52
+ s.add_dependency(%q<pry>, [">= 0"])
53
+ s.add_dependency(%q<activesupport>, ["~> 3.2.14"])
54
+ s.add_dependency(%q<rspec>, ["~> 2.14.1"])
55
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
56
+ s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
57
+ s.add_dependency(%q<activerecord>, ["~> 3.2.14"])
58
+ s.add_dependency(%q<database_cleaner>, ["~> 1.0.1"])
59
+ s.add_dependency(%q<sqlite3>, [">= 0"])
60
+ end
61
+ else
62
+ s.add_dependency(%q<pry>, [">= 0"])
63
+ s.add_dependency(%q<activesupport>, ["~> 3.2.14"])
64
+ s.add_dependency(%q<rspec>, ["~> 2.14.1"])
65
+ s.add_dependency(%q<bundler>, ["~> 1.0"])
66
+ s.add_dependency(%q<jeweler>, ["~> 1.8.7"])
67
+ s.add_dependency(%q<activerecord>, ["~> 3.2.14"])
68
+ s.add_dependency(%q<database_cleaner>, ["~> 1.0.1"])
69
+ s.add_dependency(%q<sqlite3>, [">= 0"])
70
+ end
71
+ end
72
+
@@ -0,0 +1,43 @@
1
+ require 'active_record'
2
+ require 'active_support'
3
+
4
+ module CacheableDelegator
5
+ extend ActiveSupport::Concern
6
+
7
+ included do
8
+ class_attribute :cached_class
9
+ end
10
+
11
+ module ClassMethods
12
+ def cache_and_delegate(klass)
13
+ raise ArgumentError, "Must pass in a class, not a #{klass}" unless klass.is_a?(Class)
14
+ self.cached_class = klass
15
+
16
+ belongs_to :source_record, class_name: self.cached_class.to_s
17
+ end
18
+ end
19
+
20
+
21
+ DELEGATING_REGEX = /^delegate_(\w+)/
22
+
23
+
24
+ def method_missing(foo, *args, &block)
25
+ if foomatch = foo.to_s.match(DELEGATING_REGEX)
26
+ foo = foomatch[1].to_s
27
+
28
+ self.source_record.send(foo, *args, &block)
29
+ else
30
+ super
31
+ end
32
+ end
33
+
34
+ def respond_to?(meth, x=false)
35
+ if meth.match(DELEGATING_REGEX)
36
+ true
37
+ else
38
+ super
39
+ end
40
+ end
41
+
42
+ end
43
+
@@ -0,0 +1,44 @@
1
+ require 'spec_helper'
2
+
3
+ describe CacheableDelegator do
4
+
5
+ context 'class methods' do
6
+
7
+ describe '.cache_and_delegate' do
8
+ it 'should accept only a class to cache' do
9
+ expect{ MyCachedRecord.cache_and_delegate("X::Foo") }.to raise_error ArgumentError
10
+ end
11
+
12
+ it 'should set the :cached_class attribute' do
13
+ MyCachedRecord.cache_and_delegate MyRecord
14
+ expect(MyCachedRecord.cached_class).to eq MyRecord
15
+ end
16
+ end
17
+ end
18
+
19
+
20
+ context 'delegations' do
21
+ context 'it should delegate all the things' do
22
+ before(:each) do
23
+ @my_record = MyRecord.create
24
+ @cache_record = MyCachedRecord.create
25
+ @cache_record.source_record = @my_record
26
+
27
+ @cache_record.save
28
+ end
29
+
30
+ it 'should have a :source_record through the #belongs_to relation' do
31
+ expect(@cache_record.source_record).to eq @my_record
32
+ end
33
+
34
+ it 'delegate_:column will :delegate to its object' do
35
+ expect(@cache_record.delegate_foo).to eq @my_record.foo
36
+ end
37
+
38
+ it 'will use its own :foo, without :delegate_ prefix' do
39
+ @cache_record.foo = 'baz'
40
+ expect(@cache_record.foo).to eq 'baz'
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,75 @@
1
+ # Configure Rails Envinronment
2
+
3
+ require 'cacheable_delegator'
4
+ require 'pry'
5
+
6
+ require 'database_cleaner'
7
+ DatabaseCleaner.strategy = :truncation
8
+
9
+ ActiveRecord::Base.establish_connection(
10
+ :adapter => "sqlite3",
11
+ :database => ":memory:"
12
+ )
13
+ ActiveRecord::Migration.verbose = false
14
+
15
+
16
+
17
+ ActiveRecord::Schema.define do
18
+ create_table :my_records do |t|
19
+ t.integer :values
20
+ end
21
+ create_table :my_cached_records do |t|
22
+ t.string :foo
23
+ t.integer :double_values
24
+ t.integer :source_record_id
25
+ t.string :source_record_type
26
+ end
27
+ end
28
+
29
+
30
+ class MyRecord < ActiveRecord::Base
31
+
32
+ def foo
33
+ "This is foo"
34
+ end
35
+
36
+ def double_values
37
+ values * 2
38
+ end
39
+
40
+ end
41
+
42
+
43
+ class MyCachedRecord < ActiveRecord::Base
44
+ include CacheableDelegator
45
+ cache_and_delegate MyRecord
46
+ end
47
+
48
+
49
+
50
+ RSpec.configure do |config|
51
+
52
+ config.filter_run_excluding skip: true
53
+ config.run_all_when_everything_filtered = true
54
+ config.filter_run :focus => true
55
+
56
+ config.mock_with :rspec
57
+
58
+ # Use color in STDOUT
59
+ config.color_enabled = true
60
+
61
+ # Use color not only in STDOUT but also in pagers and files
62
+ config.tty = true
63
+
64
+ # Use the specified formatter
65
+ config.formatter = :documentation # :progress, :html, :textmate
66
+
67
+ config.before(:each) do
68
+ DatabaseCleaner.start
69
+ end
70
+
71
+ config.after(:each) do
72
+ DatabaseCleaner.clean
73
+ end
74
+ end
75
+
metadata ADDED
@@ -0,0 +1,169 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cacheable_delegator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Dan Nguyen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pry
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.2.14
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 3.2.14
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 2.14.1
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 2.14.1
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: jeweler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 1.8.7
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 1.8.7
83
+ - !ruby/object:Gem::Dependency
84
+ name: activerecord
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 3.2.14
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 3.2.14
97
+ - !ruby/object:Gem::Dependency
98
+ name: database_cleaner
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: 1.0.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: 1.0.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: sqlite3
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ description: Create a cache model for your active records
126
+ email: dansonguyen@gmail.com
127
+ executables: []
128
+ extensions: []
129
+ extra_rdoc_files:
130
+ - LICENSE.txt
131
+ - README.rdoc
132
+ files:
133
+ - .document
134
+ - .rspec
135
+ - Gemfile
136
+ - Gemfile.lock
137
+ - LICENSE.txt
138
+ - README.rdoc
139
+ - Rakefile
140
+ - VERSION
141
+ - cacheable_delegator.gemspec
142
+ - lib/cacheable_delegator.rb
143
+ - spec/cacheable_delegator_spec.rb
144
+ - spec/spec_helper.rb
145
+ homepage: http://github.com/dannguyen/cacheable_delegator
146
+ licenses:
147
+ - MIT
148
+ metadata: {}
149
+ post_install_message:
150
+ rdoc_options: []
151
+ require_paths:
152
+ - lib
153
+ required_ruby_version: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ required_rubygems_version: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ! '>='
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
163
+ requirements: []
164
+ rubyforge_project:
165
+ rubygems_version: 2.0.5
166
+ signing_key:
167
+ specification_version: 4
168
+ summary: Create a cache model
169
+ test_files: []