with_template 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
- gem 'blocks', '~> 2.5.0'
3
+ gem 'blocks', '~> 2.6.0'
4
4
  gem 'rails', '>= 3.0.0'
5
5
 
6
6
  group :development do
data/Gemfile.lock CHANGED
@@ -27,14 +27,16 @@ GEM
27
27
  tzinfo (~> 0.3.37)
28
28
  arel (4.0.0)
29
29
  atomic (1.1.13)
30
- blocks (2.5.0)
31
- call_with_params
30
+ blocks (2.6.0)
31
+ call_with_params (~> 0.0.2)
32
+ hashie
32
33
  rails (>= 3.0.0)
33
34
  builder (3.1.4)
34
- call_with_params (0.0.1)
35
+ call_with_params (0.0.2)
35
36
  activesupport (>= 3.0.0)
36
37
  erubis (2.7.0)
37
38
  git (1.2.6)
39
+ hashie (2.0.5)
38
40
  hike (1.2.3)
39
41
  i18n (0.6.5)
40
42
  jeweler (1.6.4)
@@ -100,7 +102,7 @@ PLATFORMS
100
102
  ruby
101
103
 
102
104
  DEPENDENCIES
103
- blocks (~> 2.5.0)
105
+ blocks (~> 2.6.0)
104
106
  bundler
105
107
  jeweler
106
108
  mocha
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -43,7 +43,7 @@ module WithTemplate
43
43
  # An optional block with code that affects how the template renders
44
44
  def render_template(partial, &block)
45
45
  render_options = global_options.clone
46
- render_options[self.variable] = self
46
+ render_options[render_options[:variable]] = self
47
47
  render_options[:captured_block] = view.capture(self, &block) if block_given?
48
48
 
49
49
  view.render partial, render_options
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "with_template"
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andrew Hunter"]
12
- s.date = "2013-10-15"
12
+ s.date = "2013-11-04"
13
13
  s.description = "Render a template (partial) and easily override any of the components of the template"
14
14
  s.email = "hunterae@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
44
44
  s.specification_version = 3
45
45
 
46
46
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
- s.add_runtime_dependency(%q<blocks>, ["~> 2.5.0"])
47
+ s.add_runtime_dependency(%q<blocks>, ["~> 2.6.0"])
48
48
  s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
49
49
  s.add_development_dependency(%q<bundler>, [">= 0"])
50
50
  s.add_development_dependency(%q<jeweler>, [">= 0"])
@@ -52,7 +52,7 @@ Gem::Specification.new do |s|
52
52
  s.add_development_dependency(%q<shoulda>, [">= 0"])
53
53
  s.add_development_dependency(%q<mocha>, [">= 0"])
54
54
  else
55
- s.add_dependency(%q<blocks>, ["~> 2.5.0"])
55
+ s.add_dependency(%q<blocks>, ["~> 2.6.0"])
56
56
  s.add_dependency(%q<rails>, [">= 3.0.0"])
57
57
  s.add_dependency(%q<bundler>, [">= 0"])
58
58
  s.add_dependency(%q<jeweler>, [">= 0"])
@@ -61,7 +61,7 @@ Gem::Specification.new do |s|
61
61
  s.add_dependency(%q<mocha>, [">= 0"])
62
62
  end
63
63
  else
64
- s.add_dependency(%q<blocks>, ["~> 2.5.0"])
64
+ s.add_dependency(%q<blocks>, ["~> 2.6.0"])
65
65
  s.add_dependency(%q<rails>, [">= 3.0.0"])
66
66
  s.add_dependency(%q<bundler>, [">= 0"])
67
67
  s.add_dependency(%q<jeweler>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: with_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-15 00:00:00.000000000 Z
12
+ date: 2013-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: blocks
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 2.5.0
21
+ version: 2.6.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 2.5.0
29
+ version: 2.6.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rails
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -163,7 +163,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  segments:
165
165
  - 0
166
- hash: -774946647055935332
166
+ hash: 342149789488764602
167
167
  required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  none: false
169
169
  requirements: