infopark_component_cache 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1 +1,11 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rubygems'
3
+ require 'bundler/setup'
4
+ require 'rspec/core/rake_task'
5
+
6
+ desc "Run all specs in spec directory"
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
9
+ # Remove release task
10
+ task :release do ; end
11
+ task(:release).clear_prerequisites.clear_actions
@@ -4,4 +4,10 @@ module InfoparkComponentCacheHelper
4
4
  capture(&block)
5
5
  end
6
6
  end
7
- end
7
+
8
+ def cache_guarded_component(obj, component, guards, params, &block)
9
+ InfoparkComponentCache::ComponentCache.new(obj, component, params, guards).fetch do
10
+ capture(&block)
11
+ end
12
+ end
13
+ end
@@ -20,4 +20,5 @@ Gem::Specification.new do |gem|
20
20
  gem.add_dependency 'rails'
21
21
 
22
22
  gem.add_dependency 'infopark_rails_connector'
23
+ gem.add_development_dependency 'rspec'
23
24
  end
@@ -1,3 +1,3 @@
1
1
  module InfoparkComponentCache
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infopark_component_cache
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 1.0.0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tomasz Przedmojski
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-12-14 00:00:00 +01:00
18
+ date: 2013-10-07 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -46,6 +46,20 @@ dependencies:
46
46
  version: "0"
47
47
  type: :runtime
48
48
  version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: rspec
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
61
+ type: :development
62
+ version_requirements: *id003
49
63
  description: Easy and intelligent fragment caching for RailsConnector projects
50
64
  email:
51
65
  - tomasz.przedmojski@infopark.de
@@ -108,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
122
  requirements: []
109
123
 
110
124
  rubyforge_project:
111
- rubygems_version: 1.5.2
125
+ rubygems_version: 1.6.2
112
126
  signing_key:
113
127
  specification_version: 3
114
128
  summary: Fragment caching with automatic dependency resolution and cache invalidation.