bard_static 1.4.2 → 1.4.3

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.
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
 
3
3
  gem "rails"
4
4
  gem "rake"
5
5
  gem "capybara"
6
6
  gem "rspec-rails"
7
+
@@ -25,10 +25,14 @@ module BardStatic
25
25
 
26
26
  def render_with_index path, options = {}
27
27
  begin
28
- render path, options.dup # render is destructive to the options hash!
28
+ options = options.dup # render is destructive to the options hash!
29
+ options = options.merge(:partial => path)
30
+ render options
29
31
  rescue ActionView::MissingTemplate
30
- render "#{path}/index", options
32
+ options[:partial] = "#{path}/index"
33
+ render options
31
34
  end
32
35
  end
33
36
  end
34
37
  end
38
+
@@ -1,3 +1,3 @@
1
1
  module BardStatic
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard_static
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 2
10
- version: 1.4.2
9
+ - 3
10
+ version: 1.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Micah Geisel
@@ -21,7 +21,7 @@ autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
23
 
24
- date: 2013-02-04 00:00:00 Z
24
+ date: 2013-06-12 00:00:00 Z
25
25
  dependencies: []
26
26
 
27
27
  description: Handcrafted prototypes for Rails.