cashier 0.2.0 → 0.4.0

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.
Files changed (69) hide show
  1. data/.gitignore +3 -42
  2. data/README.md +183 -0
  3. data/Rakefile +1 -5
  4. data/cashier.gemspec +8 -11
  5. data/lib/cashier.rb +93 -35
  6. data/lib/cashier/adapters/cache_store.rb +45 -0
  7. data/lib/cashier/adapters/redis_store.rb +46 -0
  8. data/lib/cashier/application_controller.rb +28 -0
  9. data/lib/cashier/matchers.rb +0 -1
  10. data/lib/cashier/railtie.rb +4 -3
  11. data/lib/cashier/version.rb +1 -1
  12. data/spec/{application_controller_spec.rb → controllers/application_controller_spec.rb} +0 -8
  13. data/spec/{test_app → dummy}/.gitignore +0 -0
  14. data/spec/{test_app → dummy}/Gemfile +0 -0
  15. data/spec/{test_app → dummy}/README +0 -0
  16. data/spec/{test_app → dummy}/Rakefile +0 -0
  17. data/spec/{test_app → dummy}/app/controllers/application_controller.rb +0 -0
  18. data/spec/{test_app → dummy}/app/controllers/home_controller.rb +0 -0
  19. data/spec/{test_app → dummy}/app/helpers/application_helper.rb +0 -0
  20. data/spec/{test_app → dummy}/app/helpers/home_helper.rb +0 -0
  21. data/spec/{test_app → dummy}/app/views/home/index.html.erb +0 -0
  22. data/spec/{test_app → dummy}/app/views/layouts/application.html.erb +0 -0
  23. data/spec/{test_app → dummy}/config.ru +0 -0
  24. data/spec/{test_app → dummy}/config/application.rb +0 -4
  25. data/spec/{test_app → dummy}/config/boot.rb +0 -0
  26. data/spec/{test_app → dummy}/config/environment.rb +0 -0
  27. data/spec/{test_app → dummy}/config/environments/development.rb +0 -3
  28. data/spec/{test_app → dummy}/config/environments/production.rb +0 -3
  29. data/spec/{test_app → dummy}/config/environments/test.rb +1 -6
  30. data/spec/{test_app → dummy}/config/initializers/backtrace_silencers.rb +0 -0
  31. data/spec/{test_app → dummy}/config/initializers/inflections.rb +0 -0
  32. data/spec/{test_app → dummy}/config/initializers/mime_types.rb +0 -0
  33. data/spec/{test_app → dummy}/config/initializers/secret_token.rb +0 -0
  34. data/spec/{test_app → dummy}/config/initializers/session_store.rb +0 -0
  35. data/spec/{test_app → dummy}/config/locales/en.yml +0 -0
  36. data/spec/{test_app → dummy}/config/routes.rb +0 -0
  37. data/spec/{test_app → dummy}/db/seeds.rb +0 -0
  38. data/spec/{test_app → dummy}/lib/tasks/.gitkeep +0 -0
  39. data/spec/{test_app → dummy}/public/404.html +0 -0
  40. data/spec/{test_app → dummy}/public/422.html +0 -0
  41. data/spec/{test_app → dummy}/public/500.html +0 -0
  42. data/spec/{test_app → dummy}/public/favicon.ico +0 -0
  43. data/spec/{test_app → dummy}/public/images/rails.png +0 -0
  44. data/spec/{test_app → dummy}/public/javascripts/application.js +0 -0
  45. data/spec/{test_app → dummy}/public/javascripts/controls.js +0 -0
  46. data/spec/{test_app → dummy}/public/javascripts/dragdrop.js +0 -0
  47. data/spec/{test_app → dummy}/public/javascripts/effects.js +0 -0
  48. data/spec/{test_app → dummy}/public/javascripts/prototype.js +0 -0
  49. data/spec/{test_app → dummy}/public/javascripts/rails.js +0 -0
  50. data/spec/{test_app → dummy}/public/robots.txt +0 -0
  51. data/spec/{test_app → dummy}/public/stylesheets/.gitkeep +0 -0
  52. data/spec/{test_app → dummy}/script/rails +0 -0
  53. data/spec/{test_app → dummy}/test/performance/browsing_test.rb +0 -0
  54. data/spec/{test_app → dummy}/test/test_helper.rb +0 -0
  55. data/spec/{test_app → dummy}/vendor/plugins/.gitkeep +0 -0
  56. data/spec/lib/adapters/cache_store_spec.rb +75 -0
  57. data/spec/lib/adapters/redis_store_spec.rb +89 -0
  58. data/spec/lib/cashier_spec.rb +112 -0
  59. data/spec/spec_helper.rb +34 -8
  60. metadata +179 -214
  61. data/..gemspec +0 -21
  62. data/.infinity_test +0 -19
  63. data/.rvmrc +0 -1
  64. data/Gemfile.lock +0 -118
  65. data/lib/cashier/controller_helper.rb +0 -34
  66. data/readme.md +0 -120
  67. data/spec/cashier_spec.rb +0 -89
  68. data/spec/test_app/Gemfile.lock +0 -73
  69. data/spec/test_app/config/database.yml +0 -22
@@ -0,0 +1,112 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Cashier" do
4
+ context "Tags store adapters" do
5
+ subject { Cashier }
6
+
7
+ it "should allow me to set the keys adapter" do
8
+ subject.respond_to?(:adapter=).should be_true
9
+ end
10
+
11
+ it "shold allow to get the adapter" do
12
+ subject.respond_to?(:adapter).should be_true
13
+ end
14
+ end
15
+
16
+ context "Cashier adapters communication through the interface" do
17
+ before(:each) do
18
+ Cashier.adapter = :cache_store
19
+ end
20
+ subject { Cashier }
21
+ let(:adapter) { Cashier.adapter }
22
+
23
+ describe "#store_fragment" do
24
+ it "should write the tag to the cache" do
25
+ adapter.should_receive(:store_fragment_in_tag).with('fragment-key', 'dashboard')
26
+ adapter.should_receive(:store_tags).with(["dashboard"])
27
+
28
+ subject.store_fragment('fragment-key', 'dashboard')
29
+ end
30
+
31
+ it "should store the tag for book keeping" do
32
+ adapter.should_receive(:store_fragment_in_tag).with('fragment-key', 'dashboard')
33
+ adapter.should_receive(:store_fragment_in_tag).with('fragment-key', 'settings')
34
+
35
+ adapter.should_receive(:store_tags).with(["dashboard", "settings"])
36
+
37
+ subject.store_fragment('fragment-key', 'dashboard', 'settings')
38
+ end
39
+ end
40
+
41
+ describe "#expire" do
42
+ before do
43
+ subject.store_fragment('fragment-key', 'dashboard')
44
+ end
45
+
46
+ it "should remove delete the fragment key" do
47
+ adapter.should_receive(:get_fragments_for_tag).with('dashboard').and_return(["fragment-key"])
48
+ adapter.should_receive(:delete_tag).with('dashboard')
49
+ adapter.should_receive(:remove_tags).with(['dashboard'])
50
+
51
+ subject.expire('dashboard')
52
+ end
53
+
54
+ it "should remove the tag" do
55
+ adapter.should_receive(:get_fragments_for_tag).with('dashboard').and_return([])
56
+ adapter.should_receive(:delete_tag).with('dashboard')
57
+ adapter.should_receive(:remove_tags).with(['dashboard'])
58
+
59
+ subject.expire('dashboard')
60
+ end
61
+
62
+ it "should remove the tag from the list of tracked tags" do
63
+ adapter.should_receive(:get_fragments_for_tag).with('dashboard').and_return(['fragment-key'])
64
+ adapter.should_receive(:delete_tag).with('dashboard')
65
+
66
+ subject.expire('dashboard')
67
+ end
68
+ end
69
+
70
+ describe "#tags" do
71
+ it "should return a list of active tags" do
72
+ subject.store_fragment('key1', 'dashboard')
73
+ subject.store_fragment('key2', 'settings')
74
+ subject.store_fragment('key3', 'email')
75
+
76
+ subject.tags.should eql(%w(dashboard settings email))
77
+ end
78
+ end
79
+
80
+ describe '#clear' do
81
+ before(:each) do
82
+ subject.store_fragment('key1', 'dashboard')
83
+ subject.store_fragment('key2', 'settings')
84
+ subject.store_fragment('key3', 'email')
85
+ end
86
+
87
+ it "should expire all tags" do
88
+ adapter.should_receive(:clear)
89
+ subject.clear
90
+ end
91
+
92
+ it "should clear the list of tracked tags" do
93
+ subject.clear
94
+ adapter.tags.should == []
95
+ end
96
+ end
97
+
98
+ describe '#keys' do
99
+ it "should return an array of all the tracked keys" do
100
+ adapter.should_receive(:keys).and_return(%w(key1 key2 key3))
101
+ subject.keys.should eql(%w(key1 key2 key3))
102
+ end
103
+ end
104
+
105
+ describe '#keys_for' do
106
+ it "should return an array of all the keys for the tag" do
107
+ adapter.should_receive(:get_fragments_for_tag).with('dashboard').and_return(%w(key1 key2 key3))
108
+ subject.keys_for('dashboard').should eql(%w(key1 key2 key3))
109
+ end
110
+ end
111
+ end
112
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,18 +1,44 @@
1
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
- $LOAD_PATH.unshift(File.dirname(__FILE__))
3
- require 'rspec'
1
+ require 'simplecov'
2
+ require 'redis'
3
+
4
+ SimpleCov.start
5
+
6
+ $: << File.join(File.dirname(__FILE__), '..', 'lib')
7
+
4
8
  require 'cashier'
5
9
 
6
10
  ENV['RAILS_ENV'] = 'test'
7
- require 'test_app/config/environment'
11
+ require 'dummy/config/environment'
8
12
 
9
- # Requires supporting files with custom matchers and macros, etc,
10
- # in ./support/ and its subdirectories.
11
- Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
13
+ require 'rspec/rails'
14
+
15
+ require 'fileutils'
12
16
 
13
17
  RSpec.configure do |config|
14
-
18
+ # ==========================> Redis test configuration
19
+ REDIS_PID = Rails.root.join 'tmp', 'pids', 'redis.pid'
20
+
21
+ FileUtils.mkdir_p Rails.root.join 'tmp', 'pids'
22
+ FileUtils.mkdir_p Rails.root.join 'tmp', 'cache'
23
+
24
+ config.before(:suite) do
25
+ redis_options = {
26
+ "daemonize" => 'yes',
27
+ "pidfile" => REDIS_PID,
28
+ "port" => 6397,
29
+ "dir" => Rails.root.join('tmp', 'cache'),
30
+ }.map { |k, v| "#{k} #{v}" }.join('\n')
31
+ `echo '#{redis_options}' | redis-server -`
32
+
33
+ Cashier::Adapters::RedisStore.redis = Redis.new(:host => '127.0.0.1', :port => 6397)
34
+ end
35
+
15
36
  config.before(:each) do
37
+ Cashier::Adapters::RedisStore.redis.flushdb
16
38
  Rails.cache.clear
17
39
  end
40
+
41
+ config.after :suite do
42
+ Process.kill "TERM", File.read(REDIS_PID).to_i
43
+ end
18
44
  end
metadata CHANGED
@@ -1,265 +1,230 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: cashier
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 0
9
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.0
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Adam Hawkins
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-02-20 00:00:00 -08:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-16 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rails
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70172278921700 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- version: "0"
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
31
22
  type: :development
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: rspec
35
23
  prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70172278921700
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &70172278920840 !ruby/object:Gem::Requirement
37
28
  none: false
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
44
33
  type: :development
45
- version_requirements: *id002
46
- - !ruby/object:Gem::Dependency
47
- name: rspec-rails
48
34
  prerelease: false
49
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70172278920840
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec-rails
38
+ requirement: &70172278920180 !ruby/object:Gem::Requirement
50
39
  none: false
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- segments:
55
- - 0
56
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
57
44
  type: :development
58
- version_requirements: *id003
59
- - !ruby/object:Gem::Dependency
60
- name: infinity_test
61
45
  prerelease: false
62
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70172278920180
47
+ - !ruby/object:Gem::Dependency
48
+ name: dalli
49
+ requirement: &70172278919320 !ruby/object:Gem::Requirement
63
50
  none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- segments:
68
- - 0
69
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
70
55
  type: :development
71
- version_requirements: *id004
72
- - !ruby/object:Gem::Dependency
73
- name: memcache-client
74
56
  prerelease: false
75
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *70172278919320
58
+ - !ruby/object:Gem::Dependency
59
+ name: simplecov
60
+ requirement: &70172278918460 !ruby/object:Gem::Requirement
76
61
  none: false
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- segments:
81
- - 0
82
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
83
66
  type: :development
84
- version_requirements: *id005
85
- - !ruby/object:Gem::Dependency
86
- name: ruby-debug19
87
67
  prerelease: false
88
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *70172278918460
69
+ - !ruby/object:Gem::Dependency
70
+ name: redis
71
+ requirement: &70172278917740 !ruby/object:Gem::Requirement
89
72
  none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- segments:
94
- - 0
95
- version: "0"
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: 2.2.0
96
77
  type: :development
97
- version_requirements: *id006
98
- - !ruby/object:Gem::Dependency
99
- name: sqlite3
100
78
  prerelease: false
101
- requirement: &id007 !ruby/object:Gem::Requirement
102
- none: false
103
- requirements:
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- segments:
107
- - 0
108
- version: "0"
109
- type: :development
110
- version_requirements: *id007
111
- description: Associate different cached content with a tag, then expire by tag instead of key
112
- email:
113
- - adman1965@gmail.com
79
+ version_requirements: *70172278917740
80
+ description: Associate different cached content with a tag, then expire by tag instead
81
+ of key
82
+ email:
83
+ - me@broadcastingadam.com
114
84
  executables: []
115
-
116
85
  extensions: []
117
-
118
86
  extra_rdoc_files: []
119
-
120
- files:
121
- - ..gemspec
87
+ files:
122
88
  - .gitignore
123
- - .infinity_test
124
- - .rvmrc
125
89
  - Gemfile
126
- - Gemfile.lock
127
90
  - LICENSE.txt
91
+ - README.md
128
92
  - Rakefile
129
93
  - cashier.gemspec
130
94
  - lib/cashier.rb
131
- - lib/cashier/controller_helper.rb
95
+ - lib/cashier/adapters/cache_store.rb
96
+ - lib/cashier/adapters/redis_store.rb
97
+ - lib/cashier/application_controller.rb
132
98
  - lib/cashier/cucumber.rb
133
99
  - lib/cashier/matchers.rb
134
100
  - lib/cashier/railtie.rb
135
101
  - lib/cashier/version.rb
136
- - readme.md
137
- - spec/application_controller_spec.rb
138
- - spec/cashier_spec.rb
102
+ - spec/controllers/application_controller_spec.rb
103
+ - spec/dummy/.gitignore
104
+ - spec/dummy/Gemfile
105
+ - spec/dummy/Gemfile.lock
106
+ - spec/dummy/README
107
+ - spec/dummy/Rakefile
108
+ - spec/dummy/app/controllers/application_controller.rb
109
+ - spec/dummy/app/controllers/home_controller.rb
110
+ - spec/dummy/app/helpers/application_helper.rb
111
+ - spec/dummy/app/helpers/home_helper.rb
112
+ - spec/dummy/app/views/home/index.html.erb
113
+ - spec/dummy/app/views/layouts/application.html.erb
114
+ - spec/dummy/config.ru
115
+ - spec/dummy/config/application.rb
116
+ - spec/dummy/config/boot.rb
117
+ - spec/dummy/config/environment.rb
118
+ - spec/dummy/config/environments/development.rb
119
+ - spec/dummy/config/environments/production.rb
120
+ - spec/dummy/config/environments/test.rb
121
+ - spec/dummy/config/initializers/backtrace_silencers.rb
122
+ - spec/dummy/config/initializers/inflections.rb
123
+ - spec/dummy/config/initializers/mime_types.rb
124
+ - spec/dummy/config/initializers/secret_token.rb
125
+ - spec/dummy/config/initializers/session_store.rb
126
+ - spec/dummy/config/locales/en.yml
127
+ - spec/dummy/config/routes.rb
128
+ - spec/dummy/db/seeds.rb
129
+ - spec/dummy/lib/tasks/.gitkeep
130
+ - spec/dummy/public/404.html
131
+ - spec/dummy/public/422.html
132
+ - spec/dummy/public/500.html
133
+ - spec/dummy/public/favicon.ico
134
+ - spec/dummy/public/images/rails.png
135
+ - spec/dummy/public/javascripts/application.js
136
+ - spec/dummy/public/javascripts/controls.js
137
+ - spec/dummy/public/javascripts/dragdrop.js
138
+ - spec/dummy/public/javascripts/effects.js
139
+ - spec/dummy/public/javascripts/prototype.js
140
+ - spec/dummy/public/javascripts/rails.js
141
+ - spec/dummy/public/robots.txt
142
+ - spec/dummy/public/stylesheets/.gitkeep
143
+ - spec/dummy/script/rails
144
+ - spec/dummy/test/performance/browsing_test.rb
145
+ - spec/dummy/test/test_helper.rb
146
+ - spec/dummy/vendor/plugins/.gitkeep
147
+ - spec/lib/adapters/cache_store_spec.rb
148
+ - spec/lib/adapters/redis_store_spec.rb
149
+ - spec/lib/cashier_spec.rb
139
150
  - spec/spec_helper.rb
140
- - spec/test_app/.gitignore
141
- - spec/test_app/Gemfile
142
- - spec/test_app/Gemfile.lock
143
- - spec/test_app/README
144
- - spec/test_app/Rakefile
145
- - spec/test_app/app/controllers/application_controller.rb
146
- - spec/test_app/app/controllers/home_controller.rb
147
- - spec/test_app/app/helpers/application_helper.rb
148
- - spec/test_app/app/helpers/home_helper.rb
149
- - spec/test_app/app/views/home/index.html.erb
150
- - spec/test_app/app/views/layouts/application.html.erb
151
- - spec/test_app/config.ru
152
- - spec/test_app/config/application.rb
153
- - spec/test_app/config/boot.rb
154
- - spec/test_app/config/database.yml
155
- - spec/test_app/config/environment.rb
156
- - spec/test_app/config/environments/development.rb
157
- - spec/test_app/config/environments/production.rb
158
- - spec/test_app/config/environments/test.rb
159
- - spec/test_app/config/initializers/backtrace_silencers.rb
160
- - spec/test_app/config/initializers/inflections.rb
161
- - spec/test_app/config/initializers/mime_types.rb
162
- - spec/test_app/config/initializers/secret_token.rb
163
- - spec/test_app/config/initializers/session_store.rb
164
- - spec/test_app/config/locales/en.yml
165
- - spec/test_app/config/routes.rb
166
- - spec/test_app/db/seeds.rb
167
- - spec/test_app/lib/tasks/.gitkeep
168
- - spec/test_app/public/404.html
169
- - spec/test_app/public/422.html
170
- - spec/test_app/public/500.html
171
- - spec/test_app/public/favicon.ico
172
- - spec/test_app/public/images/rails.png
173
- - spec/test_app/public/javascripts/application.js
174
- - spec/test_app/public/javascripts/controls.js
175
- - spec/test_app/public/javascripts/dragdrop.js
176
- - spec/test_app/public/javascripts/effects.js
177
- - spec/test_app/public/javascripts/prototype.js
178
- - spec/test_app/public/javascripts/rails.js
179
- - spec/test_app/public/robots.txt
180
- - spec/test_app/public/stylesheets/.gitkeep
181
- - spec/test_app/script/rails
182
- - spec/test_app/test/performance/browsing_test.rb
183
- - spec/test_app/test/test_helper.rb
184
- - spec/test_app/vendor/plugins/.gitkeep
185
- has_rdoc: true
186
- homepage: https://github.com/Adman65/cashier
151
+ homepage: https://github.com/threadedlabs/cashier
187
152
  licenses: []
188
-
189
153
  post_install_message:
190
154
  rdoc_options: []
191
-
192
- require_paths:
155
+ require_paths:
193
156
  - lib
194
- required_ruby_version: !ruby/object:Gem::Requirement
157
+ required_ruby_version: !ruby/object:Gem::Requirement
195
158
  none: false
196
- requirements:
197
- - - ">="
198
- - !ruby/object:Gem::Version
199
- segments:
159
+ requirements:
160
+ - - ! '>='
161
+ - !ruby/object:Gem::Version
162
+ version: '0'
163
+ segments:
200
164
  - 0
201
- version: "0"
202
- required_rubygems_version: !ruby/object:Gem::Requirement
165
+ hash: 1935489588722938674
166
+ required_rubygems_version: !ruby/object:Gem::Requirement
203
167
  none: false
204
- requirements:
205
- - - ">="
206
- - !ruby/object:Gem::Version
207
- segments:
168
+ requirements:
169
+ - - ! '>='
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ segments:
208
173
  - 0
209
- version: "0"
174
+ hash: 1935489588722938674
210
175
  requirements: []
211
-
212
- rubyforge_project: cashier
213
- rubygems_version: 1.3.7
176
+ rubyforge_project:
177
+ rubygems_version: 1.8.11
214
178
  signing_key:
215
179
  specification_version: 3
216
- summary: Tag based caching for Rails
217
- test_files:
218
- - spec/application_controller_spec.rb
219
- - spec/cashier_spec.rb
180
+ summary: Tag based caching for Rails using Redis or Memcached
181
+ test_files:
182
+ - spec/controllers/application_controller_spec.rb
183
+ - spec/dummy/.gitignore
184
+ - spec/dummy/Gemfile
185
+ - spec/dummy/Gemfile.lock
186
+ - spec/dummy/README
187
+ - spec/dummy/Rakefile
188
+ - spec/dummy/app/controllers/application_controller.rb
189
+ - spec/dummy/app/controllers/home_controller.rb
190
+ - spec/dummy/app/helpers/application_helper.rb
191
+ - spec/dummy/app/helpers/home_helper.rb
192
+ - spec/dummy/app/views/home/index.html.erb
193
+ - spec/dummy/app/views/layouts/application.html.erb
194
+ - spec/dummy/config.ru
195
+ - spec/dummy/config/application.rb
196
+ - spec/dummy/config/boot.rb
197
+ - spec/dummy/config/environment.rb
198
+ - spec/dummy/config/environments/development.rb
199
+ - spec/dummy/config/environments/production.rb
200
+ - spec/dummy/config/environments/test.rb
201
+ - spec/dummy/config/initializers/backtrace_silencers.rb
202
+ - spec/dummy/config/initializers/inflections.rb
203
+ - spec/dummy/config/initializers/mime_types.rb
204
+ - spec/dummy/config/initializers/secret_token.rb
205
+ - spec/dummy/config/initializers/session_store.rb
206
+ - spec/dummy/config/locales/en.yml
207
+ - spec/dummy/config/routes.rb
208
+ - spec/dummy/db/seeds.rb
209
+ - spec/dummy/lib/tasks/.gitkeep
210
+ - spec/dummy/public/404.html
211
+ - spec/dummy/public/422.html
212
+ - spec/dummy/public/500.html
213
+ - spec/dummy/public/favicon.ico
214
+ - spec/dummy/public/images/rails.png
215
+ - spec/dummy/public/javascripts/application.js
216
+ - spec/dummy/public/javascripts/controls.js
217
+ - spec/dummy/public/javascripts/dragdrop.js
218
+ - spec/dummy/public/javascripts/effects.js
219
+ - spec/dummy/public/javascripts/prototype.js
220
+ - spec/dummy/public/javascripts/rails.js
221
+ - spec/dummy/public/robots.txt
222
+ - spec/dummy/public/stylesheets/.gitkeep
223
+ - spec/dummy/script/rails
224
+ - spec/dummy/test/performance/browsing_test.rb
225
+ - spec/dummy/test/test_helper.rb
226
+ - spec/dummy/vendor/plugins/.gitkeep
227
+ - spec/lib/adapters/cache_store_spec.rb
228
+ - spec/lib/adapters/redis_store_spec.rb
229
+ - spec/lib/cashier_spec.rb
220
230
  - spec/spec_helper.rb
221
- - spec/test_app/.gitignore
222
- - spec/test_app/Gemfile
223
- - spec/test_app/Gemfile.lock
224
- - spec/test_app/README
225
- - spec/test_app/Rakefile
226
- - spec/test_app/app/controllers/application_controller.rb
227
- - spec/test_app/app/controllers/home_controller.rb
228
- - spec/test_app/app/helpers/application_helper.rb
229
- - spec/test_app/app/helpers/home_helper.rb
230
- - spec/test_app/app/views/home/index.html.erb
231
- - spec/test_app/app/views/layouts/application.html.erb
232
- - spec/test_app/config.ru
233
- - spec/test_app/config/application.rb
234
- - spec/test_app/config/boot.rb
235
- - spec/test_app/config/database.yml
236
- - spec/test_app/config/environment.rb
237
- - spec/test_app/config/environments/development.rb
238
- - spec/test_app/config/environments/production.rb
239
- - spec/test_app/config/environments/test.rb
240
- - spec/test_app/config/initializers/backtrace_silencers.rb
241
- - spec/test_app/config/initializers/inflections.rb
242
- - spec/test_app/config/initializers/mime_types.rb
243
- - spec/test_app/config/initializers/secret_token.rb
244
- - spec/test_app/config/initializers/session_store.rb
245
- - spec/test_app/config/locales/en.yml
246
- - spec/test_app/config/routes.rb
247
- - spec/test_app/db/seeds.rb
248
- - spec/test_app/lib/tasks/.gitkeep
249
- - spec/test_app/public/404.html
250
- - spec/test_app/public/422.html
251
- - spec/test_app/public/500.html
252
- - spec/test_app/public/favicon.ico
253
- - spec/test_app/public/images/rails.png
254
- - spec/test_app/public/javascripts/application.js
255
- - spec/test_app/public/javascripts/controls.js
256
- - spec/test_app/public/javascripts/dragdrop.js
257
- - spec/test_app/public/javascripts/effects.js
258
- - spec/test_app/public/javascripts/prototype.js
259
- - spec/test_app/public/javascripts/rails.js
260
- - spec/test_app/public/robots.txt
261
- - spec/test_app/public/stylesheets/.gitkeep
262
- - spec/test_app/script/rails
263
- - spec/test_app/test/performance/browsing_test.rb
264
- - spec/test_app/test/test_helper.rb
265
- - spec/test_app/vendor/plugins/.gitkeep